java-parser
Advanced tools
Comparing version 0.7.1 to 0.8.0
{ | ||
"name": "java-parser", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"description": "Java Parser in JavaScript", | ||
@@ -17,3 +17,3 @@ "main": "src/index.js", | ||
}, | ||
"gitHead": "c4eb95e1400c2da5e363e02e08329d7cc8a32071" | ||
"gitHead": "9c025b1859bdd065326d253a262e9538462cd380" | ||
} |
@@ -5,4 +5,2 @@ [![npm](https://img.shields.io/npm/v/java-parser.svg)](https://www.npmjs.com/package/java-parser) | ||
** This Project is in Alpha Status ** | ||
A Java Parser implemented in JavaScript using the [Chevrotain Parsing ToolKit](https://github.com/SAP/chevrotain). | ||
@@ -60,3 +58,3 @@ It outputs a **C**oncrete **S**yntax **T**ree, rather than an **A**bstract **S**yntax **T**ree. | ||
super(); | ||
this.result = []; | ||
this.customResult = []; | ||
this.validateVisitor(); | ||
@@ -70,4 +68,4 @@ } | ||
// - (n) -> n*n (not collected) | ||
if (ctx.lambdaParameters.children.Identifier.length > 0) { | ||
this.result.push(ctx.Arrow[0].startOffset); | ||
if (ctx.lambdaParameters[0].children.Identifier) { | ||
this.customResult.push(ctx.Arrow[0].startOffset); | ||
} | ||
@@ -80,5 +78,5 @@ } | ||
lambdaArrowsCollector.visit(cst); | ||
lambdaArrowsCollector.result.forEach(arrowOffset => { | ||
lambdaArrowsCollector.customResult.forEach(arrowOffset => { | ||
console.log(arrowOffset); | ||
}); | ||
``` |
@@ -2255,3 +2255,3 @@ /*File generated with ../scripts/unicode.js using ../resources/Unicode/UnicodeData.txt. | ||
const ric = new Set( | ||
(function*() { | ||
(function* () { | ||
yield* fic; | ||
@@ -2258,0 +2258,0 @@ yield* ricd; |
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
169331
79