mirror of
https://github.com/yamadashy/repomix.git
synced 2026-05-30 11:18:53 +02:00
d10814163d
Three constructor variants were silently dropped during --compress: - `const Foo(...);` and `const Foo.named(...) : ...;` parse as `(declaration (constant_constructor_signature ...))` — a node type the existing constructor query did not list. - `const factory Foo() = Bar;` parses as `(redirecting_factory_constructor_signature (const_builtin) (identifier) ...)` whose first named child is `const_builtin`, so the leading-anchor `. (identifier)` pattern failed to match. - `external factory Foo.make();` parses as `(declaration (factory_constructor_signature ...))` — bare under `declaration`, not wrapped in `method_signature`, so the existing factory query missed it. Switch the constructor / factory / redirecting-factory queries to capture the whole signature node as `@name.definition.method`. This emits the same source line(s) DefaultParseStrategy already produces and is robust across all body / external / const / redirecting variants.