Skip to content
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

Provide utility or recipe for referencing imported library aliases #462

Open
micimize opened this issue May 14, 2020 · 0 comments
Open

Provide utility or recipe for referencing imported library aliases #462

micimize opened this issue May 14, 2020 · 0 comments

Comments

@micimize
Copy link

As referencing imported symbols is a common code generation need, it would be nice to provide a specific utility or recipe (with sample code) for doing so

As noted in #109:

If you are generating code, and you have a DartType, and you want to know, "what prefix do I need to emit in order to produce a valid reference to this DartType", then using the element model to find the library is probably your best answer

It looks like built_value parses the imported library's ast

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant