diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-13 22:32:36 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-13 22:49:46 +0800 |
commit | 5827170815904175d83908bd565d6028cd631737 (patch) | |
tree | 097c2ab81ecccd5fd8734e170e0f70460013f90a /packages | |
parent | a9db0e8ebe1360cf521302691998ef1f98e2dc51 (diff) | |
download | dexon-sol-tools-5827170815904175d83908bd565d6028cd631737.tar.gz dexon-sol-tools-5827170815904175d83908bd565d6028cd631737.tar.zst dexon-sol-tools-5827170815904175d83908bd565d6028cd631737.zip |
Add other statement types
Diffstat (limited to 'packages')
-rw-r--r-- | packages/sol-cov/src/ast_visitor.ts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/sol-cov/src/ast_visitor.ts b/packages/sol-cov/src/ast_visitor.ts index 0dddbb16e..66190afec 100644 --- a/packages/sol-cov/src/ast_visitor.ts +++ b/packages/sol-cov/src/ast_visitor.ts @@ -54,9 +54,33 @@ export class ASTVisitor { public BreakStatement(ast: Parser.BreakStatement): void { this._visitStatement(ast); } + public ContinueStatement(ast: Parser.ContinueStatement): void { + this._visitStatement(ast); + } + public VariableDeclarationStatement(ast: Parser.VariableDeclarationStatement): void { + this._visitStatement(ast); + } + public Statement(ast: Parser.Statement): void { + this._visitStatement(ast); + } + public WhileStatement(ast: Parser.WhileStatement): void { + this._visitStatement(ast); + } + public SimpleStatement(ast: Parser.SimpleStatement): void { + this._visitStatement(ast); + } + public ThrowStatement(ast: Parser.ThrowStatement): void { + this._visitStatement(ast); + } + public DoWhileStatement(ast: Parser.DoWhileStatement): void { + this._visitStatement(ast); + } public ExpressionStatement(ast: Parser.ExpressionStatement): void { this._visitStatement(ast.expression); } + public InlineAssemblyStatement(ast: Parser.InlineAssemblyStatement): void { + this._visitStatement(ast); + } public BinaryOperation(ast: Parser.BinaryOperation): void { const BRANCHING_BIN_OPS = ['&&', '||']; if (_.includes(BRANCHING_BIN_OPS, ast.operator)) { |