-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(707): do not throw if the record-pattern contains dims
- Loading branch information
1 parent
d5fd515
commit f16b22c
Showing
8 changed files
with
102 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
/** | ||
* This Script is used to debug the parsing of **small** code snippets. | ||
*/ | ||
import javaParserChev from "../src/index"; | ||
import javaParserChev from "../src/index.js"; | ||
|
||
const input = ` | ||
@Anno byte @Nullable ... test | ||
public class VariableTypeInference { | ||
int foo = 0, bar = 1; | ||
} | ||
`; | ||
|
||
javaParserChev.parse(input, "variableArityParameter"); | ||
javaParserChev.parse(input, "compilationUnit"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { expect } from "chai"; | ||
import * as javaParser from "../src/index.js"; | ||
|
||
describe("The Java Parser fixed bugs", () => { | ||
it("should handle multiple variable declaration", () => { | ||
const input = `int foo, bar;`; | ||
expect(() => javaParser.parse(input, "fieldDeclaration")).to.not.throw(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters