From 10f6a17857d183bea6b2825cd76ed2eb26d453ed Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Sat, 10 Mar 2018 04:26:59 +0100 Subject: Add builtin modifier 'constant' --- packages/sol-cov/src/ast_visitor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') 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); } -- cgit