diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-14 18:40:05 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-14 18:40:05 +0800 |
commit | 2345a3bdfe5be9ea2d13ed98b889e01286ddaab2 (patch) | |
tree | 517a43f049060cbfccf51605a77e5834e7f06c40 /packages | |
parent | ab5cd8f9387e601677de697c7573c6c13383e932 (diff) | |
download | dexon-sol-tools-2345a3bdfe5be9ea2d13ed98b889e01286ddaab2.tar dexon-sol-tools-2345a3bdfe5be9ea2d13ed98b889e01286ddaab2.tar.gz dexon-sol-tools-2345a3bdfe5be9ea2d13ed98b889e01286ddaab2.tar.bz2 dexon-sol-tools-2345a3bdfe5be9ea2d13ed98b889e01286ddaab2.tar.lz dexon-sol-tools-2345a3bdfe5be9ea2d13ed98b889e01286ddaab2.tar.xz dexon-sol-tools-2345a3bdfe5be9ea2d13ed98b889e01286ddaab2.tar.zst dexon-sol-tools-2345a3bdfe5be9ea2d13ed98b889e01286ddaab2.zip |
Add assembly statements to AST Visitor
Diffstat (limited to 'packages')
-rw-r--r-- | packages/sol-tracing-utils/src/ast_visitor.ts | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/packages/sol-tracing-utils/src/ast_visitor.ts b/packages/sol-tracing-utils/src/ast_visitor.ts index e55cdf6ec..fe71c974b 100644 --- a/packages/sol-tracing-utils/src/ast_visitor.ts +++ b/packages/sol-tracing-utils/src/ast_visitor.ts @@ -94,6 +94,39 @@ export class ASTVisitor { public InlineAssemblyStatement(ast: Parser.InlineAssemblyStatement): void { this._visitStatement(ast); } + public AssemblyLocalDefinition(ast: Parser.AssemblyLocalDefinition): void { + this._visitStatement(ast); + } + public AssemblyCall(ast: Parser.AssemblyCall): void { + this._visitStatement(ast); + } + public AssemblyIf(ast: Parser.AssemblyIf): void { + this._visitStatement(ast); + } + public AssemblyBlock(ast: Parser.AssemblyBlock): void { + this._visitStatement(ast); + } + public AssemblyExpression(ast: Parser.AssemblyExpression): void { + this._visitStatement(ast); + } + public AssemblyAssignment(ast: Parser.AssemblyAssignment): void { + this._visitStatement(ast); + } + public LabelDefinition(ast: Parser.LabelDefinition): void { + this._visitStatement(ast); + } + public AssemblySwitch(ast: Parser.AssemblySwitch): void { + this._visitStatement(ast); + } + public AssemblyFunctionDefinition(ast: Parser.AssemblyFunctionDefinition): void { + this._visitStatement(ast); + } + public AssemblyFor(ast: Parser.AssemblyFor): void { + this._visitStatement(ast); + } + public SubAssembly(ast: Parser.SubAssembly): void { + this._visitStatement(ast); + } public BinaryOperation(ast: Parser.BinaryOperation): void { const BRANCHING_BIN_OPS = ['&&', '||']; if (_.includes(BRANCHING_BIN_OPS, ast.operator)) { |