@solidity-parser/parser
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -902,2 +902,18 @@ 'use strict'; | ||
}, | ||
FileLevelConstant: function FileLevelConstant(ctx) { | ||
var type = this.visit(ctx.typeName()); | ||
var iden = ctx.identifier(); | ||
var name = toText(iden); | ||
var expression = null; | ||
if (ctx.expression()) { | ||
expression = this.visit(ctx.expression()); | ||
} | ||
return { | ||
typeName: type, | ||
name: name, | ||
initialValue: expression | ||
}; | ||
}, | ||
ForStatement: function ForStatement(ctx) { | ||
@@ -904,0 +920,0 @@ var conditionExpression = this.visit(ctx.expressionStatement()); |
@@ -94,2 +94,8 @@ 'use strict'; | ||
// Enter a parse tree produced by SolidityParser#fileLevelConstant. | ||
SolidityListener.prototype.enterFileLevelConstant = function (ctx) {}; | ||
// Exit a parse tree produced by SolidityParser#fileLevelConstant. | ||
SolidityListener.prototype.exitFileLevelConstant = function (ctx) {}; | ||
// Enter a parse tree produced by SolidityParser#usingForDeclaration. | ||
@@ -96,0 +102,0 @@ SolidityListener.prototype.enterUsingForDeclaration = function (ctx) {}; |
@@ -157,6 +157,9 @@ // Type definitions for solidity-parser-antlr 0.2 | ||
visibility: 'default' | 'external' | 'internal' | 'public' | 'private'; | ||
isConstructor: boolean; | ||
returnParameters?: VariableDeclaration[]; | ||
body?: Block; | ||
override: null | UserDefinedTypeName[]; | ||
isConstructor: boolean; | ||
isReceiveEther: boolean; | ||
isFallback: boolean; | ||
isVirtual: boolean; | ||
} | ||
@@ -229,2 +232,3 @@ export interface EventDefinition extends BaseASTNode { | ||
type: 'WhileStatement'; | ||
body: Statement; | ||
} | ||
@@ -231,0 +235,0 @@ export interface ForStatement extends BaseASTNode { |
{ | ||
"name": "@solidity-parser/parser", | ||
"version": "0.8.1", | ||
"version": "0.8.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 not supported yet
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 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
3847999
43315
2
78