Documentation ¶
Index ¶
- func NewTreeSitter(code string) *sitter.Node
- type ArrayTypeName
- type AssemblyAssignment
- type AssemblyBlock
- type AssemblyCall
- type AssemblyCase
- type AssemblyFor
- type AssemblyFunctionDefinition
- type AssemblyIf
- type AssemblyLiteral
- type AssemblyLocalDefinition
- type AssemblyMember
- type AssemblySwitch
- type BinaryOperation
- type Block
- type BooleanLiteral
- type BreakStatement
- type CatchClause
- type Conditional
- type ContinueStatement
- type ContractDefinition
- type CustomErrorDefinition
- type CustomErrorListener
- type DoWhileStatement
- type ElementaryTypeName
- type EmitStatement
- type EnumDefinition
- type EnumValue
- type EventDefinition
- type ExpressionStatement
- type FileLevelConstant
- type ForStatement
- type FunctionCall
- type FunctionDefinition
- type FunctionTypeName
- type HexLiteral
- type INode
- type Identifier
- type IfStatement
- type ImportDirective
- type IndexAccess
- type IndexRangeAccess
- type InheritanceSpecifier
- type InlineAssemblyStatement
- type Mapping
- type MemberAccess
- type ModifierDefinition
- type ModifierInvocation
- type NameValueExpression
- type NameValueList
- type NewExpression
- type Node
- type NumberLiteral
- type OverrideSpecifier
- type Parser
- type PragmaDirective
- type ReturnStatement
- type RevertStatement
- type SourceUnit
- type StateVariableDeclaration
- type StateVariableDeclarationVariable
- type StringLiteral
- type StructDefinition
- type SyntaxError
- type ThrowStatement
- type TryStatement
- type TupleExpression
- type TypeDefinition
- type TypeNameExpression
- type UnaryOperation
- type UncheckedStatement
- type UserDefinedTypeName
- type UsingForDeclaration
- type VariableDeclaration
- type VariableDeclarationStatement
- type WhileStatement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTreeSitter ¶
Types ¶
type ArrayTypeName ¶
type ArrayTypeName struct { Node BaseTypeName interface{} Length interface{} }
type AssemblyAssignment ¶
type AssemblyAssignment struct {
Expression interface{}
}
type AssemblyBlock ¶
type AssemblyBlock struct {
Operations []interface{}
}
type AssemblyCall ¶
type AssemblyCall struct {
Arguments []interface{}
}
type AssemblyCase ¶
type AssemblyCase struct {
Block interface{}
}
type AssemblyFor ¶
type AssemblyFor struct { Pre interface{} Condition interface{} Post interface{} Body interface{} }
type AssemblyFunctionDefinition ¶
type AssemblyFunctionDefinition struct {
Body interface{}
}
type AssemblyIf ¶
type AssemblyIf struct { Condition interface{} Body interface{} }
type AssemblyLiteral ¶
type AssemblyLiteral struct { }
type AssemblyLocalDefinition ¶
type AssemblyLocalDefinition struct {
Expression interface{}
}
type AssemblyMember ¶
type AssemblyMember struct { Expression interface{} MemberName interface{} }
type AssemblySwitch ¶
type AssemblySwitch struct { Expression interface{} Cases []interface{} }
type BinaryOperation ¶
type BooleanLiteral ¶
type CatchClause ¶
type Conditional ¶
type Conditional struct { Node Condition interface{} TrueExpression interface{} FalseExpression interface{} }
type ContractDefinition ¶
type ContractDefinition struct { Node Name string `json:"name"` SubNodes []interface{} BaseContracts []interface{} Kind string }
ContractDefinition
type CustomErrorDefinition ¶
type CustomErrorListener ¶
type CustomErrorListener struct { *antlr.DefaultErrorListener Errors []*SyntaxError }
func (*CustomErrorListener) SyntaxError ¶
func (c *CustomErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line, column int, msg string, e antlr.RecognitionException)
type DoWhileStatement ¶
type DoWhileStatement struct { Node Condition interface{} Body interface{} }
type ElementaryTypeName ¶
type EmitStatement ¶
type EmitStatement struct { Node EventCall interface{} }
type EnumDefinition ¶
type EnumDefinition struct { Node Name string `json:"name"` Members []interface{} `json:"members"` }
EnumDefinition
type EventDefinition ¶
EventDefinition
type ExpressionStatement ¶
type ExpressionStatement struct { Node Expression interface{} }
ExpressionStatement
type FileLevelConstant ¶
type ForStatement ¶
type ForStatement struct { Node InitExpression interface{} ConditionExpression interface{} LoopExpression interface{} Body interface{} }
ForStatement
type FunctionCall ¶
type FunctionCall struct { Node Arguments []interface{} Names []interface{} Identifiers []interface{} Expression interface{} }
type FunctionDefinition ¶
type FunctionDefinition struct { Node Name string Parameters []interface{} Modifiers []interface{} ReturnParameters interface{} Body interface{} StateMutability string Visibility string IsConstructor bool IsReceiveEther bool IsFallback bool IsVirtual bool Override []interface{} }
FunctionDefinition
type FunctionTypeName ¶
type HexLiteral ¶
type Identifier ¶
type IfStatement ¶
type IfStatement struct { Node Condition interface{} TrueBody interface{} FalseBody interface{} }
IfStatement
type ImportDirective ¶
type ImportDirective struct { Node Path string PathLiteral interface{} UnitAlias string UnitAliasIdentifier interface{} SymbolAliases [][]string SymbolAliasesIdentifiers [][]*Identifier }
ImportDirective
type IndexAccess ¶
type IndexAccess struct { Node Base interface{} Index interface{} }
type IndexRangeAccess ¶
type IndexRangeAccess struct { Node Base interface{} IndexStart interface{} IndexEnd interface{} }
type InheritanceSpecifier ¶
type InheritanceSpecifier struct { Node BaseName interface{} Arguments []interface{} }
type InlineAssemblyStatement ¶
type InlineAssemblyStatement struct {
Body interface{}
}
type MemberAccess ¶
type ModifierDefinition ¶
type ModifierDefinition struct { Node Name string Parameters interface{} Body interface{} IsVirtual bool Override []interface{} }
ModifierDefinition
type ModifierInvocation ¶
type NameValueExpression ¶
type NameValueExpression struct { Node Expression interface{} Arguments interface{} }
type NameValueList ¶
type NumberLiteral ¶
type OverrideSpecifier ¶
type OverrideSpecifier struct {
Node
}
type Parser ¶
type Parser struct { Result INode Errors []*SyntaxError }
type PragmaDirective ¶
type RevertStatement ¶
type RevertStatement struct { Node RevertCall interface{} }
type StateVariableDeclaration ¶
type StateVariableDeclaration struct { Node Variables []interface{} InitialValue interface{} }
type StateVariableDeclarationVariable ¶
type StateVariableDeclarationVariable struct { VariableDeclaration IsInmutable bool }
type StringLiteral ¶
type StructDefinition ¶
StructDefinition
type SyntaxError ¶
type SyntaxError struct {
// contains filtered or unexported fields
}
func (*SyntaxError) Error ¶
func (c *SyntaxError) Error() string
type ThrowStatement ¶
type ThrowStatement struct {
Node
}
type TryStatement ¶
type TryStatement struct { Node Expression interface{} CatchClause []interface{} Body interface{} ReturnParameters interface{} }
TryStatement
type TupleExpression ¶
type TypeDefinition ¶
type TypeNameExpression ¶
type TypeNameExpression struct { Node TypeName interface{} }
type UnaryOperation ¶
type UncheckedStatement ¶
type UncheckedStatement struct { Node Block interface{} }
type UserDefinedTypeName ¶
type UsingForDeclaration ¶
UsingForDeclaration
type VariableDeclaration ¶
type VariableDeclaration struct { Node Name string TypeName interface{} Identifier interface{} IsIndexed bool IsStateVar bool IsDeclaredConst bool StorageLocation string Expression interface{} Visibility string Override []interface{} }
VariableDeclaration
type VariableDeclarationStatement ¶
type VariableDeclarationStatement struct { Node InitialValue interface{} Variables []interface{} }
VariableDeclarationStatement
type WhileStatement ¶
type WhileStatement struct { Node Condition interface{} Body interface{} }
WhileStatement
Click to show internal directories.
Click to hide internal directories.