-
Notifications
You must be signed in to change notification settings - Fork 6k
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
ImportDirective symbolAliases are not pointing to external nodes #7758
Labels
Comments
You are completely right with your assumptions. The The new output looks like this:
Feel free to reopen this if you still think the output is not correct. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, everyone. Was recently working with SolcJS AST and noticed something strange, what I would really like to ask about.
By compiling current.sol with solc-js 0.5.12 I'm getting following
ImportDirective
AST node:I was expecting that
symbolAliases
will containforeign
property to point to external declaration of contractA
, but it actually is pointing to nowhere (there is no nodes with ID = 2 or ID = 3). Also, there is an ID gap betweenPragmaDirective
(ID = 1) and sequentially following nodeImportDirective
(ID = 4), which maybe gives an idea that there is something off here...Is
foreign
referencing external declarations by some another way (and I'm missing something here)? Shouldn't it have value of referenced contract declaration node id (9) instead (likeUserDefinedTypeName
does)?Thanks for clarification and your time. Regards.
The text was updated successfully, but these errors were encountered: