driftdetect-core 0.4.6 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/boundaries/types.d.ts +1 -1
- package/dist/boundaries/types.d.ts.map +1 -1
- package/dist/call-graph/analysis/graph-builder.d.ts.map +1 -1
- package/dist/call-graph/analysis/graph-builder.js +1 -0
- package/dist/call-graph/analysis/graph-builder.js.map +1 -1
- package/dist/call-graph/extractors/csharp-data-access-extractor.d.ts +8 -0
- package/dist/call-graph/extractors/csharp-data-access-extractor.d.ts.map +1 -1
- package/dist/call-graph/extractors/csharp-data-access-extractor.js +8 -0
- package/dist/call-graph/extractors/csharp-data-access-extractor.js.map +1 -1
- package/dist/call-graph/extractors/csharp-extractor.d.ts +35 -0
- package/dist/call-graph/extractors/csharp-extractor.d.ts.map +1 -1
- package/dist/call-graph/extractors/csharp-extractor.js +362 -4
- package/dist/call-graph/extractors/csharp-extractor.js.map +1 -1
- package/dist/call-graph/extractors/csharp-hybrid-extractor.d.ts +37 -0
- package/dist/call-graph/extractors/csharp-hybrid-extractor.d.ts.map +1 -0
- package/dist/call-graph/extractors/csharp-hybrid-extractor.js +408 -0
- package/dist/call-graph/extractors/csharp-hybrid-extractor.js.map +1 -0
- package/dist/call-graph/extractors/go-data-access-extractor.d.ts +80 -0
- package/dist/call-graph/extractors/go-data-access-extractor.d.ts.map +1 -0
- package/dist/call-graph/extractors/go-data-access-extractor.js +457 -0
- package/dist/call-graph/extractors/go-data-access-extractor.js.map +1 -0
- package/dist/call-graph/extractors/go-extractor.d.ts +103 -0
- package/dist/call-graph/extractors/go-extractor.d.ts.map +1 -0
- package/dist/call-graph/extractors/go-extractor.js +509 -0
- package/dist/call-graph/extractors/go-extractor.js.map +1 -0
- package/dist/call-graph/extractors/go-hybrid-extractor.d.ts +97 -0
- package/dist/call-graph/extractors/go-hybrid-extractor.d.ts.map +1 -0
- package/dist/call-graph/extractors/go-hybrid-extractor.js +496 -0
- package/dist/call-graph/extractors/go-hybrid-extractor.js.map +1 -0
- package/dist/call-graph/extractors/hybrid-extractor-base.d.ts +102 -0
- package/dist/call-graph/extractors/hybrid-extractor-base.d.ts.map +1 -0
- package/dist/call-graph/extractors/hybrid-extractor-base.js +289 -0
- package/dist/call-graph/extractors/hybrid-extractor-base.js.map +1 -0
- package/dist/call-graph/extractors/index.d.ts +17 -13
- package/dist/call-graph/extractors/index.d.ts.map +1 -1
- package/dist/call-graph/extractors/index.js +24 -23
- package/dist/call-graph/extractors/index.js.map +1 -1
- package/dist/call-graph/extractors/java-data-access-extractor.d.ts +8 -0
- package/dist/call-graph/extractors/java-data-access-extractor.d.ts.map +1 -1
- package/dist/call-graph/extractors/java-data-access-extractor.js +8 -0
- package/dist/call-graph/extractors/java-data-access-extractor.js.map +1 -1
- package/dist/call-graph/extractors/java-extractor.d.ts +15 -0
- package/dist/call-graph/extractors/java-extractor.d.ts.map +1 -1
- package/dist/call-graph/extractors/java-extractor.js +120 -4
- package/dist/call-graph/extractors/java-extractor.js.map +1 -1
- package/dist/call-graph/extractors/java-hybrid-extractor.d.ts +36 -0
- package/dist/call-graph/extractors/java-hybrid-extractor.d.ts.map +1 -0
- package/dist/call-graph/extractors/java-hybrid-extractor.js +426 -0
- package/dist/call-graph/extractors/java-hybrid-extractor.js.map +1 -0
- package/dist/call-graph/extractors/php-data-access-extractor.d.ts +8 -0
- package/dist/call-graph/extractors/php-data-access-extractor.d.ts.map +1 -1
- package/dist/call-graph/extractors/php-data-access-extractor.js +8 -0
- package/dist/call-graph/extractors/php-data-access-extractor.js.map +1 -1
- package/dist/call-graph/extractors/php-extractor.d.ts +48 -1
- package/dist/call-graph/extractors/php-extractor.d.ts.map +1 -1
- package/dist/call-graph/extractors/php-extractor.js +460 -6
- package/dist/call-graph/extractors/php-extractor.js.map +1 -1
- package/dist/call-graph/extractors/php-hybrid-extractor.d.ts +35 -0
- package/dist/call-graph/extractors/php-hybrid-extractor.d.ts.map +1 -0
- package/dist/call-graph/extractors/php-hybrid-extractor.js +393 -0
- package/dist/call-graph/extractors/php-hybrid-extractor.js.map +1 -0
- package/dist/call-graph/extractors/python-data-access-extractor.d.ts +8 -0
- package/dist/call-graph/extractors/python-data-access-extractor.d.ts.map +1 -1
- package/dist/call-graph/extractors/python-data-access-extractor.js +8 -0
- package/dist/call-graph/extractors/python-data-access-extractor.js.map +1 -1
- package/dist/call-graph/extractors/python-hybrid-extractor.d.ts +85 -0
- package/dist/call-graph/extractors/python-hybrid-extractor.d.ts.map +1 -0
- package/dist/call-graph/extractors/python-hybrid-extractor.js +462 -0
- package/dist/call-graph/extractors/python-hybrid-extractor.js.map +1 -0
- package/dist/call-graph/extractors/regex/base-regex-extractor.d.ts +154 -0
- package/dist/call-graph/extractors/regex/base-regex-extractor.d.ts.map +1 -0
- package/dist/call-graph/extractors/regex/base-regex-extractor.js +346 -0
- package/dist/call-graph/extractors/regex/base-regex-extractor.js.map +1 -0
- package/dist/call-graph/extractors/regex/csharp-regex.d.ts +34 -0
- package/dist/call-graph/extractors/regex/csharp-regex.d.ts.map +1 -0
- package/dist/call-graph/extractors/regex/csharp-regex.js +393 -0
- package/dist/call-graph/extractors/regex/csharp-regex.js.map +1 -0
- package/dist/call-graph/extractors/regex/go-regex.d.ts +51 -0
- package/dist/call-graph/extractors/regex/go-regex.d.ts.map +1 -0
- package/dist/call-graph/extractors/regex/go-regex.js +435 -0
- package/dist/call-graph/extractors/regex/go-regex.js.map +1 -0
- package/dist/call-graph/extractors/regex/index.d.ts +26 -0
- package/dist/call-graph/extractors/regex/index.d.ts.map +1 -0
- package/dist/call-graph/extractors/regex/index.js +74 -0
- package/dist/call-graph/extractors/regex/index.js.map +1 -0
- package/dist/call-graph/extractors/regex/java-regex.d.ts +34 -0
- package/dist/call-graph/extractors/regex/java-regex.d.ts.map +1 -0
- package/dist/call-graph/extractors/regex/java-regex.js +327 -0
- package/dist/call-graph/extractors/regex/java-regex.js.map +1 -0
- package/dist/call-graph/extractors/regex/php-regex.d.ts +30 -0
- package/dist/call-graph/extractors/regex/php-regex.d.ts.map +1 -0
- package/dist/call-graph/extractors/regex/php-regex.js +333 -0
- package/dist/call-graph/extractors/regex/php-regex.js.map +1 -0
- package/dist/call-graph/extractors/regex/python-regex.d.ts +46 -0
- package/dist/call-graph/extractors/regex/python-regex.d.ts.map +1 -0
- package/dist/call-graph/extractors/regex/python-regex.js +380 -0
- package/dist/call-graph/extractors/regex/python-regex.js.map +1 -0
- package/dist/call-graph/extractors/regex/typescript-regex.d.ts +27 -0
- package/dist/call-graph/extractors/regex/typescript-regex.d.ts.map +1 -0
- package/dist/call-graph/extractors/regex/typescript-regex.js +349 -0
- package/dist/call-graph/extractors/regex/typescript-regex.js.map +1 -0
- package/dist/call-graph/extractors/semantic-data-access-scanner.d.ts +7 -0
- package/dist/call-graph/extractors/semantic-data-access-scanner.d.ts.map +1 -1
- package/dist/call-graph/extractors/semantic-data-access-scanner.js +7 -0
- package/dist/call-graph/extractors/semantic-data-access-scanner.js.map +1 -1
- package/dist/call-graph/extractors/types.d.ts +111 -0
- package/dist/call-graph/extractors/types.d.ts.map +1 -0
- package/dist/call-graph/extractors/types.js +68 -0
- package/dist/call-graph/extractors/types.js.map +1 -0
- package/dist/call-graph/extractors/typescript-data-access-extractor.d.ts +8 -0
- package/dist/call-graph/extractors/typescript-data-access-extractor.d.ts.map +1 -1
- package/dist/call-graph/extractors/typescript-data-access-extractor.js +8 -0
- package/dist/call-graph/extractors/typescript-data-access-extractor.js.map +1 -1
- package/dist/call-graph/extractors/typescript-hybrid-extractor.d.ts +116 -0
- package/dist/call-graph/extractors/typescript-hybrid-extractor.d.ts.map +1 -0
- package/dist/call-graph/extractors/typescript-hybrid-extractor.js +635 -0
- package/dist/call-graph/extractors/typescript-hybrid-extractor.js.map +1 -0
- package/dist/call-graph/index.d.ts +3 -0
- package/dist/call-graph/index.d.ts.map +1 -1
- package/dist/call-graph/index.js +5 -0
- package/dist/call-graph/index.js.map +1 -1
- package/dist/call-graph/types.d.ts +1 -1
- package/dist/call-graph/types.d.ts.map +1 -1
- package/dist/constraints/extraction/constraint-synthesizer.d.ts +72 -0
- package/dist/constraints/extraction/constraint-synthesizer.d.ts.map +1 -0
- package/dist/constraints/extraction/constraint-synthesizer.js +336 -0
- package/dist/constraints/extraction/constraint-synthesizer.js.map +1 -0
- package/dist/constraints/extraction/index.d.ts +10 -0
- package/dist/constraints/extraction/index.d.ts.map +1 -0
- package/dist/constraints/extraction/index.js +10 -0
- package/dist/constraints/extraction/index.js.map +1 -0
- package/dist/constraints/extraction/invariant-detector.d.ts +109 -0
- package/dist/constraints/extraction/invariant-detector.d.ts.map +1 -0
- package/dist/constraints/extraction/invariant-detector.js +979 -0
- package/dist/constraints/extraction/invariant-detector.js.map +1 -0
- package/dist/constraints/index.d.ts +15 -0
- package/dist/constraints/index.d.ts.map +1 -0
- package/dist/constraints/index.js +16 -0
- package/dist/constraints/index.js.map +1 -0
- package/dist/constraints/store/constraint-store.d.ts +110 -0
- package/dist/constraints/store/constraint-store.d.ts.map +1 -0
- package/dist/constraints/store/constraint-store.js +584 -0
- package/dist/constraints/store/constraint-store.js.map +1 -0
- package/dist/constraints/types.d.ts +605 -0
- package/dist/constraints/types.d.ts.map +1 -0
- package/dist/constraints/types.js +57 -0
- package/dist/constraints/types.js.map +1 -0
- package/dist/constraints/verification/constraint-verifier.d.ts +100 -0
- package/dist/constraints/verification/constraint-verifier.d.ts.map +1 -0
- package/dist/constraints/verification/constraint-verifier.js +638 -0
- package/dist/constraints/verification/constraint-verifier.js.map +1 -0
- package/dist/constraints/verification/index.d.ts +8 -0
- package/dist/constraints/verification/index.d.ts.map +1 -0
- package/dist/constraints/verification/index.js +8 -0
- package/dist/constraints/verification/index.js.map +1 -0
- package/dist/decisions/analyzer/decision-mining-analyzer.d.ts +121 -0
- package/dist/decisions/analyzer/decision-mining-analyzer.d.ts.map +1 -0
- package/dist/decisions/analyzer/decision-mining-analyzer.js +904 -0
- package/dist/decisions/analyzer/decision-mining-analyzer.js.map +1 -0
- package/dist/decisions/analyzer/index.d.ts +5 -0
- package/dist/decisions/analyzer/index.d.ts.map +1 -0
- package/dist/decisions/analyzer/index.js +5 -0
- package/dist/decisions/analyzer/index.js.map +1 -0
- package/dist/decisions/extractors/base-commit-extractor.d.ts +104 -0
- package/dist/decisions/extractors/base-commit-extractor.d.ts.map +1 -0
- package/dist/decisions/extractors/base-commit-extractor.js +305 -0
- package/dist/decisions/extractors/base-commit-extractor.js.map +1 -0
- package/dist/decisions/extractors/csharp-commit-extractor.d.ts +18 -0
- package/dist/decisions/extractors/csharp-commit-extractor.d.ts.map +1 -0
- package/dist/decisions/extractors/csharp-commit-extractor.js +281 -0
- package/dist/decisions/extractors/csharp-commit-extractor.js.map +1 -0
- package/dist/decisions/extractors/index.d.ts +31 -0
- package/dist/decisions/extractors/index.d.ts.map +1 -0
- package/dist/decisions/extractors/index.js +63 -0
- package/dist/decisions/extractors/index.js.map +1 -0
- package/dist/decisions/extractors/java-commit-extractor.d.ts +18 -0
- package/dist/decisions/extractors/java-commit-extractor.d.ts.map +1 -0
- package/dist/decisions/extractors/java-commit-extractor.js +248 -0
- package/dist/decisions/extractors/java-commit-extractor.js.map +1 -0
- package/dist/decisions/extractors/php-commit-extractor.d.ts +18 -0
- package/dist/decisions/extractors/php-commit-extractor.d.ts.map +1 -0
- package/dist/decisions/extractors/php-commit-extractor.js +280 -0
- package/dist/decisions/extractors/php-commit-extractor.js.map +1 -0
- package/dist/decisions/extractors/python-commit-extractor.d.ts +18 -0
- package/dist/decisions/extractors/python-commit-extractor.d.ts.map +1 -0
- package/dist/decisions/extractors/python-commit-extractor.js +248 -0
- package/dist/decisions/extractors/python-commit-extractor.js.map +1 -0
- package/dist/decisions/extractors/typescript-commit-extractor.d.ts +37 -0
- package/dist/decisions/extractors/typescript-commit-extractor.d.ts.map +1 -0
- package/dist/decisions/extractors/typescript-commit-extractor.js +229 -0
- package/dist/decisions/extractors/typescript-commit-extractor.js.map +1 -0
- package/dist/decisions/git/commit-parser.d.ts +58 -0
- package/dist/decisions/git/commit-parser.d.ts.map +1 -0
- package/dist/decisions/git/commit-parser.js +344 -0
- package/dist/decisions/git/commit-parser.js.map +1 -0
- package/dist/decisions/git/diff-analyzer.d.ts +30 -0
- package/dist/decisions/git/diff-analyzer.d.ts.map +1 -0
- package/dist/decisions/git/diff-analyzer.js +492 -0
- package/dist/decisions/git/diff-analyzer.js.map +1 -0
- package/dist/decisions/git/git-walker.d.ts +64 -0
- package/dist/decisions/git/git-walker.d.ts.map +1 -0
- package/dist/decisions/git/git-walker.js +441 -0
- package/dist/decisions/git/git-walker.js.map +1 -0
- package/dist/decisions/git/index.d.ts +11 -0
- package/dist/decisions/git/index.d.ts.map +1 -0
- package/dist/decisions/git/index.js +13 -0
- package/dist/decisions/git/index.js.map +1 -0
- package/dist/decisions/git/types.d.ts +223 -0
- package/dist/decisions/git/types.d.ts.map +1 -0
- package/dist/decisions/git/types.js +7 -0
- package/dist/decisions/git/types.js.map +1 -0
- package/dist/decisions/index.d.ts +27 -0
- package/dist/decisions/index.d.ts.map +1 -0
- package/dist/decisions/index.js +45 -0
- package/dist/decisions/index.js.map +1 -0
- package/dist/decisions/types.d.ts +530 -0
- package/dist/decisions/types.d.ts.map +1 -0
- package/dist/decisions/types.js +8 -0
- package/dist/decisions/types.js.map +1 -0
- package/dist/error-handling/error-handling-analyzer.d.ts +73 -0
- package/dist/error-handling/error-handling-analyzer.d.ts.map +1 -0
- package/dist/error-handling/error-handling-analyzer.js +706 -0
- package/dist/error-handling/error-handling-analyzer.js.map +1 -0
- package/dist/error-handling/index.d.ts +8 -0
- package/dist/error-handling/index.d.ts.map +1 -0
- package/dist/error-handling/index.js +8 -0
- package/dist/error-handling/index.js.map +1 -0
- package/dist/error-handling/types.d.ts +307 -0
- package/dist/error-handling/types.d.ts.map +1 -0
- package/dist/error-handling/types.js +7 -0
- package/dist/error-handling/types.js.map +1 -0
- package/dist/go/go-analyzer.d.ts +203 -0
- package/dist/go/go-analyzer.d.ts.map +1 -0
- package/dist/go/go-analyzer.js +509 -0
- package/dist/go/go-analyzer.js.map +1 -0
- package/dist/go/index.d.ts +7 -0
- package/dist/go/index.d.ts.map +1 -0
- package/dist/go/index.js +8 -0
- package/dist/go/index.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +85 -0
- package/dist/index.js.map +1 -1
- package/dist/lake/pattern-shard-store.d.ts +6 -0
- package/dist/lake/pattern-shard-store.d.ts.map +1 -1
- package/dist/lake/pattern-shard-store.js +6 -0
- package/dist/lake/pattern-shard-store.js.map +1 -1
- package/dist/module-coupling/coupling-analyzer.d.ts +73 -0
- package/dist/module-coupling/coupling-analyzer.d.ts.map +1 -0
- package/dist/module-coupling/coupling-analyzer.js +668 -0
- package/dist/module-coupling/coupling-analyzer.js.map +1 -0
- package/dist/module-coupling/index.d.ts +9 -0
- package/dist/module-coupling/index.d.ts.map +1 -0
- package/dist/module-coupling/index.js +9 -0
- package/dist/module-coupling/index.js.map +1 -0
- package/dist/module-coupling/types.d.ts +273 -0
- package/dist/module-coupling/types.d.ts.map +1 -0
- package/dist/module-coupling/types.js +8 -0
- package/dist/module-coupling/types.js.map +1 -0
- package/dist/parsers/tree-sitter/go-loader.d.ts +50 -0
- package/dist/parsers/tree-sitter/go-loader.d.ts.map +1 -0
- package/dist/parsers/tree-sitter/go-loader.js +161 -0
- package/dist/parsers/tree-sitter/go-loader.js.map +1 -0
- package/dist/parsers/tree-sitter/tree-sitter-go-parser.d.ts +250 -0
- package/dist/parsers/tree-sitter/tree-sitter-go-parser.d.ts.map +1 -0
- package/dist/parsers/tree-sitter/tree-sitter-go-parser.js +707 -0
- package/dist/parsers/tree-sitter/tree-sitter-go-parser.js.map +1 -0
- package/dist/parsers/types.d.ts +1 -1
- package/dist/parsers/types.d.ts.map +1 -1
- package/dist/patterns/adapters/index.d.ts +11 -0
- package/dist/patterns/adapters/index.d.ts.map +1 -0
- package/dist/patterns/adapters/index.js +11 -0
- package/dist/patterns/adapters/index.js.map +1 -0
- package/dist/patterns/adapters/pattern-store-adapter.d.ts +59 -0
- package/dist/patterns/adapters/pattern-store-adapter.d.ts.map +1 -0
- package/dist/patterns/adapters/pattern-store-adapter.js +468 -0
- package/dist/patterns/adapters/pattern-store-adapter.js.map +1 -0
- package/dist/patterns/adapters/service-factory.d.ts +40 -0
- package/dist/patterns/adapters/service-factory.d.ts.map +1 -0
- package/dist/patterns/adapters/service-factory.js +144 -0
- package/dist/patterns/adapters/service-factory.js.map +1 -0
- package/dist/patterns/errors.d.ts +32 -0
- package/dist/patterns/errors.d.ts.map +1 -0
- package/dist/patterns/errors.js +45 -0
- package/dist/patterns/errors.js.map +1 -0
- package/dist/patterns/impl/cached-repository.d.ts +79 -0
- package/dist/patterns/impl/cached-repository.d.ts.map +1 -0
- package/dist/patterns/impl/cached-repository.js +296 -0
- package/dist/patterns/impl/cached-repository.js.map +1 -0
- package/dist/patterns/impl/file-repository.d.ts +75 -0
- package/dist/patterns/impl/file-repository.d.ts.map +1 -0
- package/dist/patterns/impl/file-repository.js +507 -0
- package/dist/patterns/impl/file-repository.js.map +1 -0
- package/dist/patterns/impl/index.d.ts +16 -0
- package/dist/patterns/impl/index.d.ts.map +1 -0
- package/dist/patterns/impl/index.js +21 -0
- package/dist/patterns/impl/index.js.map +1 -0
- package/dist/patterns/impl/memory-repository.d.ts +56 -0
- package/dist/patterns/impl/memory-repository.d.ts.map +1 -0
- package/dist/patterns/impl/memory-repository.js +323 -0
- package/dist/patterns/impl/memory-repository.js.map +1 -0
- package/dist/patterns/impl/pattern-service.d.ts +52 -0
- package/dist/patterns/impl/pattern-service.d.ts.map +1 -0
- package/dist/patterns/impl/pattern-service.js +382 -0
- package/dist/patterns/impl/pattern-service.js.map +1 -0
- package/dist/patterns/impl/repository-factory.d.ts +44 -0
- package/dist/patterns/impl/repository-factory.d.ts.map +1 -0
- package/dist/patterns/impl/repository-factory.js +140 -0
- package/dist/patterns/impl/repository-factory.js.map +1 -0
- package/dist/patterns/impl/unified-file-repository.d.ts +111 -0
- package/dist/patterns/impl/unified-file-repository.d.ts.map +1 -0
- package/dist/patterns/impl/unified-file-repository.js +677 -0
- package/dist/patterns/impl/unified-file-repository.js.map +1 -0
- package/dist/patterns/index.d.ts +23 -0
- package/dist/patterns/index.d.ts.map +1 -0
- package/dist/patterns/index.js +41 -0
- package/dist/patterns/index.js.map +1 -0
- package/dist/patterns/repository.d.ts +241 -0
- package/dist/patterns/repository.d.ts.map +1 -0
- package/dist/patterns/repository.js +23 -0
- package/dist/patterns/repository.js.map +1 -0
- package/dist/patterns/service.d.ts +245 -0
- package/dist/patterns/service.d.ts.map +1 -0
- package/dist/patterns/service.js +25 -0
- package/dist/patterns/service.js.map +1 -0
- package/dist/patterns/types.d.ts +227 -0
- package/dist/patterns/types.d.ts.map +1 -0
- package/dist/patterns/types.js +117 -0
- package/dist/patterns/types.js.map +1 -0
- package/dist/simulation/approach-generator.d.ts +73 -0
- package/dist/simulation/approach-generator.d.ts.map +1 -0
- package/dist/simulation/approach-generator.js +371 -0
- package/dist/simulation/approach-generator.js.map +1 -0
- package/dist/simulation/index.d.ts +14 -0
- package/dist/simulation/index.d.ts.map +1 -0
- package/dist/simulation/index.js +19 -0
- package/dist/simulation/index.js.map +1 -0
- package/dist/simulation/language-strategies/csharp-strategies.d.ts +17 -0
- package/dist/simulation/language-strategies/csharp-strategies.d.ts.map +1 -0
- package/dist/simulation/language-strategies/csharp-strategies.js +118 -0
- package/dist/simulation/language-strategies/csharp-strategies.js.map +1 -0
- package/dist/simulation/language-strategies/index.d.ts +41 -0
- package/dist/simulation/language-strategies/index.d.ts.map +1 -0
- package/dist/simulation/language-strategies/index.js +92 -0
- package/dist/simulation/language-strategies/index.js.map +1 -0
- package/dist/simulation/language-strategies/java-strategies.d.ts +17 -0
- package/dist/simulation/language-strategies/java-strategies.d.ts.map +1 -0
- package/dist/simulation/language-strategies/java-strategies.js +119 -0
- package/dist/simulation/language-strategies/java-strategies.js.map +1 -0
- package/dist/simulation/language-strategies/php-strategies.d.ts +17 -0
- package/dist/simulation/language-strategies/php-strategies.d.ts.map +1 -0
- package/dist/simulation/language-strategies/php-strategies.js +129 -0
- package/dist/simulation/language-strategies/php-strategies.js.map +1 -0
- package/dist/simulation/language-strategies/python-strategies.d.ts +17 -0
- package/dist/simulation/language-strategies/python-strategies.d.ts.map +1 -0
- package/dist/simulation/language-strategies/python-strategies.js +208 -0
- package/dist/simulation/language-strategies/python-strategies.js.map +1 -0
- package/dist/simulation/language-strategies/types.d.ts +67 -0
- package/dist/simulation/language-strategies/types.d.ts.map +1 -0
- package/dist/simulation/language-strategies/types.js +23 -0
- package/dist/simulation/language-strategies/types.js.map +1 -0
- package/dist/simulation/language-strategies/typescript-strategies.d.ts +17 -0
- package/dist/simulation/language-strategies/typescript-strategies.d.ts.map +1 -0
- package/dist/simulation/language-strategies/typescript-strategies.js +251 -0
- package/dist/simulation/language-strategies/typescript-strategies.js.map +1 -0
- package/dist/simulation/scorers/friction-scorer.d.ts +45 -0
- package/dist/simulation/scorers/friction-scorer.d.ts.map +1 -0
- package/dist/simulation/scorers/friction-scorer.js +336 -0
- package/dist/simulation/scorers/friction-scorer.js.map +1 -0
- package/dist/simulation/scorers/impact-scorer.d.ts +56 -0
- package/dist/simulation/scorers/impact-scorer.d.ts.map +1 -0
- package/dist/simulation/scorers/impact-scorer.js +273 -0
- package/dist/simulation/scorers/impact-scorer.js.map +1 -0
- package/dist/simulation/scorers/index.d.ts +12 -0
- package/dist/simulation/scorers/index.d.ts.map +1 -0
- package/dist/simulation/scorers/index.js +12 -0
- package/dist/simulation/scorers/index.js.map +1 -0
- package/dist/simulation/scorers/pattern-alignment-scorer.d.ts +83 -0
- package/dist/simulation/scorers/pattern-alignment-scorer.d.ts.map +1 -0
- package/dist/simulation/scorers/pattern-alignment-scorer.js +367 -0
- package/dist/simulation/scorers/pattern-alignment-scorer.js.map +1 -0
- package/dist/simulation/scorers/security-scorer.d.ts +63 -0
- package/dist/simulation/scorers/security-scorer.d.ts.map +1 -0
- package/dist/simulation/scorers/security-scorer.js +346 -0
- package/dist/simulation/scorers/security-scorer.js.map +1 -0
- package/dist/simulation/simulation-engine.d.ts +89 -0
- package/dist/simulation/simulation-engine.d.ts.map +1 -0
- package/dist/simulation/simulation-engine.js +480 -0
- package/dist/simulation/simulation-engine.js.map +1 -0
- package/dist/simulation/types.d.ts +200 -0
- package/dist/simulation/types.d.ts.map +1 -0
- package/dist/simulation/types.js +23 -0
- package/dist/simulation/types.js.map +1 -0
- package/dist/speculative/approach-generator.d.ts +2 -0
- package/dist/speculative/approach-generator.d.ts.map +1 -0
- package/dist/speculative/approach-generator.js +2 -0
- package/dist/speculative/approach-generator.js.map +1 -0
- package/dist/speculative/templates/types.d.ts +133 -0
- package/dist/speculative/templates/types.d.ts.map +1 -0
- package/dist/speculative/templates/types.js +208 -0
- package/dist/speculative/templates/types.js.map +1 -0
- package/dist/speculative/types.d.ts +523 -0
- package/dist/speculative/types.d.ts.map +1 -0
- package/dist/speculative/types.js +71 -0
- package/dist/speculative/types.js.map +1 -0
- package/dist/store/pattern-store.d.ts +6 -0
- package/dist/store/pattern-store.d.ts.map +1 -1
- package/dist/store/pattern-store.js +6 -0
- package/dist/store/pattern-store.js.map +1 -1
- package/dist/test-topology/extractors/base-test-extractor.d.ts +89 -0
- package/dist/test-topology/extractors/base-test-extractor.d.ts.map +1 -0
- package/dist/test-topology/extractors/base-test-extractor.js +187 -0
- package/dist/test-topology/extractors/base-test-extractor.js.map +1 -0
- package/dist/test-topology/extractors/csharp-test-extractor.d.ts +23 -0
- package/dist/test-topology/extractors/csharp-test-extractor.d.ts.map +1 -0
- package/dist/test-topology/extractors/csharp-test-extractor.js +367 -0
- package/dist/test-topology/extractors/csharp-test-extractor.js.map +1 -0
- package/dist/test-topology/extractors/go-test-extractor.d.ts +33 -0
- package/dist/test-topology/extractors/go-test-extractor.d.ts.map +1 -0
- package/dist/test-topology/extractors/go-test-extractor.js +436 -0
- package/dist/test-topology/extractors/go-test-extractor.js.map +1 -0
- package/dist/test-topology/extractors/index.d.ts +13 -0
- package/dist/test-topology/extractors/index.d.ts.map +1 -0
- package/dist/test-topology/extractors/index.js +13 -0
- package/dist/test-topology/extractors/index.js.map +1 -0
- package/dist/test-topology/extractors/java-test-extractor.d.ts +20 -0
- package/dist/test-topology/extractors/java-test-extractor.d.ts.map +1 -0
- package/dist/test-topology/extractors/java-test-extractor.js +275 -0
- package/dist/test-topology/extractors/java-test-extractor.js.map +1 -0
- package/dist/test-topology/extractors/php-test-extractor.d.ts +24 -0
- package/dist/test-topology/extractors/php-test-extractor.d.ts.map +1 -0
- package/dist/test-topology/extractors/php-test-extractor.js +409 -0
- package/dist/test-topology/extractors/php-test-extractor.js.map +1 -0
- package/dist/test-topology/extractors/python-test-extractor.d.ts +23 -0
- package/dist/test-topology/extractors/python-test-extractor.d.ts.map +1 -0
- package/dist/test-topology/extractors/python-test-extractor.js +342 -0
- package/dist/test-topology/extractors/python-test-extractor.js.map +1 -0
- package/dist/test-topology/extractors/regex/csharp-test-regex.d.ts +51 -0
- package/dist/test-topology/extractors/regex/csharp-test-regex.d.ts.map +1 -0
- package/dist/test-topology/extractors/regex/csharp-test-regex.js +383 -0
- package/dist/test-topology/extractors/regex/csharp-test-regex.js.map +1 -0
- package/dist/test-topology/extractors/regex/go-test-regex.d.ts +62 -0
- package/dist/test-topology/extractors/regex/go-test-regex.d.ts.map +1 -0
- package/dist/test-topology/extractors/regex/go-test-regex.js +528 -0
- package/dist/test-topology/extractors/regex/go-test-regex.js.map +1 -0
- package/dist/test-topology/extractors/regex/index.d.ts +19 -0
- package/dist/test-topology/extractors/regex/index.d.ts.map +1 -0
- package/dist/test-topology/extractors/regex/index.js +47 -0
- package/dist/test-topology/extractors/regex/index.js.map +1 -0
- package/dist/test-topology/extractors/regex/java-test-regex.d.ts +50 -0
- package/dist/test-topology/extractors/regex/java-test-regex.d.ts.map +1 -0
- package/dist/test-topology/extractors/regex/java-test-regex.js +370 -0
- package/dist/test-topology/extractors/regex/java-test-regex.js.map +1 -0
- package/dist/test-topology/extractors/regex/php-test-regex.d.ts +56 -0
- package/dist/test-topology/extractors/regex/php-test-regex.d.ts.map +1 -0
- package/dist/test-topology/extractors/regex/php-test-regex.js +503 -0
- package/dist/test-topology/extractors/regex/php-test-regex.js.map +1 -0
- package/dist/test-topology/extractors/regex/python-test-regex.d.ts +57 -0
- package/dist/test-topology/extractors/regex/python-test-regex.d.ts.map +1 -0
- package/dist/test-topology/extractors/regex/python-test-regex.js +381 -0
- package/dist/test-topology/extractors/regex/python-test-regex.js.map +1 -0
- package/dist/test-topology/extractors/regex/typescript-test-regex.d.ts +60 -0
- package/dist/test-topology/extractors/regex/typescript-test-regex.d.ts.map +1 -0
- package/dist/test-topology/extractors/regex/typescript-test-regex.js +368 -0
- package/dist/test-topology/extractors/regex/typescript-test-regex.js.map +1 -0
- package/dist/test-topology/extractors/typescript-test-extractor.d.ts +24 -0
- package/dist/test-topology/extractors/typescript-test-extractor.d.ts.map +1 -0
- package/dist/test-topology/extractors/typescript-test-extractor.js +266 -0
- package/dist/test-topology/extractors/typescript-test-extractor.js.map +1 -0
- package/dist/test-topology/hybrid-test-topology-analyzer.d.ts +98 -0
- package/dist/test-topology/hybrid-test-topology-analyzer.d.ts.map +1 -0
- package/dist/test-topology/hybrid-test-topology-analyzer.js +556 -0
- package/dist/test-topology/hybrid-test-topology-analyzer.js.map +1 -0
- package/dist/test-topology/index.d.ts +16 -0
- package/dist/test-topology/index.d.ts.map +1 -0
- package/dist/test-topology/index.js +19 -0
- package/dist/test-topology/index.js.map +1 -0
- package/dist/test-topology/test-topology-analyzer.d.ts +85 -0
- package/dist/test-topology/test-topology-analyzer.d.ts.map +1 -0
- package/dist/test-topology/test-topology-analyzer.js +539 -0
- package/dist/test-topology/test-topology-analyzer.js.map +1 -0
- package/dist/test-topology/types.d.ts +300 -0
- package/dist/test-topology/types.d.ts.map +1 -0
- package/dist/test-topology/types.js +7 -0
- package/dist/test-topology/types.js.map +1 -0
- package/dist/unified-provider/matching/database-sql-matcher.d.ts +42 -0
- package/dist/unified-provider/matching/database-sql-matcher.d.ts.map +1 -0
- package/dist/unified-provider/matching/database-sql-matcher.js +282 -0
- package/dist/unified-provider/matching/database-sql-matcher.js.map +1 -0
- package/dist/unified-provider/matching/gorm-matcher.d.ts +41 -0
- package/dist/unified-provider/matching/gorm-matcher.d.ts.map +1 -0
- package/dist/unified-provider/matching/gorm-matcher.js +222 -0
- package/dist/unified-provider/matching/gorm-matcher.js.map +1 -0
- package/dist/unified-provider/matching/index.d.ts +3 -0
- package/dist/unified-provider/matching/index.d.ts.map +1 -1
- package/dist/unified-provider/matching/index.js +4 -0
- package/dist/unified-provider/matching/index.js.map +1 -1
- package/dist/unified-provider/matching/matcher-registry.d.ts.map +1 -1
- package/dist/unified-provider/matching/matcher-registry.js +7 -0
- package/dist/unified-provider/matching/matcher-registry.js.map +1 -1
- package/dist/unified-provider/matching/sqlx-matcher.d.ts +40 -0
- package/dist/unified-provider/matching/sqlx-matcher.d.ts.map +1 -0
- package/dist/unified-provider/matching/sqlx-matcher.js +214 -0
- package/dist/unified-provider/matching/sqlx-matcher.js.map +1 -0
- package/dist/unified-provider/normalization/go-normalizer.d.ts +62 -0
- package/dist/unified-provider/normalization/go-normalizer.d.ts.map +1 -0
- package/dist/unified-provider/normalization/go-normalizer.js +608 -0
- package/dist/unified-provider/normalization/go-normalizer.js.map +1 -0
- package/dist/unified-provider/normalization/index.d.ts +1 -0
- package/dist/unified-provider/normalization/index.d.ts.map +1 -1
- package/dist/unified-provider/normalization/index.js +6 -1
- package/dist/unified-provider/normalization/index.js.map +1 -1
- package/dist/unified-provider/types.d.ts +1 -1
- package/dist/unified-provider/types.d.ts.map +1 -1
- package/dist/wpf/extractors/binding-error-detector.d.ts +75 -0
- package/dist/wpf/extractors/binding-error-detector.d.ts.map +1 -0
- package/dist/wpf/extractors/binding-error-detector.js +290 -0
- package/dist/wpf/extractors/binding-error-detector.js.map +1 -0
- package/dist/wpf/extractors/code-behind-linker.d.ts +70 -0
- package/dist/wpf/extractors/code-behind-linker.d.ts.map +1 -0
- package/dist/wpf/extractors/code-behind-linker.js +172 -0
- package/dist/wpf/extractors/code-behind-linker.js.map +1 -0
- package/dist/wpf/extractors/dependency-property-extractor.d.ts +61 -0
- package/dist/wpf/extractors/dependency-property-extractor.d.ts.map +1 -0
- package/dist/wpf/extractors/dependency-property-extractor.js +201 -0
- package/dist/wpf/extractors/dependency-property-extractor.js.map +1 -0
- package/dist/wpf/extractors/regex/viewmodel-regex.d.ts +82 -0
- package/dist/wpf/extractors/regex/viewmodel-regex.d.ts.map +1 -0
- package/dist/wpf/extractors/regex/viewmodel-regex.js +412 -0
- package/dist/wpf/extractors/regex/viewmodel-regex.js.map +1 -0
- package/dist/wpf/extractors/regex/xaml-regex.d.ts +77 -0
- package/dist/wpf/extractors/regex/xaml-regex.d.ts.map +1 -0
- package/dist/wpf/extractors/regex/xaml-regex.js +353 -0
- package/dist/wpf/extractors/regex/xaml-regex.js.map +1 -0
- package/dist/wpf/extractors/resource-dictionary-parser.d.ts +103 -0
- package/dist/wpf/extractors/resource-dictionary-parser.d.ts.map +1 -0
- package/dist/wpf/extractors/resource-dictionary-parser.js +296 -0
- package/dist/wpf/extractors/resource-dictionary-parser.js.map +1 -0
- package/dist/wpf/extractors/value-converter-extractor.d.ts +128 -0
- package/dist/wpf/extractors/value-converter-extractor.d.ts.map +1 -0
- package/dist/wpf/extractors/value-converter-extractor.js +312 -0
- package/dist/wpf/extractors/value-converter-extractor.js.map +1 -0
- package/dist/wpf/extractors/viewmodel-hybrid-extractor.d.ts +104 -0
- package/dist/wpf/extractors/viewmodel-hybrid-extractor.d.ts.map +1 -0
- package/dist/wpf/extractors/viewmodel-hybrid-extractor.js +513 -0
- package/dist/wpf/extractors/viewmodel-hybrid-extractor.js.map +1 -0
- package/dist/wpf/extractors/xaml-hybrid-extractor.d.ts +98 -0
- package/dist/wpf/extractors/xaml-hybrid-extractor.d.ts.map +1 -0
- package/dist/wpf/extractors/xaml-hybrid-extractor.js +444 -0
- package/dist/wpf/extractors/xaml-hybrid-extractor.js.map +1 -0
- package/dist/wpf/index.d.ts +25 -0
- package/dist/wpf/index.d.ts.map +1 -0
- package/dist/wpf/index.js +31 -0
- package/dist/wpf/index.js.map +1 -0
- package/dist/wpf/integration/wpf-callgraph-adapter.d.ts +82 -0
- package/dist/wpf/integration/wpf-callgraph-adapter.d.ts.map +1 -0
- package/dist/wpf/integration/wpf-callgraph-adapter.js +311 -0
- package/dist/wpf/integration/wpf-callgraph-adapter.js.map +1 -0
- package/dist/wpf/integration/wpf-data-flow-tracer.d.ts +129 -0
- package/dist/wpf/integration/wpf-data-flow-tracer.d.ts.map +1 -0
- package/dist/wpf/integration/wpf-data-flow-tracer.js +367 -0
- package/dist/wpf/integration/wpf-data-flow-tracer.js.map +1 -0
- package/dist/wpf/linkers/datacontext-resolver.d.ts +66 -0
- package/dist/wpf/linkers/datacontext-resolver.d.ts.map +1 -0
- package/dist/wpf/linkers/datacontext-resolver.js +240 -0
- package/dist/wpf/linkers/datacontext-resolver.js.map +1 -0
- package/dist/wpf/linkers/viewmodel-linker.d.ts +71 -0
- package/dist/wpf/linkers/viewmodel-linker.d.ts.map +1 -0
- package/dist/wpf/linkers/viewmodel-linker.js +268 -0
- package/dist/wpf/linkers/viewmodel-linker.js.map +1 -0
- package/dist/wpf/types.d.ts +451 -0
- package/dist/wpf/types.d.ts.map +1 -0
- package/dist/wpf/types.js +8 -0
- package/dist/wpf/types.js.map +1 -0
- package/dist/wpf/wpf-analyzer.d.ts +114 -0
- package/dist/wpf/wpf-analyzer.d.ts.map +1 -0
- package/dist/wpf/wpf-analyzer.js +332 -0
- package/dist/wpf/wpf-analyzer.js.map +1 -0
- package/dist/wrappers/clustering/clusterer.d.ts +43 -0
- package/dist/wrappers/clustering/clusterer.d.ts.map +1 -0
- package/dist/wrappers/clustering/clusterer.js +374 -0
- package/dist/wrappers/clustering/clusterer.js.map +1 -0
- package/dist/wrappers/clustering/exclusions.d.ts +47 -0
- package/dist/wrappers/clustering/exclusions.d.ts.map +1 -0
- package/dist/wrappers/clustering/exclusions.js +318 -0
- package/dist/wrappers/clustering/exclusions.js.map +1 -0
- package/dist/wrappers/clustering/index.d.ts +6 -0
- package/dist/wrappers/clustering/index.d.ts.map +1 -0
- package/dist/wrappers/clustering/index.js +6 -0
- package/dist/wrappers/clustering/index.js.map +1 -0
- package/dist/wrappers/detection/detector.d.ts +69 -0
- package/dist/wrappers/detection/detector.d.ts.map +1 -0
- package/dist/wrappers/detection/detector.js +279 -0
- package/dist/wrappers/detection/detector.js.map +1 -0
- package/dist/wrappers/detection/index.d.ts +5 -0
- package/dist/wrappers/detection/index.d.ts.map +1 -0
- package/dist/wrappers/detection/index.js +5 -0
- package/dist/wrappers/detection/index.js.map +1 -0
- package/dist/wrappers/export/index.d.ts +5 -0
- package/dist/wrappers/export/index.d.ts.map +1 -0
- package/dist/wrappers/export/index.js +5 -0
- package/dist/wrappers/export/index.js.map +1 -0
- package/dist/wrappers/export/json.d.ts +127 -0
- package/dist/wrappers/export/json.d.ts.map +1 -0
- package/dist/wrappers/export/json.js +160 -0
- package/dist/wrappers/export/json.js.map +1 -0
- package/dist/wrappers/index.d.ts +56 -0
- package/dist/wrappers/index.d.ts.map +1 -0
- package/dist/wrappers/index.js +159 -0
- package/dist/wrappers/index.js.map +1 -0
- package/dist/wrappers/integration/adapter.d.ts +52 -0
- package/dist/wrappers/integration/adapter.d.ts.map +1 -0
- package/dist/wrappers/integration/adapter.js +210 -0
- package/dist/wrappers/integration/adapter.js.map +1 -0
- package/dist/wrappers/integration/index.d.ts +9 -0
- package/dist/wrappers/integration/index.d.ts.map +1 -0
- package/dist/wrappers/integration/index.js +12 -0
- package/dist/wrappers/integration/index.js.map +1 -0
- package/dist/wrappers/integration/pattern-adapter.d.ts +52 -0
- package/dist/wrappers/integration/pattern-adapter.d.ts.map +1 -0
- package/dist/wrappers/integration/pattern-adapter.js +192 -0
- package/dist/wrappers/integration/pattern-adapter.js.map +1 -0
- package/dist/wrappers/integration/scanner.d.ts +85 -0
- package/dist/wrappers/integration/scanner.d.ts.map +1 -0
- package/dist/wrappers/integration/scanner.js +367 -0
- package/dist/wrappers/integration/scanner.js.map +1 -0
- package/dist/wrappers/primitives/discovery.d.ts +57 -0
- package/dist/wrappers/primitives/discovery.d.ts.map +1 -0
- package/dist/wrappers/primitives/discovery.js +389 -0
- package/dist/wrappers/primitives/discovery.js.map +1 -0
- package/dist/wrappers/primitives/index.d.ts +6 -0
- package/dist/wrappers/primitives/index.d.ts.map +1 -0
- package/dist/wrappers/primitives/index.js +6 -0
- package/dist/wrappers/primitives/index.js.map +1 -0
- package/dist/wrappers/primitives/registry.d.ts +63 -0
- package/dist/wrappers/primitives/registry.d.ts.map +1 -0
- package/dist/wrappers/primitives/registry.js +447 -0
- package/dist/wrappers/primitives/registry.js.map +1 -0
- package/dist/wrappers/types.d.ts +137 -0
- package/dist/wrappers/types.d.ts.map +1 -0
- package/dist/wrappers/types.js +7 -0
- package/dist/wrappers/types.js.map +1 -0
- package/package.json +33 -18
- package/LICENSE +0 -21
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* C# Regex Extractor
|
|
3
|
+
*
|
|
4
|
+
* Regex-based fallback extractor for C# when tree-sitter is unavailable.
|
|
5
|
+
*/
|
|
6
|
+
import { BaseRegexExtractor } from './base-regex-extractor.js';
|
|
7
|
+
/**
|
|
8
|
+
* C# regex patterns
|
|
9
|
+
*/
|
|
10
|
+
const CSHARP_PATTERNS = {
|
|
11
|
+
language: 'csharp',
|
|
12
|
+
functions: [],
|
|
13
|
+
classes: [],
|
|
14
|
+
imports: [],
|
|
15
|
+
exports: [],
|
|
16
|
+
calls: [],
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* C# regex-based extractor
|
|
20
|
+
*/
|
|
21
|
+
export class CSharpRegexExtractor extends BaseRegexExtractor {
|
|
22
|
+
language = 'csharp';
|
|
23
|
+
extensions = ['.cs'];
|
|
24
|
+
patterns = CSHARP_PATTERNS;
|
|
25
|
+
// ==========================================================================
|
|
26
|
+
// Function Extraction
|
|
27
|
+
// ==========================================================================
|
|
28
|
+
extractFunctions(cleanSource, originalSource, _filePath) {
|
|
29
|
+
const functions = [];
|
|
30
|
+
const seen = new Set();
|
|
31
|
+
// Pattern: method declarations
|
|
32
|
+
// [attributes] [modifiers] returnType MethodName(params) [where ...] {
|
|
33
|
+
const methodPattern = /(?:\[[^\]]+\]\s*)*(?:public|private|protected|internal|static|virtual|override|abstract|async|sealed|partial|\s)*(?:<[^>]+>\s+)?(\w+(?:<[^>]+>)?(?:\[\])?(?:\?)?)\s+(\w+)\s*\(([^)]*)\)\s*(?:where\s+[^{]+)?\s*\{/g;
|
|
34
|
+
let match;
|
|
35
|
+
while ((match = methodPattern.exec(cleanSource)) !== null) {
|
|
36
|
+
const returnType = match[1];
|
|
37
|
+
const name = match[2];
|
|
38
|
+
const paramsStr = match[3] || '';
|
|
39
|
+
const startLine = this.getLineNumber(originalSource, match.index);
|
|
40
|
+
const key = `${name}:${startLine}`;
|
|
41
|
+
if (seen.has(key))
|
|
42
|
+
continue;
|
|
43
|
+
seen.add(key);
|
|
44
|
+
// Skip if this looks like a control structure
|
|
45
|
+
if (['if', 'for', 'foreach', 'while', 'switch', 'catch', 'try', 'using', 'lock'].includes(name))
|
|
46
|
+
continue;
|
|
47
|
+
const endIndex = this.findBlockEnd(cleanSource, match.index);
|
|
48
|
+
const endLine = this.getLineNumber(originalSource, endIndex);
|
|
49
|
+
const isStatic = match[0].includes('static');
|
|
50
|
+
const isPublic = match[0].includes('public');
|
|
51
|
+
const isAsync = match[0].includes('async');
|
|
52
|
+
const params = this.parseCSharpParameters(paramsStr);
|
|
53
|
+
const decorators = this.getAttributesAbove(cleanSource, match.index);
|
|
54
|
+
functions.push(this.createFunction({
|
|
55
|
+
name,
|
|
56
|
+
startLine,
|
|
57
|
+
endLine,
|
|
58
|
+
parameters: params,
|
|
59
|
+
returnType,
|
|
60
|
+
isMethod: true,
|
|
61
|
+
isStatic,
|
|
62
|
+
isExported: isPublic,
|
|
63
|
+
isConstructor: false,
|
|
64
|
+
isAsync,
|
|
65
|
+
decorators,
|
|
66
|
+
}));
|
|
67
|
+
}
|
|
68
|
+
// Pattern: Constructors - ClassName(params) { or ClassName(params) : base/this {
|
|
69
|
+
const ctorPattern = /(?:\[[^\]]+\]\s*)*(?:public|private|protected|internal|static|\s)*(\w+)\s*\(([^)]*)\)\s*(?::\s*(?:base|this)\s*\([^)]*\))?\s*\{/g;
|
|
70
|
+
while ((match = ctorPattern.exec(cleanSource)) !== null) {
|
|
71
|
+
const name = match[1];
|
|
72
|
+
const paramsStr = match[2] || '';
|
|
73
|
+
const startLine = this.getLineNumber(originalSource, match.index);
|
|
74
|
+
const key = `ctor:${name}:${startLine}`;
|
|
75
|
+
if (seen.has(key))
|
|
76
|
+
continue;
|
|
77
|
+
// Check if this is actually a constructor (class name should be PascalCase and match a class)
|
|
78
|
+
if (!/^[A-Z]/.test(name))
|
|
79
|
+
continue;
|
|
80
|
+
if (['if', 'for', 'foreach', 'while', 'switch', 'catch', 'try', 'using', 'lock'].includes(name))
|
|
81
|
+
continue;
|
|
82
|
+
seen.add(key);
|
|
83
|
+
const endIndex = this.findBlockEnd(cleanSource, match.index);
|
|
84
|
+
const endLine = this.getLineNumber(originalSource, endIndex);
|
|
85
|
+
const isPublic = match[0].includes('public');
|
|
86
|
+
const params = this.parseCSharpParameters(paramsStr);
|
|
87
|
+
functions.push(this.createFunction({
|
|
88
|
+
name,
|
|
89
|
+
startLine,
|
|
90
|
+
endLine,
|
|
91
|
+
parameters: params,
|
|
92
|
+
isMethod: true,
|
|
93
|
+
isStatic: false,
|
|
94
|
+
isExported: isPublic,
|
|
95
|
+
isConstructor: true,
|
|
96
|
+
className: name,
|
|
97
|
+
}));
|
|
98
|
+
}
|
|
99
|
+
return functions;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Get attributes above a method
|
|
103
|
+
*/
|
|
104
|
+
getAttributesAbove(source, methodIndex) {
|
|
105
|
+
const attributes = [];
|
|
106
|
+
const beforeMethod = source.slice(0, methodIndex);
|
|
107
|
+
const lines = beforeMethod.split('\n');
|
|
108
|
+
for (let i = lines.length - 1; i >= 0; i--) {
|
|
109
|
+
const line = lines[i].trim();
|
|
110
|
+
if (line.startsWith('[') && line.includes(']')) {
|
|
111
|
+
attributes.unshift(line);
|
|
112
|
+
}
|
|
113
|
+
else if (line && !line.startsWith('//') && !line.startsWith('*')) {
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return attributes;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Parse C# parameters
|
|
121
|
+
*/
|
|
122
|
+
parseCSharpParameters(paramsStr) {
|
|
123
|
+
if (!paramsStr.trim())
|
|
124
|
+
return [];
|
|
125
|
+
const params = [];
|
|
126
|
+
// Split by comma, but be careful of generics
|
|
127
|
+
const parts = [];
|
|
128
|
+
let current = '';
|
|
129
|
+
let depth = 0;
|
|
130
|
+
for (const char of paramsStr) {
|
|
131
|
+
if (char === '<')
|
|
132
|
+
depth++;
|
|
133
|
+
else if (char === '>')
|
|
134
|
+
depth--;
|
|
135
|
+
else if (char === ',' && depth === 0) {
|
|
136
|
+
parts.push(current.trim());
|
|
137
|
+
current = '';
|
|
138
|
+
continue;
|
|
139
|
+
}
|
|
140
|
+
current += char;
|
|
141
|
+
}
|
|
142
|
+
if (current.trim())
|
|
143
|
+
parts.push(current.trim());
|
|
144
|
+
for (const part of parts) {
|
|
145
|
+
let trimmed = part.trim();
|
|
146
|
+
if (!trimmed)
|
|
147
|
+
continue;
|
|
148
|
+
// Handle params keyword (varargs)
|
|
149
|
+
const isRest = trimmed.startsWith('params ');
|
|
150
|
+
if (isRest)
|
|
151
|
+
trimmed = trimmed.slice(7);
|
|
152
|
+
// Handle ref, out, in keywords
|
|
153
|
+
trimmed = trimmed.replace(/^(ref|out|in)\s+/, '');
|
|
154
|
+
// Handle default values
|
|
155
|
+
let hasDefault = false;
|
|
156
|
+
if (trimmed.includes('=')) {
|
|
157
|
+
hasDefault = true;
|
|
158
|
+
trimmed = trimmed.split('=')[0].trim();
|
|
159
|
+
}
|
|
160
|
+
// Pattern: Type name or Type? name
|
|
161
|
+
const paramMatch = trimmed.match(/(\w+(?:<[^>]+>)?(?:\[\])?(?:\?)?)\s+(\w+)/);
|
|
162
|
+
if (paramMatch) {
|
|
163
|
+
const type = paramMatch[1];
|
|
164
|
+
const name = paramMatch[2];
|
|
165
|
+
params.push({ name, type, hasDefault, isRest });
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return params;
|
|
169
|
+
}
|
|
170
|
+
// ==========================================================================
|
|
171
|
+
// Class Extraction
|
|
172
|
+
// ==========================================================================
|
|
173
|
+
extractClasses(cleanSource, originalSource, _filePath) {
|
|
174
|
+
const classes = [];
|
|
175
|
+
// Pattern: class Name<T> : Base, IInterface where T : constraint {
|
|
176
|
+
const classPattern = /(?:public|private|protected|internal|abstract|sealed|static|partial|\s)*class\s+(\w+)(?:<[^>]+>)?(?:\s*:\s*([^{]+))?\s*(?:where\s+[^{]+)?\s*\{/g;
|
|
177
|
+
let match;
|
|
178
|
+
while ((match = classPattern.exec(cleanSource)) !== null) {
|
|
179
|
+
const name = match[1];
|
|
180
|
+
const startLine = this.getLineNumber(originalSource, match.index);
|
|
181
|
+
const endIndex = this.findBlockEnd(cleanSource, match.index);
|
|
182
|
+
const endLine = this.getLineNumber(originalSource, endIndex);
|
|
183
|
+
const baseClasses = [];
|
|
184
|
+
if (match[2]) {
|
|
185
|
+
const bases = match[2].split(',').map(b => b.trim().replace(/<[^>]+>/, '')).filter(b => b);
|
|
186
|
+
baseClasses.push(...bases);
|
|
187
|
+
}
|
|
188
|
+
const classBody = cleanSource.slice(match.index, endIndex);
|
|
189
|
+
const methods = this.extractMethodNames(classBody);
|
|
190
|
+
const isPublic = match[0].includes('public');
|
|
191
|
+
classes.push(this.createClass({
|
|
192
|
+
name,
|
|
193
|
+
startLine,
|
|
194
|
+
endLine,
|
|
195
|
+
baseClasses,
|
|
196
|
+
methods,
|
|
197
|
+
isExported: isPublic,
|
|
198
|
+
}));
|
|
199
|
+
}
|
|
200
|
+
// Also extract interfaces
|
|
201
|
+
const interfacePattern = /(?:public|private|protected|internal|\s)*interface\s+(\w+)(?:<[^>]+>)?(?:\s*:\s*([^{]+))?\s*\{/g;
|
|
202
|
+
while ((match = interfacePattern.exec(cleanSource)) !== null) {
|
|
203
|
+
const name = match[1];
|
|
204
|
+
const startLine = this.getLineNumber(originalSource, match.index);
|
|
205
|
+
const endIndex = this.findBlockEnd(cleanSource, match.index);
|
|
206
|
+
const endLine = this.getLineNumber(originalSource, endIndex);
|
|
207
|
+
const baseClasses = match[2]
|
|
208
|
+
? match[2].split(',').map(i => i.trim().replace(/<[^>]+>/, '')).filter(i => i)
|
|
209
|
+
: [];
|
|
210
|
+
classes.push(this.createClass({
|
|
211
|
+
name,
|
|
212
|
+
startLine,
|
|
213
|
+
endLine,
|
|
214
|
+
baseClasses,
|
|
215
|
+
methods: [],
|
|
216
|
+
isExported: match[0].includes('public'),
|
|
217
|
+
}));
|
|
218
|
+
}
|
|
219
|
+
// Also extract structs
|
|
220
|
+
const structPattern = /(?:public|private|protected|internal|readonly|\s)*struct\s+(\w+)(?:<[^>]+>)?(?:\s*:\s*([^{]+))?\s*\{/g;
|
|
221
|
+
while ((match = structPattern.exec(cleanSource)) !== null) {
|
|
222
|
+
const name = match[1];
|
|
223
|
+
const startLine = this.getLineNumber(originalSource, match.index);
|
|
224
|
+
const endIndex = this.findBlockEnd(cleanSource, match.index);
|
|
225
|
+
const endLine = this.getLineNumber(originalSource, endIndex);
|
|
226
|
+
const classBody = cleanSource.slice(match.index, endIndex);
|
|
227
|
+
const methods = this.extractMethodNames(classBody);
|
|
228
|
+
classes.push(this.createClass({
|
|
229
|
+
name,
|
|
230
|
+
startLine,
|
|
231
|
+
endLine,
|
|
232
|
+
baseClasses: [],
|
|
233
|
+
methods,
|
|
234
|
+
isExported: match[0].includes('public'),
|
|
235
|
+
}));
|
|
236
|
+
}
|
|
237
|
+
// Also extract records
|
|
238
|
+
const recordPattern = /(?:public|private|protected|internal|sealed|\s)*record\s+(?:class|struct)?\s*(\w+)(?:<[^>]+>)?(?:\s*\([^)]*\))?(?:\s*:\s*([^{;]+))?\s*[{;]/g;
|
|
239
|
+
while ((match = recordPattern.exec(cleanSource)) !== null) {
|
|
240
|
+
const name = match[1];
|
|
241
|
+
const startLine = this.getLineNumber(originalSource, match.index);
|
|
242
|
+
// Records can be single-line or have a body
|
|
243
|
+
let endLine = startLine;
|
|
244
|
+
if (match[0].endsWith('{')) {
|
|
245
|
+
const endIndex = this.findBlockEnd(cleanSource, match.index);
|
|
246
|
+
endLine = this.getLineNumber(originalSource, endIndex);
|
|
247
|
+
}
|
|
248
|
+
classes.push(this.createClass({
|
|
249
|
+
name,
|
|
250
|
+
startLine,
|
|
251
|
+
endLine,
|
|
252
|
+
baseClasses: [],
|
|
253
|
+
methods: [],
|
|
254
|
+
isExported: match[0].includes('public'),
|
|
255
|
+
}));
|
|
256
|
+
}
|
|
257
|
+
return classes;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Extract method names from a class body
|
|
261
|
+
*/
|
|
262
|
+
extractMethodNames(classBody) {
|
|
263
|
+
const methods = [];
|
|
264
|
+
const methodPattern = /(?:public|private|protected|internal|static|virtual|override|abstract|async|sealed|\s)*(?:<[^>]+>\s+)?(\w+(?:<[^>]+>)?(?:\[\])?(?:\?)?)\s+(\w+)\s*\([^)]*\)\s*(?:where\s+[^{]+)?\s*\{/g;
|
|
265
|
+
let match;
|
|
266
|
+
while ((match = methodPattern.exec(classBody)) !== null) {
|
|
267
|
+
const name = match[2];
|
|
268
|
+
if (!['if', 'for', 'foreach', 'while', 'switch', 'catch', 'try', 'using', 'lock'].includes(name)) {
|
|
269
|
+
methods.push(name);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
return methods;
|
|
273
|
+
}
|
|
274
|
+
// ==========================================================================
|
|
275
|
+
// Import Extraction
|
|
276
|
+
// ==========================================================================
|
|
277
|
+
extractImports(cleanSource, originalSource, _filePath) {
|
|
278
|
+
const imports = [];
|
|
279
|
+
// Pattern: using Namespace; or using Alias = Namespace;
|
|
280
|
+
const usingPattern = /using\s+(?:static\s+)?(?:(\w+)\s*=\s*)?([^;]+);/g;
|
|
281
|
+
let match;
|
|
282
|
+
while ((match = usingPattern.exec(cleanSource)) !== null) {
|
|
283
|
+
const alias = match[1];
|
|
284
|
+
const source = match[2].trim();
|
|
285
|
+
const line = this.getLineNumber(originalSource, match.index);
|
|
286
|
+
const isStatic = match[0].includes('static');
|
|
287
|
+
const className = alias || source.split('.').pop();
|
|
288
|
+
imports.push(this.createImport({
|
|
289
|
+
source,
|
|
290
|
+
names: [{ imported: source, local: className, isDefault: false, isNamespace: !isStatic }],
|
|
291
|
+
line,
|
|
292
|
+
}));
|
|
293
|
+
}
|
|
294
|
+
return imports;
|
|
295
|
+
}
|
|
296
|
+
// ==========================================================================
|
|
297
|
+
// Export Extraction
|
|
298
|
+
// ==========================================================================
|
|
299
|
+
extractExports(cleanSource, originalSource, _filePath) {
|
|
300
|
+
const exports = [];
|
|
301
|
+
// C# doesn't have explicit exports, but we can detect namespace declarations
|
|
302
|
+
const namespacePattern = /namespace\s+([^{;]+)/g;
|
|
303
|
+
let match;
|
|
304
|
+
while ((match = namespacePattern.exec(cleanSource)) !== null) {
|
|
305
|
+
const name = match[1].trim();
|
|
306
|
+
const line = this.getLineNumber(originalSource, match.index);
|
|
307
|
+
exports.push(this.createExport({ name, line }));
|
|
308
|
+
}
|
|
309
|
+
return exports;
|
|
310
|
+
}
|
|
311
|
+
// ==========================================================================
|
|
312
|
+
// Call Extraction
|
|
313
|
+
// ==========================================================================
|
|
314
|
+
extractCalls(cleanSource, originalSource, _filePath) {
|
|
315
|
+
const calls = [];
|
|
316
|
+
const seen = new Set();
|
|
317
|
+
// Pattern 1: Method calls - obj.Method(...)
|
|
318
|
+
const methodCallPattern = /(\w+)\.(\w+)\s*\(/g;
|
|
319
|
+
let match;
|
|
320
|
+
while ((match = methodCallPattern.exec(cleanSource)) !== null) {
|
|
321
|
+
const receiver = match[1];
|
|
322
|
+
const calleeName = match[2];
|
|
323
|
+
const line = this.getLineNumber(originalSource, match.index);
|
|
324
|
+
const key = `${receiver}.${calleeName}:${line}`;
|
|
325
|
+
if (seen.has(key))
|
|
326
|
+
continue;
|
|
327
|
+
seen.add(key);
|
|
328
|
+
// Skip this.Method calls for now
|
|
329
|
+
if (receiver === 'this' || receiver === 'base')
|
|
330
|
+
continue;
|
|
331
|
+
calls.push(this.createCall({
|
|
332
|
+
calleeName,
|
|
333
|
+
receiver,
|
|
334
|
+
fullExpression: `${receiver}.${calleeName}`,
|
|
335
|
+
line,
|
|
336
|
+
isMethodCall: true,
|
|
337
|
+
}));
|
|
338
|
+
}
|
|
339
|
+
// Pattern 2: Direct method calls (within same class) - Method(...)
|
|
340
|
+
const funcCallPattern = /(?<![.\w])(\w+)\s*\(/g;
|
|
341
|
+
while ((match = funcCallPattern.exec(cleanSource)) !== null) {
|
|
342
|
+
const calleeName = match[1];
|
|
343
|
+
const line = this.getLineNumber(originalSource, match.index);
|
|
344
|
+
const key = `${calleeName}:${line}`;
|
|
345
|
+
if (seen.has(key))
|
|
346
|
+
continue;
|
|
347
|
+
seen.add(key);
|
|
348
|
+
// Skip keywords
|
|
349
|
+
if (['if', 'for', 'foreach', 'while', 'switch', 'catch', 'try', 'return', 'throw', 'new', 'class', 'interface', 'struct', 'enum', 'using', 'lock', 'typeof', 'sizeof', 'nameof', 'default', 'checked', 'unchecked'].includes(calleeName))
|
|
350
|
+
continue;
|
|
351
|
+
calls.push(this.createCall({
|
|
352
|
+
calleeName,
|
|
353
|
+
fullExpression: calleeName,
|
|
354
|
+
line,
|
|
355
|
+
}));
|
|
356
|
+
}
|
|
357
|
+
// Pattern 3: Constructor calls - new Class(...)
|
|
358
|
+
const newPattern = /new\s+(\w+)(?:<[^>]*>)?\s*\(/g;
|
|
359
|
+
while ((match = newPattern.exec(cleanSource)) !== null) {
|
|
360
|
+
const calleeName = match[1];
|
|
361
|
+
const line = this.getLineNumber(originalSource, match.index);
|
|
362
|
+
const key = `new:${calleeName}:${line}`;
|
|
363
|
+
if (seen.has(key))
|
|
364
|
+
continue;
|
|
365
|
+
seen.add(key);
|
|
366
|
+
calls.push(this.createCall({
|
|
367
|
+
calleeName,
|
|
368
|
+
fullExpression: `new ${calleeName}`,
|
|
369
|
+
line,
|
|
370
|
+
isConstructorCall: true,
|
|
371
|
+
}));
|
|
372
|
+
}
|
|
373
|
+
// Pattern 4: LINQ method calls - .Where(...), .Select(...), etc.
|
|
374
|
+
const linqPattern = /\.(?:Where|Select|OrderBy|OrderByDescending|GroupBy|Join|Any|All|First|FirstOrDefault|Single|SingleOrDefault|Count|Sum|Average|Min|Max|Take|Skip|Distinct|ToList|ToArray|ToDictionary)\s*\(/g;
|
|
375
|
+
while ((match = linqPattern.exec(cleanSource)) !== null) {
|
|
376
|
+
const fullMatch = match[0];
|
|
377
|
+
const calleeName = fullMatch.slice(1, fullMatch.indexOf('('));
|
|
378
|
+
const line = this.getLineNumber(originalSource, match.index);
|
|
379
|
+
const key = `linq:${calleeName}:${line}`;
|
|
380
|
+
if (seen.has(key))
|
|
381
|
+
continue;
|
|
382
|
+
seen.add(key);
|
|
383
|
+
calls.push(this.createCall({
|
|
384
|
+
calleeName,
|
|
385
|
+
fullExpression: calleeName,
|
|
386
|
+
line,
|
|
387
|
+
isMethodCall: true,
|
|
388
|
+
}));
|
|
389
|
+
}
|
|
390
|
+
return calls;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
//# sourceMappingURL=csharp-regex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+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AAI,CAAC,GAAG,CAAC,GAAG,CAAC;gBAAE,SAAS;YAC5B,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAEd,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;gBACzB,UAAU;gBACV,cAAc,EAAE,UAAU;gBAC1B,IAAI;gBACJ,YAAY,EAAE,IAAI;aACnB,CAAC,CAAC,CAAC;QACN,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Go Regex Extractor
|
|
3
|
+
*
|
|
4
|
+
* Regex-based fallback extractor for Go when tree-sitter is unavailable.
|
|
5
|
+
* Provides reasonable extraction coverage using pattern matching.
|
|
6
|
+
*/
|
|
7
|
+
import { BaseRegexExtractor } from './base-regex-extractor.js';
|
|
8
|
+
import type { CallGraphLanguage, FunctionExtraction, CallExtraction, ImportExtraction, ExportExtraction, ClassExtraction } from '../../types.js';
|
|
9
|
+
import type { LanguagePatterns } from '../types.js';
|
|
10
|
+
/**
|
|
11
|
+
* Go regex-based extractor
|
|
12
|
+
*/
|
|
13
|
+
export declare class GoRegexExtractor extends BaseRegexExtractor {
|
|
14
|
+
readonly language: CallGraphLanguage;
|
|
15
|
+
readonly extensions: string[];
|
|
16
|
+
protected readonly patterns: LanguagePatterns;
|
|
17
|
+
/**
|
|
18
|
+
* Preprocess Go source to remove comments and strings
|
|
19
|
+
*/
|
|
20
|
+
protected preprocessSource(source: string): string;
|
|
21
|
+
protected extractFunctions(cleanSource: string, originalSource: string, _filePath: string): FunctionExtraction[];
|
|
22
|
+
/**
|
|
23
|
+
* Parse Go parameter string
|
|
24
|
+
*/
|
|
25
|
+
private parseGoParameters;
|
|
26
|
+
/**
|
|
27
|
+
* Split Go parameters respecting nested brackets
|
|
28
|
+
*/
|
|
29
|
+
private splitGoParams;
|
|
30
|
+
protected extractClasses(cleanSource: string, originalSource: string, _filePath: string): ClassExtraction[];
|
|
31
|
+
/**
|
|
32
|
+
* Extract embedded types from struct body
|
|
33
|
+
*/
|
|
34
|
+
private extractEmbeddedTypes;
|
|
35
|
+
/**
|
|
36
|
+
* Extract method signatures from interface body
|
|
37
|
+
*/
|
|
38
|
+
private extractInterfaceMethods;
|
|
39
|
+
/**
|
|
40
|
+
* Extract embedded interfaces from interface body
|
|
41
|
+
*/
|
|
42
|
+
private extractEmbeddedInterfaces;
|
|
43
|
+
protected extractImports(cleanSource: string, originalSource: string, _filePath: string): ImportExtraction[];
|
|
44
|
+
protected extractExports(cleanSource: string, originalSource: string, _filePath: string): ExportExtraction[];
|
|
45
|
+
protected extractCalls(cleanSource: string, originalSource: string, _filePath: string): CallExtraction[];
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Create a Go regex extractor instance
|
|
49
|
+
*/
|
|
50
|
+
export declare function createGoRegexExtractor(): GoRegexExtractor;
|
|
51
|
+
//# sourceMappingURL=go-regex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"go-regex.d.ts","sourceRoot":"","sources":["../../../../src/call-graph/extractors/regex/go-regex.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EACV,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAWpD;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,kBAAkB;IACtD,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAQ;IAC5C,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,CAAW;IACxC,SAAS,CAAC,QAAQ,CAAC,QAAQ,mBAAe;IAM1C;;OAEG;cACgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,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