@solidity-parser/parser
Advanced tools
Comparing version 0.12.0 to 0.12.1
{ | ||
"name": "@solidity-parser/parser", | ||
"version": "0.12.0", | ||
"version": "0.12.1", | ||
"description": "A Solidity parser built from a robust ANTLR 4 grammar", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
@@ -554,3 +554,3 @@ import antlr4 from 'antlr4' | ||
let kind = null; | ||
let kind = null | ||
if (ctx.identifier()) { | ||
@@ -809,2 +809,9 @@ kind = toText(ctx.identifier()) | ||
) { | ||
if (ctx.getChild(2).getText() === ':') { | ||
return { | ||
type: 'IndexRangeAccess', | ||
base: (this as any).visit(ctx.getChild(0)), | ||
} | ||
} | ||
return { | ||
@@ -1029,5 +1036,5 @@ type: 'IndexAccess', | ||
const isUnicode = text.slice(0, 7) === 'unicode'; | ||
const isUnicode = text.slice(0, 7) === 'unicode' | ||
if (isUnicode) { | ||
text = text.slice(7); | ||
text = text.slice(7) | ||
} | ||
@@ -1309,3 +1316,3 @@ const singleQuotes = text[0] === "'" | ||
parts: [value], | ||
isUnicode: [false] // assembly doesn't seem to support unicode literals right now | ||
isUnicode: [false], // assembly doesn't seem to support unicode literals right now | ||
} | ||
@@ -1312,0 +1319,0 @@ } |
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 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
6155880
63131