Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@solidity-parser/parser

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solidity-parser/parser - npm Package Compare versions

Comparing version 0.7.1 to 0.8.0

18

dist/ASTBuilder.js
'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 {

8

dist/lib/SolidityListener.js
'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) {};

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc