aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-cov
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-03-10 11:26:59 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-03-12 10:37:30 +0800
commit10f6a17857d183bea6b2825cd76ed2eb26d453ed (patch)
tree126e76ad0977125c315eeb78d16c34af5195f1d0 /packages/sol-cov
parent2197c2481a1f9f8fcc5d4e9055769741b8c53c73 (diff)
downloaddexon-sol-tools-10f6a17857d183bea6b2825cd76ed2eb26d453ed.tar
dexon-sol-tools-10f6a17857d183bea6b2825cd76ed2eb26d453ed.tar.gz
dexon-sol-tools-10f6a17857d183bea6b2825cd76ed2eb26d453ed.tar.bz2
dexon-sol-tools-10f6a17857d183bea6b2825cd76ed2eb26d453ed.tar.lz
dexon-sol-tools-10f6a17857d183bea6b2825cd76ed2eb26d453ed.tar.xz
dexon-sol-tools-10f6a17857d183bea6b2825cd76ed2eb26d453ed.tar.zst
dexon-sol-tools-10f6a17857d183bea6b2825cd76ed2eb26d453ed.zip
Add builtin modifier 'constant'
Diffstat (limited to 'packages/sol-cov')
-rw-r--r--packages/sol-cov/src/ast_visitor.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/sol-cov/src/ast_visitor.ts b/packages/sol-cov/src/ast_visitor.ts
index 588d179d4..9193f6a18 100644
--- a/packages/sol-cov/src/ast_visitor.ts
+++ b/packages/sol-cov/src/ast_visitor.ts
@@ -89,7 +89,7 @@ export class ASTVisitor {
this._visitStatement(ast);
}
private _visitModifierArgument(ast: SolidityParser.AST): void {
- const BUILTIN_MODIFIERS = ['public', 'view', 'payable', 'external', 'internal', 'pure'];
+ const BUILTIN_MODIFIERS = ['public', 'view', 'payable', 'external', 'internal', 'pure', 'constant'];
if (!_.includes(BUILTIN_MODIFIERS, ast.name)) {
this._visitStatement(ast);
}