-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symbol Graphs Lack Operators #60140
Comments
|
We currently don't emit symbols for operator declarations themselves, only their implementations on types. I would be curious how a declaration like this could be used in a dependent package. Can someone As far as the symbol graph is concerned, what kind of information is necessary to include about an operator/precedence-group declaration? I didn't know about custom precedence groups before. |
from tspl:
the i think to get started though, it should be enough to just emit a stub for each custom precedence group indicating its existence, which would allow us to attach documentation to it. |
Yes. A client can declare its own operators in an imported precedence group, and can declare its own functions for an imported operator.
For details, see here.
As a rough initial sketch... (and not necessarily implemented all at once) The declaration used for
The following should become new cases of
Any documentation comments should also be gathered. |
Describe the bug
Generated symbol graphs do not contain information about operators.
Steps To Reproduce
Package source files:
Terminal command:
Result:
Expected behavior
There ought to be some sort of entry for
CustomPrecedence
and≠
.The text was updated successfully, but these errors were encountered: