@solidity-parser/parser
Advanced tools
Comparing version 0.13.0-rc.4 to 0.13.0-rc.5
@@ -17,3 +17,3 @@ import { ParserRuleContext } from 'antlr4ts'; | ||
defaultResult(): AST.ASTNode & WithMeta; | ||
aggregateResult(): ASTBuilderNode; | ||
aggregateResult(): AST.ASTNode & WithMeta; | ||
visitSourceUnit(ctx: SP.SourceUnitContext): AST.SourceUnit & WithMeta; | ||
@@ -25,4 +25,4 @@ visitContractPart(ctx: SP.ContractPartContext): ASTBuilderNode; | ||
visitVariableDeclarationStatement(ctx: SP.VariableDeclarationStatementContext): AST.VariableDeclarationStatement & WithMeta; | ||
visitStatement(ctx: SP.StatementContext): (AST.Block & WithMeta) | (AST.IfStatement & WithMeta) | (AST.WhileStatement & WithMeta) | (AST.ForStatement & WithMeta) | (AST.InlineAssemblyStatement & WithMeta) | (AST.DoWhileStatement & WithMeta) | (AST.ContinueStatement & WithMeta) | (AST.BreakStatement & WithMeta) | (AST.ReturnStatement & WithMeta) | (AST.EmitStatement & WithMeta) | (AST.ThrowStatement & WithMeta) | (AST.VariableDeclarationStatement & WithMeta) | (AST.ExpressionStatement & WithMeta) | (AST.UncheckedStatement & WithMeta) | (AST.TryStatement & WithMeta); | ||
visitSimpleStatement(ctx: SP.SimpleStatementContext): (AST.VariableDeclarationStatement & WithMeta) | (AST.ExpressionStatement & WithMeta); | ||
visitStatement(ctx: SP.StatementContext): AST.Statement & WithMeta; | ||
visitSimpleStatement(ctx: SP.SimpleStatementContext): AST.SimpleStatement & WithMeta; | ||
visitEventDefinition(ctx: SP.EventDefinitionContext): AST.EventDefinition & WithMeta; | ||
@@ -83,3 +83,3 @@ visitBlock(ctx: SP.BlockContext): AST.Block & WithMeta; | ||
visitAssemblyItem(ctx: SP.AssemblyItemContext): AST.AssemblyItem & WithMeta; | ||
visitAssemblyExpression(ctx: SP.AssemblyExpressionContext): (AST.AssemblyCall & WithMeta) | (AST.StringLiteral & WithMeta) | (AST.DecimalNumber & WithMeta) | (AST.HexNumber & WithMeta) | (AST.HexLiteral & WithMeta); | ||
visitAssemblyExpression(ctx: SP.AssemblyExpressionContext): AST.AssemblyExpression & WithMeta; | ||
visitAssemblyCall(ctx: SP.AssemblyCallContext): AST.AssemblyCall & WithMeta; | ||
@@ -86,0 +86,0 @@ visitAssemblyLiteral(ctx: SP.AssemblyLiteralContext): AST.AssemblyLiteral & WithMeta; |
{ | ||
"name": "@solidity-parser/parser", | ||
"version": "0.13.0-rc.4", | ||
"version": "0.13.0-rc.5", | ||
"description": "A Solidity parser built from a robust ANTLR 4 grammar", | ||
@@ -18,3 +18,3 @@ "main": "dist/index.cjs.js", | ||
"build:browser": "esbuild src/index.ts --outfile=dist/index.iife.js --bundle --loader:.tokens=file --sourcemap --format=iife --global-name=SolidityParser --define:__dirname=true --define:BROWSER=true --inject:./process-shim.js", | ||
"build:node": "esbuild src/index.ts --outfile=dist/index.cjs.js --bundle --loader:.tokens=file --sourcemap --format=cjs --platform=node", | ||
"build:node": "esbuild src/index.ts --outfile=dist/index.cjs.js --bundle --loader:.tokens=file --sourcemap --format=cjs --platform=node --target=node12", | ||
"build": "npm run build:node && npm run build:browser && npm run generate-types && npm run copy-files", | ||
@@ -29,2 +29,3 @@ "generate-types": "tsc", | ||
"test:browser": "karma start karma.conf.js", | ||
"test:integration": "mocha --config ./.mocharc-integration.js test-integration", | ||
"test:coverage": "nyc mocha" | ||
@@ -81,6 +82,3 @@ }, | ||
] | ||
}, | ||
"volta": { | ||
"node": "14.16.1" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import { ANTLRInputStream, BufferedTokenStream, CommonTokenStream } from 'antlr4ts' | ||
import { ANTLRInputStream, CommonTokenStream } from 'antlr4ts' | ||
@@ -3,0 +3,0 @@ import { SolidityLexer } from './antlr/SolidityLexer' |
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
9109712
96862