@yalehwang/archguard 0.1.23 → 0.1.32
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/README.md +176 -32
- package/assets/grammars/benchmarks.md +101 -0
- package/assets/grammars/checksums.json +8 -0
- package/{node_modules/tree-sitter/LICENSE → assets/grammars/licenses/tree-sitter-cpp.LICENSE} +2 -2
- package/{node_modules/node-gyp-build/LICENSE → assets/grammars/licenses/tree-sitter-go.LICENSE} +5 -5
- package/assets/grammars/licenses/tree-sitter-java.LICENSE +21 -0
- package/assets/grammars/licenses/tree-sitter-kotlin.LICENSE +21 -0
- package/assets/grammars/licenses/tree-sitter-python.LICENSE +21 -0
- package/assets/grammars/licenses/tree-sitter.LICENSE +21 -0
- package/assets/grammars/provenance.json +66 -0
- package/assets/grammars/tree-sitter-cpp.wasm +0 -0
- package/assets/grammars/tree-sitter-go.wasm +0 -0
- package/assets/grammars/tree-sitter-java.wasm +0 -0
- package/assets/grammars/tree-sitter-kotlin.wasm +0 -0
- package/assets/grammars/tree-sitter-python.wasm +0 -0
- package/assets/grammars/tree-sitter.wasm +0 -0
- package/dist/analysis/atlas-metrics-analysis.d.ts +11 -0
- package/dist/analysis/atlas-metrics-analysis.d.ts.map +1 -0
- package/dist/analysis/atlas-metrics-analysis.js +17 -0
- package/dist/analysis/atlas-metrics-analysis.js.map +1 -0
- package/dist/analysis/fitness/dependency-checker.d.ts +4 -0
- package/dist/analysis/fitness/dependency-checker.d.ts.map +1 -0
- package/dist/analysis/fitness/dependency-checker.js +16 -0
- package/dist/analysis/fitness/dependency-checker.js.map +1 -0
- package/dist/analysis/fitness/rule-evaluator.d.ts +6 -0
- package/dist/analysis/fitness/rule-evaluator.d.ts.map +1 -0
- package/dist/analysis/fitness/rule-evaluator.js +64 -0
- package/dist/analysis/fitness/rule-evaluator.js.map +1 -0
- package/dist/analysis/fitness/rule-types.d.ts +2 -0
- package/dist/analysis/fitness/rule-types.d.ts.map +1 -0
- package/dist/analysis/fitness/rule-types.js +2 -0
- package/dist/analysis/fitness/rule-types.js.map +1 -0
- package/dist/analysis/gim/direction-hint.d.ts +18 -0
- package/dist/analysis/gim/direction-hint.d.ts.map +1 -0
- package/dist/analysis/gim/direction-hint.js +76 -0
- package/dist/analysis/gim/direction-hint.js.map +1 -0
- package/dist/analysis/gim/gim-loss-evaluator.d.ts +14 -0
- package/dist/analysis/gim/gim-loss-evaluator.d.ts.map +1 -0
- package/dist/analysis/gim/gim-loss-evaluator.js +80 -0
- package/dist/analysis/gim/gim-loss-evaluator.js.map +1 -0
- package/dist/analysis/gini.d.ts +2 -0
- package/dist/analysis/gini.d.ts.map +1 -0
- package/dist/analysis/gini.js +12 -0
- package/dist/analysis/gini.js.map +1 -0
- package/dist/analysis/git-history/git-log-reader.d.ts +24 -0
- package/dist/analysis/git-history/git-log-reader.d.ts.map +1 -0
- package/dist/analysis/git-history/git-log-reader.js +117 -0
- package/dist/analysis/git-history/git-log-reader.js.map +1 -0
- package/dist/analysis/git-history/history-aggregator.d.ts +19 -0
- package/dist/analysis/git-history/history-aggregator.d.ts.map +1 -0
- package/dist/analysis/git-history/history-aggregator.js +291 -0
- package/dist/analysis/git-history/history-aggregator.js.map +1 -0
- package/dist/analysis/git-history/history-query.d.ts +111 -0
- package/dist/analysis/git-history/history-query.d.ts.map +1 -0
- package/dist/analysis/git-history/history-query.js +201 -0
- package/dist/analysis/git-history/history-query.js.map +1 -0
- package/dist/analysis/git-history/index.d.ts +4 -0
- package/dist/analysis/git-history/index.d.ts.map +1 -0
- package/dist/analysis/git-history/index.js +4 -0
- package/dist/analysis/git-history/index.js.map +1 -0
- package/dist/analysis/metric-vector-builder.d.ts +5 -0
- package/dist/analysis/metric-vector-builder.d.ts.map +1 -0
- package/dist/analysis/metric-vector-builder.js +47 -0
- package/dist/analysis/metric-vector-builder.js.map +1 -0
- package/dist/analysis/metrics-history-reader.d.ts +4 -0
- package/dist/analysis/metrics-history-reader.d.ts.map +1 -0
- package/dist/analysis/metrics-history-reader.js +24 -0
- package/dist/analysis/metrics-history-reader.js.map +1 -0
- package/dist/analysis/package-metrics-analysis.d.ts +18 -0
- package/dist/analysis/package-metrics-analysis.d.ts.map +1 -0
- package/dist/analysis/package-metrics-analysis.js +59 -0
- package/dist/analysis/package-metrics-analysis.js.map +1 -0
- package/dist/analysis/project-semantics-loader.d.ts +3 -0
- package/dist/analysis/project-semantics-loader.d.ts.map +1 -0
- package/dist/analysis/project-semantics-loader.js +25 -0
- package/dist/analysis/project-semantics-loader.js.map +1 -0
- package/dist/analysis/snapshot-diff.d.ts +19 -0
- package/dist/analysis/snapshot-diff.d.ts.map +1 -0
- package/dist/analysis/snapshot-diff.js +54 -0
- package/dist/analysis/snapshot-diff.js.map +1 -0
- package/dist/analysis/snapshot-store.d.ts +15 -0
- package/dist/analysis/snapshot-store.d.ts.map +1 -0
- package/dist/analysis/snapshot-store.js +96 -0
- package/dist/analysis/snapshot-store.js.map +1 -0
- package/dist/analysis/test-analyzer.d.ts +4 -1
- package/dist/analysis/test-analyzer.d.ts.map +1 -1
- package/dist/analysis/test-analyzer.js +67 -14
- package/dist/analysis/test-analyzer.js.map +1 -1
- package/dist/analysis/test-coverage-mapper.d.ts +1 -1
- package/dist/analysis/test-coverage-mapper.d.ts.map +1 -1
- package/dist/analysis/test-coverage-mapper.js +32 -2
- package/dist/analysis/test-coverage-mapper.js.map +1 -1
- package/dist/analysis/test-issue-detector.d.ts +1 -1
- package/dist/analysis/test-issue-detector.d.ts.map +1 -1
- package/dist/analysis/test-issue-detector.js +7 -2
- package/dist/analysis/test-issue-detector.js.map +1 -1
- package/dist/analysis/test-pattern-advisor.d.ts +2 -0
- package/dist/analysis/test-pattern-advisor.d.ts.map +1 -0
- package/dist/analysis/test-pattern-advisor.js +59 -0
- package/dist/analysis/test-pattern-advisor.js.map +1 -0
- package/dist/cli/analyze/normalize-to-diagrams.d.ts +9 -0
- package/dist/cli/analyze/normalize-to-diagrams.d.ts.map +1 -1
- package/dist/cli/analyze/normalize-to-diagrams.js +35 -26
- package/dist/cli/analyze/normalize-to-diagrams.js.map +1 -1
- package/dist/cli/analyze/run-analysis.d.ts +5 -1
- package/dist/cli/analyze/run-analysis.d.ts.map +1 -1
- package/dist/cli/analyze/run-analysis.js +207 -33
- package/dist/cli/analyze/run-analysis.js.map +1 -1
- package/dist/cli/{cache-manager.d.ts → cache/cache-manager.d.ts} +1 -1
- package/dist/cli/cache/cache-manager.d.ts.map +1 -0
- package/dist/cli/{cache-manager.js → cache/cache-manager.js} +3 -3
- package/dist/cli/cache/cache-manager.js.map +1 -0
- package/dist/cli/cognitive/ccb-assembler.d.ts +8 -0
- package/dist/cli/cognitive/ccb-assembler.d.ts.map +1 -0
- package/dist/cli/cognitive/ccb-assembler.js +213 -0
- package/dist/cli/cognitive/ccb-assembler.js.map +1 -0
- package/dist/cli/cognitive/ccb-reader.d.ts +7 -0
- package/dist/cli/cognitive/ccb-reader.d.ts.map +1 -0
- package/dist/cli/cognitive/ccb-reader.js +27 -0
- package/dist/cli/cognitive/ccb-reader.js.map +1 -0
- package/dist/cli/cognitive/ccb-schema.d.ts +36 -0
- package/dist/cli/cognitive/ccb-schema.d.ts.map +1 -0
- package/dist/cli/cognitive/ccb-schema.js +2 -0
- package/dist/cli/cognitive/ccb-schema.js.map +1 -0
- package/dist/cli/cognitive/ccb-writer.d.ts +3 -0
- package/dist/cli/cognitive/ccb-writer.d.ts.map +1 -0
- package/dist/cli/cognitive/ccb-writer.js +12 -0
- package/dist/cli/cognitive/ccb-writer.js.map +1 -0
- package/dist/cli/commands/analyze.d.ts.map +1 -1
- package/dist/cli/commands/analyze.js +23 -4
- package/dist/cli/commands/analyze.js.map +1 -1
- package/dist/cli/commands/cache.js +2 -2
- package/dist/cli/commands/cache.js.map +1 -1
- package/dist/cli/commands/check.d.ts +3 -0
- package/dist/cli/commands/check.d.ts.map +1 -0
- package/dist/cli/commands/check.js +48 -0
- package/dist/cli/commands/check.js.map +1 -0
- package/dist/cli/commands/diff.d.ts +3 -0
- package/dist/cli/commands/diff.d.ts.map +1 -0
- package/dist/cli/commands/diff.js +89 -0
- package/dist/cli/commands/diff.js.map +1 -0
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +1 -2
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/query.d.ts +51 -0
- package/dist/cli/commands/query.d.ts.map +1 -1
- package/dist/cli/commands/query.js +373 -17
- package/dist/cli/commands/query.js.map +1 -1
- package/dist/cli/config-loader.d.ts +50 -0
- package/dist/cli/config-loader.d.ts.map +1 -1
- package/dist/cli/config-loader.js +33 -0
- package/dist/cli/config-loader.js.map +1 -1
- package/dist/cli/{errors.d.ts → errors/index.d.ts} +16 -2
- package/dist/cli/errors/index.d.ts.map +1 -0
- package/dist/cli/{error-handler.js → errors/index.js} +32 -2
- package/dist/cli/errors/index.js.map +1 -0
- package/dist/cli/git-history/git-log-reader.d.ts +2 -0
- package/dist/cli/git-history/git-log-reader.d.ts.map +1 -0
- package/dist/cli/git-history/git-log-reader.js +2 -0
- package/dist/cli/git-history/git-log-reader.js.map +1 -0
- package/dist/cli/git-history/history-aggregator.d.ts +2 -0
- package/dist/cli/git-history/history-aggregator.d.ts.map +1 -0
- package/dist/cli/git-history/history-aggregator.js +2 -0
- package/dist/cli/git-history/history-aggregator.js.map +1 -0
- package/dist/cli/git-history/history-loader.d.ts +11 -0
- package/dist/cli/git-history/history-loader.d.ts.map +1 -0
- package/dist/cli/git-history/history-loader.js +30 -0
- package/dist/cli/git-history/history-loader.js.map +1 -0
- package/dist/cli/git-history/history-query.d.ts +2 -0
- package/dist/cli/git-history/history-query.d.ts.map +1 -0
- package/dist/cli/git-history/history-query.js +2 -0
- package/dist/cli/git-history/history-query.js.map +1 -0
- package/dist/cli/git-history/history-writer.d.ts +3 -0
- package/dist/cli/git-history/history-writer.d.ts.map +1 -0
- package/dist/cli/git-history/history-writer.js +14 -0
- package/dist/cli/git-history/history-writer.js.map +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +5 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/mcp/analyze-tool.d.ts +2 -0
- package/dist/cli/mcp/analyze-tool.d.ts.map +1 -1
- package/dist/cli/mcp/analyze-tool.js +15 -4
- package/dist/cli/mcp/analyze-tool.js.map +1 -1
- package/dist/cli/mcp/mcp-server.d.ts +7 -2
- package/dist/cli/mcp/mcp-server.d.ts.map +1 -1
- package/dist/cli/mcp/mcp-server.js +203 -50
- package/dist/cli/mcp/mcp-server.js.map +1 -1
- package/dist/cli/mcp/tools/atlas-analytics-tools.d.ts +7 -0
- package/dist/cli/mcp/tools/atlas-analytics-tools.d.ts.map +1 -0
- package/dist/cli/mcp/tools/atlas-analytics-tools.js +190 -0
- package/dist/cli/mcp/tools/atlas-analytics-tools.js.map +1 -0
- package/dist/cli/mcp/tools/call-graph-tools.d.ts +3 -0
- package/dist/cli/mcp/tools/call-graph-tools.d.ts.map +1 -0
- package/dist/cli/mcp/tools/call-graph-tools.js +47 -0
- package/dist/cli/mcp/tools/call-graph-tools.js.map +1 -0
- package/dist/cli/mcp/tools/ccb-tool.d.ts +3 -0
- package/dist/cli/mcp/tools/ccb-tool.d.ts.map +1 -0
- package/dist/cli/mcp/tools/ccb-tool.js +63 -0
- package/dist/cli/mcp/tools/ccb-tool.js.map +1 -0
- package/dist/cli/mcp/tools/cognitive-summary-tool.d.ts +3 -0
- package/dist/cli/mcp/tools/cognitive-summary-tool.d.ts.map +1 -0
- package/dist/cli/mcp/tools/cognitive-summary-tool.js +118 -0
- package/dist/cli/mcp/tools/cognitive-summary-tool.js.map +1 -0
- package/dist/cli/mcp/tools/gim-tools.d.ts +3 -0
- package/dist/cli/mcp/tools/gim-tools.d.ts.map +1 -0
- package/dist/cli/mcp/tools/gim-tools.js +78 -0
- package/dist/cli/mcp/tools/gim-tools.js.map +1 -0
- package/dist/cli/mcp/tools/git-history-analyze-tool.d.ts +3 -0
- package/dist/cli/mcp/tools/git-history-analyze-tool.d.ts.map +1 -0
- package/dist/cli/mcp/tools/git-history-analyze-tool.js +172 -0
- package/dist/cli/mcp/tools/git-history-analyze-tool.js.map +1 -0
- package/dist/cli/mcp/tools/git-history-evidence-pack-tool.d.ts +3 -0
- package/dist/cli/mcp/tools/git-history-evidence-pack-tool.d.ts.map +1 -0
- package/dist/cli/mcp/tools/git-history-evidence-pack-tool.js +87 -0
- package/dist/cli/mcp/tools/git-history-evidence-pack-tool.js.map +1 -0
- package/dist/cli/mcp/tools/git-history-tools.d.ts +3 -0
- package/dist/cli/mcp/tools/git-history-tools.d.ts.map +1 -0
- package/dist/cli/mcp/tools/git-history-tools.js +125 -0
- package/dist/cli/mcp/tools/git-history-tools.js.map +1 -0
- package/dist/cli/mcp/tools/metric-trend-tools.d.ts +8 -0
- package/dist/cli/mcp/tools/metric-trend-tools.d.ts.map +1 -0
- package/dist/cli/mcp/tools/metric-trend-tools.js +50 -0
- package/dist/cli/mcp/tools/metric-trend-tools.js.map +1 -0
- package/dist/cli/mcp/tools/package-metrics-tools.d.ts +7 -0
- package/dist/cli/mcp/tools/package-metrics-tools.d.ts.map +1 -0
- package/dist/cli/mcp/tools/package-metrics-tools.js +62 -0
- package/dist/cli/mcp/tools/package-metrics-tools.js.map +1 -0
- package/dist/cli/mcp/tools/test-analysis-tools.d.ts.map +1 -1
- package/dist/cli/mcp/tools/test-analysis-tools.js +75 -84
- package/dist/cli/mcp/tools/test-analysis-tools.js.map +1 -1
- package/dist/cli/metrics-history-writer.d.ts +16 -0
- package/dist/cli/metrics-history-writer.d.ts.map +1 -0
- package/dist/cli/metrics-history-writer.js +16 -0
- package/dist/cli/metrics-history-writer.js.map +1 -0
- package/dist/cli/processors/arch-json-provider-types.d.ts +17 -0
- package/dist/cli/processors/arch-json-provider-types.d.ts.map +1 -0
- package/dist/cli/processors/arch-json-provider-types.js +2 -0
- package/dist/cli/processors/arch-json-provider-types.js.map +1 -0
- package/dist/cli/processors/arch-json-provider.d.ts +9 -13
- package/dist/cli/processors/arch-json-provider.d.ts.map +1 -1
- package/dist/cli/processors/arch-json-provider.js +144 -117
- package/dist/cli/processors/arch-json-provider.js.map +1 -1
- package/dist/cli/processors/arch-json-utils.d.ts +4 -0
- package/dist/cli/processors/arch-json-utils.d.ts.map +1 -0
- package/dist/cli/processors/arch-json-utils.js +82 -0
- package/dist/cli/processors/arch-json-utils.js.map +1 -0
- package/dist/cli/processors/diagram-output-router.d.ts +3 -1
- package/dist/cli/processors/diagram-output-router.d.ts.map +1 -1
- package/dist/cli/processors/diagram-output-router.js +28 -3
- package/dist/cli/processors/diagram-output-router.js.map +1 -1
- package/dist/cli/processors/diagram-pipeline-runner.d.ts +20 -0
- package/dist/cli/processors/diagram-pipeline-runner.d.ts.map +1 -0
- package/dist/cli/processors/diagram-pipeline-runner.js +171 -0
- package/dist/cli/processors/diagram-pipeline-runner.js.map +1 -0
- package/dist/cli/processors/diagram-processor.d.ts +15 -8
- package/dist/cli/processors/diagram-processor.d.ts.map +1 -1
- package/dist/cli/processors/diagram-processor.js +21 -148
- package/dist/cli/processors/diagram-processor.js.map +1 -1
- package/dist/cli/processors/query-scope-collector.d.ts +11 -0
- package/dist/cli/processors/query-scope-collector.d.ts.map +1 -0
- package/dist/cli/processors/query-scope-collector.js +44 -0
- package/dist/cli/processors/query-scope-collector.js.map +1 -0
- package/dist/cli/processors/test-coverage-writer.d.ts +4 -0
- package/dist/cli/processors/test-coverage-writer.d.ts.map +1 -0
- package/dist/cli/processors/test-coverage-writer.js +22 -0
- package/dist/cli/processors/test-coverage-writer.js.map +1 -0
- package/dist/cli/processors/worker-pool-factory.d.ts +9 -0
- package/dist/cli/processors/worker-pool-factory.d.ts.map +1 -0
- package/dist/cli/processors/worker-pool-factory.js +31 -0
- package/dist/cli/processors/worker-pool-factory.js.map +1 -0
- package/dist/cli/{progress.d.ts → progress/index.d.ts} +1 -1
- package/dist/cli/progress/index.d.ts.map +1 -0
- package/dist/cli/{progress.js → progress/index.js} +1 -1
- package/dist/cli/progress/index.js.map +1 -0
- package/dist/cli/query/arch-index-builder.d.ts +1 -3
- package/dist/cli/query/arch-index-builder.d.ts.map +1 -1
- package/dist/cli/query/arch-index-builder.js +1 -125
- package/dist/cli/query/arch-index-builder.js.map +1 -1
- package/dist/cli/query/arch-index.d.ts +2 -16
- package/dist/cli/query/arch-index.d.ts.map +1 -1
- package/dist/cli/query/arch-index.js +1 -1
- package/dist/cli/query/arch-index.js.map +1 -1
- package/dist/cli/query/engine-loader.d.ts +9 -1
- package/dist/cli/query/engine-loader.d.ts.map +1 -1
- package/dist/cli/query/engine-loader.js +5 -1
- package/dist/cli/query/engine-loader.js.map +1 -1
- package/dist/cli/query/query-artifacts.d.ts.map +1 -1
- package/dist/cli/query/query-artifacts.js +2 -1
- package/dist/cli/query/query-artifacts.js.map +1 -1
- package/dist/cli/query/query-engine.d.ts +3 -105
- package/dist/cli/query/query-engine.d.ts.map +1 -1
- package/dist/cli/query/query-engine.js +1 -417
- package/dist/cli/query/query-engine.js.map +1 -1
- package/dist/cli/utils/java-project-structure-detector.js +1 -1
- package/dist/cli/utils/java-project-structure-detector.js.map +1 -1
- package/dist/cli/utils/kotlin-project-structure-detector.d.ts +7 -0
- package/dist/cli/utils/kotlin-project-structure-detector.d.ts.map +1 -0
- package/dist/cli/utils/kotlin-project-structure-detector.js +101 -0
- package/dist/cli/utils/kotlin-project-structure-detector.js.map +1 -0
- package/dist/cli/utils/output-path-resolver.d.ts.map +1 -1
- package/dist/cli/utils/output-path-resolver.js.map +1 -1
- package/dist/cli/utils/project-language-detector.d.ts +1 -1
- package/dist/cli/utils/project-language-detector.d.ts.map +1 -1
- package/dist/cli/utils/project-language-detector.js +5 -1
- package/dist/cli/utils/project-language-detector.js.map +1 -1
- package/dist/cli/utils/project-structure-detector.js +3 -3
- package/dist/cli/utils/project-structure-detector.js.map +1 -1
- package/dist/cli/utils/test-output-writer.d.ts +1 -1
- package/dist/cli/utils/test-output-writer.d.ts.map +1 -1
- package/dist/cli/utils/test-output-writer.js.map +1 -1
- package/dist/core/entity-type-registry.d.ts +10 -0
- package/dist/core/entity-type-registry.d.ts.map +1 -0
- package/dist/core/entity-type-registry.js +17 -0
- package/dist/core/entity-type-registry.js.map +1 -0
- package/dist/core/interfaces/dependency.d.ts +1 -1
- package/dist/core/interfaces/dependency.d.ts.map +1 -1
- package/dist/core/interfaces/index.d.ts +2 -0
- package/dist/core/interfaces/index.d.ts.map +1 -1
- package/dist/core/interfaces/index.js.map +1 -1
- package/dist/core/interfaces/language-plugin.d.ts +8 -1
- package/dist/core/interfaces/language-plugin.d.ts.map +1 -1
- package/dist/core/interfaces/parser-facade.d.ts +5 -0
- package/dist/core/interfaces/parser-facade.d.ts.map +1 -0
- package/dist/core/interfaces/parser-facade.js +2 -0
- package/dist/core/interfaces/parser-facade.js.map +1 -0
- package/dist/core/interfaces/renderer-facade.d.ts +8 -0
- package/dist/core/interfaces/renderer-facade.d.ts.map +1 -0
- package/dist/core/interfaces/renderer-facade.js +2 -0
- package/dist/core/interfaces/renderer-facade.js.map +1 -0
- package/dist/core/interfaces/validation.d.ts.map +1 -1
- package/dist/core/plugin-registry.d.ts.map +1 -1
- package/dist/core/plugin-registry.js +2 -0
- package/dist/core/plugin-registry.js.map +1 -1
- package/dist/core/query/arch-index-builder.d.ts +4 -0
- package/dist/core/query/arch-index-builder.d.ts.map +1 -0
- package/dist/core/query/arch-index-builder.js +126 -0
- package/dist/core/query/arch-index-builder.js.map +1 -0
- package/dist/core/query/arch-index.d.ts +17 -0
- package/dist/core/query/arch-index.d.ts.map +1 -0
- package/dist/core/query/arch-index.js +2 -0
- package/dist/core/query/arch-index.js.map +1 -0
- package/dist/core/query/arch-metrics-cognitive.d.ts +32 -0
- package/dist/core/query/arch-metrics-cognitive.d.ts.map +1 -0
- package/dist/core/query/arch-metrics-cognitive.js +60 -0
- package/dist/core/query/arch-metrics-cognitive.js.map +1 -0
- package/dist/core/query/arch-metrics-quality.d.ts +24 -0
- package/dist/core/query/arch-metrics-quality.d.ts.map +1 -0
- package/dist/core/query/arch-metrics-quality.js +86 -0
- package/dist/core/query/arch-metrics-quality.js.map +1 -0
- package/dist/core/query/arch-metrics-structure.d.ts +43 -0
- package/dist/core/query/arch-metrics-structure.d.ts.map +1 -0
- package/dist/core/query/arch-metrics-structure.js +291 -0
- package/dist/core/query/arch-metrics-structure.js.map +1 -0
- package/dist/core/query/arch-metrics.d.ts +54 -0
- package/dist/core/query/arch-metrics.d.ts.map +1 -0
- package/dist/core/query/arch-metrics.js +42 -0
- package/dist/core/query/arch-metrics.js.map +1 -0
- package/dist/core/query/edge-list-serializer.d.ts +4 -0
- package/dist/core/query/edge-list-serializer.d.ts.map +1 -0
- package/dist/core/query/edge-list-serializer.js +24 -0
- package/dist/core/query/edge-list-serializer.js.map +1 -0
- package/dist/core/query/entity-query-service.d.ts +15 -0
- package/dist/core/query/entity-query-service.d.ts.map +1 -0
- package/dist/core/query/entity-query-service.js +51 -0
- package/dist/core/query/entity-query-service.js.map +1 -0
- package/dist/core/query/extension-accessor.d.ts +15 -0
- package/dist/core/query/extension-accessor.d.ts.map +1 -0
- package/dist/core/query/extension-accessor.js +28 -0
- package/dist/core/query/extension-accessor.js.map +1 -0
- package/dist/core/query/index.d.ts +8 -0
- package/dist/core/query/index.d.ts.map +1 -0
- package/dist/core/query/index.js +6 -0
- package/dist/core/query/index.js.map +1 -0
- package/dist/core/query/output-scope-filter.d.ts +6 -0
- package/dist/core/query/output-scope-filter.d.ts.map +1 -0
- package/dist/core/query/output-scope-filter.js +45 -0
- package/dist/core/query/output-scope-filter.js.map +1 -0
- package/dist/core/query/query-engine.d.ts +116 -0
- package/dist/core/query/query-engine.d.ts.map +1 -0
- package/dist/core/query/query-engine.js +105 -0
- package/dist/core/query/query-engine.js.map +1 -0
- package/dist/core/query/relation-query-service.d.ts +21 -0
- package/dist/core/query/relation-query-service.d.ts.map +1 -0
- package/dist/core/query/relation-query-service.js +124 -0
- package/dist/core/query/relation-query-service.js.map +1 -0
- package/dist/mermaid/auto-repair.d.ts +1 -1
- package/dist/mermaid/auto-repair.d.ts.map +1 -1
- package/dist/mermaid/auto-repair.js +6 -6
- package/dist/mermaid/auto-repair.js.map +1 -1
- package/dist/mermaid/cpp-package-flowchart-generator.js +1 -1
- package/dist/mermaid/cpp-package-flowchart-generator.js.map +1 -1
- package/dist/mermaid/diagram-generator.d.ts +2 -1
- package/dist/mermaid/diagram-generator.d.ts.map +1 -1
- package/dist/mermaid/diagram-generator.js +17 -16
- package/dist/mermaid/diagram-generator.js.map +1 -1
- package/dist/mermaid/generator-formatting.d.ts +1 -1
- package/dist/mermaid/generator-formatting.d.ts.map +1 -1
- package/dist/mermaid/generator-formatting.js +2 -0
- package/dist/mermaid/generator-formatting.js.map +1 -1
- package/dist/mermaid/generator-validation.d.ts.map +1 -1
- package/dist/mermaid/generator-validation.js.map +1 -1
- package/dist/mermaid/generator.d.ts +5 -10
- package/dist/mermaid/generator.d.ts.map +1 -1
- package/dist/mermaid/generator.js +210 -227
- package/dist/mermaid/generator.js.map +1 -1
- package/dist/mermaid/grouper.d.ts.map +1 -1
- package/dist/mermaid/grouper.js.map +1 -1
- package/dist/mermaid/renderer.d.ts.map +1 -1
- package/dist/mermaid/renderer.js +1 -1
- package/dist/mermaid/renderer.js.map +1 -1
- package/dist/mermaid/test-coverage-renderer.d.ts +1 -1
- package/dist/mermaid/test-coverage-renderer.d.ts.map +1 -1
- package/dist/mermaid/test-coverage-renderer.js +18 -12
- package/dist/mermaid/test-coverage-renderer.js.map +1 -1
- package/dist/mermaid/ts-module-graph-renderer.d.ts +6 -2
- package/dist/mermaid/ts-module-graph-renderer.d.ts.map +1 -1
- package/dist/mermaid/ts-module-graph-renderer.js +49 -2
- package/dist/mermaid/ts-module-graph-renderer.js.map +1 -1
- package/dist/mermaid/validator-quality.js +1 -1
- package/dist/mermaid/validator-quality.js.map +1 -1
- package/dist/mermaid/validator-render.js +1 -1
- package/dist/mermaid/validator-render.js.map +1 -1
- package/dist/parser/archjson-aggregator.d.ts +1 -0
- package/dist/parser/archjson-aggregator.d.ts.map +1 -1
- package/dist/parser/archjson-aggregator.js +38 -8
- package/dist/parser/archjson-aggregator.js.map +1 -1
- package/dist/parser/call-edge-extractor.d.ts +13 -0
- package/dist/parser/call-edge-extractor.d.ts.map +1 -0
- package/dist/parser/call-edge-extractor.js +70 -0
- package/dist/parser/call-edge-extractor.js.map +1 -0
- package/dist/parser/metrics-calculator.d.ts.map +1 -1
- package/dist/parser/metrics-calculator.js +2 -1
- package/dist/parser/metrics-calculator.js.map +1 -1
- package/dist/parser/parallel-parser.d.ts +12 -1
- package/dist/parser/parallel-parser.d.ts.map +1 -1
- package/dist/parser/parallel-parser.js +80 -37
- package/dist/parser/parallel-parser.js.map +1 -1
- package/dist/parser/parse-worker-pool.d.ts +59 -0
- package/dist/parser/parse-worker-pool.d.ts.map +1 -0
- package/dist/parser/parse-worker-pool.js +170 -0
- package/dist/parser/parse-worker-pool.js.map +1 -0
- package/dist/parser/parse-worker.d.ts +2 -0
- package/dist/parser/parse-worker.d.ts.map +1 -0
- package/dist/parser/parse-worker.js +71 -0
- package/dist/parser/parse-worker.js.map +1 -0
- package/dist/parser/process-parse-worker-pools.d.ts +18 -0
- package/dist/parser/process-parse-worker-pools.d.ts.map +1 -0
- package/dist/parser/process-parse-worker-pools.js +31 -0
- package/dist/parser/process-parse-worker-pools.js.map +1 -0
- package/dist/parser/relation-extractor.d.ts +1 -0
- package/dist/parser/relation-extractor.d.ts.map +1 -1
- package/dist/parser/relation-extractor.js +84 -4
- package/dist/parser/relation-extractor.js.map +1 -1
- package/dist/parser/typescript-parser.d.ts +2 -0
- package/dist/parser/typescript-parser.d.ts.map +1 -1
- package/dist/parser/typescript-parser.js +44 -5
- package/dist/parser/typescript-parser.js.map +1 -1
- package/dist/plugins/cpp/archjson-mapper.d.ts.map +1 -1
- package/dist/plugins/cpp/archjson-mapper.js.map +1 -1
- package/dist/plugins/cpp/builders/class-builder.d.ts +2 -2
- package/dist/plugins/cpp/builders/class-builder.d.ts.map +1 -1
- package/dist/plugins/cpp/builders/class-builder.js +6 -1
- package/dist/plugins/cpp/builders/class-builder.js.map +1 -1
- package/dist/plugins/cpp/index.d.ts +7 -4
- package/dist/plugins/cpp/index.d.ts.map +1 -1
- package/dist/plugins/cpp/index.js +47 -9
- package/dist/plugins/cpp/index.js.map +1 -1
- package/dist/plugins/cpp/tree-sitter-bridge.d.ts +3 -2
- package/dist/plugins/cpp/tree-sitter-bridge.d.ts.map +1 -1
- package/dist/plugins/cpp/tree-sitter-bridge.js +27 -22
- package/dist/plugins/cpp/tree-sitter-bridge.js.map +1 -1
- package/dist/plugins/golang/archjson-mapper.d.ts +3 -1
- package/dist/plugins/golang/archjson-mapper.d.ts.map +1 -1
- package/dist/plugins/golang/archjson-mapper.js +56 -1
- package/dist/plugins/golang/archjson-mapper.js.map +1 -1
- package/dist/plugins/golang/atlas/behavior-analyzer.d.ts +2 -1
- package/dist/plugins/golang/atlas/behavior-analyzer.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/behavior-analyzer.js +2 -2
- package/dist/plugins/golang/atlas/behavior-analyzer.js.map +1 -1
- package/dist/plugins/golang/atlas/builders/capability-graph-builder.d.ts +5 -1
- package/dist/plugins/golang/atlas/builders/capability-graph-builder.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/builders/capability-graph-builder.js +43 -1
- package/dist/plugins/golang/atlas/builders/capability-graph-builder.js.map +1 -1
- package/dist/plugins/golang/atlas/builders/flow-graph-builder.d.ts +3 -0
- package/dist/plugins/golang/atlas/builders/flow-graph-builder.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/builders/flow-graph-builder.js +166 -6
- package/dist/plugins/golang/atlas/builders/flow-graph-builder.js.map +1 -1
- package/dist/plugins/golang/atlas/builders/goroutine-topology-builder.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/builders/goroutine-topology-builder.js +12 -5
- package/dist/plugins/golang/atlas/builders/goroutine-topology-builder.js.map +1 -1
- package/dist/plugins/golang/atlas/builders/package-graph-builder.js +5 -5
- package/dist/plugins/golang/atlas/builders/package-graph-builder.js.map +1 -1
- package/dist/plugins/golang/atlas/framework-detector.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/framework-detector.js +2 -0
- package/dist/plugins/golang/atlas/framework-detector.js.map +1 -1
- package/dist/plugins/golang/atlas/go-mod-resolver.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/go-mod-resolver.js +3 -3
- package/dist/plugins/golang/atlas/go-mod-resolver.js.map +1 -1
- package/dist/plugins/golang/atlas/renderers/atlas-renderer.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/renderers/atlas-renderer.js +32 -2
- package/dist/plugins/golang/atlas/renderers/atlas-renderer.js.map +1 -1
- package/dist/plugins/golang/atlas/renderers/capability-mermaid-template.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/renderers/capability-mermaid-template.js +16 -5
- package/dist/plugins/golang/atlas/renderers/capability-mermaid-template.js.map +1 -1
- package/dist/plugins/golang/atlas/renderers/flow-mermaid-template.js.map +1 -1
- package/dist/plugins/golang/atlas/renderers/goroutine-mermaid-template.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/renderers/goroutine-mermaid-template.js.map +1 -1
- package/dist/plugins/golang/atlas/renderers/mermaid-templates.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/renderers/mermaid-templates.js.map +1 -1
- package/dist/plugins/golang/atlas/renderers/package-mermaid-template.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/renderers/package-mermaid-template.js +5 -5
- package/dist/plugins/golang/atlas/renderers/package-mermaid-template.js.map +1 -1
- package/dist/plugins/golang/atlas/renderers/template-shared.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/renderers/template-shared.js.map +1 -1
- package/dist/plugins/golang/atlas/types.d.ts +9 -3
- package/dist/plugins/golang/atlas/types.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/types.js +1 -1
- package/dist/plugins/golang/atlas/types.js.map +1 -1
- package/dist/plugins/golang/builders/function-builder.d.ts +19 -0
- package/dist/plugins/golang/builders/function-builder.d.ts.map +1 -0
- package/dist/plugins/golang/builders/function-builder.js +206 -0
- package/dist/plugins/golang/builders/function-builder.js.map +1 -0
- package/dist/plugins/golang/builders/goroutine-builder.d.ts +11 -0
- package/dist/plugins/golang/builders/goroutine-builder.d.ts.map +1 -0
- package/dist/plugins/golang/builders/goroutine-builder.js +147 -0
- package/dist/plugins/golang/builders/goroutine-builder.js.map +1 -0
- package/dist/plugins/golang/builders/interface-builder.d.ts +9 -0
- package/dist/plugins/golang/builders/interface-builder.d.ts.map +1 -0
- package/dist/plugins/golang/builders/interface-builder.js +126 -0
- package/dist/plugins/golang/builders/interface-builder.js.map +1 -0
- package/dist/plugins/golang/builders/node-utils.d.ts +8 -0
- package/dist/plugins/golang/builders/node-utils.d.ts.map +1 -0
- package/dist/plugins/golang/builders/node-utils.js +18 -0
- package/dist/plugins/golang/builders/node-utils.js.map +1 -0
- package/dist/plugins/golang/builders/struct-builder.d.ts +12 -0
- package/dist/plugins/golang/builders/struct-builder.d.ts.map +1 -0
- package/dist/plugins/golang/builders/struct-builder.js +81 -0
- package/dist/plugins/golang/builders/struct-builder.js.map +1 -0
- package/dist/plugins/golang/go-atlas-adapter.d.ts +11 -0
- package/dist/plugins/golang/go-atlas-adapter.d.ts.map +1 -0
- package/dist/plugins/golang/go-atlas-adapter.js +47 -0
- package/dist/plugins/golang/go-atlas-adapter.js.map +1 -0
- package/dist/plugins/golang/go-atlas-coordinator.d.ts +12 -0
- package/dist/plugins/golang/go-atlas-coordinator.d.ts.map +1 -0
- package/dist/plugins/golang/go-atlas-coordinator.js +76 -0
- package/dist/plugins/golang/go-atlas-coordinator.js.map +1 -0
- package/dist/plugins/golang/go-mod-reader.d.ts +2 -0
- package/dist/plugins/golang/go-mod-reader.d.ts.map +1 -0
- package/dist/plugins/golang/go-mod-reader.js +12 -0
- package/dist/plugins/golang/go-mod-reader.js.map +1 -0
- package/dist/plugins/golang/go-parse-coordinator.d.ts +31 -0
- package/dist/plugins/golang/go-parse-coordinator.d.ts.map +1 -0
- package/dist/plugins/golang/go-parse-coordinator.js +175 -0
- package/dist/plugins/golang/go-parse-coordinator.js.map +1 -0
- package/dist/plugins/golang/go-test-analyzer.d.ts +10 -0
- package/dist/plugins/golang/go-test-analyzer.d.ts.map +1 -0
- package/dist/plugins/golang/go-test-analyzer.js +90 -0
- package/dist/plugins/golang/go-test-analyzer.js.map +1 -0
- package/dist/plugins/golang/gopls-client.d.ts +31 -2
- package/dist/plugins/golang/gopls-client.d.ts.map +1 -1
- package/dist/plugins/golang/gopls-client.js +234 -36
- package/dist/plugins/golang/gopls-client.js.map +1 -1
- package/dist/plugins/golang/gopls-interface-resolver.d.ts +32 -0
- package/dist/plugins/golang/gopls-interface-resolver.d.ts.map +1 -0
- package/dist/plugins/golang/gopls-interface-resolver.js +80 -0
- package/dist/plugins/golang/gopls-interface-resolver.js.map +1 -0
- package/dist/plugins/golang/index.d.ts +15 -18
- package/dist/plugins/golang/index.d.ts.map +1 -1
- package/dist/plugins/golang/index.js +59 -327
- package/dist/plugins/golang/index.js.map +1 -1
- package/dist/plugins/golang/interface-matcher.d.ts.map +1 -1
- package/dist/plugins/golang/interface-matcher.js +32 -30
- package/dist/plugins/golang/interface-matcher.js.map +1 -1
- package/dist/plugins/golang/tree-sitter-bridge.d.ts +7 -26
- package/dist/plugins/golang/tree-sitter-bridge.d.ts.map +1 -1
- package/dist/plugins/golang/tree-sitter-bridge.js +36 -544
- package/dist/plugins/golang/tree-sitter-bridge.js.map +1 -1
- package/dist/plugins/golang/types.d.ts +5 -0
- package/dist/plugins/golang/types.d.ts.map +1 -1
- package/dist/plugins/java/archjson-mapper.d.ts +3 -1
- package/dist/plugins/java/archjson-mapper.d.ts.map +1 -1
- package/dist/plugins/java/archjson-mapper.js +123 -0
- package/dist/plugins/java/archjson-mapper.js.map +1 -1
- package/dist/plugins/java/dependency-extractor.js +2 -2
- package/dist/plugins/java/dependency-extractor.js.map +1 -1
- package/dist/plugins/java/index.d.ts +6 -2
- package/dist/plugins/java/index.d.ts.map +1 -1
- package/dist/plugins/java/index.js +85 -17
- package/dist/plugins/java/index.js.map +1 -1
- package/dist/plugins/java/maven-crossmodule-parser.d.ts +9 -0
- package/dist/plugins/java/maven-crossmodule-parser.d.ts.map +1 -0
- package/dist/plugins/java/maven-crossmodule-parser.js +54 -0
- package/dist/plugins/java/maven-crossmodule-parser.js.map +1 -0
- package/dist/plugins/java/tree-sitter-bridge.d.ts +5 -2
- package/dist/plugins/java/tree-sitter-bridge.d.ts.map +1 -1
- package/dist/plugins/java/tree-sitter-bridge.js +103 -38
- package/dist/plugins/java/tree-sitter-bridge.js.map +1 -1
- package/dist/plugins/java/types.d.ts +7 -0
- package/dist/plugins/java/types.d.ts.map +1 -1
- package/dist/plugins/kotlin/archjson-mapper.d.ts +12 -0
- package/dist/plugins/kotlin/archjson-mapper.d.ts.map +1 -0
- package/dist/plugins/kotlin/archjson-mapper.js +157 -0
- package/dist/plugins/kotlin/archjson-mapper.js.map +1 -0
- package/dist/plugins/kotlin/builders/class-builder.d.ts +27 -0
- package/dist/plugins/kotlin/builders/class-builder.d.ts.map +1 -0
- package/dist/plugins/kotlin/builders/class-builder.js +366 -0
- package/dist/plugins/kotlin/builders/class-builder.js.map +1 -0
- package/dist/plugins/kotlin/builders/function-builder.d.ts +16 -0
- package/dist/plugins/kotlin/builders/function-builder.d.ts.map +1 -0
- package/dist/plugins/kotlin/builders/function-builder.js +172 -0
- package/dist/plugins/kotlin/builders/function-builder.js.map +1 -0
- package/dist/plugins/kotlin/builders/import-resolver.d.ts +5 -0
- package/dist/plugins/kotlin/builders/import-resolver.d.ts.map +1 -0
- package/dist/plugins/kotlin/builders/import-resolver.js +10 -0
- package/dist/plugins/kotlin/builders/import-resolver.js.map +1 -0
- package/dist/plugins/kotlin/dependency-extractor.d.ts +13 -0
- package/dist/plugins/kotlin/dependency-extractor.d.ts.map +1 -0
- package/dist/plugins/kotlin/dependency-extractor.js +104 -0
- package/dist/plugins/kotlin/dependency-extractor.js.map +1 -0
- package/dist/plugins/kotlin/index.d.ts +29 -0
- package/dist/plugins/kotlin/index.d.ts.map +1 -0
- package/dist/plugins/kotlin/index.js +246 -0
- package/dist/plugins/kotlin/index.js.map +1 -0
- package/dist/plugins/kotlin/kotlin-type-extractor.d.ts +7 -0
- package/dist/plugins/kotlin/kotlin-type-extractor.d.ts.map +1 -0
- package/dist/plugins/kotlin/kotlin-type-extractor.js +96 -0
- package/dist/plugins/kotlin/kotlin-type-extractor.js.map +1 -0
- package/dist/plugins/kotlin/tree-sitter-bridge.d.ts +15 -0
- package/dist/plugins/kotlin/tree-sitter-bridge.d.ts.map +1 -0
- package/dist/plugins/kotlin/tree-sitter-bridge.js +78 -0
- package/dist/plugins/kotlin/tree-sitter-bridge.js.map +1 -0
- package/dist/plugins/kotlin/types.d.ts +48 -0
- package/dist/plugins/kotlin/types.d.ts.map +1 -0
- package/dist/plugins/kotlin/types.js +2 -0
- package/dist/plugins/kotlin/types.js.map +1 -0
- package/dist/plugins/python/archjson-mapper.d.ts +7 -2
- package/dist/plugins/python/archjson-mapper.d.ts.map +1 -1
- package/dist/plugins/python/archjson-mapper.js +117 -10
- package/dist/plugins/python/archjson-mapper.js.map +1 -1
- package/dist/plugins/python/dependency-extractor.js +1 -1
- package/dist/plugins/python/dependency-extractor.js.map +1 -1
- package/dist/plugins/python/import-extractor.d.ts +11 -0
- package/dist/plugins/python/import-extractor.d.ts.map +1 -0
- package/dist/plugins/python/import-extractor.js +67 -0
- package/dist/plugins/python/import-extractor.js.map +1 -0
- package/dist/plugins/python/index.d.ts +8 -3
- package/dist/plugins/python/index.d.ts.map +1 -1
- package/dist/plugins/python/index.js +98 -12
- package/dist/plugins/python/index.js.map +1 -1
- package/dist/plugins/python/tree-sitter-bridge.d.ts +5 -2
- package/dist/plugins/python/tree-sitter-bridge.d.ts.map +1 -1
- package/dist/plugins/python/tree-sitter-bridge.js +117 -49
- package/dist/plugins/python/tree-sitter-bridge.js.map +1 -1
- package/dist/plugins/python/types.d.ts +6 -0
- package/dist/plugins/python/types.d.ts.map +1 -1
- package/dist/plugins/shared/mapper-utils.d.ts +1 -1
- package/dist/plugins/shared/mapper-utils.d.ts.map +1 -1
- package/dist/plugins/shared/mapper-utils.js.map +1 -1
- package/dist/plugins/shared/native-parser-backend.d.ts +33 -0
- package/dist/plugins/shared/native-parser-backend.d.ts.map +1 -0
- package/dist/plugins/shared/native-parser-backend.js +84 -0
- package/dist/plugins/shared/native-parser-backend.js.map +1 -0
- package/dist/plugins/shared/parser-backend.d.ts +13 -0
- package/dist/plugins/shared/parser-backend.d.ts.map +1 -0
- package/dist/plugins/shared/parser-backend.js +38 -0
- package/dist/plugins/shared/parser-backend.js.map +1 -0
- package/dist/plugins/shared/parser-runtime.d.ts +32 -0
- package/dist/plugins/shared/parser-runtime.d.ts.map +1 -0
- package/dist/plugins/shared/parser-runtime.js +152 -0
- package/dist/plugins/shared/parser-runtime.js.map +1 -0
- package/dist/plugins/shared/plugin-factory.d.ts +5 -0
- package/dist/plugins/shared/plugin-factory.d.ts.map +1 -0
- package/dist/plugins/shared/plugin-factory.js +27 -0
- package/dist/plugins/shared/plugin-factory.js.map +1 -0
- package/dist/plugins/shared/syntax-tree.d.ts +32 -0
- package/dist/plugins/shared/syntax-tree.d.ts.map +1 -0
- package/dist/plugins/shared/syntax-tree.js +2 -0
- package/dist/plugins/shared/syntax-tree.js.map +1 -0
- package/dist/plugins/shared/wasm-parser-backend.d.ts +18 -0
- package/dist/plugins/shared/wasm-parser-backend.d.ts.map +1 -0
- package/dist/plugins/shared/wasm-parser-backend.js +118 -0
- package/dist/plugins/shared/wasm-parser-backend.js.map +1 -0
- package/dist/plugins/typescript/builders/module-graph-builder.d.ts +2 -2
- package/dist/plugins/typescript/builders/module-graph-builder.d.ts.map +1 -1
- package/dist/plugins/typescript/builders/module-graph-builder.js +31 -9
- package/dist/plugins/typescript/builders/module-graph-builder.js.map +1 -1
- package/dist/plugins/typescript/index.d.ts +3 -2
- package/dist/plugins/typescript/index.d.ts.map +1 -1
- package/dist/plugins/typescript/index.js +116 -10
- package/dist/plugins/typescript/index.js.map +1 -1
- package/dist/plugins/typescript/typescript-analyzer.d.ts +2 -2
- package/dist/plugins/typescript/typescript-analyzer.d.ts.map +1 -1
- package/dist/plugins/typescript/typescript-analyzer.js +1 -1
- package/dist/plugins/typescript/typescript-analyzer.js.map +1 -1
- package/dist/types/cognitive-summary.d.ts +20 -0
- package/dist/types/cognitive-summary.d.ts.map +1 -0
- package/dist/types/cognitive-summary.js +2 -0
- package/dist/types/cognitive-summary.js.map +1 -0
- package/dist/types/config-cli.d.ts +4 -0
- package/dist/types/config-cli.d.ts.map +1 -1
- package/dist/types/config-global.d.ts +10 -0
- package/dist/types/config-global.d.ts.map +1 -1
- package/dist/types/config.d.ts +1 -0
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/config.js +1 -0
- package/dist/types/config.js.map +1 -1
- package/dist/types/{extensions.d.ts → extensions/go-atlas.d.ts} +5 -106
- package/dist/types/extensions/go-atlas.d.ts.map +1 -0
- package/dist/types/extensions/go-atlas.js +2 -0
- package/dist/types/extensions/go-atlas.js.map +1 -0
- package/dist/types/extensions/index.d.ts +15 -0
- package/dist/types/extensions/index.d.ts.map +1 -0
- package/dist/types/extensions/index.js +5 -0
- package/dist/types/extensions/index.js.map +1 -0
- package/dist/types/extensions/project-semantics.d.ts +55 -0
- package/dist/types/extensions/project-semantics.d.ts.map +1 -0
- package/dist/types/extensions/project-semantics.js +126 -0
- package/dist/types/extensions/project-semantics.js.map +1 -0
- package/dist/types/extensions/test-analysis.d.ts +68 -0
- package/dist/types/extensions/test-analysis.d.ts.map +1 -0
- package/dist/types/extensions/test-analysis.js +2 -0
- package/dist/types/extensions/test-analysis.js.map +1 -0
- package/dist/types/extensions/ts-analysis.d.ts +33 -0
- package/dist/types/extensions/ts-analysis.d.ts.map +1 -0
- package/dist/types/extensions/ts-analysis.js +2 -0
- package/dist/types/extensions/ts-analysis.js.map +1 -0
- package/dist/types/fitness-rules.d.ts +34 -0
- package/dist/types/fitness-rules.d.ts.map +1 -0
- package/dist/types/fitness-rules.js +2 -0
- package/dist/types/fitness-rules.js.map +1 -0
- package/dist/types/git-history.d.ts +68 -0
- package/dist/types/git-history.d.ts.map +1 -0
- package/dist/types/git-history.js +2 -0
- package/dist/types/git-history.js.map +1 -0
- package/dist/types/index.d.ts +38 -29
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/metric-vector.d.ts +17 -0
- package/dist/types/metric-vector.d.ts.map +1 -0
- package/dist/types/metric-vector.js +2 -0
- package/dist/types/metric-vector.js.map +1 -0
- package/dist/types/parser-runtime.d.ts +4 -0
- package/dist/types/parser-runtime.d.ts.map +1 -0
- package/dist/types/parser-runtime.js +5 -0
- package/dist/types/parser-runtime.js.map +1 -0
- package/dist/utils/cli-detector.js +2 -2
- package/dist/utils/cli-detector.js.map +1 -1
- package/dist/utils/tsconfig-finder.d.ts.map +1 -1
- package/dist/utils/tsconfig-finder.js +6 -1
- package/dist/utils/tsconfig-finder.js.map +1 -1
- package/package.json +32 -16
- package/dist/cli/cache-manager.d.ts.map +0 -1
- package/dist/cli/cache-manager.js.map +0 -1
- package/dist/cli/error-handler.d.ts +0 -15
- package/dist/cli/error-handler.d.ts.map +0 -1
- package/dist/cli/error-handler.js.map +0 -1
- package/dist/cli/errors.d.ts.map +0 -1
- package/dist/cli/errors.js +0 -31
- package/dist/cli/errors.js.map +0 -1
- package/dist/cli/progress.d.ts.map +0 -1
- package/dist/cli/progress.js.map +0 -1
- package/dist/types/extensions.d.ts.map +0 -1
- package/dist/types/extensions.js +0 -4
- package/dist/types/extensions.js.map +0 -1
- package/node_modules/node-addon-api/LICENSE.md +0 -9
- package/node_modules/node-addon-api/README.md +0 -95
- package/node_modules/node-addon-api/common.gypi +0 -21
- package/node_modules/node-addon-api/except.gypi +0 -25
- package/node_modules/node-addon-api/index.js +0 -14
- package/node_modules/node-addon-api/napi-inl.deprecated.h +0 -186
- package/node_modules/node-addon-api/napi-inl.h +0 -7033
- package/node_modules/node-addon-api/napi.h +0 -3309
- package/node_modules/node-addon-api/node_addon_api.gyp +0 -42
- package/node_modules/node-addon-api/node_api.gyp +0 -9
- package/node_modules/node-addon-api/noexcept.gypi +0 -26
- package/node_modules/node-addon-api/nothing.c +0 -0
- package/node_modules/node-addon-api/package-support.json +0 -21
- package/node_modules/node-addon-api/package.json +0 -480
- package/node_modules/node-addon-api/tools/README.md +0 -73
- package/node_modules/node-addon-api/tools/check-napi.js +0 -99
- package/node_modules/node-addon-api/tools/clang-format.js +0 -71
- package/node_modules/node-addon-api/tools/conversion.js +0 -301
- package/node_modules/node-gyp-build/README.md +0 -58
- package/node_modules/node-gyp-build/SECURITY.md +0 -5
- package/node_modules/node-gyp-build/bin.js +0 -84
- package/node_modules/node-gyp-build/build-test.js +0 -19
- package/node_modules/node-gyp-build/index.js +0 -6
- package/node_modules/node-gyp-build/node-gyp-build.js +0 -207
- package/node_modules/node-gyp-build/optional.js +0 -7
- package/node_modules/node-gyp-build/package.json +0 -43
- package/node_modules/tree-sitter/README.md +0 -128
- package/node_modules/tree-sitter/binding.gyp +0 -80
- package/node_modules/tree-sitter/index.js +0 -916
- package/node_modules/tree-sitter/package.json +0 -76
- package/node_modules/tree-sitter/prebuilds/linux-x64/node.napi.glibc.node +0 -0
- package/node_modules/tree-sitter/src/addon_data.h +0 -47
- package/node_modules/tree-sitter/src/binding.cc +0 -35
- package/node_modules/tree-sitter/src/conversions.cc +0 -140
- package/node_modules/tree-sitter/src/conversions.h +0 -22
- package/node_modules/tree-sitter/src/language.cc +0 -106
- package/node_modules/tree-sitter/src/language.h +0 -17
- package/node_modules/tree-sitter/src/logger.cc +0 -70
- package/node_modules/tree-sitter/src/logger.h +0 -19
- package/node_modules/tree-sitter/src/lookaheaditerator.cc +0 -122
- package/node_modules/tree-sitter/src/lookaheaditerator.h +0 -33
- package/node_modules/tree-sitter/src/node.cc +0 -1088
- package/node_modules/tree-sitter/src/node.h +0 -30
- package/node_modules/tree-sitter/src/parser.cc +0 -306
- package/node_modules/tree-sitter/src/parser.h +0 -35
- package/node_modules/tree-sitter/src/query.cc +0 -397
- package/node_modules/tree-sitter/src/query.h +0 -40
- package/node_modules/tree-sitter/src/tree.cc +0 -316
- package/node_modules/tree-sitter/src/tree.h +0 -45
- package/node_modules/tree-sitter/src/tree_cursor.cc +0 -213
- package/node_modules/tree-sitter/src/tree_cursor.h +0 -52
- package/node_modules/tree-sitter/tree-sitter.d.ts +0 -1042
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/include/tree_sitter/api.h +0 -1478
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.c +0 -48
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.h +0 -41
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/array.h +0 -291
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/atomic.h +0 -68
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/clock.h +0 -146
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/error_costs.h +0 -11
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.c +0 -523
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.h +0 -36
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/host.h +0 -21
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.c +0 -293
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.h +0 -293
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/length.h +0 -52
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.c +0 -483
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.h +0 -54
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lib.c +0 -12
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/node.c +0 -875
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.c +0 -2293
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.h +0 -286
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/point.h +0 -48
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/portable/endian.h +0 -239
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/query.c +0 -4350
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reduce_action.h +0 -34
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reusable_node.h +0 -95
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.c +0 -911
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.h +0 -133
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.c +0 -1034
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.h +0 -399
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.c +0 -170
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.h +0 -31
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.c +0 -717
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.h +0 -48
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/ts_assert.h +0 -11
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ICU_SHA +0 -1
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/LICENSE +0 -414
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/README.md +0 -29
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ptypes.h +0 -1
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/umachine.h +0 -448
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/urename.h +0 -1
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf.h +0 -1
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf16.h +0 -733
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf8.h +0 -881
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode.h +0 -75
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib-symbols.txt +0 -24
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib.c +0 -113
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/wasm-stdlib.h +0 -1314
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.c +0 -1935
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.h +0 -31
- package/scripts/postinstall-tree-sitter.mjs +0 -28
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
#include "./language.h"
|
|
2
|
-
#include "./wasm_store.h"
|
|
3
|
-
#include "tree_sitter/api.h"
|
|
4
|
-
#include <string.h>
|
|
5
|
-
|
|
6
|
-
const TSLanguage *ts_language_copy(const TSLanguage *self) {
|
|
7
|
-
if (self && ts_language_is_wasm(self)) {
|
|
8
|
-
ts_wasm_language_retain(self);
|
|
9
|
-
}
|
|
10
|
-
return self;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
void ts_language_delete(const TSLanguage *self) {
|
|
14
|
-
if (self && ts_language_is_wasm(self)) {
|
|
15
|
-
ts_wasm_language_release(self);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
uint32_t ts_language_symbol_count(const TSLanguage *self) {
|
|
20
|
-
return self->symbol_count + self->alias_count;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
uint32_t ts_language_state_count(const TSLanguage *self) {
|
|
24
|
-
return self->state_count;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const TSSymbol *ts_language_supertypes(const TSLanguage *self, uint32_t *length) {
|
|
28
|
-
if (self->abi_version >= LANGUAGE_VERSION_WITH_RESERVED_WORDS) {
|
|
29
|
-
*length = self->supertype_count;
|
|
30
|
-
return self->supertype_symbols;
|
|
31
|
-
} else {
|
|
32
|
-
*length = 0;
|
|
33
|
-
return NULL;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
const TSSymbol *ts_language_subtypes(
|
|
38
|
-
const TSLanguage *self,
|
|
39
|
-
TSSymbol supertype,
|
|
40
|
-
uint32_t *length
|
|
41
|
-
) {
|
|
42
|
-
if (self->abi_version < LANGUAGE_VERSION_WITH_RESERVED_WORDS || !ts_language_symbol_metadata(self, supertype).supertype) {
|
|
43
|
-
*length = 0;
|
|
44
|
-
return NULL;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
TSMapSlice slice = self->supertype_map_slices[supertype];
|
|
48
|
-
*length = slice.length;
|
|
49
|
-
return &self->supertype_map_entries[slice.index];
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
uint32_t ts_language_version(const TSLanguage *self) {
|
|
53
|
-
return self->abi_version;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
uint32_t ts_language_abi_version(const TSLanguage *self) {
|
|
57
|
-
return self->abi_version;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const TSLanguageMetadata *ts_language_metadata(const TSLanguage *self) {
|
|
61
|
-
return self->abi_version >= LANGUAGE_VERSION_WITH_RESERVED_WORDS ? &self->metadata : NULL;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
const char *ts_language_name(const TSLanguage *self) {
|
|
65
|
-
return self->abi_version >= LANGUAGE_VERSION_WITH_RESERVED_WORDS ? self->name : NULL;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
uint32_t ts_language_field_count(const TSLanguage *self) {
|
|
69
|
-
return self->field_count;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
void ts_language_table_entry(
|
|
73
|
-
const TSLanguage *self,
|
|
74
|
-
TSStateId state,
|
|
75
|
-
TSSymbol symbol,
|
|
76
|
-
TableEntry *result
|
|
77
|
-
) {
|
|
78
|
-
if (symbol == ts_builtin_sym_error || symbol == ts_builtin_sym_error_repeat) {
|
|
79
|
-
result->action_count = 0;
|
|
80
|
-
result->is_reusable = false;
|
|
81
|
-
result->actions = NULL;
|
|
82
|
-
} else {
|
|
83
|
-
ts_assert(symbol < self->token_count);
|
|
84
|
-
uint32_t action_index = ts_language_lookup(self, state, symbol);
|
|
85
|
-
const TSParseActionEntry *entry = &self->parse_actions[action_index];
|
|
86
|
-
result->action_count = entry->entry.count;
|
|
87
|
-
result->is_reusable = entry->entry.reusable;
|
|
88
|
-
result->actions = (const TSParseAction *)(entry + 1);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
TSLexerMode ts_language_lex_mode_for_state(
|
|
93
|
-
const TSLanguage *self,
|
|
94
|
-
TSStateId state
|
|
95
|
-
) {
|
|
96
|
-
if (self->abi_version < 15) {
|
|
97
|
-
TSLexMode mode = ((const TSLexMode *)self->lex_modes)[state];
|
|
98
|
-
return (TSLexerMode) {
|
|
99
|
-
.lex_state = mode.lex_state,
|
|
100
|
-
.external_lex_state = mode.external_lex_state,
|
|
101
|
-
.reserved_word_set_id = 0,
|
|
102
|
-
};
|
|
103
|
-
} else {
|
|
104
|
-
return self->lex_modes[state];
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
bool ts_language_is_reserved_word(
|
|
109
|
-
const TSLanguage *self,
|
|
110
|
-
TSStateId state,
|
|
111
|
-
TSSymbol symbol
|
|
112
|
-
) {
|
|
113
|
-
TSLexerMode lex_mode = ts_language_lex_mode_for_state(self, state);
|
|
114
|
-
if (lex_mode.reserved_word_set_id > 0) {
|
|
115
|
-
unsigned start = lex_mode.reserved_word_set_id * self->max_reserved_word_set_size;
|
|
116
|
-
unsigned end = start + self->max_reserved_word_set_size;
|
|
117
|
-
for (unsigned i = start; i < end; i++) {
|
|
118
|
-
if (self->reserved_words[i] == symbol) return true;
|
|
119
|
-
if (self->reserved_words[i] == 0) break;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return false;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
TSSymbolMetadata ts_language_symbol_metadata(
|
|
126
|
-
const TSLanguage *self,
|
|
127
|
-
TSSymbol symbol
|
|
128
|
-
) {
|
|
129
|
-
if (symbol == ts_builtin_sym_error) {
|
|
130
|
-
return (TSSymbolMetadata) {.visible = true, .named = true};
|
|
131
|
-
} else if (symbol == ts_builtin_sym_error_repeat) {
|
|
132
|
-
return (TSSymbolMetadata) {.visible = false, .named = false};
|
|
133
|
-
} else {
|
|
134
|
-
return self->symbol_metadata[symbol];
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
TSSymbol ts_language_public_symbol(
|
|
139
|
-
const TSLanguage *self,
|
|
140
|
-
TSSymbol symbol
|
|
141
|
-
) {
|
|
142
|
-
if (symbol == ts_builtin_sym_error) return symbol;
|
|
143
|
-
return self->public_symbol_map[symbol];
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
TSStateId ts_language_next_state(
|
|
147
|
-
const TSLanguage *self,
|
|
148
|
-
TSStateId state,
|
|
149
|
-
TSSymbol symbol
|
|
150
|
-
) {
|
|
151
|
-
if (symbol == ts_builtin_sym_error || symbol == ts_builtin_sym_error_repeat) {
|
|
152
|
-
return 0;
|
|
153
|
-
} else if (symbol < self->token_count) {
|
|
154
|
-
uint32_t count;
|
|
155
|
-
const TSParseAction *actions = ts_language_actions(self, state, symbol, &count);
|
|
156
|
-
if (count > 0) {
|
|
157
|
-
TSParseAction action = actions[count - 1];
|
|
158
|
-
if (action.type == TSParseActionTypeShift) {
|
|
159
|
-
return action.shift.extra ? state : action.shift.state;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
return 0;
|
|
163
|
-
} else {
|
|
164
|
-
return ts_language_lookup(self, state, symbol);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
const char *ts_language_symbol_name(
|
|
169
|
-
const TSLanguage *self,
|
|
170
|
-
TSSymbol symbol
|
|
171
|
-
) {
|
|
172
|
-
if (symbol == ts_builtin_sym_error) {
|
|
173
|
-
return "ERROR";
|
|
174
|
-
} else if (symbol == ts_builtin_sym_error_repeat) {
|
|
175
|
-
return "_ERROR";
|
|
176
|
-
} else if (symbol < ts_language_symbol_count(self)) {
|
|
177
|
-
return self->symbol_names[symbol];
|
|
178
|
-
} else {
|
|
179
|
-
return NULL;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
TSSymbol ts_language_symbol_for_name(
|
|
184
|
-
const TSLanguage *self,
|
|
185
|
-
const char *string,
|
|
186
|
-
uint32_t length,
|
|
187
|
-
bool is_named
|
|
188
|
-
) {
|
|
189
|
-
if (!strncmp(string, "ERROR", length)) return ts_builtin_sym_error;
|
|
190
|
-
uint16_t count = (uint16_t)ts_language_symbol_count(self);
|
|
191
|
-
for (TSSymbol i = 0; i < count; i++) {
|
|
192
|
-
TSSymbolMetadata metadata = ts_language_symbol_metadata(self, i);
|
|
193
|
-
if ((!metadata.visible && !metadata.supertype) || metadata.named != is_named) continue;
|
|
194
|
-
const char *symbol_name = self->symbol_names[i];
|
|
195
|
-
if (!strncmp(symbol_name, string, length) && !symbol_name[length]) {
|
|
196
|
-
return self->public_symbol_map[i];
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
return 0;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
TSSymbolType ts_language_symbol_type(
|
|
203
|
-
const TSLanguage *self,
|
|
204
|
-
TSSymbol symbol
|
|
205
|
-
) {
|
|
206
|
-
TSSymbolMetadata metadata = ts_language_symbol_metadata(self, symbol);
|
|
207
|
-
if (metadata.named && metadata.visible) {
|
|
208
|
-
return TSSymbolTypeRegular;
|
|
209
|
-
} else if (metadata.visible) {
|
|
210
|
-
return TSSymbolTypeAnonymous;
|
|
211
|
-
} else if (metadata.supertype) {
|
|
212
|
-
return TSSymbolTypeSupertype;
|
|
213
|
-
} else {
|
|
214
|
-
return TSSymbolTypeAuxiliary;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
const char *ts_language_field_name_for_id(
|
|
219
|
-
const TSLanguage *self,
|
|
220
|
-
TSFieldId id
|
|
221
|
-
) {
|
|
222
|
-
uint32_t count = ts_language_field_count(self);
|
|
223
|
-
if (count && id <= count) {
|
|
224
|
-
return self->field_names[id];
|
|
225
|
-
} else {
|
|
226
|
-
return NULL;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
TSFieldId ts_language_field_id_for_name(
|
|
231
|
-
const TSLanguage *self,
|
|
232
|
-
const char *name,
|
|
233
|
-
uint32_t name_length
|
|
234
|
-
) {
|
|
235
|
-
uint16_t count = (uint16_t)ts_language_field_count(self);
|
|
236
|
-
for (TSSymbol i = 1; i < count + 1; i++) {
|
|
237
|
-
switch (strncmp(name, self->field_names[i], name_length)) {
|
|
238
|
-
case 0:
|
|
239
|
-
if (self->field_names[i][name_length] == 0) return i;
|
|
240
|
-
break;
|
|
241
|
-
case -1:
|
|
242
|
-
return 0;
|
|
243
|
-
default:
|
|
244
|
-
break;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
return 0;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
TSLookaheadIterator *ts_lookahead_iterator_new(const TSLanguage *self, TSStateId state) {
|
|
251
|
-
if (state >= self->state_count) return NULL;
|
|
252
|
-
LookaheadIterator *iterator = ts_malloc(sizeof(LookaheadIterator));
|
|
253
|
-
*iterator = ts_language_lookaheads(self, state);
|
|
254
|
-
return (TSLookaheadIterator *)iterator;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
void ts_lookahead_iterator_delete(TSLookaheadIterator *self) {
|
|
258
|
-
ts_free(self);
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
bool ts_lookahead_iterator_reset_state(TSLookaheadIterator * self, TSStateId state) {
|
|
262
|
-
LookaheadIterator *iterator = (LookaheadIterator *)self;
|
|
263
|
-
if (state >= iterator->language->state_count) return false;
|
|
264
|
-
*iterator = ts_language_lookaheads(iterator->language, state);
|
|
265
|
-
return true;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
const TSLanguage *ts_lookahead_iterator_language(const TSLookaheadIterator *self) {
|
|
269
|
-
const LookaheadIterator *iterator = (const LookaheadIterator *)self;
|
|
270
|
-
return iterator->language;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
bool ts_lookahead_iterator_reset(TSLookaheadIterator *self, const TSLanguage *language, TSStateId state) {
|
|
274
|
-
if (state >= language->state_count) return false;
|
|
275
|
-
LookaheadIterator *iterator = (LookaheadIterator *)self;
|
|
276
|
-
*iterator = ts_language_lookaheads(language, state);
|
|
277
|
-
return true;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
bool ts_lookahead_iterator_next(TSLookaheadIterator *self) {
|
|
281
|
-
LookaheadIterator *iterator = (LookaheadIterator *)self;
|
|
282
|
-
return ts_lookahead_iterator__next(iterator);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
TSSymbol ts_lookahead_iterator_current_symbol(const TSLookaheadIterator *self) {
|
|
286
|
-
const LookaheadIterator *iterator = (const LookaheadIterator *)self;
|
|
287
|
-
return iterator->symbol;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
const char *ts_lookahead_iterator_current_symbol_name(const TSLookaheadIterator *self) {
|
|
291
|
-
const LookaheadIterator *iterator = (const LookaheadIterator *)self;
|
|
292
|
-
return ts_language_symbol_name(iterator->language, iterator->symbol);
|
|
293
|
-
}
|
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
#ifndef TREE_SITTER_LANGUAGE_H_
|
|
2
|
-
#define TREE_SITTER_LANGUAGE_H_
|
|
3
|
-
|
|
4
|
-
#ifdef __cplusplus
|
|
5
|
-
extern "C" {
|
|
6
|
-
#endif
|
|
7
|
-
|
|
8
|
-
#include "./subtree.h"
|
|
9
|
-
#include "./parser.h"
|
|
10
|
-
|
|
11
|
-
#define ts_builtin_sym_error_repeat (ts_builtin_sym_error - 1)
|
|
12
|
-
|
|
13
|
-
#define LANGUAGE_VERSION_WITH_RESERVED_WORDS 15
|
|
14
|
-
#define LANGUAGE_VERSION_WITH_PRIMARY_STATES 14
|
|
15
|
-
|
|
16
|
-
typedef struct {
|
|
17
|
-
const TSParseAction *actions;
|
|
18
|
-
uint32_t action_count;
|
|
19
|
-
bool is_reusable;
|
|
20
|
-
} TableEntry;
|
|
21
|
-
|
|
22
|
-
typedef struct {
|
|
23
|
-
const TSLanguage *language;
|
|
24
|
-
const uint16_t *data;
|
|
25
|
-
const uint16_t *group_end;
|
|
26
|
-
TSStateId state;
|
|
27
|
-
uint16_t table_value;
|
|
28
|
-
uint16_t section_index;
|
|
29
|
-
uint16_t group_count;
|
|
30
|
-
bool is_small_state;
|
|
31
|
-
|
|
32
|
-
const TSParseAction *actions;
|
|
33
|
-
TSSymbol symbol;
|
|
34
|
-
TSStateId next_state;
|
|
35
|
-
uint16_t action_count;
|
|
36
|
-
} LookaheadIterator;
|
|
37
|
-
|
|
38
|
-
void ts_language_table_entry(const TSLanguage *self, TSStateId state, TSSymbol symbol, TableEntry *result);
|
|
39
|
-
TSLexerMode ts_language_lex_mode_for_state(const TSLanguage *self, TSStateId state);
|
|
40
|
-
bool ts_language_is_reserved_word(const TSLanguage *self, TSStateId state, TSSymbol symbol);
|
|
41
|
-
TSSymbolMetadata ts_language_symbol_metadata(const TSLanguage *self, TSSymbol symbol);
|
|
42
|
-
TSSymbol ts_language_public_symbol(const TSLanguage *self, TSSymbol symbol);
|
|
43
|
-
|
|
44
|
-
static inline const TSParseAction *ts_language_actions(
|
|
45
|
-
const TSLanguage *self,
|
|
46
|
-
TSStateId state,
|
|
47
|
-
TSSymbol symbol,
|
|
48
|
-
uint32_t *count
|
|
49
|
-
) {
|
|
50
|
-
TableEntry entry;
|
|
51
|
-
ts_language_table_entry(self, state, symbol, &entry);
|
|
52
|
-
*count = entry.action_count;
|
|
53
|
-
return entry.actions;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
static inline bool ts_language_has_reduce_action(
|
|
57
|
-
const TSLanguage *self,
|
|
58
|
-
TSStateId state,
|
|
59
|
-
TSSymbol symbol
|
|
60
|
-
) {
|
|
61
|
-
TableEntry entry;
|
|
62
|
-
ts_language_table_entry(self, state, symbol, &entry);
|
|
63
|
-
return entry.action_count > 0 && entry.actions[0].type == TSParseActionTypeReduce;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// Lookup the table value for a given symbol and state.
|
|
67
|
-
//
|
|
68
|
-
// For non-terminal symbols, the table value represents a successor state.
|
|
69
|
-
// For terminal symbols, it represents an index in the actions table.
|
|
70
|
-
// For 'large' parse states, this is a direct lookup. For 'small' parse
|
|
71
|
-
// states, this requires searching through the symbol groups to find
|
|
72
|
-
// the given symbol.
|
|
73
|
-
static inline uint16_t ts_language_lookup(
|
|
74
|
-
const TSLanguage *self,
|
|
75
|
-
TSStateId state,
|
|
76
|
-
TSSymbol symbol
|
|
77
|
-
) {
|
|
78
|
-
if (state >= self->large_state_count) {
|
|
79
|
-
uint32_t index = self->small_parse_table_map[state - self->large_state_count];
|
|
80
|
-
const uint16_t *data = &self->small_parse_table[index];
|
|
81
|
-
uint16_t group_count = *(data++);
|
|
82
|
-
for (unsigned i = 0; i < group_count; i++) {
|
|
83
|
-
uint16_t section_value = *(data++);
|
|
84
|
-
uint16_t symbol_count = *(data++);
|
|
85
|
-
for (unsigned j = 0; j < symbol_count; j++) {
|
|
86
|
-
if (*(data++) == symbol) return section_value;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return 0;
|
|
90
|
-
} else {
|
|
91
|
-
return self->parse_table[state * self->symbol_count + symbol];
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
static inline bool ts_language_has_actions(
|
|
96
|
-
const TSLanguage *self,
|
|
97
|
-
TSStateId state,
|
|
98
|
-
TSSymbol symbol
|
|
99
|
-
) {
|
|
100
|
-
return ts_language_lookup(self, state, symbol) != 0;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
// Iterate over all of the symbols that are valid in the given state.
|
|
104
|
-
//
|
|
105
|
-
// For 'large' parse states, this just requires iterating through
|
|
106
|
-
// all possible symbols and checking the parse table for each one.
|
|
107
|
-
// For 'small' parse states, this exploits the structure of the
|
|
108
|
-
// table to only visit the valid symbols.
|
|
109
|
-
static inline LookaheadIterator ts_language_lookaheads(
|
|
110
|
-
const TSLanguage *self,
|
|
111
|
-
TSStateId state
|
|
112
|
-
) {
|
|
113
|
-
bool is_small_state = state >= self->large_state_count;
|
|
114
|
-
const uint16_t *data;
|
|
115
|
-
const uint16_t *group_end = NULL;
|
|
116
|
-
uint16_t group_count = 0;
|
|
117
|
-
if (is_small_state) {
|
|
118
|
-
uint32_t index = self->small_parse_table_map[state - self->large_state_count];
|
|
119
|
-
data = &self->small_parse_table[index];
|
|
120
|
-
group_end = data + 1;
|
|
121
|
-
group_count = *data;
|
|
122
|
-
} else {
|
|
123
|
-
data = &self->parse_table[state * self->symbol_count] - 1;
|
|
124
|
-
}
|
|
125
|
-
return (LookaheadIterator) {
|
|
126
|
-
.language = self,
|
|
127
|
-
.data = data,
|
|
128
|
-
.group_end = group_end,
|
|
129
|
-
.group_count = group_count,
|
|
130
|
-
.is_small_state = is_small_state,
|
|
131
|
-
.symbol = UINT16_MAX,
|
|
132
|
-
.next_state = 0,
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
static inline bool ts_lookahead_iterator__next(LookaheadIterator *self) {
|
|
137
|
-
// For small parse states, valid symbols are listed explicitly,
|
|
138
|
-
// grouped by their value. There's no need to look up the actions
|
|
139
|
-
// again until moving to the next group.
|
|
140
|
-
if (self->is_small_state) {
|
|
141
|
-
self->data++;
|
|
142
|
-
if (self->data == self->group_end) {
|
|
143
|
-
if (self->group_count == 0) return false;
|
|
144
|
-
self->group_count--;
|
|
145
|
-
self->table_value = *(self->data++);
|
|
146
|
-
unsigned symbol_count = *(self->data++);
|
|
147
|
-
self->group_end = self->data + symbol_count;
|
|
148
|
-
self->symbol = *self->data;
|
|
149
|
-
} else {
|
|
150
|
-
self->symbol = *self->data;
|
|
151
|
-
return true;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
// For large parse states, iterate through every symbol until one
|
|
156
|
-
// is found that has valid actions.
|
|
157
|
-
else {
|
|
158
|
-
do {
|
|
159
|
-
self->data++;
|
|
160
|
-
self->symbol++;
|
|
161
|
-
if (self->symbol >= self->language->symbol_count) return false;
|
|
162
|
-
self->table_value = *self->data;
|
|
163
|
-
} while (!self->table_value);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
// Depending on if the symbols is terminal or non-terminal, the table value either
|
|
167
|
-
// represents a list of actions or a successor state.
|
|
168
|
-
if (self->symbol < self->language->token_count) {
|
|
169
|
-
const TSParseActionEntry *entry = &self->language->parse_actions[self->table_value];
|
|
170
|
-
self->action_count = entry->entry.count;
|
|
171
|
-
self->actions = (const TSParseAction *)(entry + 1);
|
|
172
|
-
self->next_state = 0;
|
|
173
|
-
} else {
|
|
174
|
-
self->action_count = 0;
|
|
175
|
-
self->next_state = self->table_value;
|
|
176
|
-
}
|
|
177
|
-
return true;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
// Whether the state is a "primary state". If this returns false, it indicates that there exists
|
|
181
|
-
// another state that behaves identically to this one with respect to query analysis.
|
|
182
|
-
static inline bool ts_language_state_is_primary(
|
|
183
|
-
const TSLanguage *self,
|
|
184
|
-
TSStateId state
|
|
185
|
-
) {
|
|
186
|
-
if (self->abi_version >= LANGUAGE_VERSION_WITH_PRIMARY_STATES) {
|
|
187
|
-
return state == self->primary_state_ids[state];
|
|
188
|
-
} else {
|
|
189
|
-
return true;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
static inline const bool *ts_language_enabled_external_tokens(
|
|
194
|
-
const TSLanguage *self,
|
|
195
|
-
unsigned external_scanner_state
|
|
196
|
-
) {
|
|
197
|
-
if (external_scanner_state == 0) {
|
|
198
|
-
return NULL;
|
|
199
|
-
} else {
|
|
200
|
-
return self->external_scanner.states + self->external_token_count * external_scanner_state;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
static inline const TSSymbol *ts_language_alias_sequence(
|
|
205
|
-
const TSLanguage *self,
|
|
206
|
-
uint32_t production_id
|
|
207
|
-
) {
|
|
208
|
-
return production_id ?
|
|
209
|
-
&self->alias_sequences[production_id * self->max_alias_sequence_length] :
|
|
210
|
-
NULL;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
static inline TSSymbol ts_language_alias_at(
|
|
214
|
-
const TSLanguage *self,
|
|
215
|
-
uint32_t production_id,
|
|
216
|
-
uint32_t child_index
|
|
217
|
-
) {
|
|
218
|
-
return production_id ?
|
|
219
|
-
self->alias_sequences[production_id * self->max_alias_sequence_length + child_index] :
|
|
220
|
-
0;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
static inline void ts_language_field_map(
|
|
224
|
-
const TSLanguage *self,
|
|
225
|
-
uint32_t production_id,
|
|
226
|
-
const TSFieldMapEntry **start,
|
|
227
|
-
const TSFieldMapEntry **end
|
|
228
|
-
) {
|
|
229
|
-
if (self->field_count == 0) {
|
|
230
|
-
*start = NULL;
|
|
231
|
-
*end = NULL;
|
|
232
|
-
return;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
TSMapSlice slice = self->field_map_slices[production_id];
|
|
236
|
-
*start = &self->field_map_entries[slice.index];
|
|
237
|
-
*end = &self->field_map_entries[slice.index] + slice.length;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
static inline void ts_language_aliases_for_symbol(
|
|
241
|
-
const TSLanguage *self,
|
|
242
|
-
TSSymbol original_symbol,
|
|
243
|
-
const TSSymbol **start,
|
|
244
|
-
const TSSymbol **end
|
|
245
|
-
) {
|
|
246
|
-
*start = &self->public_symbol_map[original_symbol];
|
|
247
|
-
*end = *start + 1;
|
|
248
|
-
|
|
249
|
-
unsigned idx = 0;
|
|
250
|
-
for (;;) {
|
|
251
|
-
TSSymbol symbol = self->alias_map[idx++];
|
|
252
|
-
if (symbol == 0 || symbol > original_symbol) break;
|
|
253
|
-
uint16_t count = self->alias_map[idx++];
|
|
254
|
-
if (symbol == original_symbol) {
|
|
255
|
-
*start = &self->alias_map[idx];
|
|
256
|
-
*end = &self->alias_map[idx + count];
|
|
257
|
-
break;
|
|
258
|
-
}
|
|
259
|
-
idx += count;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
static inline void ts_language_write_symbol_as_dot_string(
|
|
264
|
-
const TSLanguage *self,
|
|
265
|
-
FILE *f,
|
|
266
|
-
TSSymbol symbol
|
|
267
|
-
) {
|
|
268
|
-
const char *name = ts_language_symbol_name(self, symbol);
|
|
269
|
-
for (const char *chr = name; *chr; chr++) {
|
|
270
|
-
switch (*chr) {
|
|
271
|
-
case '"':
|
|
272
|
-
case '\\':
|
|
273
|
-
fputc('\\', f);
|
|
274
|
-
fputc(*chr, f);
|
|
275
|
-
break;
|
|
276
|
-
case '\n':
|
|
277
|
-
fputs("\\n", f);
|
|
278
|
-
break;
|
|
279
|
-
case '\t':
|
|
280
|
-
fputs("\\t", f);
|
|
281
|
-
break;
|
|
282
|
-
default:
|
|
283
|
-
fputc(*chr, f);
|
|
284
|
-
break;
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
#ifdef __cplusplus
|
|
290
|
-
}
|
|
291
|
-
#endif
|
|
292
|
-
|
|
293
|
-
#endif // TREE_SITTER_LANGUAGE_H_
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
#ifndef TREE_SITTER_LENGTH_H_
|
|
2
|
-
#define TREE_SITTER_LENGTH_H_
|
|
3
|
-
|
|
4
|
-
#include <stdlib.h>
|
|
5
|
-
#include <stdbool.h>
|
|
6
|
-
#include "./point.h"
|
|
7
|
-
#include "tree_sitter/api.h"
|
|
8
|
-
|
|
9
|
-
typedef struct {
|
|
10
|
-
uint32_t bytes;
|
|
11
|
-
TSPoint extent;
|
|
12
|
-
} Length;
|
|
13
|
-
|
|
14
|
-
static const Length LENGTH_UNDEFINED = {0, {0, 1}};
|
|
15
|
-
static const Length LENGTH_MAX = {UINT32_MAX, {UINT32_MAX, UINT32_MAX}};
|
|
16
|
-
|
|
17
|
-
static inline bool length_is_undefined(Length length) {
|
|
18
|
-
return length.bytes == 0 && length.extent.column != 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
static inline Length length_min(Length len1, Length len2) {
|
|
22
|
-
return (len1.bytes < len2.bytes) ? len1 : len2;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
static inline Length length_add(Length len1, Length len2) {
|
|
26
|
-
Length result;
|
|
27
|
-
result.bytes = len1.bytes + len2.bytes;
|
|
28
|
-
result.extent = point_add(len1.extent, len2.extent);
|
|
29
|
-
return result;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
static inline Length length_sub(Length len1, Length len2) {
|
|
33
|
-
Length result;
|
|
34
|
-
result.bytes = (len1.bytes >= len2.bytes) ? len1.bytes - len2.bytes : 0;
|
|
35
|
-
result.extent = point_sub(len1.extent, len2.extent);
|
|
36
|
-
return result;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
static inline Length length_zero(void) {
|
|
40
|
-
Length result = {0, {0, 0}};
|
|
41
|
-
return result;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
static inline Length length_saturating_sub(Length len1, Length len2) {
|
|
45
|
-
if (len1.bytes > len2.bytes) {
|
|
46
|
-
return length_sub(len1, len2);
|
|
47
|
-
} else {
|
|
48
|
-
return length_zero();
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
#endif
|