gitnexus 1.6.4-rc.2 → 1.6.4-rc.21
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 +35 -0
- package/dist/_shared/index.d.ts +1 -1
- package/dist/_shared/index.d.ts.map +1 -1
- package/dist/_shared/index.js +1 -1
- package/dist/_shared/index.js.map +1 -1
- package/dist/_shared/scope-resolution/finalize-algorithm.d.ts +22 -14
- package/dist/_shared/scope-resolution/finalize-algorithm.d.ts.map +1 -1
- package/dist/_shared/scope-resolution/finalize-algorithm.js +298 -37
- package/dist/_shared/scope-resolution/finalize-algorithm.js.map +1 -1
- package/dist/_shared/scope-resolution/scope-tree.d.ts +23 -1
- package/dist/_shared/scope-resolution/scope-tree.d.ts.map +1 -1
- package/dist/_shared/scope-resolution/scope-tree.js +36 -2
- package/dist/_shared/scope-resolution/scope-tree.js.map +1 -1
- package/dist/_shared/scope-resolution/types.d.ts +47 -3
- package/dist/_shared/scope-resolution/types.d.ts.map +1 -1
- package/dist/_shared/scope-resolution/types.js +10 -2
- package/dist/_shared/scope-resolution/types.js.map +1 -1
- package/dist/cli/analyze.d.ts +6 -0
- package/dist/cli/analyze.js +35 -0
- package/dist/cli/doctor.d.ts +1 -0
- package/dist/cli/doctor.js +31 -0
- package/dist/cli/index.js +13 -0
- package/dist/cli/setup.js +2 -2
- package/dist/core/embeddings/config.d.ts +2 -0
- package/dist/core/embeddings/config.js +36 -0
- package/dist/core/embeddings/embedder.js +11 -6
- package/dist/core/embeddings/embedding-pipeline.d.ts +7 -1
- package/dist/core/embeddings/embedding-pipeline.js +93 -29
- package/dist/core/embeddings/exact-search.d.ts +15 -0
- package/dist/core/embeddings/exact-search.js +27 -0
- package/dist/core/embeddings/types.d.ts +4 -0
- package/dist/core/embeddings/types.js +2 -0
- package/dist/core/group/config-parser.js +2 -0
- package/dist/core/group/matching.d.ts +3 -3
- package/dist/core/group/matching.js +46 -6
- package/dist/core/group/storage.js +2 -0
- package/dist/core/group/sync.js +1 -1
- package/dist/core/group/types.d.ts +18 -0
- package/dist/core/ingestion/call-processor.d.ts +3 -3
- package/dist/core/ingestion/call-processor.js +58 -65
- package/dist/core/ingestion/constants.d.ts +4 -3
- package/dist/core/ingestion/constants.js +8 -3
- package/dist/core/ingestion/finalize-orchestrator.js +6 -3
- package/dist/core/ingestion/heritage-processor.js +2 -2
- package/dist/core/ingestion/import-processor.js +1 -1
- package/dist/core/ingestion/language-provider.d.ts +8 -0
- package/dist/core/ingestion/languages/csharp/captures.js +4 -1
- package/dist/core/ingestion/languages/csharp/namespace-siblings.d.ts +14 -13
- package/dist/core/ingestion/languages/csharp/namespace-siblings.js +62 -50
- package/dist/core/ingestion/languages/python/captures.js +9 -1
- package/dist/core/ingestion/languages/python/index.d.ts +1 -1
- package/dist/core/ingestion/languages/python/index.js +1 -1
- package/dist/core/ingestion/languages/python/simple-hooks.d.ts +3 -1
- package/dist/core/ingestion/languages/python/simple-hooks.js +8 -0
- package/dist/core/ingestion/languages/python.js +28 -1
- package/dist/core/ingestion/languages/swift.js +14 -0
- package/dist/core/ingestion/languages/typescript/arity-metadata.d.ts +59 -0
- package/dist/core/ingestion/languages/typescript/arity-metadata.js +103 -0
- package/dist/core/ingestion/languages/typescript/arity.d.ts +37 -0
- package/dist/core/ingestion/languages/typescript/arity.js +54 -0
- package/dist/core/ingestion/languages/typescript/cache-stats.d.ts +17 -0
- package/dist/core/ingestion/languages/typescript/cache-stats.js +28 -0
- package/dist/core/ingestion/languages/typescript/captures.d.ts +28 -0
- package/dist/core/ingestion/languages/typescript/captures.js +451 -0
- package/dist/core/ingestion/languages/typescript/import-decomposer.d.ts +49 -0
- package/dist/core/ingestion/languages/typescript/import-decomposer.js +371 -0
- package/dist/core/ingestion/languages/typescript/import-target.d.ts +50 -0
- package/dist/core/ingestion/languages/typescript/import-target.js +61 -0
- package/dist/core/ingestion/languages/typescript/index.d.ts +94 -0
- package/dist/core/ingestion/languages/typescript/index.js +94 -0
- package/dist/core/ingestion/languages/typescript/interpret.d.ts +35 -0
- package/dist/core/ingestion/languages/typescript/interpret.js +317 -0
- package/dist/core/ingestion/languages/typescript/merge-bindings.d.ts +62 -0
- package/dist/core/ingestion/languages/typescript/merge-bindings.js +158 -0
- package/dist/core/ingestion/languages/typescript/query.d.ts +77 -0
- package/dist/core/ingestion/languages/typescript/query.js +778 -0
- package/dist/core/ingestion/languages/typescript/receiver-binding.d.ts +59 -0
- package/dist/core/ingestion/languages/typescript/receiver-binding.js +171 -0
- package/dist/core/ingestion/languages/typescript/scope-resolver.d.ts +16 -0
- package/dist/core/ingestion/languages/typescript/scope-resolver.js +113 -0
- package/dist/core/ingestion/languages/typescript/simple-hooks.d.ts +71 -0
- package/dist/core/ingestion/languages/typescript/simple-hooks.js +131 -0
- package/dist/core/ingestion/languages/typescript.js +19 -0
- package/dist/core/ingestion/method-extractors/configs/swift.js +3 -4
- package/dist/core/ingestion/model/scope-resolution-indexes.d.ts +14 -1
- package/dist/core/ingestion/parsing-processor.js +20 -9
- package/dist/core/ingestion/pipeline-phases/processes.js +9 -4
- package/dist/core/ingestion/pipeline-phases/tools.d.ts +1 -0
- package/dist/core/ingestion/pipeline-phases/tools.js +10 -4
- package/dist/core/ingestion/registry-primary-flag.d.ts +3 -1
- package/dist/core/ingestion/registry-primary-flag.js +4 -1
- package/dist/core/ingestion/scope-extractor-bridge.d.ts +5 -2
- package/dist/core/ingestion/scope-extractor-bridge.js +7 -2
- package/dist/core/ingestion/scope-extractor.js +19 -18
- package/dist/core/ingestion/scope-resolution/contract/scope-resolver.d.ts +73 -11
- package/dist/core/ingestion/scope-resolution/contract/scope-resolver.js +48 -10
- package/dist/core/ingestion/scope-resolution/passes/compound-receiver.js +283 -14
- package/dist/core/ingestion/scope-resolution/passes/imported-return-types.d.ts +23 -2
- package/dist/core/ingestion/scope-resolution/passes/imported-return-types.js +109 -37
- package/dist/core/ingestion/scope-resolution/passes/mro.js +3 -1
- package/dist/core/ingestion/scope-resolution/passes/receiver-bound-calls.js +13 -5
- package/dist/core/ingestion/scope-resolution/pipeline/phase.js +11 -2
- package/dist/core/ingestion/scope-resolution/pipeline/registry.js +2 -0
- package/dist/core/ingestion/scope-resolution/pipeline/run.d.ts +8 -0
- package/dist/core/ingestion/scope-resolution/pipeline/run.js +21 -5
- package/dist/core/ingestion/scope-resolution/pipeline/validate-bindings-immutability.d.ts +39 -0
- package/dist/core/ingestion/scope-resolution/pipeline/validate-bindings-immutability.js +65 -0
- package/dist/core/ingestion/scope-resolution/scope/walkers.d.ts +54 -11
- package/dist/core/ingestion/scope-resolution/scope/walkers.js +105 -30
- package/dist/core/ingestion/type-extractors/swift.js +7 -4
- package/dist/core/ingestion/utils/ast-helpers.d.ts +2 -0
- package/dist/core/ingestion/utils/ast-helpers.js +12 -0
- package/dist/core/ingestion/utils/env.d.ts +10 -0
- package/dist/core/ingestion/utils/env.js +14 -0
- package/dist/core/ingestion/workers/parse-worker.d.ts +1 -0
- package/dist/core/ingestion/workers/parse-worker.js +15 -9
- package/dist/core/ingestion/workers/worker-pool.d.ts +11 -4
- package/dist/core/ingestion/workers/worker-pool.js +244 -48
- package/dist/core/lbug/extension-loader.d.ts +86 -0
- package/dist/core/lbug/extension-loader.js +184 -0
- package/dist/core/lbug/lbug-adapter.d.ts +18 -17
- package/dist/core/lbug/lbug-adapter.js +45 -73
- package/dist/core/lbug/pool-adapter.js +10 -28
- package/dist/core/platform/capabilities.d.ts +24 -0
- package/dist/core/platform/capabilities.js +54 -0
- package/dist/core/run-analyze.js +36 -9
- package/dist/core/search/bm25-index.d.ts +0 -17
- package/dist/core/search/bm25-index.js +10 -118
- package/dist/core/search/fts-indexes.d.ts +1 -0
- package/dist/core/search/fts-indexes.js +7 -0
- package/dist/core/search/fts-schema.d.ts +6 -0
- package/dist/core/search/fts-schema.js +7 -0
- package/dist/mcp/core/embedder.js +11 -4
- package/dist/mcp/local/local-backend.js +50 -15
- package/dist/server/api.d.ts +5 -0
- package/dist/server/api.js +113 -0
- package/hooks/claude/gitnexus-hook.cjs +11 -1
- package/package.json +6 -5
- package/scripts/build-tree-sitter-dart.cjs +42 -0
- package/scripts/build-tree-sitter-proto.cjs +1 -1
- package/scripts/build.js +22 -2
- package/scripts/install-duckdb-extension.mjs +37 -0
- package/vendor/tree-sitter-dart/README.md +18 -0
- package/vendor/tree-sitter-dart/binding.gyp +31 -0
- package/vendor/tree-sitter-dart/bindings/node/binding.cc +20 -0
- package/vendor/tree-sitter-dart/bindings/node/index.d.ts +28 -0
- package/vendor/tree-sitter-dart/bindings/node/index.js +7 -0
- package/vendor/tree-sitter-dart/grammar.js +2895 -0
- package/vendor/tree-sitter-dart/package.json +18 -0
- package/vendor/tree-sitter-dart/queries/highlights.scm +246 -0
- package/vendor/tree-sitter-dart/queries/tags.scm +92 -0
- package/vendor/tree-sitter-dart/queries/test.scm +1 -0
- package/vendor/tree-sitter-dart/src/grammar.json +12459 -0
- package/vendor/tree-sitter-dart/src/node-types.json +15055 -0
- package/vendor/tree-sitter-dart/src/parser.c +196127 -0
- package/vendor/tree-sitter-dart/src/scanner.c +130 -0
- package/vendor/tree-sitter-dart/src/tree_sitter/alloc.h +54 -0
- package/vendor/tree-sitter-dart/src/tree_sitter/array.h +290 -0
- package/vendor/tree-sitter-dart/src/tree_sitter/parser.h +265 -0
- package/vendor/tree-sitter-swift/LICENSE +21 -0
- package/vendor/tree-sitter-swift/README.md +139 -0
- package/vendor/tree-sitter-swift/bindings/node/index.d.ts +28 -0
- package/vendor/tree-sitter-swift/bindings/node/index.js +7 -0
- package/vendor/tree-sitter-swift/package.json +28 -0
- package/vendor/tree-sitter-swift/prebuilds/darwin-arm64/tree-sitter-swift.node +0 -0
- package/vendor/tree-sitter-swift/prebuilds/darwin-x64/tree-sitter-swift.node +0 -0
- package/vendor/tree-sitter-swift/prebuilds/linux-arm64/tree-sitter-swift.node +0 -0
- package/vendor/tree-sitter-swift/prebuilds/linux-x64/tree-sitter-swift.node +0 -0
- package/vendor/tree-sitter-swift/prebuilds/win32-arm64/tree-sitter-swift.node +0 -0
- package/vendor/tree-sitter-swift/prebuilds/win32-x64/tree-sitter-swift.node +0 -0
- package/vendor/tree-sitter-swift/src/node-types.json +30694 -0
- package/web/assets/agent-DaprsFSX.js +597 -0
- package/web/assets/architecture-YZFGNWBL-S5CXDPWN-DEdGaPg2.js +1 -0
- package/web/assets/architectureDiagram-EMZXCZ2Q-Domyk_gO.js +36 -0
- package/web/assets/blockDiagram-IGV67L2C-B_2kD7tM.js +132 -0
- package/web/assets/c4Diagram-DFAF54RM-BhJJW8Gg.js +10 -0
- package/web/assets/chunk-3GS5O3IE-jlWIjPsl.js +231 -0
- package/web/assets/chunk-3YCYZ6SJ-Blq_IzZs.js +1 -0
- package/web/assets/chunk-6NTNNK5N-DyPc58pp.js +1 -0
- package/web/assets/chunk-7RZVMHOQ-BdIU-RGO.js +321 -0
- package/web/assets/chunk-A34GCYZU-BI2i_LdU.js +1 -0
- package/web/assets/chunk-AEOMTBSW-D7qjBMHW.js +1 -0
- package/web/assets/chunk-CilyBKbf.js +1 -0
- package/web/assets/chunk-DJ7UZH7F-i11ywiBl.js +1 -0
- package/web/assets/chunk-DKKBVRCY-1SffGI1N.js +4 -0
- package/web/assets/chunk-DU5LTGQ6-DaPeiwD5.js +1 -0
- package/web/assets/chunk-FXACKDTF-uhhi2PC2.js +159 -0
- package/web/assets/chunk-H3VCZNTA-IchcISDt.js +1 -0
- package/web/assets/chunk-HN6EAY2L-D7ZFMNrB.js +1 -0
- package/web/assets/chunk-KSICW3F5-C2tZmXwv.js +15 -0
- package/web/assets/chunk-O5ABG6QK-Bt-Km84H.js +1 -0
- package/web/assets/chunk-PK6DOVAG-ChlWY0BQ.js +206 -0
- package/web/assets/chunk-RNJOYNJ4-B724K7cW.js +1 -0
- package/web/assets/chunk-RWUO3TPN-DYn1XriD.js +1 -0
- package/web/assets/chunk-TBF5ZNIQ-DKtDz6ae.js +1 -0
- package/web/assets/chunk-TU3PZOEN-DE5Qhc0N.js +1 -0
- package/web/assets/chunk-TYMNRAUI-g1h33cq-.js +1 -0
- package/web/assets/chunk-VELTKBKT-C9dVN39o.js +1 -0
- package/web/assets/chunk-W7ZLLLMY-Du-Hb9yb.js +1 -0
- package/web/assets/chunk-WSB5WSVC-B123clsZ.js +1 -0
- package/web/assets/chunk-XGPFEOL4-BR7Eue38.js +1 -0
- package/web/assets/classDiagram-PPOCWD7C-BglfKSs_.js +1 -0
- package/web/assets/classDiagram-v2-23LJLIIU-BSzTM28O.js +1 -0
- package/web/assets/context-builder-CqQNhRj1.js +15 -0
- package/web/assets/cose-bilkent-PNC4W37J-DCfErU-A.js +1 -0
- package/web/assets/dagre-E77IOHMT-tDRRhDoN.js +4 -0
- package/web/assets/diagram-H7BISOXX-CUVHlmAh.js +43 -0
- package/web/assets/diagram-JC5VWROH-BoyOxulB.js +24 -0
- package/web/assets/diagram-LXUTUG65-osr9hb7N.js +10 -0
- package/web/assets/diagram-WEHSV5V5-d8nUqS39.js +24 -0
- package/web/assets/erDiagram-GCSMX5X6-b-IwOhPS.js +85 -0
- package/web/assets/flowDiagram-OTCZ4VVT-Ott2Q0AP.js +162 -0
- package/web/assets/ganttDiagram-MUNLMDZQ-BYtgN_5s.js +292 -0
- package/web/assets/gitGraph-7Q5UKJZL-54BCDZD5-CFyBIGZq.js +1 -0
- package/web/assets/gitGraphDiagram-3HKGZ4G3-CsVD2gn4.js +106 -0
- package/web/assets/index-BleGLU8S.css +2 -0
- package/web/assets/index-C_xK08EW.js +885 -0
- package/web/assets/info-OMHHGYJF-BF2H5H6G-yjAxKEzh.js +1 -0
- package/web/assets/infoDiagram-MN7RKWGX-DXK0Unn5.js +2 -0
- package/web/assets/ishikawaDiagram-YMYX4NHK-CXsnC2FA.js +70 -0
- package/web/assets/journeyDiagram-SO5T7YLQ-BzZ07B-X.js +139 -0
- package/web/assets/kanban-definition-LJHFXRCJ-C6_EpAd9.js +89 -0
- package/web/assets/katex-GD7MH7QM-CJiOjBBJ.js +261 -0
- package/web/assets/mindmap-definition-2EUWGEK5-CCYGWZ1m.js +96 -0
- package/web/assets/packet-4T2RLAQJ-EV4IVRXR-B8k4E3IT.js +1 -0
- package/web/assets/pie-ZZUOXDRM-N23DN5KN-DdvfY118.js +1 -0
- package/web/assets/pieDiagram-3IATQBI2-RyvRlQb4.js +30 -0
- package/web/assets/quadrantDiagram-E256RVCF-Bfb6sxCx.js +7 -0
- package/web/assets/radar-PYXPWWZC-P6TP7ZYP-1EEDC_yU.js +1 -0
- package/web/assets/requirementDiagram-M5DCFWZL-DjvHDyvN.js +84 -0
- package/web/assets/sankeyDiagram-L3NBLAOT-CBCbbl8s.js +10 -0
- package/web/assets/sequenceDiagram-ZOUHS735-BscU8TUR.js +157 -0
- package/web/assets/stateDiagram-MLPALWAM-CJusEK2D.js +1 -0
- package/web/assets/stateDiagram-v2-B5LQ5ZB2-DImJ3PXD.js +1 -0
- package/web/assets/timeline-definition-5SPVSISX-DigPA1X8.js +120 -0
- package/web/assets/treeView-SZITEDCU-5DXDK3XO-CzPDt3aG.js +1 -0
- package/web/assets/treemap-W4RFUUIX-WYLRDWKO-B9Iqiorr.js +1 -0
- package/web/assets/vennDiagram-IE5QUKF5-C91UkZIf.js +34 -0
- package/web/assets/wardley-RL74JXVD-BCRCBASE-x42Qw7hp.js +1 -0
- package/web/assets/wardleyDiagram-XU3VSMPF-DloBhI0U.js +20 -0
- package/web/assets/xychartDiagram-ZHJ5623Y-BGWJvgwI.js +7 -0
- package/web/index.html +21 -0
- package/scripts/patch-tree-sitter-swift.cjs +0 -78
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tree-sitter-dart",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Dart grammar attempt for tree-sitter",
|
|
5
|
+
"repository": "https://github.com/UserNobody14/tree-sitter-dart",
|
|
6
|
+
"license": "ISC",
|
|
7
|
+
"main": "bindings/node",
|
|
8
|
+
"types": "bindings/node",
|
|
9
|
+
"_vendoredBy": "gitnexus - pinned to UserNobody14/tree-sitter-dart commit 80e23c07b64494f7e21090bb3450223ef0b192f4. Build deps are hoisted into gitnexus/package.json optionalDependencies, and native compilation is performed by gitnexus/scripts/build-tree-sitter-dart.cjs at gitnexus postinstall.",
|
|
10
|
+
"peerDependencies": {
|
|
11
|
+
"tree-sitter": "^0.21.0"
|
|
12
|
+
},
|
|
13
|
+
"peerDependenciesMeta": {
|
|
14
|
+
"tree_sitter": {
|
|
15
|
+
"optional": true
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
; Variable
|
|
2
|
+
(identifier) @variable
|
|
3
|
+
|
|
4
|
+
; Keywords
|
|
5
|
+
; --------------------
|
|
6
|
+
[
|
|
7
|
+
(assert_builtin)
|
|
8
|
+
(break_builtin)
|
|
9
|
+
(const_builtin)
|
|
10
|
+
(part_of_builtin)
|
|
11
|
+
(rethrow_builtin)
|
|
12
|
+
(void_type)
|
|
13
|
+
"abstract"
|
|
14
|
+
"as"
|
|
15
|
+
"async"
|
|
16
|
+
"async*"
|
|
17
|
+
"await"
|
|
18
|
+
"base"
|
|
19
|
+
"case"
|
|
20
|
+
"catch"
|
|
21
|
+
"class"
|
|
22
|
+
"continue"
|
|
23
|
+
"covariant"
|
|
24
|
+
"default"
|
|
25
|
+
"deferred"
|
|
26
|
+
"do"
|
|
27
|
+
"dynamic"
|
|
28
|
+
"else"
|
|
29
|
+
"enum"
|
|
30
|
+
"export"
|
|
31
|
+
"extends"
|
|
32
|
+
"extension"
|
|
33
|
+
"external"
|
|
34
|
+
"factory"
|
|
35
|
+
"final"
|
|
36
|
+
"finally"
|
|
37
|
+
"for"
|
|
38
|
+
"Function"
|
|
39
|
+
"get"
|
|
40
|
+
"hide"
|
|
41
|
+
"if"
|
|
42
|
+
"implements"
|
|
43
|
+
"import"
|
|
44
|
+
"in"
|
|
45
|
+
"interface"
|
|
46
|
+
"is"
|
|
47
|
+
"late"
|
|
48
|
+
"library"
|
|
49
|
+
"mixin"
|
|
50
|
+
"new"
|
|
51
|
+
"on"
|
|
52
|
+
"operator"
|
|
53
|
+
"part"
|
|
54
|
+
"required"
|
|
55
|
+
"return"
|
|
56
|
+
"sealed"
|
|
57
|
+
"set"
|
|
58
|
+
"show"
|
|
59
|
+
"static"
|
|
60
|
+
"super"
|
|
61
|
+
"switch"
|
|
62
|
+
"sync*"
|
|
63
|
+
"throw"
|
|
64
|
+
"try"
|
|
65
|
+
"typedef"
|
|
66
|
+
"var"
|
|
67
|
+
"when"
|
|
68
|
+
"while"
|
|
69
|
+
"with"
|
|
70
|
+
"yield"
|
|
71
|
+
] @keyword
|
|
72
|
+
|
|
73
|
+
; Methods
|
|
74
|
+
; --------------------
|
|
75
|
+
|
|
76
|
+
; NOTE: This query is a bit of a work around for the fact that the dart grammar doesn't
|
|
77
|
+
; specifically identify a node as a function call
|
|
78
|
+
(((identifier) @function (#match? @function "^_?[a-z]"))
|
|
79
|
+
. (selector . (argument_part))) @function
|
|
80
|
+
|
|
81
|
+
; Annotations
|
|
82
|
+
; --------------------
|
|
83
|
+
(annotation
|
|
84
|
+
name: (identifier) @attribute)
|
|
85
|
+
|
|
86
|
+
; Operators and Tokens
|
|
87
|
+
; --------------------
|
|
88
|
+
(template_substitution
|
|
89
|
+
"$" @punctuation.special
|
|
90
|
+
"{" @punctuation.special
|
|
91
|
+
"}" @punctuation.special
|
|
92
|
+
) @none
|
|
93
|
+
|
|
94
|
+
(template_substitution
|
|
95
|
+
"$" @punctuation.special
|
|
96
|
+
(identifier_dollar_escaped) @variable
|
|
97
|
+
) @none
|
|
98
|
+
|
|
99
|
+
(escape_sequence) @string.escape
|
|
100
|
+
|
|
101
|
+
[
|
|
102
|
+
"@"
|
|
103
|
+
"=>"
|
|
104
|
+
".."
|
|
105
|
+
"??"
|
|
106
|
+
"=="
|
|
107
|
+
"?"
|
|
108
|
+
":"
|
|
109
|
+
"&&"
|
|
110
|
+
"%"
|
|
111
|
+
"<"
|
|
112
|
+
">"
|
|
113
|
+
"="
|
|
114
|
+
">="
|
|
115
|
+
"<="
|
|
116
|
+
"||"
|
|
117
|
+
"~/"
|
|
118
|
+
(increment_operator)
|
|
119
|
+
(is_operator)
|
|
120
|
+
(prefix_operator)
|
|
121
|
+
(equality_operator)
|
|
122
|
+
(additive_operator)
|
|
123
|
+
] @operator
|
|
124
|
+
|
|
125
|
+
(type_arguments
|
|
126
|
+
"<" @punctuation.bracket
|
|
127
|
+
">" @punctuation.bracket)
|
|
128
|
+
|
|
129
|
+
(type_parameters
|
|
130
|
+
"<" @punctuation.bracket
|
|
131
|
+
">" @punctuation.bracket)
|
|
132
|
+
|
|
133
|
+
[
|
|
134
|
+
"("
|
|
135
|
+
")"
|
|
136
|
+
"["
|
|
137
|
+
"]"
|
|
138
|
+
"{"
|
|
139
|
+
"}"
|
|
140
|
+
] @punctuation.bracket
|
|
141
|
+
|
|
142
|
+
; Delimiters
|
|
143
|
+
; --------------------
|
|
144
|
+
[
|
|
145
|
+
";"
|
|
146
|
+
"."
|
|
147
|
+
","
|
|
148
|
+
] @punctuation.delimiter
|
|
149
|
+
|
|
150
|
+
; Types
|
|
151
|
+
; --------------------
|
|
152
|
+
(type_identifier) @type
|
|
153
|
+
((type_identifier) @type.builtin
|
|
154
|
+
(#match? @type.builtin "^(int|double|String|bool|List|Set|Map|Runes|Symbol)$"))
|
|
155
|
+
(class_definition
|
|
156
|
+
name: (identifier) @type)
|
|
157
|
+
(constructor_signature
|
|
158
|
+
name: (identifier) @type)
|
|
159
|
+
(scoped_identifier
|
|
160
|
+
scope: (identifier) @type)
|
|
161
|
+
(function_signature
|
|
162
|
+
name: (identifier) @function)
|
|
163
|
+
(getter_signature
|
|
164
|
+
(identifier) @function)
|
|
165
|
+
(setter_signature
|
|
166
|
+
name: (identifier) @function)
|
|
167
|
+
|
|
168
|
+
((scoped_identifier
|
|
169
|
+
scope: (identifier) @type
|
|
170
|
+
name: (identifier) @type)
|
|
171
|
+
(#match? @type "^[a-zA-Z]"))
|
|
172
|
+
|
|
173
|
+
; Enums
|
|
174
|
+
; -------------------
|
|
175
|
+
(enum_declaration
|
|
176
|
+
name: (identifier) @type)
|
|
177
|
+
(enum_constant
|
|
178
|
+
name: (identifier) @identifier.constant)
|
|
179
|
+
|
|
180
|
+
; Variables
|
|
181
|
+
; --------------------
|
|
182
|
+
; var keyword
|
|
183
|
+
(inferred_type) @keyword
|
|
184
|
+
|
|
185
|
+
((identifier) @type
|
|
186
|
+
(#match? @type "^_?[A-Z].*[a-z]"))
|
|
187
|
+
|
|
188
|
+
("Function" @type)
|
|
189
|
+
|
|
190
|
+
(this) @variable.builtin
|
|
191
|
+
|
|
192
|
+
; properties
|
|
193
|
+
|
|
194
|
+
(unconditional_assignable_selector
|
|
195
|
+
(identifier) @property)
|
|
196
|
+
|
|
197
|
+
(conditional_assignable_selector
|
|
198
|
+
(identifier) @property)
|
|
199
|
+
|
|
200
|
+
(cascade_section
|
|
201
|
+
(cascade_selector
|
|
202
|
+
(identifier) @property))
|
|
203
|
+
|
|
204
|
+
((selector
|
|
205
|
+
(unconditional_assignable_selector (identifier) @function))
|
|
206
|
+
(selector (argument_part (arguments)))
|
|
207
|
+
)
|
|
208
|
+
|
|
209
|
+
(cascade_section
|
|
210
|
+
(cascade_selector (identifier) @function)
|
|
211
|
+
(argument_part (arguments))
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
; assignments
|
|
215
|
+
(assignment_expression
|
|
216
|
+
left: (assignable_expression) @variable)
|
|
217
|
+
|
|
218
|
+
(this) @variable.builtin
|
|
219
|
+
|
|
220
|
+
; Parameters
|
|
221
|
+
; --------------------
|
|
222
|
+
(formal_parameter
|
|
223
|
+
name: (identifier) @identifier.parameter)
|
|
224
|
+
|
|
225
|
+
(named_argument
|
|
226
|
+
(label (identifier) @identifier.parameter))
|
|
227
|
+
|
|
228
|
+
; Literals
|
|
229
|
+
; --------------------
|
|
230
|
+
[
|
|
231
|
+
(hex_integer_literal)
|
|
232
|
+
(decimal_integer_literal)
|
|
233
|
+
(decimal_floating_point_literal)
|
|
234
|
+
; TODO: inaccessbile nodes
|
|
235
|
+
; (octal_integer_literal)
|
|
236
|
+
; (hex_floating_point_literal)
|
|
237
|
+
] @number
|
|
238
|
+
|
|
239
|
+
(string_literal) @string
|
|
240
|
+
(symbol_literal (identifier) @constant) @constant
|
|
241
|
+
(true) @boolean
|
|
242
|
+
(false) @boolean
|
|
243
|
+
(null_literal) @constant.null
|
|
244
|
+
|
|
245
|
+
(documentation_comment) @comment
|
|
246
|
+
(comment) @comment
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
|
|
2
|
+
(class_definition
|
|
3
|
+
name: (identifier) @name) @definition.class
|
|
4
|
+
|
|
5
|
+
(method_signature
|
|
6
|
+
(function_signature)) @definition.method
|
|
7
|
+
|
|
8
|
+
(type_alias
|
|
9
|
+
(type_identifier) @name) @definition.type
|
|
10
|
+
|
|
11
|
+
(method_signature
|
|
12
|
+
(getter_signature
|
|
13
|
+
name: (identifier) @name)) @definition.method
|
|
14
|
+
|
|
15
|
+
(method_signature
|
|
16
|
+
(setter_signature
|
|
17
|
+
name: (identifier) @name)) @definition.method
|
|
18
|
+
|
|
19
|
+
(method_signature
|
|
20
|
+
(function_signature
|
|
21
|
+
name: (identifier) @name)) @definition.method
|
|
22
|
+
|
|
23
|
+
(method_signature
|
|
24
|
+
(factory_constructor_signature
|
|
25
|
+
(identifier) @name)) @definition.method
|
|
26
|
+
|
|
27
|
+
(method_signature
|
|
28
|
+
(constructor_signature
|
|
29
|
+
name: (identifier) @name)) @definition.method
|
|
30
|
+
|
|
31
|
+
(method_signature
|
|
32
|
+
(operator_signature)) @definition.method
|
|
33
|
+
|
|
34
|
+
(method_signature) @definition.method
|
|
35
|
+
|
|
36
|
+
(mixin_declaration
|
|
37
|
+
(mixin)
|
|
38
|
+
(identifier) @name) @definition.mixin
|
|
39
|
+
|
|
40
|
+
(extension_declaration
|
|
41
|
+
name: (identifier) @name) @definition.extension
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
(new_expression
|
|
45
|
+
(type_identifier) @name) @reference.class
|
|
46
|
+
|
|
47
|
+
(enum_declaration
|
|
48
|
+
name: (identifier) @name) @definition.enum
|
|
49
|
+
|
|
50
|
+
(function_signature
|
|
51
|
+
name: (identifier) @name) @definition.function
|
|
52
|
+
|
|
53
|
+
(initialized_variable_definition
|
|
54
|
+
name: (identifier)
|
|
55
|
+
value: (identifier) @name
|
|
56
|
+
value: (selector
|
|
57
|
+
"!"?
|
|
58
|
+
(argument_part
|
|
59
|
+
(arguments
|
|
60
|
+
(argument)*))?)?) @reference.class
|
|
61
|
+
|
|
62
|
+
(assignment_expression
|
|
63
|
+
left: (assignable_expression
|
|
64
|
+
(identifier)
|
|
65
|
+
(unconditional_assignable_selector
|
|
66
|
+
"."
|
|
67
|
+
(identifier) @name))) @reference.call
|
|
68
|
+
|
|
69
|
+
(assignment_expression
|
|
70
|
+
left: (assignable_expression
|
|
71
|
+
(identifier)
|
|
72
|
+
(conditional_assignable_selector
|
|
73
|
+
"?."
|
|
74
|
+
(identifier) @name))) @reference.call
|
|
75
|
+
|
|
76
|
+
((identifier) @name
|
|
77
|
+
(selector
|
|
78
|
+
"!"?
|
|
79
|
+
(conditional_assignable_selector
|
|
80
|
+
"?." (identifier) @name)?
|
|
81
|
+
(unconditional_assignable_selector
|
|
82
|
+
"."? (identifier) @name)?
|
|
83
|
+
(argument_part
|
|
84
|
+
(arguments
|
|
85
|
+
(argument)*))?)*
|
|
86
|
+
(cascade_section
|
|
87
|
+
(cascade_selector
|
|
88
|
+
(identifier)) @name
|
|
89
|
+
(argument_part
|
|
90
|
+
(arguments
|
|
91
|
+
(argument)*))?)?) @reference.call
|
|
92
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(if_statement (block))
|