@aehrc/ecl-core 1.0.1 → 1.0.3

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.
Files changed (231) hide show
  1. package/dist/index.cjs +57088 -0
  2. package/dist/index.d.ts +900 -38
  3. package/dist/index.mjs +57088 -0
  4. package/package.json +17 -6
  5. package/dist/completion/context-detector.d.ts +0 -51
  6. package/dist/completion/context-detector.d.ts.map +0 -1
  7. package/dist/completion/context-detector.js +0 -286
  8. package/dist/completion/context-detector.js.map +0 -1
  9. package/dist/completion/context-items.d.ts +0 -50
  10. package/dist/completion/context-items.d.ts.map +0 -1
  11. package/dist/completion/context-items.js +0 -526
  12. package/dist/completion/context-items.js.map +0 -1
  13. package/dist/completion/filter-cache.d.ts +0 -14
  14. package/dist/completion/filter-cache.d.ts.map +0 -1
  15. package/dist/completion/filter-cache.js +0 -55
  16. package/dist/completion/filter-cache.js.map +0 -1
  17. package/dist/completion/provider.d.ts +0 -38
  18. package/dist/completion/provider.d.ts.map +0 -1
  19. package/dist/completion/provider.js +0 -273
  20. package/dist/completion/provider.js.map +0 -1
  21. package/dist/completion/snippets.d.ts +0 -11
  22. package/dist/completion/snippets.d.ts.map +0 -1
  23. package/dist/completion/snippets.js +0 -80
  24. package/dist/completion/snippets.js.map +0 -1
  25. package/dist/formatter/ast-printer.d.ts +0 -12
  26. package/dist/formatter/ast-printer.d.ts.map +0 -1
  27. package/dist/formatter/ast-printer.js +0 -251
  28. package/dist/formatter/ast-printer.js.map +0 -1
  29. package/dist/formatter/comments.d.ts +0 -14
  30. package/dist/formatter/comments.d.ts.map +0 -1
  31. package/dist/formatter/comments.js +0 -232
  32. package/dist/formatter/comments.js.map +0 -1
  33. package/dist/formatter/config.d.ts +0 -5
  34. package/dist/formatter/config.d.ts.map +0 -1
  35. package/dist/formatter/config.js +0 -45
  36. package/dist/formatter/config.js.map +0 -1
  37. package/dist/formatter/formatter.d.ts +0 -3
  38. package/dist/formatter/formatter.d.ts.map +0 -1
  39. package/dist/formatter/formatter.js +0 -368
  40. package/dist/formatter/formatter.js.map +0 -1
  41. package/dist/formatter/index.d.ts +0 -6
  42. package/dist/formatter/index.d.ts.map +0 -1
  43. package/dist/formatter/index.js +0 -19
  44. package/dist/formatter/index.js.map +0 -1
  45. package/dist/formatter/options.d.ts +0 -31
  46. package/dist/formatter/options.d.ts.map +0 -1
  47. package/dist/formatter/options.js +0 -17
  48. package/dist/formatter/options.js.map +0 -1
  49. package/dist/formatter/range.d.ts +0 -16
  50. package/dist/formatter/range.d.ts.map +0 -1
  51. package/dist/formatter/range.js +0 -129
  52. package/dist/formatter/range.js.map +0 -1
  53. package/dist/formatter/rules.d.ts +0 -8
  54. package/dist/formatter/rules.d.ts.map +0 -1
  55. package/dist/formatter/rules.js +0 -42
  56. package/dist/formatter/rules.js.map +0 -1
  57. package/dist/grammar/ECLLexer.d.ts +0 -122
  58. package/dist/grammar/ECLLexer.d.ts.map +0 -1
  59. package/dist/grammar/ECLLexer.js +0 -399
  60. package/dist/grammar/ECLLexer.js.map +0 -1
  61. package/dist/grammar/ECLParser.d.ts +0 -2905
  62. package/dist/grammar/ECLParser.d.ts.map +0 -1
  63. package/dist/grammar/ECLParser.js +0 -24911
  64. package/dist/grammar/ECLParser.js.map +0 -1
  65. package/dist/grammar/ECLVisitor.d.ts +0 -1208
  66. package/dist/grammar/ECLVisitor.d.ts.map +0 -1
  67. package/dist/grammar/ECLVisitor.js +0 -4
  68. package/dist/grammar/ECLVisitor.js.map +0 -1
  69. package/dist/index.d.ts.map +0 -1
  70. package/dist/index.js +0 -107
  71. package/dist/index.js.map +0 -1
  72. package/dist/knowledge/filters.d.ts +0 -6
  73. package/dist/knowledge/filters.d.ts.map +0 -1
  74. package/dist/knowledge/filters.js +0 -99
  75. package/dist/knowledge/filters.js.map +0 -1
  76. package/dist/knowledge/grammar.d.ts +0 -7
  77. package/dist/knowledge/grammar.d.ts.map +0 -1
  78. package/dist/knowledge/grammar.js +0 -217
  79. package/dist/knowledge/grammar.js.map +0 -1
  80. package/dist/knowledge/index.d.ts +0 -24
  81. package/dist/knowledge/index.d.ts.map +0 -1
  82. package/dist/knowledge/index.js +0 -101
  83. package/dist/knowledge/index.js.map +0 -1
  84. package/dist/knowledge/operators.d.ts +0 -10
  85. package/dist/knowledge/operators.d.ts.map +0 -1
  86. package/dist/knowledge/operators.js +0 -324
  87. package/dist/knowledge/operators.js.map +0 -1
  88. package/dist/knowledge/patterns.d.ts +0 -6
  89. package/dist/knowledge/patterns.d.ts.map +0 -1
  90. package/dist/knowledge/patterns.js +0 -172
  91. package/dist/knowledge/patterns.js.map +0 -1
  92. package/dist/knowledge/refinements.d.ts +0 -6
  93. package/dist/knowledge/refinements.d.ts.map +0 -1
  94. package/dist/knowledge/refinements.js +0 -134
  95. package/dist/knowledge/refinements.js.map +0 -1
  96. package/dist/knowledge/types.d.ts +0 -41
  97. package/dist/knowledge/types.d.ts.map +0 -1
  98. package/dist/knowledge/types.js +0 -5
  99. package/dist/knowledge/types.js.map +0 -1
  100. package/dist/parser/ast.d.ts +0 -111
  101. package/dist/parser/ast.d.ts.map +0 -1
  102. package/dist/parser/ast.js +0 -25
  103. package/dist/parser/ast.js.map +0 -1
  104. package/dist/parser/concept-extractor.d.ts +0 -21
  105. package/dist/parser/concept-extractor.d.ts.map +0 -1
  106. package/dist/parser/concept-extractor.js +0 -126
  107. package/dist/parser/concept-extractor.js.map +0 -1
  108. package/dist/parser/error-analysis.d.ts +0 -54
  109. package/dist/parser/error-analysis.d.ts.map +0 -1
  110. package/dist/parser/error-analysis.js +0 -260
  111. package/dist/parser/error-analysis.js.map +0 -1
  112. package/dist/parser/error-listener.d.ts +0 -14
  113. package/dist/parser/error-listener.d.ts.map +0 -1
  114. package/dist/parser/error-listener.js +0 -24
  115. package/dist/parser/error-listener.js.map +0 -1
  116. package/dist/parser/expression-grouper.d.ts +0 -20
  117. package/dist/parser/expression-grouper.d.ts.map +0 -1
  118. package/dist/parser/expression-grouper.js +0 -99
  119. package/dist/parser/expression-grouper.js.map +0 -1
  120. package/dist/parser/generated/grammar/ECLLexer.d.ts +0 -122
  121. package/dist/parser/generated/grammar/ECLLexer.d.ts.map +0 -1
  122. package/dist/parser/generated/grammar/ECLLexer.js +0 -399
  123. package/dist/parser/generated/grammar/ECLLexer.js.map +0 -1
  124. package/dist/parser/generated/grammar/ECLParser.d.ts +0 -2905
  125. package/dist/parser/generated/grammar/ECLParser.d.ts.map +0 -1
  126. package/dist/parser/generated/grammar/ECLParser.js +0 -24911
  127. package/dist/parser/generated/grammar/ECLParser.js.map +0 -1
  128. package/dist/parser/generated/grammar/ECLVisitor.d.ts +0 -1208
  129. package/dist/parser/generated/grammar/ECLVisitor.d.ts.map +0 -1
  130. package/dist/parser/generated/grammar/ECLVisitor.js +0 -4
  131. package/dist/parser/generated/grammar/ECLVisitor.js.map +0 -1
  132. package/dist/parser/index.d.ts +0 -26
  133. package/dist/parser/index.d.ts.map +0 -1
  134. package/dist/parser/index.js +0 -202
  135. package/dist/parser/index.js.map +0 -1
  136. package/dist/parser/position-detector.d.ts +0 -45
  137. package/dist/parser/position-detector.d.ts.map +0 -1
  138. package/dist/parser/position-detector.js +0 -149
  139. package/dist/parser/position-detector.js.map +0 -1
  140. package/dist/parser/refinement-check.d.ts +0 -22
  141. package/dist/parser/refinement-check.d.ts.map +0 -1
  142. package/dist/parser/refinement-check.js +0 -194
  143. package/dist/parser/refinement-check.js.map +0 -1
  144. package/dist/parser/visitor.d.ts +0 -40
  145. package/dist/parser/visitor.d.ts.map +0 -1
  146. package/dist/parser/visitor.js +0 -587
  147. package/dist/parser/visitor.js.map +0 -1
  148. package/dist/refactoring/add-description-filter.d.ts +0 -8
  149. package/dist/refactoring/add-description-filter.d.ts.map +0 -1
  150. package/dist/refactoring/add-description-filter.js +0 -73
  151. package/dist/refactoring/add-description-filter.js.map +0 -1
  152. package/dist/refactoring/add-display-terms.d.ts +0 -20
  153. package/dist/refactoring/add-display-terms.d.ts.map +0 -1
  154. package/dist/refactoring/add-display-terms.js +0 -104
  155. package/dist/refactoring/add-display-terms.js.map +0 -1
  156. package/dist/refactoring/add-history-supplement.d.ts +0 -13
  157. package/dist/refactoring/add-history-supplement.d.ts.map +0 -1
  158. package/dist/refactoring/add-history-supplement.js +0 -80
  159. package/dist/refactoring/add-history-supplement.js.map +0 -1
  160. package/dist/refactoring/add-parentheses.d.ts +0 -14
  161. package/dist/refactoring/add-parentheses.d.ts.map +0 -1
  162. package/dist/refactoring/add-parentheses.js +0 -341
  163. package/dist/refactoring/add-parentheses.js.map +0 -1
  164. package/dist/refactoring/index.d.ts +0 -27
  165. package/dist/refactoring/index.d.ts.map +0 -1
  166. package/dist/refactoring/index.js +0 -237
  167. package/dist/refactoring/index.js.map +0 -1
  168. package/dist/refactoring/remove-parentheses.d.ts +0 -8
  169. package/dist/refactoring/remove-parentheses.d.ts.map +0 -1
  170. package/dist/refactoring/remove-parentheses.js +0 -162
  171. package/dist/refactoring/remove-parentheses.js.map +0 -1
  172. package/dist/refactoring/simplify-expression.d.ts +0 -15
  173. package/dist/refactoring/simplify-expression.d.ts.map +0 -1
  174. package/dist/refactoring/simplify-expression.js +0 -435
  175. package/dist/refactoring/simplify-expression.js.map +0 -1
  176. package/dist/refactoring/strip-display-terms.d.ts +0 -8
  177. package/dist/refactoring/strip-display-terms.d.ts.map +0 -1
  178. package/dist/refactoring/strip-display-terms.js +0 -27
  179. package/dist/refactoring/strip-display-terms.js.map +0 -1
  180. package/dist/semantic/ecl-text.d.ts +0 -35
  181. package/dist/semantic/ecl-text.d.ts.map +0 -1
  182. package/dist/semantic/ecl-text.js +0 -54
  183. package/dist/semantic/ecl-text.js.map +0 -1
  184. package/dist/semantic/validator.d.ts +0 -14
  185. package/dist/semantic/validator.d.ts.map +0 -1
  186. package/dist/semantic/validator.js +0 -183
  187. package/dist/semantic/validator.js.map +0 -1
  188. package/dist/semantic-tokens.d.ts +0 -12
  189. package/dist/semantic-tokens.d.ts.map +0 -1
  190. package/dist/semantic-tokens.js +0 -362
  191. package/dist/semantic-tokens.js.map +0 -1
  192. package/dist/terminology/fetch-compat-browser.d.ts +0 -3
  193. package/dist/terminology/fetch-compat-browser.d.ts.map +0 -1
  194. package/dist/terminology/fetch-compat-browser.js +0 -7
  195. package/dist/terminology/fetch-compat-browser.js.map +0 -1
  196. package/dist/terminology/fetch-compat.d.ts +0 -4
  197. package/dist/terminology/fetch-compat.d.ts.map +0 -1
  198. package/dist/terminology/fetch-compat.js +0 -18
  199. package/dist/terminology/fetch-compat.js.map +0 -1
  200. package/dist/terminology/fhir-service.d.ts +0 -65
  201. package/dist/terminology/fhir-service.d.ts.map +0 -1
  202. package/dist/terminology/fhir-service.js +0 -456
  203. package/dist/terminology/fhir-service.js.map +0 -1
  204. package/dist/terminology/index.d.ts +0 -4
  205. package/dist/terminology/index.d.ts.map +0 -1
  206. package/dist/terminology/index.js +0 -22
  207. package/dist/terminology/index.js.map +0 -1
  208. package/dist/terminology/mock-service.d.ts +0 -11
  209. package/dist/terminology/mock-service.d.ts.map +0 -1
  210. package/dist/terminology/mock-service.js +0 -108
  211. package/dist/terminology/mock-service.js.map +0 -1
  212. package/dist/terminology/types.d.ts +0 -31
  213. package/dist/terminology/types.d.ts.map +0 -1
  214. package/dist/terminology/types.js +0 -5
  215. package/dist/terminology/types.js.map +0 -1
  216. package/dist/terminology/verhoeff.d.ts +0 -38
  217. package/dist/terminology/verhoeff.d.ts.map +0 -1
  218. package/dist/terminology/verhoeff.js +0 -118
  219. package/dist/terminology/verhoeff.js.map +0 -1
  220. package/dist/text-utils.d.ts +0 -17
  221. package/dist/text-utils.d.ts.map +0 -1
  222. package/dist/text-utils.js +0 -49
  223. package/dist/text-utils.js.map +0 -1
  224. package/dist/types.d.ts +0 -64
  225. package/dist/types.d.ts.map +0 -1
  226. package/dist/types.js +0 -15
  227. package/dist/types.js.map +0 -1
  228. package/dist/validation/error-refinement.d.ts +0 -31
  229. package/dist/validation/error-refinement.d.ts.map +0 -1
  230. package/dist/validation/error-refinement.js +0 -173
  231. package/dist/validation/error-refinement.js.map +0 -1
@@ -1,587 +0,0 @@
1
- "use strict";
2
- // Copyright 2026 Commonwealth Scientific and Industrial Research Organisation (CSIRO)
3
- // ABN 41 687 119 230. SPDX-License-Identifier: Apache-2.0
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.ECLASTVisitor = void 0;
6
- const AbstractParseTreeVisitor_1 = require("antlr4ts/tree/AbstractParseTreeVisitor");
7
- const ast_1 = require("./ast");
8
- class ECLASTVisitor extends AbstractParseTreeVisitor_1.AbstractParseTreeVisitor {
9
- defaultResult() {
10
- return null;
11
- }
12
- getRange(ctx) {
13
- const start = ctx.start;
14
- const stop = ctx.stop ?? start;
15
- return {
16
- start: {
17
- line: start.line,
18
- column: start.charPositionInLine,
19
- offset: start.startIndex,
20
- },
21
- end: {
22
- line: stop.line,
23
- column: stop.charPositionInLine + (stop.text?.length ?? 0),
24
- offset: stop.stopIndex + 1,
25
- },
26
- };
27
- }
28
- visitExpressionconstraint(ctx) {
29
- const refined = ctx.refinedexpressionconstraint();
30
- if (refined) {
31
- return {
32
- type: ast_1.NodeType.ExpressionConstraint,
33
- range: this.getRange(ctx),
34
- expression: this.visit(refined),
35
- };
36
- }
37
- const compound = ctx.compoundexpressionconstraint();
38
- if (compound) {
39
- return {
40
- type: ast_1.NodeType.ExpressionConstraint,
41
- range: this.getRange(ctx),
42
- expression: this.visit(compound),
43
- };
44
- }
45
- const dotted = ctx.dottedexpressionconstraint();
46
- if (dotted) {
47
- return {
48
- type: ast_1.NodeType.ExpressionConstraint,
49
- range: this.getRange(ctx),
50
- expression: this.visit(dotted),
51
- };
52
- }
53
- const sub = ctx.subexpressionconstraint();
54
- return {
55
- type: ast_1.NodeType.ExpressionConstraint,
56
- range: this.getRange(ctx),
57
- expression: sub ? this.visit(sub) : null,
58
- };
59
- }
60
- visitSubexpressionconstraint(ctx) {
61
- // Handle nested parenthesized expression: ( expressionconstraint )
62
- const nestedExpr = ctx.expressionconstraint();
63
- if (nestedExpr) {
64
- const innerExpr = this.visit(nestedExpr);
65
- // Extract constraint operator if present
66
- const constraintCtx = ctx.constraintoperator();
67
- const operator = constraintCtx ? this.visitConstraintoperator(constraintCtx) : undefined;
68
- const memberOfCtx = ctx.memberof();
69
- const node = {
70
- type: ast_1.NodeType.SubExpressionConstraint,
71
- range: this.getRange(ctx),
72
- operator,
73
- memberOf: memberOfCtx ? true : undefined,
74
- focus: innerExpr,
75
- };
76
- this.attachFiltersAndHistory(ctx, node);
77
- return node;
78
- }
79
- // Handle focus concept (concept reference or wildcard)
80
- const focusCtx = ctx.eclfocusconcept();
81
- const focus = focusCtx
82
- ? this.visit(focusCtx)
83
- : { type: ast_1.NodeType.Wildcard, range: this.getRange(ctx) };
84
- // Extract constraint operator if present
85
- const constraintCtx = ctx.constraintoperator();
86
- const operator = constraintCtx ? this.visitConstraintoperator(constraintCtx) : undefined;
87
- const memberOfCtx = ctx.memberof();
88
- const node = {
89
- type: ast_1.NodeType.SubExpressionConstraint,
90
- range: this.getRange(ctx),
91
- operator,
92
- memberOf: memberOfCtx ? true : undefined,
93
- focus,
94
- };
95
- this.attachFiltersAndHistory(ctx, node);
96
- return node;
97
- }
98
- visitEclfocusconcept(ctx) {
99
- const conceptRef = ctx.eclconceptreference();
100
- if (conceptRef) {
101
- return this.visit(conceptRef);
102
- }
103
- const wildcard = ctx.wildcard();
104
- if (wildcard) {
105
- return { type: ast_1.NodeType.Wildcard, range: this.getRange(ctx) };
106
- }
107
- // altidentifier — treat as wildcard for now
108
- return { type: ast_1.NodeType.Wildcard, range: this.getRange(ctx) };
109
- }
110
- visitEclconceptreference(ctx) {
111
- const conceptId = ctx.conceptid().text;
112
- const termCtx = ctx.term();
113
- const term = termCtx ? termCtx.text : undefined;
114
- return {
115
- type: ast_1.NodeType.ConceptReference,
116
- range: this.getRange(ctx),
117
- conceptId,
118
- term,
119
- };
120
- }
121
- visitConstraintoperator(ctx) {
122
- let op = '<';
123
- if (ctx.descendantorselfof())
124
- op = '<<';
125
- else if (ctx.childof())
126
- op = '<!';
127
- else if (ctx.childorselfof())
128
- op = '<<!';
129
- else if (ctx.ancestorof())
130
- op = '>';
131
- else if (ctx.ancestororselfof())
132
- op = '>>';
133
- else if (ctx.parentof())
134
- op = '>!';
135
- else if (ctx.parentorselfof())
136
- op = '>>!';
137
- return {
138
- type: ast_1.NodeType.ConstraintOperator,
139
- range: this.getRange(ctx),
140
- operator: op,
141
- };
142
- }
143
- // Compound expressions
144
- visitCompoundexpressionconstraint(ctx) {
145
- const conj = ctx.conjunctionexpressionconstraint();
146
- if (conj)
147
- return this.visit(conj);
148
- const disj = ctx.disjunctionexpressionconstraint();
149
- if (disj)
150
- return this.visit(disj);
151
- const excl = ctx.exclusionexpressionconstraint();
152
- if (excl)
153
- return this.visit(excl);
154
- // Should not reach here for valid input
155
- return null;
156
- }
157
- visitConjunctionexpressionconstraint(ctx) {
158
- const subs = ctx.subexpressionconstraint();
159
- const operands = subs.map((sub) => this.visit(sub));
160
- return {
161
- type: ast_1.NodeType.CompoundExpression,
162
- range: this.getRange(ctx),
163
- operator: {
164
- type: ast_1.NodeType.LogicalOperator,
165
- range: this.getRange(ctx),
166
- operator: 'AND',
167
- },
168
- operands,
169
- };
170
- }
171
- visitDisjunctionexpressionconstraint(ctx) {
172
- const subs = ctx.subexpressionconstraint();
173
- const operands = subs.map((sub) => this.visit(sub));
174
- return {
175
- type: ast_1.NodeType.CompoundExpression,
176
- range: this.getRange(ctx),
177
- operator: {
178
- type: ast_1.NodeType.LogicalOperator,
179
- range: this.getRange(ctx),
180
- operator: 'OR',
181
- },
182
- operands,
183
- };
184
- }
185
- visitExclusionexpressionconstraint(ctx) {
186
- const subs = ctx.subexpressionconstraint();
187
- const operands = subs.map((sub) => this.visit(sub));
188
- return {
189
- type: ast_1.NodeType.CompoundExpression,
190
- range: this.getRange(ctx),
191
- operator: {
192
- type: ast_1.NodeType.LogicalOperator,
193
- range: this.getRange(ctx),
194
- operator: 'MINUS',
195
- },
196
- operands,
197
- };
198
- }
199
- // Refined expressions
200
- visitRefinedexpressionconstraint(ctx) {
201
- const subExpr = this.visit(ctx.subexpressionconstraint());
202
- const refinement = this.visitEclrefinement(ctx.eclrefinement());
203
- return {
204
- type: ast_1.NodeType.RefinedExpression,
205
- range: this.getRange(ctx),
206
- expression: subExpr,
207
- refinement,
208
- };
209
- }
210
- visitEclrefinement(ctx) {
211
- const attributes = [];
212
- // Collect from first subrefinement
213
- this.collectAttributesFromSubrefinement(ctx.subrefinement(), attributes);
214
- // Collect from conjunction refinement set
215
- const conjSet = ctx.conjunctionrefinementset();
216
- if (conjSet) {
217
- const subs = conjSet.subrefinement();
218
- for (const sub of subs) {
219
- this.collectAttributesFromSubrefinement(sub, attributes);
220
- }
221
- }
222
- // Collect from disjunction refinement set
223
- const disjSet = ctx.disjunctionrefinementset();
224
- if (disjSet) {
225
- const subs = disjSet.subrefinement();
226
- for (const sub of subs) {
227
- this.collectAttributesFromSubrefinement(sub, attributes);
228
- }
229
- }
230
- return {
231
- type: ast_1.NodeType.Refinement,
232
- range: this.getRange(ctx),
233
- attributes,
234
- };
235
- }
236
- collectAttributesFromSubrefinement(ctx, attributes) {
237
- // subrefinement can be: eclattributeset | eclattributegroup | ( eclrefinement )
238
- const attrSet = ctx.eclattributeset();
239
- if (attrSet) {
240
- this.collectAttributesFromAttributeSet(attrSet, attributes);
241
- return;
242
- }
243
- const attrGroup = ctx.eclattributegroup();
244
- if (attrGroup) {
245
- // Attribute group: { eclattributeset }
246
- const groupAttrSet = attrGroup.eclattributeset();
247
- this.collectAttributesFromAttributeSet(groupAttrSet, attributes);
248
- return;
249
- }
250
- const nestedRef = ctx.eclrefinement();
251
- if (nestedRef) {
252
- const nested = this.visitEclrefinement(nestedRef);
253
- attributes.push(...nested.attributes);
254
- }
255
- }
256
- collectAttributesFromAttributeSet(ctx, attributes) {
257
- // eclattributeset = subattributeset (ws conjunctionattributeset | ws disjunctionattributeset)?
258
- this.collectAttributeFromSubattributeset(ctx.subattributeset(), attributes);
259
- const conjSet = ctx.conjunctionattributeset();
260
- if (conjSet) {
261
- const subs = conjSet.subattributeset();
262
- for (const sub of subs) {
263
- this.collectAttributeFromSubattributeset(sub, attributes);
264
- }
265
- }
266
- const disjSet = ctx.disjunctionattributeset();
267
- if (disjSet) {
268
- const subs = disjSet.subattributeset();
269
- for (const sub of subs) {
270
- this.collectAttributeFromSubattributeset(sub, attributes);
271
- }
272
- }
273
- }
274
- collectAttributeFromSubattributeset(ctx, attributes) {
275
- // subattributeset = eclattribute | ( eclattributeset )
276
- const attr = ctx.eclattribute();
277
- if (attr) {
278
- const attrNode = this.visitEclattribute(attr);
279
- if (attrNode) {
280
- attributes.push(attrNode);
281
- }
282
- return;
283
- }
284
- const nestedSet = ctx.eclattributeset();
285
- if (nestedSet) {
286
- this.collectAttributesFromAttributeSet(nestedSet, attributes);
287
- }
288
- }
289
- // eslint-disable-next-line sonarjs/cognitive-complexity -- ANTLR visitor with multiple grammar rule branches
290
- visitEclattribute(ctx) {
291
- const nameCtx = ctx.eclattributename();
292
- const nameSubExpr = nameCtx.subexpressionconstraint();
293
- const nameNode = this.visit(nameSubExpr);
294
- // Build attribute name from the sub-expression's focus concept
295
- let attrName;
296
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- defensive: visitor may return null
297
- if (nameNode?.focus?.type === ast_1.NodeType.ConceptReference) {
298
- const conceptRef = nameNode.focus;
299
- attrName = {
300
- type: ast_1.NodeType.AttributeName,
301
- range: this.getRange(nameCtx),
302
- conceptId: conceptRef.conceptId,
303
- term: conceptRef.term,
304
- };
305
- }
306
- else {
307
- // Wildcard or compound expression attribute name — store the expression for traversal
308
- attrName = {
309
- type: ast_1.NodeType.AttributeName,
310
- range: this.getRange(nameCtx),
311
- expression: nameNode,
312
- };
313
- }
314
- const reversed = ctx.reverseflag() ? true : undefined;
315
- // Determine value
316
- let value;
317
- const exprCompOp = ctx.expressioncomparisonoperator();
318
- const subExprCtx = ctx.subexpressionconstraint();
319
- if (exprCompOp && subExprCtx) {
320
- const valueExpr = this.visit(subExprCtx);
321
- value = {
322
- type: ast_1.NodeType.AttributeValue,
323
- range: this.getRange(subExprCtx),
324
- expression: valueExpr,
325
- };
326
- }
327
- else if (ctx.numericcomparisonoperator() && ctx.numericvalue()) {
328
- const numVal = ctx.numericvalue();
329
- value = {
330
- type: ast_1.NodeType.AttributeValue,
331
- range: numVal ? this.getRange(numVal) : this.getRange(ctx),
332
- rawValue: numVal?.text ?? '',
333
- };
334
- }
335
- else if (ctx.stringcomparisonoperator()) {
336
- const searchTerm = ctx.typedsearchterm() ?? ctx.typedsearchtermset();
337
- value = {
338
- type: ast_1.NodeType.AttributeValue,
339
- range: searchTerm ? this.getRange(searchTerm) : this.getRange(ctx),
340
- rawValue: searchTerm ? searchTerm.text : '',
341
- };
342
- }
343
- else if (ctx.booleancomparisonoperator() && ctx.booleanvalue()) {
344
- const boolVal = ctx.booleanvalue();
345
- value = {
346
- type: ast_1.NodeType.AttributeValue,
347
- range: boolVal ? this.getRange(boolVal) : this.getRange(ctx),
348
- rawValue: boolVal?.text ?? '',
349
- };
350
- }
351
- else {
352
- // Fallback for unrecognized attribute value patterns
353
- value = {
354
- type: ast_1.NodeType.AttributeValue,
355
- range: this.getRange(ctx),
356
- rawValue: ctx.text,
357
- };
358
- }
359
- return {
360
- type: ast_1.NodeType.Attribute,
361
- range: this.getRange(ctx),
362
- name: attrName,
363
- value,
364
- reversed,
365
- };
366
- }
367
- // Dotted expressions
368
- visitDottedexpressionconstraint(ctx) {
369
- const source = this.visit(ctx.subexpressionconstraint());
370
- const dottedAttrs = ctx.dottedexpressionattribute();
371
- const attributes = dottedAttrs.map((attr) => this.visitDottedexpressionattribute(attr));
372
- return {
373
- type: ast_1.NodeType.DottedExpression,
374
- range: this.getRange(ctx),
375
- source,
376
- attributes,
377
- };
378
- }
379
- visitDottedexpressionattribute(ctx) {
380
- const nameCtx = ctx.eclattributename();
381
- const nameSubExpr = this.visit(nameCtx.subexpressionconstraint());
382
- return {
383
- type: ast_1.NodeType.DottedAttribute,
384
- range: this.getRange(ctx),
385
- attributeName: nameSubExpr,
386
- };
387
- }
388
- // Filter constraints and history supplement
389
- attachFiltersAndHistory(ctx, node) {
390
- const filters = [];
391
- const descFilters = ctx.descriptionfilterconstraint();
392
- for (const df of descFilters) {
393
- filters.push(this.visitDescriptionfilterconstraint(df));
394
- }
395
- const conceptFilters = ctx.conceptfilterconstraint();
396
- for (const cf of conceptFilters) {
397
- filters.push(this.visitConceptfilterconstraint(cf));
398
- }
399
- const memberFilters = ctx.memberfilterconstraint();
400
- for (const mf of memberFilters) {
401
- filters.push(this.visitMemberfilterconstraint(mf));
402
- }
403
- if (filters.length > 0) {
404
- node.filters = filters;
405
- }
406
- const histCtx = ctx.historysupplement();
407
- if (histCtx) {
408
- node.historySupplement = this.visitHistorysupplement(histCtx);
409
- }
410
- }
411
- visitDescriptionfilterconstraint(ctx) {
412
- const conceptExpressions = [];
413
- const conceptReferences = [];
414
- const filters = ctx.descriptionfilter();
415
- for (const f of filters) {
416
- this.collectConceptsFromDescriptionFilter(f, conceptExpressions, conceptReferences);
417
- }
418
- return {
419
- type: ast_1.NodeType.FilterConstraint,
420
- range: this.getRange(ctx),
421
- filterType: 'description',
422
- conceptExpressions,
423
- conceptReferences,
424
- };
425
- }
426
- visitConceptfilterconstraint(ctx) {
427
- const conceptExpressions = [];
428
- const conceptReferences = [];
429
- const filters = ctx.conceptfilter();
430
- for (const f of filters) {
431
- this.collectConceptsFromConceptFilter(f, conceptExpressions, conceptReferences);
432
- }
433
- return {
434
- type: ast_1.NodeType.FilterConstraint,
435
- range: this.getRange(ctx),
436
- filterType: 'concept',
437
- conceptExpressions,
438
- conceptReferences,
439
- };
440
- }
441
- visitMemberfilterconstraint(ctx) {
442
- const conceptExpressions = [];
443
- const conceptReferences = [];
444
- const filters = ctx.memberfilter();
445
- for (const f of filters) {
446
- this.collectConceptsFromMemberFilter(f, conceptExpressions, conceptReferences);
447
- }
448
- return {
449
- type: ast_1.NodeType.FilterConstraint,
450
- range: this.getRange(ctx),
451
- filterType: 'member',
452
- conceptExpressions,
453
- conceptReferences,
454
- };
455
- }
456
- visitHistorysupplement(ctx) {
457
- let profile;
458
- const profileCtx = ctx.historyprofilesuffix();
459
- if (profileCtx) {
460
- if (profileCtx.historyminimumsuffix())
461
- profile = 'MIN';
462
- else if (profileCtx.historymoderatesuffix())
463
- profile = 'MOD';
464
- else if (profileCtx.historymaximumsuffix())
465
- profile = 'MAX';
466
- }
467
- let subsetExpression;
468
- const subsetCtx = ctx.historysubset();
469
- if (subsetCtx) {
470
- subsetExpression = this.visit(subsetCtx.expressionconstraint());
471
- }
472
- return {
473
- type: ast_1.NodeType.HistorySupplement,
474
- range: this.getRange(ctx),
475
- profile,
476
- subsetExpression,
477
- };
478
- }
479
- // eslint-disable-next-line sonarjs/cognitive-complexity -- ANTLR visitor traversing multiple grammar branches
480
- collectConceptsFromDescriptionFilter(ctx, conceptExpressions, conceptReferences) {
481
- // typeFilter: typeidfilter has subexpressionconstraint | eclconceptreferenceset
482
- const typeFilter = ctx.typefilter();
483
- if (typeFilter) {
484
- const typeidFilter = typeFilter.typeidfilter();
485
- if (typeidFilter) {
486
- this.collectFromIdFilter(typeidFilter, conceptExpressions, conceptReferences);
487
- }
488
- // typetokenfilter has no concept references — skip
489
- }
490
- // dialectFilter: dialectidfilter has subexpressionconstraint | dialectidset
491
- const dialectFilter = ctx.dialectfilter();
492
- if (dialectFilter) {
493
- const dialectidFilter = dialectFilter.dialectidfilter();
494
- if (dialectidFilter) {
495
- const subExpr = dialectidFilter.subexpressionconstraint();
496
- if (subExpr) {
497
- conceptExpressions.push(this.visit(subExpr));
498
- }
499
- const dialectIdSet = dialectidFilter.dialectidset();
500
- if (dialectIdSet) {
501
- const refs = dialectIdSet.eclconceptreference();
502
- for (const ref of refs) {
503
- conceptReferences.push(this.visitEclconceptreference(ref));
504
- }
505
- }
506
- }
507
- // acceptabilityset on the dialectfilter
508
- const acceptabilitySet = dialectFilter.acceptabilityset();
509
- if (acceptabilitySet) {
510
- this.collectFromAcceptabilityset(acceptabilitySet, conceptReferences);
511
- }
512
- // dialectaliasfilter has no concept references — skip
513
- }
514
- // moduleFilter
515
- const moduleFilter = ctx.modulefilter();
516
- if (moduleFilter) {
517
- this.collectFromModuleFilter(moduleFilter, conceptExpressions, conceptReferences);
518
- }
519
- // termfilter, languagefilter, effectivetimefilter, activefilter, descriptionidfilter — no concept IDs
520
- }
521
- collectConceptsFromConceptFilter(ctx, conceptExpressions, conceptReferences) {
522
- // definitionStatusFilter: definitionstatusidfilter has subexpressionconstraint | eclconceptreferenceset
523
- const defStatusFilter = ctx.definitionstatusfilter();
524
- if (defStatusFilter) {
525
- const defStatusIdFilter = defStatusFilter.definitionstatusidfilter();
526
- if (defStatusIdFilter) {
527
- this.collectFromIdFilter(defStatusIdFilter, conceptExpressions, conceptReferences);
528
- }
529
- // definitionstatustokenfilter has no concept references — skip
530
- }
531
- // moduleFilter
532
- const moduleFilter = ctx.modulefilter();
533
- if (moduleFilter) {
534
- this.collectFromModuleFilter(moduleFilter, conceptExpressions, conceptReferences);
535
- }
536
- // effectivetimefilter, activefilter — no concept IDs
537
- }
538
- collectConceptsFromMemberFilter(ctx, conceptExpressions, conceptReferences) {
539
- // moduleFilter
540
- const moduleFilter = ctx.modulefilter();
541
- if (moduleFilter) {
542
- this.collectFromModuleFilter(moduleFilter, conceptExpressions, conceptReferences);
543
- }
544
- // memberfieldfilter: expression comparison branch has subexpressionconstraint
545
- const memberFieldFilter = ctx.memberfieldfilter();
546
- if (memberFieldFilter) {
547
- const exprComp = memberFieldFilter.expressioncomparisonoperator();
548
- const subExpr = memberFieldFilter.subexpressionconstraint();
549
- if (exprComp && subExpr) {
550
- conceptExpressions.push(this.visit(subExpr));
551
- }
552
- // numeric, string, boolean, time comparisons — no concept IDs
553
- }
554
- // effectivetimefilter, activefilter — no concept IDs
555
- }
556
- /** Shared: modulefilter has subexpressionconstraint | eclconceptreferenceset */
557
- collectFromModuleFilter(ctx, conceptExpressions, conceptReferences) {
558
- this.collectFromIdFilter(ctx, conceptExpressions, conceptReferences);
559
- }
560
- /** Shared: any filter with subexpressionconstraint() | eclconceptreferenceset() */
561
- collectFromIdFilter(ctx, conceptExpressions, conceptReferences) {
562
- const subExpr = ctx.subexpressionconstraint();
563
- if (subExpr) {
564
- conceptExpressions.push(this.visit(subExpr));
565
- }
566
- const refSet = ctx.eclconceptreferenceset();
567
- if (refSet) {
568
- const refs = refSet.eclconceptreference();
569
- for (const ref of refs) {
570
- conceptReferences.push(this.visitEclconceptreference(ref));
571
- }
572
- }
573
- }
574
- /** Collect concept references from acceptabilityset (acceptabilityconceptreferenceset branch) */
575
- collectFromAcceptabilityset(ctx, conceptReferences) {
576
- const conceptRefSet = ctx.acceptabilityconceptreferenceset();
577
- if (conceptRefSet) {
578
- const refs = conceptRefSet.eclconceptreference();
579
- for (const ref of refs) {
580
- conceptReferences.push(this.visitEclconceptreference(ref));
581
- }
582
- }
583
- // acceptabilitytokenset has no concept references
584
- }
585
- }
586
- exports.ECLASTVisitor = ECLASTVisitor;
587
- //# sourceMappingURL=visitor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"visitor.js","sourceRoot":"","sources":["../../src/parser/visitor.ts"],"names":[],"mappings":";AAAA,sFAAsF;AACtF,0DAA0D;;;AAG1D,qFAAkF;AAElF,+BAkBe;AAGf,MAAa,aAAc,SAAQ,mDAA6B;IACpD,aAAa;QACrB,OAAO,IAAI,CAAC;IACd,CAAC;IAEO,QAAQ,CAAC,GAAsB;QACrC,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QACxB,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,IAAI,KAAK,CAAC;QAC/B,OAAO;YACL,KAAK,EAAE;gBACL,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,MAAM,EAAE,KAAK,CAAC,kBAAkB;gBAChC,MAAM,EAAE,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BAAyC;QAEzC,MAAM,OAAO,GAAG,GAAG,CAAC,uBAAuB,EAAE,CAAC;QAC9C,IAAI,OAAO,EAAE,CAAC;YACZ,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAsB,CAAC,CAAC;QACpE,CAAC;QACD,MAAM,MAAM,GAAG,GAAG,CAAC,sBAAsB,EAAE,CAAC;QAC5C,IAAI,MAAM,EAAE,CAAC;YACX,MAAM,IAAI,GAAG,MAAM,CAAC,mBAAmB,EAAE,CAAC;YAC1C,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;gBACvB,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC,CAAC;YAC7D,CAAC;QACH,CAAC;IACH,CAAC;IAED,iGAAiG;IACzF,2BAA2B,CACjC,GAAgC,EAChC,iBAAyC;QAEzC,MAAM,aAAa,GAAG,GAAG,CAAC,gCAAgC,EAAE,CAAC;QAC7D,IAAI,aAAa,EAAE,CAAC;YAClB,MAAM,IAAI,GAAG,aAAa,CAAC,mBAAmB,EAAE,CAAC;YACjD,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;gBACvB,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC,CAAC;YAC7D,CAAC;QACH,CAAC;QACD,kDAAkD;IACpD,CAAC;CACF;AAtqBD,sCAsqBC"}
@@ -1,8 +0,0 @@
1
- import type { CoreCodeAction } from '../types';
2
- import type { RefactoringContext } from './index';
3
- /**
4
- * Returns an "Add description filter" code action when the expression does
5
- * not already contain a description filter. Returns null otherwise.
6
- */
7
- export declare function getAddDescriptionFilterAction(ctx: RefactoringContext): CoreCodeAction | null;
8
- //# sourceMappingURL=add-description-filter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-description-filter.d.ts","sourceRoot":"","sources":["../../src/refactoring/add-description-filter.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAiElD;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,kBAAkB,GAAG,cAAc,GAAG,IAAI,CAmB5F"}