aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-cov
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-03-13 22:32:36 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-03-13 22:49:46 +0800
commit5827170815904175d83908bd565d6028cd631737 (patch)
tree097c2ab81ecccd5fd8734e170e0f70460013f90a /packages/sol-cov
parenta9db0e8ebe1360cf521302691998ef1f98e2dc51 (diff)
downloaddexon-sol-tools-5827170815904175d83908bd565d6028cd631737.tar
dexon-sol-tools-5827170815904175d83908bd565d6028cd631737.tar.gz
dexon-sol-tools-5827170815904175d83908bd565d6028cd631737.tar.bz2
dexon-sol-tools-5827170815904175d83908bd565d6028cd631737.tar.lz
dexon-sol-tools-5827170815904175d83908bd565d6028cd631737.tar.xz
dexon-sol-tools-5827170815904175d83908bd565d6028cd631737.tar.zst
dexon-sol-tools-5827170815904175d83908bd565d6028cd631737.zip
Add other statement types
Diffstat (limited to 'packages/sol-cov')
-rw-r--r--packages/sol-cov/src/ast_visitor.ts24
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)) {