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

java-parser

Package Overview
Dependencies
Maintainers
6
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

java-parser - npm Package Compare versions

Comparing version 0.7.1 to 0.8.0

4

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

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