Enum ethers_solc::artifacts::ast::NodeType
source · pub enum NodeType {
Show 66 variants
Assignment,
BinaryOperation,
Conditional,
ElementaryTypeNameExpression,
FunctionCall,
FunctionCallOptions,
Identifier,
IndexAccess,
IndexRangeAccess,
Literal,
MemberAccess,
NewExpression,
TupleExpression,
UnaryOperation,
Block,
Break,
Continue,
DoWhileStatement,
EmitStatement,
ExpressionStatement,
ForStatement,
IfStatement,
InlineAssembly,
PlaceholderStatement,
Return,
RevertStatement,
TryStatement,
UncheckedBlock,
VariableDeclarationStatement,
VariableDeclaration,
WhileStatement,
YulAssignment,
YulBlock,
YulBreak,
YulContinue,
YulExpressionStatement,
YulLeave,
YulForLoop,
YulFunctionDefinition,
YulIf,
YulSwitch,
YulVariableDeclaration,
YulFunctionCall,
YulIdentifier,
YulLiteral,
YulLiteralValue,
YulHexValue,
ContractDefinition,
FunctionDefinition,
EventDefinition,
ErrorDefinition,
ModifierDefinition,
StructDefinition,
EnumDefinition,
UserDefinedValueTypeDefinition,
PragmaDirective,
ImportDirective,
UsingForDirective,
SourceUnit,
InheritanceSpecifier,
ElementaryTypeName,
FunctionTypeName,
ParameterList,
TryCatchClause,
ModifierInvocation,
Other(String),
}
Variants§
Assignment
BinaryOperation
Conditional
ElementaryTypeNameExpression
FunctionCall
FunctionCallOptions
Identifier
IndexAccess
IndexRangeAccess
Literal
MemberAccess
NewExpression
TupleExpression
UnaryOperation
Block
Break
Continue
DoWhileStatement
EmitStatement
ExpressionStatement
ForStatement
IfStatement
InlineAssembly
PlaceholderStatement
Return
RevertStatement
TryStatement
UncheckedBlock
VariableDeclarationStatement
VariableDeclaration
WhileStatement
YulAssignment
YulBlock
YulBreak
YulContinue
YulExpressionStatement
YulLeave
YulForLoop
YulFunctionDefinition
YulIf
YulSwitch
YulVariableDeclaration
YulFunctionCall
YulIdentifier
YulLiteral
YulLiteralValue
YulHexValue
ContractDefinition
FunctionDefinition
EventDefinition
ErrorDefinition
ModifierDefinition
StructDefinition
EnumDefinition
UserDefinedValueTypeDefinition
PragmaDirective
ImportDirective
UsingForDirective
SourceUnit
InheritanceSpecifier
ElementaryTypeName
FunctionTypeName
ParameterList
TryCatchClause
ModifierInvocation
Other(String)
An unknown AST node type.
Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeType
impl<'de> Deserialize<'de> for NodeType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for NodeType
impl PartialEq for NodeType
impl Eq for NodeType
impl StructuralPartialEq for NodeType
Auto Trait Implementations§
impl RefUnwindSafe for NodeType
impl Send for NodeType
impl Sync for NodeType
impl Unpin for NodeType
impl UnwindSafe for NodeType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.