solidity-parser-antlr icon indicating copy to clipboard operation
solidity-parser-antlr copied to clipboard

[Question] what is definition of AST node type ExpressionStatement ?

Open yxliang01 opened this issue 5 years ago • 2 comments

Is it formally defined as an expression which is also a statement?

yxliang01 avatar Apr 20 '19 19:04 yxliang01

It's really up to us, but I would not like to stray too far from the official AST output produced by solc.

federicobond avatar Apr 22 '19 12:04 federicobond

@federicobond Hmm so for the current implementation what kinds of code will be transformed to a ExpressionStatement AST node type?

yxliang01 avatar Apr 22 '19 13:04 yxliang01