Skip to content

Commit badef4c

Browse files
fredbiclaude
andcommitted
feat(scanner): grammar seam
Adapts the existing scanner to the grammar surface with minimal change. Wires Options.OnDiagnostic into the per-decl Builders, exposes the ScanCtx FileSet so grammar parsers produce position-stable diagnostics, and surfaces the scanner-level annotation classifiers (ExtractAnnotation, ModelOverride, ResponseOverride, ParametersOverride) under internal/parsers/. Note: a handful of regular expressions remain in the scanner — annotation discovery, model / response / parameters override matching, route / operation path-annotation tokenisation. Removing these is deferred to a forthcoming scanner-focused change. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
1 parent 2b2cc09 commit badef4c

25 files changed

Lines changed: 514 additions & 2181 deletions

‎internal/parsers/enum.go‎

Lines changed: 0 additions & 149 deletions
This file was deleted.

‎internal/parsers/enum_test.go‎

Lines changed: 0 additions & 145 deletions
This file was deleted.

‎internal/parsers/errors.go‎

Lines changed: 0 additions & 9 deletions
This file was deleted.

‎internal/parsers/lines.go‎

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)
⌂ 换网址