-
Notifications
You must be signed in to change notification settings - Fork 5
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
QualifiedName should be able to reference top level members of libraries and members of interfaces #96
Comments
If we choose to describe top level members as part of a block declaration called Taking a step back, though: it might make sense to introduce a new union type for "macro target"? Then we can certainly target all the different types of thing :) |
I am assuming that So, I think we should figure out how to allow it to do that. Maybe adding a |
I do not have a clear idea the best way to go here :) We have the capability to use any node in the Maybe what we are actually talking about is a path into Given we are still free to refactor, it probably works okay all ways around: we could expand |
A couple of notes from our chat:
|
Additionally we might want to distinguish between whether the URI refers to a scope in which to look up the name in the context of (as in look it up in the library scope and then import scope), or whether the name should be looked up in the export scope of the URI. |
It seems to me today that it can only reference Interfaces within a library, so we will have to figure out how it needs to change, and what the URI syntax of it should be (but, I think we will find this is hard to represent as a URI, fwiw).
We also need to be able to target whole libraries, so if we use QualifiedName to represent the "target" in macro APIs (as it does now), then they also need to be able to represent the library itself. But, if we move to specific URIs for each phase/target combo, we could just use a Uri instead as the target when running on a library.
The text was updated successfully, but these errors were encountered: