Fix the cannot read property range of null bug
This commit is contained in:
@@ -17,6 +17,10 @@
|
|||||||
{
|
{
|
||||||
"note": "Print resasonable error message on bytecode collision",
|
"note": "Print resasonable error message on bytecode collision",
|
||||||
"pr": 1535
|
"pr": 1535
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"note": "Fix the bug in `ASTVisitor` causing the 'cannot read property `range` of `null`' error",
|
||||||
|
"pr": 1557
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@@ -89,7 +89,9 @@ export class ASTVisitor {
|
|||||||
this._visitStatement(ast);
|
this._visitStatement(ast);
|
||||||
}
|
}
|
||||||
public ExpressionStatement(ast: Parser.ExpressionStatement): void {
|
public ExpressionStatement(ast: Parser.ExpressionStatement): void {
|
||||||
this._visitStatement(ast.expression);
|
if (!_.isNull(ast.expression)) {
|
||||||
|
this._visitStatement(ast.expression);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
public InlineAssemblyStatement(ast: Parser.InlineAssemblyStatement): void {
|
public InlineAssemblyStatement(ast: Parser.InlineAssemblyStatement): void {
|
||||||
this._visitStatement(ast);
|
this._visitStatement(ast);
|
||||||
|
Reference in New Issue
Block a user