solidity-antlr4
Version:
Solidity Lang Lexer and Parser by official ANTLR4 grammar
23 lines (22 loc) • 2.66 kB
TypeScript
import { StatementContext, SolidityParserVisitor } from '../../antlr4';
import { Block } from './block';
import { SimpleStatement } from './simple-statement';
import { IfStatement } from './if-statement';
import { ForStatement } from './for-statement';
import { WhileStatement } from './while-statement';
import { DoWhileStatement } from './do-while-statement';
import { ContinueStatement } from './continue-statement';
import { BreakStatement } from './break-statement';
import { TryStatement } from './try-statement';
import { ReturnStatement } from './return-statement';
import { EmitStatement } from './emit-statement';
import { RevertStatement } from './revert-statement';
import { AssemblyStatement } from './assembly-statement';
export type Statement = Block | SimpleStatement | IfStatement | ForStatement | WhileStatement | DoWhileStatement | ContinueStatement | BreakStatement | TryStatement | ReturnStatement | EmitStatement | RevertStatement | AssemblyStatement;
export declare const Statement: {
new (ctx: StatementContext, visitor: SolidityParserVisitor<any>): {
type: "Conditional" | "UnicodeStringLiteral" | "Identifier" | "ContractDefinition" | "EnumDefinition" | "ErrorDefinition" | "EventDefinition" | "FunctionDefinition" | "ModifierDefinition" | "StructDefinition" | "StructMember" | "UserDefinedValueTypeDefinition" | "VariableDeclaration" | "AssignOp" | "Assignment" | "BinaryOperation" | "BooleanLiteral" | "FunctionCallOptions" | "FunctionCall" | "HexStringLiteral" | "IndexAccess" | "IndexRangeAccess" | "InlineArray" | "MemberAccess" | "MetaType" | "NamedArgument" | "NewExpr" | "NumberLiteral" | "PayableConversion" | "StringLiteral" | "TupleExpression" | "UnaryOperation" | "UserDefinableOperator" | "DataLocation" | "IdentifierPath" | "ImportAliases" | "ImportDirective" | "InheritanceSpecifier" | "ModifierInvocation" | "Path" | "PragmaDirective" | "SourceUnit" | "UsingAliases" | "UsingDirective" | "AssemblyStatement" | "Block" | "BreakStatement" | "CatchClause" | "ContinueStatement" | "DoWhileStatement" | "EmitStatement" | "ExpressionStatement" | "ForStatement" | "IfStatement" | "ReturnStatement" | "RevertStatement" | "TryStatement" | "VariableDeclarationStatement" | "WhileStatement" | "ElementaryTypeName" | "FunctionTypeName" | "MappingKeyType" | "MappingType" | "TypeName" | "YulAssignment" | "YulBlock" | "YulBoolean" | "YulForStatement" | "YulFunctionCall" | "YulFunctionDefinition" | "YulIfStatement" | "YulLiteral" | "YulPath" | "YulStatement" | "YulSwitchCase" | "YulSwitchStatement" | "YulVariableDeclaration";
range: [number, number];
location: import("../base").Location;
};
};