Skip to content

Conversation

@jwren
Copy link
Member

@jwren jwren commented Jan 2, 2026

  • Update org.jetbrains.grammarkit to 2023.3.0.1.
  • Regenerate parser and lexer files with the new plugin version.
    • Note: The new version introduces recursion_guard_ and renames variables (e.g., b -> builder_) in the generated parser.
  • Configure generateDartParser task to include instrumented classes and compile classpath to correctly resolve DartPsiImplUtil methods during generation.
  • Add verify-parser job to presubmit.yaml to ensure generated files are up-to-date.

@jwren jwren requested review from helin24 and pq January 2, 2026 23:44
- Update `org.jetbrains.grammarkit` to `2023.3.0.1`.
- Regenerate parser and lexer files with the new plugin version.
  - Note: The new version introduces `recursion_guard_` and renames variables (e.g., `b` -> `builder_`) in the generated parser.
- Configure `generateDartParser` task to include compiled classes (via `sourceSets["main"].output`) to correctly resolve `DartPsiImplUtil` methods during generation.
- Add `verify-parser` job to `presubmit.yaml` to ensure generated files are up-to-date.
  - Runs `./gradlew classes` before generation to ensure dependencies are built.
- Remove `_DartDocLexer` as it is now handled by the main lexer generation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant