Skip to content

Commit

Permalink
fix: align with JDK 22 spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jtkiesel committed Jun 11, 2024
1 parent 16c90ba commit f8c56a5
Show file tree
Hide file tree
Showing 22 changed files with 575 additions and 476 deletions.
284 changes: 153 additions & 131 deletions packages/java-parser/api.d.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/java-parser/src/productions/arrays.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { tokenMatcher } from "chevrotain";

export function defineRules($, t) {
// https://docs.oracle.com/javase/specs/jls/se16/html/jls-10.html#jls-ArrayInitializer
// https://docs.oracle.com/javase/specs/jls/se22/html/jls-10.html#jls-ArrayInitializer
$.RULE("arrayInitializer", () => {
$.CONSUME(t.LCurly);
$.OPTION(() => {
Expand All @@ -13,7 +13,7 @@ export function defineRules($, t) {
$.CONSUME(t.RCurly);
});

// https://docs.oracle.com/javase/specs/jls/se16/html/jls-10.html#jls-VariableInitializerList
// https://docs.oracle.com/javase/specs/jls/se22/html/jls-10.html#jls-VariableInitializerList
$.RULE("variableInitializerList", () => {
$.SUBRULE($.variableInitializer);
$.MANY({
Expand Down
Loading

0 comments on commit f8c56a5

Please sign in to comment.