Crate lunarity_ast
source ·Re-exports
pub use self::Expression::ThisExpression;
pub use self::Statement::Placeholder;
pub use self::Statement::BreakStatement;
pub use self::Statement::ContinueStatement;
pub use self::Statement::ThrowStatement;
Macros
Structs
Useful for boolean flags that need location information via FlagNode,
for example:
indexed
or anonymous
.type inferred via
var
, cannot have storage flag, init is mandatoryNode
is a specialized Cell
that holds a reference to T instead of T.
Node
has defined lifetime and implements Defer<Target = T>
for convenience.A Solidity source code parsed to an AST
explicitly typed, can have storage flag, init is optional
Enums
Used in the
for
loop initialization.A
SourceUnit
is the top level construct of the grammar.