-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Use symbol instead of definition tree in TASTy reflect #4991
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
Use symbol instead of definition tree in TASTy reflect #4991
Conversation
1ca6384
to
a2a18d3
Compare
a2a18d3
to
2ee909f
Compare
666d9d1
to
18bb14c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vive les symboles 👍 LGTM
def isEmpty: Boolean = symbol eq NoSymbol | ||
def localContext(implicit ctx: Context): Context = ctx.withOwner(symbol) | ||
|
||
def isEmpty(implicit ctx: Context): Boolean = symbol eq NoSymbol |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rename it to exists
? Not important, somehow I feel exists
is more friendly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed
Definition
toSymbol
to avoid unnecessary loading of treesSymbol
instead ofDefinition
avoid unnecessary loading of treesSymbol