@solidity-parser/parser
Advanced tools
Comparing version 0.7.1 to 0.8.0
'use strict'; | ||
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); | ||
var antlr4 = require('./antlr4/index'); | ||
@@ -1282,2 +1284,4 @@ | ||
names = [this.visit(names.identifier())]; | ||
} else if (names.assemblyMember()) { | ||
names = [this.visit(names.assemblyMember())]; | ||
} else { | ||
@@ -1310,2 +1314,4 @@ names = this.visit(names.assemblyIdentifierList().identifier()); | ||
names = [this.visit(names.identifier())]; | ||
} else if (names.assemblyMember()) { | ||
names = [this.visit(names.assemblyMember())]; | ||
} else { | ||
@@ -1320,2 +1326,14 @@ names = this.visit(names.assemblyIdentifierList().identifier()); | ||
}, | ||
AssemblyMember: function AssemblyMember(ctx) { | ||
var _ctx$identifier = ctx.identifier(), | ||
_ctx$identifier2 = _slicedToArray(_ctx$identifier, 2), | ||
accessed = _ctx$identifier2[0], | ||
member = _ctx$identifier2[1]; | ||
return { | ||
type: 'AssemblyMemberAccess', | ||
expression: this.visit(accessed), | ||
memberName: this.visit(member) | ||
}; | ||
}, | ||
LabelDefinition: function LabelDefinition(ctx) { | ||
@@ -1322,0 +1340,0 @@ return { |
'use strict'; | ||
// Generated from antlr/Solidity.g4 by ANTLR 4.7.2 | ||
// Generated from antlr/Solidity.g4 by ANTLR 4.8 | ||
// jshint ignore: start | ||
@@ -424,2 +424,8 @@ var antlr4 = require('../antlr4/index'); | ||
// Enter a parse tree produced by SolidityParser#assemblyMember. | ||
SolidityListener.prototype.enterAssemblyMember = function (ctx) {}; | ||
// Exit a parse tree produced by SolidityParser#assemblyMember. | ||
SolidityListener.prototype.exitAssemblyMember = function (ctx) {}; | ||
// Enter a parse tree produced by SolidityParser#assemblyCall. | ||
@@ -426,0 +432,0 @@ SolidityListener.prototype.enterAssemblyCall = function (ctx) {}; |
{ | ||
"name": "@solidity-parser/parser", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"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 too big to display
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
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
3827086
43089