Getting Yul ASTs requires asking for ast at contract level instead of at file level #14452
Labels
bug 🐛
low effort
There is not much implementation work to be done. The task is very easy or tiny.
low impact
Changes are not very noticeable or potential benefits are limited.
must have eventually
Something we consider essential but not enough to prevent us from releasing Solidity 1.0 without it.
Description
When compiling in Yul mode, including
"ast"
in the file-level output selection doesn't result in getting ASTs like it does when compiling Solidity. Instead you have to set it at the contract level. This makes no sense, because ASTs are a file-level matter, and is also inconsistent with how the compiler acts when compiling Solidity.Environment
Steps to Reproduce
Really any Yul code will do here! What's relevant here is the output selection. An
outputSelection
ofwon't get the AST,
whereas one of
will.
The text was updated successfully, but these errors were encountered: