@solidity-parser/parser
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -837,2 +837,10 @@ 'use strict'; | ||
var override = void 0; | ||
var overrideSpecifier = ctx.overrideSpecifier(); | ||
if (overrideSpecifier.length === 0) { | ||
override = null; | ||
} else { | ||
override = this.visit(overrideSpecifier[0].userDefinedTypeName()); | ||
} | ||
var decl = this.createNode({ | ||
@@ -846,3 +854,4 @@ type: 'VariableDeclaration', | ||
isDeclaredConst: isDeclaredConst, | ||
isIndexed: false | ||
isIndexed: false, | ||
override: override | ||
}, iden); | ||
@@ -849,0 +858,0 @@ |
@@ -123,3 +123,3 @@ // Type definitions for solidity-parser-antlr 0.2 | ||
type: 'StateVariableDeclaration'; | ||
variables: VariableDeclaration[]; | ||
variables: VariableDeclarationWithOverride[]; | ||
initialValue?: Expression; | ||
@@ -183,2 +183,5 @@ } | ||
} | ||
export interface VariableDeclarationWithOverride extends VariableDeclaration { | ||
override: null | UserDefinedTypeName[]; | ||
} | ||
export interface UserDefinedTypeName extends BaseASTNode { | ||
@@ -185,0 +188,0 @@ type: 'UserDefinedTypeName'; |
{ | ||
"name": "@solidity-parser/parser", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "A Solidity parser built from a robust ANTLR 4 grammar", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -7,3 +7,3 @@ # Solidity Parser for JavaScript | ||
This is a fork of ([@federicobond](https://github.com/federicobond))'s original [repo](https://github.com/federicobond/solidity-parser-antlr), | ||
This is a fork of [@federicobond](https://github.com/federicobond)'s original [repo](https://github.com/federicobond/solidity-parser-antlr), | ||
with some extra features taken from [Consensys Diligence's alternative fork](https://github.com/consensys/solidity-parser-antlr). | ||
@@ -10,0 +10,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 19 instances in 1 package
3789363
78
0
100
42640