@solidity-parser/parser
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -568,6 +568,21 @@ 'use strict'; | ||
var isVirtual = false; | ||
if (ctx.VirtualKeyword(0)) { | ||
isVirtual = true; | ||
} | ||
var override = void 0; | ||
var overrideSpecifier = ctx.overrideSpecifier(); | ||
if (overrideSpecifier.length === 0) { | ||
override = null; | ||
} else { | ||
override = this.visit(overrideSpecifier[0].userDefinedTypeName()); | ||
} | ||
return { | ||
name: toText(ctx.identifier()), | ||
parameters: parameters, | ||
body: this.visit(ctx.block()) | ||
body: this.visit(ctx.block()), | ||
isVirtual: isVirtual, | ||
override: override | ||
}; | ||
@@ -574,0 +589,0 @@ }, |
@@ -140,2 +140,6 @@ // Type definitions for solidity-parser-antlr 0.2 | ||
name: string; | ||
parameters: null | VariableDeclaration[]; | ||
isVirtual: boolean; | ||
override: null | UserDefinedTypeName[]; | ||
body: Block; | ||
} | ||
@@ -142,0 +146,0 @@ export interface ModifierInvocation extends BaseASTNode { |
{ | ||
"name": "@solidity-parser/parser", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "A Solidity parser built from a robust ANTLR 4 grammar", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4004979
48247