grammars-v4
grammars-v4 copied to clipboard
Java: record in classes are identified as methods
Consider the code:
public class A {
record R1(int x) {
}
}
It seems that R1 is identified as method instead of record.
To fix it, I modified memberDeclaration in JavaParser.g4 so recordDeclaration will be before methodDeclaration.