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
impl Eq for NodeType
impl StructuralEq 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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.