umple-lsp-server 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/out/bin.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import "./server";
package/out/bin.js ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ require("./server");
5
+ //# sourceMappingURL=bin.js.map
package/out/bin.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";;;AACA,oBAAkB"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Context-specific completion keywords for tree-sitter based completions.
3
+ * Keys match CompletionContext values from symbolIndex.ts.
4
+ */
5
+ export declare const COMPLETION_KEYWORDS: {
6
+ top: string[];
7
+ class_body: string[];
8
+ attribute_modifiers: string[];
9
+ attribute_types: string[];
10
+ state_machine: string[];
11
+ state: string[];
12
+ association: string[];
13
+ enum: never[];
14
+ method: never[];
15
+ use_path: never[];
16
+ isa_type: never[];
17
+ transition_target: never[];
18
+ association_type: never[];
19
+ depend_package: never[];
20
+ comment: never[];
21
+ unknown: never[];
22
+ };
23
+ /**
24
+ * Legacy keyword categories (kept for backward compatibility).
25
+ */
26
+ export declare const KEYWORDS: {
27
+ topLevel: string[];
28
+ classLevel: string[];
29
+ attribute: string[];
30
+ method: string[];
31
+ statemachine: string[];
32
+ constraints: string[];
33
+ modelConstraints: string[];
34
+ tracing: string[];
35
+ testing: string[];
36
+ misc: string[];
37
+ };
38
+ export declare const ALL_KEYWORDS: string[];
@@ -0,0 +1,205 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ALL_KEYWORDS = exports.KEYWORDS = exports.COMPLETION_KEYWORDS = void 0;
4
+ /**
5
+ * Context-specific completion keywords for tree-sitter based completions.
6
+ * Keys match CompletionContext values from symbolIndex.ts.
7
+ */
8
+ exports.COMPLETION_KEYWORDS = {
9
+ // Top-level definitions
10
+ top: [
11
+ "class",
12
+ "interface",
13
+ "trait",
14
+ "enum",
15
+ "association",
16
+ "namespace",
17
+ "generate",
18
+ "mixset",
19
+ "use",
20
+ "external",
21
+ ],
22
+ // Inside class/trait/interface body
23
+ class_body: [
24
+ "isA",
25
+ "singleton",
26
+ "depend",
27
+ "before",
28
+ "after",
29
+ // Visibility modifiers for methods
30
+ "public",
31
+ "private",
32
+ "protected",
33
+ // Other method/attribute modifiers
34
+ "static",
35
+ "abstract",
36
+ "const",
37
+ ],
38
+ // Attribute modifiers (used in class_body context when typing attribute)
39
+ attribute_modifiers: [
40
+ "lazy",
41
+ "settable",
42
+ "internal",
43
+ "defaulted",
44
+ "immutable",
45
+ "autounique",
46
+ "unique",
47
+ "const",
48
+ ],
49
+ // Common types for attribute declarations
50
+ attribute_types: [
51
+ "String",
52
+ "Integer",
53
+ "Double",
54
+ "Float",
55
+ "Boolean",
56
+ "Date",
57
+ "Time",
58
+ "void",
59
+ ],
60
+ // State machine definition (outside states)
61
+ state_machine: ["queued", "pooled"],
62
+ // Inside a state
63
+ state: ["entry", "exit", "do", "final", "->"],
64
+ // Inside association block
65
+ association: ["--", "->", "<-", "<@>-", "-<@>", ">->", "<-<"],
66
+ // Inside enum - typically just identifiers, no keywords
67
+ enum: [],
68
+ // Inside method body - code completion out of scope for now
69
+ method: [],
70
+ // Contexts where only symbol completions are offered (no keywords)
71
+ use_path: [],
72
+ isa_type: [],
73
+ transition_target: [],
74
+ association_type: [],
75
+ depend_package: [],
76
+ comment: [],
77
+ unknown: [],
78
+ };
79
+ /**
80
+ * Legacy keyword categories (kept for backward compatibility).
81
+ */
82
+ exports.KEYWORDS = {
83
+ topLevel: [
84
+ "after",
85
+ "around",
86
+ "association",
87
+ "associationClass",
88
+ "class",
89
+ "distributable",
90
+ "filter",
91
+ "generate",
92
+ "interface",
93
+ "mixset",
94
+ "namespace",
95
+ "statemachine",
96
+ "strictness",
97
+ "trait",
98
+ "use",
99
+ "--redefine",
100
+ ],
101
+ classLevel: [
102
+ "abstract",
103
+ "active",
104
+ "const",
105
+ "depend",
106
+ "distributable",
107
+ "emit",
108
+ "enum",
109
+ "inner",
110
+ "isA",
111
+ "key",
112
+ "model",
113
+ "self",
114
+ "singleton",
115
+ "sorted",
116
+ "static",
117
+ ],
118
+ attribute: [
119
+ "attribute",
120
+ "attr",
121
+ "autounique",
122
+ "defaulted",
123
+ "false",
124
+ "immutable",
125
+ "internal",
126
+ "lazy",
127
+ "settable",
128
+ "true",
129
+ "unique",
130
+ ],
131
+ method: [
132
+ "public",
133
+ "protected",
134
+ "private",
135
+ "static",
136
+ "abstract",
137
+ "pre",
138
+ "custom",
139
+ "generated",
140
+ "all",
141
+ "around_proceed",
142
+ ],
143
+ statemachine: [
144
+ "after",
145
+ "afterEvery",
146
+ "as",
147
+ "do",
148
+ "entry",
149
+ "exit",
150
+ "final",
151
+ "Final",
152
+ "pooled",
153
+ "queued",
154
+ "statemachine",
155
+ "unspecified",
156
+ ],
157
+ constraints: ["and", "not", "or"],
158
+ modelConstraints: [
159
+ "attribute",
160
+ "attr",
161
+ "has",
162
+ "model",
163
+ "of",
164
+ "subclass",
165
+ "superclass",
166
+ ],
167
+ tracing: [
168
+ "add",
169
+ "cardinality",
170
+ "for",
171
+ "giving",
172
+ "remove",
173
+ "trace",
174
+ "tracer",
175
+ "until",
176
+ "where",
177
+ ],
178
+ testing: [
179
+ "assertAttribute",
180
+ "assertEqual",
181
+ "assertFalse",
182
+ "assertMethod",
183
+ "assertNull",
184
+ "assertTrue",
185
+ "generic",
186
+ "prefix",
187
+ "regex",
188
+ "suffix",
189
+ "test",
190
+ ],
191
+ misc: [
192
+ "forced",
193
+ "hops",
194
+ "ignore",
195
+ "include",
196
+ "includeFilter",
197
+ "off",
198
+ "RMI",
199
+ "sub",
200
+ "super",
201
+ "WS",
202
+ ],
203
+ };
204
+ exports.ALL_KEYWORDS = Array.from(new Set(Object.values(exports.KEYWORDS).flat()));
205
+ //# sourceMappingURL=keywords.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keywords.js","sourceRoot":"","sources":["../src/keywords.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,mBAAmB,GAAG;IACjC,wBAAwB;IACxB,GAAG,EAAE;QACH,OAAO;QACP,WAAW;QACX,OAAO;QACP,MAAM;QACN,aAAa;QACb,WAAW;QACX,UAAU;QACV,QAAQ;QACR,KAAK;QACL,UAAU;KACX;IAED,oCAAoC;IACpC,UAAU,EAAE;QACV,KAAK;QACL,WAAW;QACX,QAAQ;QACR,QAAQ;QACR,OAAO;QACP,mCAAmC;QACnC,QAAQ;QACR,SAAS;QACT,WAAW;QACX,mCAAmC;QACnC,QAAQ;QACR,UAAU;QACV,OAAO;KACR;IAED,yEAAyE;IACzE,mBAAmB,EAAE;QACnB,MAAM;QACN,UAAU;QACV,UAAU;QACV,WAAW;QACX,WAAW;QACX,YAAY;QACZ,QAAQ;QACR,OAAO;KACR;IAED,0CAA0C;IAC1C,eAAe,EAAE;QACf,QAAQ;QACR,SAAS;QACT,QAAQ;QACR,OAAO;QACP,SAAS;QACT,MAAM;QACN,MAAM;QACN,MAAM;KACP;IAED,4CAA4C;IAC5C,aAAa,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAEnC,iBAAiB;IACjB,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC;IAE7C,2BAA2B;IAC3B,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC;IAE7D,wDAAwD;IACxD,IAAI,EAAE,EAAE;IAER,4DAA4D;IAC5D,MAAM,EAAE,EAAE;IAEV,mEAAmE;IACnE,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,EAAE;IACZ,iBAA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