diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-15 22:42:48 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-15 23:19:01 +0800 |
commit | f6c01520ae75d173937f0847ac45e636b06f4146 (patch) | |
tree | 6c16d0a8050bf470fd9a7e93c88b8f840b35b604 /packages/sol-cov/src/ast_visitor.ts | |
parent | 40ebb533b324bf7dd454243fcb1ee092ab85f7eb (diff) | |
download | dexon-0x-contracts-f6c01520ae75d173937f0847ac45e636b06f4146.tar.gz dexon-0x-contracts-f6c01520ae75d173937f0847ac45e636b06f4146.tar.zst dexon-0x-contracts-f6c01520ae75d173937f0847ac45e636b06f4146.zip |
Add tests for sol-cov
Diffstat (limited to 'packages/sol-cov/src/ast_visitor.ts')
-rw-r--r-- | packages/sol-cov/src/ast_visitor.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/sol-cov/src/ast_visitor.ts b/packages/sol-cov/src/ast_visitor.ts index 66190afec..88309d3eb 100644 --- a/packages/sol-cov/src/ast_visitor.ts +++ b/packages/sol-cov/src/ast_visitor.ts @@ -113,8 +113,8 @@ export class ASTVisitor { this._statementMap[this._entryId++] = this._getExpressionRange(ast); } private _getExpressionRange(ast: Parser.ASTNode): SingleFileSourceRange { - const start = this._locationByOffset[ast.range[0] - 1]; - const end = this._locationByOffset[ast.range[1]]; + const start = this._locationByOffset[ast.range[0]]; + const end = this._locationByOffset[ast.range[1] + 1]; const range = { start, end, |