Implementation Plan: Dialect Fork Surface Reduction
mainGoal
Reduce the che-che4z-lsp-for-cobol-integration fork's patched-upstream surface from 20 files / 514 lines to approximately 14 files / 364 lines.
Strategy
Replace the _DIALECT_ <guid> marker with positional fragment correlation. This involves reparenting the three copied dialect visitors onto their upstream counterparts. Because upstream dialect visitors perform length-preserving blanking of dialect fragments, the extended-document position of a fragment remains identical before and after substitution, making the injected marker redundant.
Tech Stack
- Language: Java 17
- Build Tool: Maven (multi-module reactor)
- Parser: ANTLR 4
- Libraries: Lombok, JUnit 5, Mockito, Guice