diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-10 11:26:59 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-12 10:37:30 +0800 |
commit | 10f6a17857d183bea6b2825cd76ed2eb26d453ed (patch) | |
tree | 126e76ad0977125c315eeb78d16c34af5195f1d0 /packages | |
parent | 2197c2481a1f9f8fcc5d4e9055769741b8c53c73 (diff) | |
download | dexon-sol-tools-10f6a17857d183bea6b2825cd76ed2eb26d453ed.tar.gz dexon-sol-tools-10f6a17857d183bea6b2825cd76ed2eb26d453ed.tar.zst dexon-sol-tools-10f6a17857d183bea6b2825cd76ed2eb26d453ed.zip |
Add builtin modifier 'constant'
Diffstat (limited to 'packages')
-rw-r--r-- | packages/sol-cov/src/ast_visitor.ts | 2 |
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); } |