@reqlan/language 1.4.0 → 1.4.1

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 (181) hide show
  1. package/README.md +115 -24
  2. package/README.template.md +32 -0
  3. package/package.json +2 -2
  4. package/out/src/file-path-rewrite.d.ts +0 -25
  5. package/out/src/file-path-rewrite.js +0 -56
  6. package/out/src/file-path-rewrite.js.map +0 -1
  7. package/out/src/generated/ast.d.ts +0 -1173
  8. package/out/src/generated/ast.js +0 -994
  9. package/out/src/generated/ast.js.map +0 -1
  10. package/out/src/generated/grammar.d.ts +0 -7
  11. package/out/src/generated/grammar.js +0 -3045
  12. package/out/src/generated/grammar.js.map +0 -1
  13. package/out/src/generated/module.d.ts +0 -20
  14. package/out/src/generated/module.js +0 -32
  15. package/out/src/generated/module.js.map +0 -1
  16. package/out/src/index.d.ts +0 -29
  17. package/out/src/index.js +0 -30
  18. package/out/src/index.js.map +0 -1
  19. package/out/src/reqlan-attribute-catalog.d.ts +0 -19
  20. package/out/src/reqlan-attribute-catalog.js +0 -87
  21. package/out/src/reqlan-attribute-catalog.js.map +0 -1
  22. package/out/src/reqlan-code-action-provider.d.ts +0 -34
  23. package/out/src/reqlan-code-action-provider.js +0 -206
  24. package/out/src/reqlan-code-action-provider.js.map +0 -1
  25. package/out/src/reqlan-comment-resolver.d.ts +0 -35
  26. package/out/src/reqlan-comment-resolver.js +0 -308
  27. package/out/src/reqlan-comment-resolver.js.map +0 -1
  28. package/out/src/reqlan-completion-context.d.ts +0 -46
  29. package/out/src/reqlan-completion-context.js +0 -244
  30. package/out/src/reqlan-completion-context.js.map +0 -1
  31. package/out/src/reqlan-completion-provider.d.ts +0 -41
  32. package/out/src/reqlan-completion-provider.js +0 -320
  33. package/out/src/reqlan-completion-provider.js.map +0 -1
  34. package/out/src/reqlan-definition-provider.d.ts +0 -31
  35. package/out/src/reqlan-definition-provider.js +0 -240
  36. package/out/src/reqlan-definition-provider.js.map +0 -1
  37. package/out/src/reqlan-document-highlight-provider.d.ts +0 -10
  38. package/out/src/reqlan-document-highlight-provider.js +0 -11
  39. package/out/src/reqlan-document-highlight-provider.js.map +0 -1
  40. package/out/src/reqlan-document-link-provider.d.ts +0 -14
  41. package/out/src/reqlan-document-link-provider.js +0 -24
  42. package/out/src/reqlan-document-link-provider.js.map +0 -1
  43. package/out/src/reqlan-embedded-file-references.d.ts +0 -11
  44. package/out/src/reqlan-embedded-file-references.js +0 -50
  45. package/out/src/reqlan-embedded-file-references.js.map +0 -1
  46. package/out/src/reqlan-file-link-resolver.d.ts +0 -44
  47. package/out/src/reqlan-file-link-resolver.js +0 -347
  48. package/out/src/reqlan-file-link-resolver.js.map +0 -1
  49. package/out/src/reqlan-file-references.d.ts +0 -15
  50. package/out/src/reqlan-file-references.js +0 -72
  51. package/out/src/reqlan-file-references.js.map +0 -1
  52. package/out/src/reqlan-grammar-config.d.ts +0 -5
  53. package/out/src/reqlan-grammar-config.js +0 -9
  54. package/out/src/reqlan-grammar-config.js.map +0 -1
  55. package/out/src/reqlan-idea-summary.d.ts +0 -6
  56. package/out/src/reqlan-idea-summary.js +0 -78
  57. package/out/src/reqlan-idea-summary.js.map +0 -1
  58. package/out/src/reqlan-ignore-error.d.ts +0 -10
  59. package/out/src/reqlan-ignore-error.js +0 -42
  60. package/out/src/reqlan-ignore-error.js.map +0 -1
  61. package/out/src/reqlan-import-bindings.d.ts +0 -12
  62. package/out/src/reqlan-import-bindings.js +0 -65
  63. package/out/src/reqlan-import-bindings.js.map +0 -1
  64. package/out/src/reqlan-import-edits.d.ts +0 -17
  65. package/out/src/reqlan-import-edits.js +0 -96
  66. package/out/src/reqlan-import-edits.js.map +0 -1
  67. package/out/src/reqlan-imports.d.ts +0 -22
  68. package/out/src/reqlan-imports.js +0 -61
  69. package/out/src/reqlan-imports.js.map +0 -1
  70. package/out/src/reqlan-inbound-reference-inlay-label.d.ts +0 -23
  71. package/out/src/reqlan-inbound-reference-inlay-label.js +0 -128
  72. package/out/src/reqlan-inbound-reference-inlay-label.js.map +0 -1
  73. package/out/src/reqlan-inlay-hint-provider.d.ts +0 -15
  74. package/out/src/reqlan-inlay-hint-provider.js +0 -54
  75. package/out/src/reqlan-inlay-hint-provider.js.map +0 -1
  76. package/out/src/reqlan-inlay-hint-settings.d.ts +0 -10
  77. package/out/src/reqlan-inlay-hint-settings.js +0 -10
  78. package/out/src/reqlan-inlay-hint-settings.js.map +0 -1
  79. package/out/src/reqlan-linker.d.ts +0 -26
  80. package/out/src/reqlan-linker.js +0 -86
  81. package/out/src/reqlan-linker.js.map +0 -1
  82. package/out/src/reqlan-markdown-links.d.ts +0 -28
  83. package/out/src/reqlan-markdown-links.js +0 -113
  84. package/out/src/reqlan-markdown-links.js.map +0 -1
  85. package/out/src/reqlan-module.d.ts +0 -41
  86. package/out/src/reqlan-module.js +0 -76
  87. package/out/src/reqlan-module.js.map +0 -1
  88. package/out/src/reqlan-name-catalog.d.ts +0 -23
  89. package/out/src/reqlan-name-catalog.js +0 -63
  90. package/out/src/reqlan-name-catalog.js.map +0 -1
  91. package/out/src/reqlan-name-provider.d.ts +0 -10
  92. package/out/src/reqlan-name-provider.js +0 -38
  93. package/out/src/reqlan-name-provider.js.map +0 -1
  94. package/out/src/reqlan-namespace-import-links.d.ts +0 -10
  95. package/out/src/reqlan-namespace-import-links.js +0 -81
  96. package/out/src/reqlan-namespace-import-links.js.map +0 -1
  97. package/out/src/reqlan-path-completion.d.ts +0 -50
  98. package/out/src/reqlan-path-completion.js +0 -304
  99. package/out/src/reqlan-path-completion.js.map +0 -1
  100. package/out/src/reqlan-path-references.d.ts +0 -5
  101. package/out/src/reqlan-path-references.js +0 -124
  102. package/out/src/reqlan-path-references.js.map +0 -1
  103. package/out/src/reqlan-path-resolve.d.ts +0 -59
  104. package/out/src/reqlan-path-resolve.js +0 -173
  105. package/out/src/reqlan-path-resolve.js.map +0 -1
  106. package/out/src/reqlan-quoted-strings.d.ts +0 -9
  107. package/out/src/reqlan-quoted-strings.js +0 -26
  108. package/out/src/reqlan-quoted-strings.js.map +0 -1
  109. package/out/src/reqlan-reference-at-position.d.ts +0 -20
  110. package/out/src/reqlan-reference-at-position.js +0 -89
  111. package/out/src/reqlan-reference-at-position.js.map +0 -1
  112. package/out/src/reqlan-references.d.ts +0 -16
  113. package/out/src/reqlan-references.js +0 -51
  114. package/out/src/reqlan-references.js.map +0 -1
  115. package/out/src/reqlan-scope.d.ts +0 -25
  116. package/out/src/reqlan-scope.js +0 -266
  117. package/out/src/reqlan-scope.js.map +0 -1
  118. package/out/src/reqlan-semantic-token-provider.d.ts +0 -8
  119. package/out/src/reqlan-semantic-token-provider.js +0 -97
  120. package/out/src/reqlan-semantic-token-provider.js.map +0 -1
  121. package/out/src/reqlan-token-builder.d.ts +0 -12
  122. package/out/src/reqlan-token-builder.js +0 -459
  123. package/out/src/reqlan-token-builder.js.map +0 -1
  124. package/out/src/reqlan-validator.d.ts +0 -25
  125. package/out/src/reqlan-validator.js +0 -119
  126. package/out/src/reqlan-validator.js.map +0 -1
  127. package/out/src/reqlan-workspace-attribute-catalog.d.ts +0 -6
  128. package/out/src/reqlan-workspace-attribute-catalog.js +0 -54
  129. package/out/src/reqlan-workspace-attribute-catalog.js.map +0 -1
  130. package/out/test/code-actions.test.d.ts +0 -1
  131. package/out/test/code-actions.test.js +0 -126
  132. package/out/test/code-actions.test.js.map +0 -1
  133. package/out/test/comment-in-string.test.d.ts +0 -1
  134. package/out/test/comment-in-string.test.js +0 -100
  135. package/out/test/comment-in-string.test.js.map +0 -1
  136. package/out/test/completion.test.d.ts +0 -1
  137. package/out/test/completion.test.js +0 -467
  138. package/out/test/completion.test.js.map +0 -1
  139. package/out/test/file-path-rewrite.test.d.ts +0 -1
  140. package/out/test/file-path-rewrite.test.js +0 -64
  141. package/out/test/file-path-rewrite.test.js.map +0 -1
  142. package/out/test/ignore-error.test.d.ts +0 -1
  143. package/out/test/ignore-error.test.js +0 -87
  144. package/out/test/ignore-error.test.js.map +0 -1
  145. package/out/test/implicit-import-extension.test.d.ts +0 -1
  146. package/out/test/implicit-import-extension.test.js +0 -203
  147. package/out/test/implicit-import-extension.test.js.map +0 -1
  148. package/out/test/import-edits.test.d.ts +0 -1
  149. package/out/test/import-edits.test.js +0 -20
  150. package/out/test/import-edits.test.js.map +0 -1
  151. package/out/test/inlay-hints.test.d.ts +0 -1
  152. package/out/test/inlay-hints.test.js +0 -238
  153. package/out/test/inlay-hints.test.js.map +0 -1
  154. package/out/test/linking.test.d.ts +0 -1
  155. package/out/test/linking.test.js +0 -754
  156. package/out/test/linking.test.js.map +0 -1
  157. package/out/test/naked-strings.test.d.ts +0 -1
  158. package/out/test/naked-strings.test.js +0 -50
  159. package/out/test/naked-strings.test.js.map +0 -1
  160. package/out/test/parsing.test.d.ts +0 -1
  161. package/out/test/parsing.test.js +0 -773
  162. package/out/test/parsing.test.js.map +0 -1
  163. package/out/test/path-resolve.test.d.ts +0 -1
  164. package/out/test/path-resolve.test.js +0 -88
  165. package/out/test/path-resolve.test.js.map +0 -1
  166. package/out/test/references.test.d.ts +0 -1
  167. package/out/test/references.test.js +0 -168
  168. package/out/test/references.test.js.map +0 -1
  169. package/out/test/rqconfig.test.d.ts +0 -1
  170. package/out/test/rqconfig.test.js +0 -275
  171. package/out/test/rqconfig.test.js.map +0 -1
  172. package/out/test/test-requirement-refs.d.ts +0 -8
  173. package/out/test/test-requirement-refs.js +0 -35
  174. package/out/test/test-requirement-refs.js.map +0 -1
  175. package/out/test/testing.test.d.ts +0 -1
  176. package/out/test/testing.test.js +0 -23
  177. package/out/test/testing.test.js.map +0 -1
  178. package/out/test/validating.test.d.ts +0 -1
  179. package/out/test/validating.test.js +0 -117
  180. package/out/test/validating.test.js.map +0 -1
  181. package/out/tsconfig.tsbuildinfo +0 -1
@@ -1,994 +0,0 @@
1
- /******************************************************************************
2
- * This file was generated by langium-cli 4.3.0.
3
- * DO NOT EDIT MANUALLY!
4
- ******************************************************************************/
5
- /* eslint-disable */
6
- import * as langium from 'langium';
7
- /** Contains the reachable terminals & keywords and all available types of the 'Reqlan' language. */
8
- export var Reqlan;
9
- (function (Reqlan) {
10
- Reqlan.Terminals = {
11
- NL: /\r?\n/,
12
- WS: /[ \t]+/,
13
- ML_COMMENT: /\/\*[\s\S]*?\*\//,
14
- SL_COMMENT: /\/\/[^\n\r]*/,
15
- MARKDOWN_LINK: /\[(?!\[)[^\]]+\]\([^)]+\)/,
16
- ID: /[_a-zA-Z][\w_]*/,
17
- STRING: /"(\\.|[^"\\\r\n])*"|'(\\.|[^'\\\r\n])*'/,
18
- NUMBER: /\d+/,
19
- WORD: /[A-Za-z_][\w']*/,
20
- OTHER: /[^\s\w\[\]()`]/,
21
- INLINE_CODE: /`[^`\n]+`/,
22
- CODE_FENCE: /```[^\n]*(?:\r?\n[\s\S]*?)?```/,
23
- };
24
- })(Reqlan || (Reqlan = {}));
25
- /** Contains the reachable terminals & keywords and all available types of the 'ReqlanComment' language. */
26
- export var ReqlanComment;
27
- (function (ReqlanComment) {
28
- ReqlanComment.Terminals = {
29
- ID: /[_a-zA-Z][\w_]*/,
30
- STRING: /"(\\.|[^"\\])*"/,
31
- };
32
- })(ReqlanComment || (ReqlanComment = {}));
33
- // the terminals, keywords and types of the whole 'Reqlan' project
34
- export const ReqlanTerminals = {
35
- ...Reqlan.Terminals,
36
- ...ReqlanComment.Terminals,
37
- };
38
- export const AliasPart = {
39
- $type: 'AliasPart',
40
- punct: 'punct',
41
- text: 'text'
42
- };
43
- export function isAliasPart(item) {
44
- return reflection.isInstance(item, AliasPart.$type);
45
- }
46
- export const AnonymousBlock = {
47
- $type: 'AnonymousBlock',
48
- elements: 'elements'
49
- };
50
- export function isAnonymousBlock(item) {
51
- return reflection.isInstance(item, AnonymousBlock.$type);
52
- }
53
- export const Attribute = {
54
- $type: 'Attribute',
55
- name: 'name',
56
- negated: 'negated',
57
- value: 'value'
58
- };
59
- export function isAttribute(item) {
60
- return reflection.isInstance(item, Attribute.$type);
61
- }
62
- export const AttributeValue = {
63
- $type: 'AttributeValue'
64
- };
65
- export function isAttributeValue(item) {
66
- return reflection.isInstance(item, AttributeValue.$type);
67
- }
68
- export const BlockElement = {
69
- $type: 'BlockElement'
70
- };
71
- export function isBlockElement(item) {
72
- return reflection.isInstance(item, BlockElement.$type);
73
- }
74
- export const BlockLine = {
75
- $type: 'BlockLine',
76
- parts: 'parts'
77
- };
78
- export function isBlockLine(item) {
79
- return reflection.isInstance(item, BlockLine.$type);
80
- }
81
- export const BlockValue = {
82
- $type: 'BlockValue',
83
- elements: 'elements'
84
- };
85
- export function isBlockValue(item) {
86
- return reflection.isInstance(item, BlockValue.$type);
87
- }
88
- export const BodyElement = {
89
- $type: 'BodyElement'
90
- };
91
- export function isBodyElement(item) {
92
- return reflection.isInstance(item, BodyElement.$type);
93
- }
94
- export const BodyLine = {
95
- $type: 'BodyLine',
96
- parts: 'parts'
97
- };
98
- export function isBodyLine(item) {
99
- return reflection.isInstance(item, BodyLine.$type);
100
- }
101
- export const BracketReference = {
102
- $type: 'BracketReference',
103
- inlineCode: 'inlineCode',
104
- lparen: 'lparen',
105
- punct: 'punct',
106
- rparen: 'rparen',
107
- target: 'target',
108
- text: 'text'
109
- };
110
- export function isBracketReference(item) {
111
- return reflection.isInstance(item, BracketReference.$type);
112
- }
113
- export const CodeSnippet = {
114
- $type: 'CodeSnippet',
115
- raw: 'raw'
116
- };
117
- export function isCodeSnippet(item) {
118
- return reflection.isInstance(item, CodeSnippet.$type);
119
- }
120
- export const CommentModel = {
121
- $type: 'CommentModel',
122
- references: 'references'
123
- };
124
- export function isCommentModel(item) {
125
- return reflection.isInstance(item, CommentModel.$type);
126
- }
127
- export const CommentReference = {
128
- $type: 'CommentReference',
129
- target: 'target'
130
- };
131
- export function isCommentReference(item) {
132
- return reflection.isInstance(item, CommentReference.$type);
133
- }
134
- export const CommentReferenceTarget = {
135
- $type: 'CommentReferenceTarget'
136
- };
137
- export function isCommentReferenceTarget(item) {
138
- return reflection.isInstance(item, CommentReferenceTarget.$type);
139
- }
140
- export const FileReference = {
141
- $type: 'FileReference',
142
- file: 'file'
143
- };
144
- export function isFileReference(item) {
145
- return reflection.isInstance(item, FileReference.$type);
146
- }
147
- export const FileSymbolReference = {
148
- $type: 'FileSymbolReference',
149
- file: 'file',
150
- symbols: 'symbols'
151
- };
152
- export function isFileSymbolReference(item) {
153
- return reflection.isInstance(item, FileSymbolReference.$type);
154
- }
155
- export const FromImport = {
156
- $type: 'FromImport',
157
- path: 'path',
158
- specifiers: 'specifiers'
159
- };
160
- export function isFromImport(item) {
161
- return reflection.isInstance(item, FromImport.$type);
162
- }
163
- export const FromImportSpecifier = {
164
- $type: 'FromImportSpecifier',
165
- alias: 'alias',
166
- idea: 'idea'
167
- };
168
- export function isFromImportSpecifier(item) {
169
- return reflection.isInstance(item, FromImportSpecifier.$type);
170
- }
171
- export const Idea = {
172
- $type: 'Idea',
173
- elements: 'elements',
174
- name: 'name'
175
- };
176
- export function isIdea(item) {
177
- return reflection.isInstance(item, Idea.$type);
178
- }
179
- export const IdeaDeclaration = {
180
- $type: 'IdeaDeclaration'
181
- };
182
- export function isIdeaDeclaration(item) {
183
- return reflection.isInstance(item, IdeaDeclaration.$type);
184
- }
185
- export function isIdeaMemberName(item) {
186
- return (typeof item === 'string' && (/[_a-zA-Z][\w_]*/.test(item) || /"(\\.|[^"\\\r\n])*"|'(\\.|[^'\\\r\n])*'/.test(item)));
187
- }
188
- export function isIdeaName(item) {
189
- return (typeof item === 'string' && (/[_a-zA-Z][\w_]*/.test(item) || /"(\\.|[^"\\\r\n])*"|'(\\.|[^'\\\r\n])*'/.test(item)));
190
- }
191
- export const IdeaSet = {
192
- $type: 'IdeaSet',
193
- members: 'members',
194
- name: 'name'
195
- };
196
- export function isIdeaSet(item) {
197
- return reflection.isInstance(item, IdeaSet.$type);
198
- }
199
- export const Import = {
200
- $type: 'Import'
201
- };
202
- export function isImport(item) {
203
- return reflection.isInstance(item, Import.$type);
204
- }
205
- export const InlineTextPart = {
206
- $type: 'InlineTextPart',
207
- inlineCode: 'inlineCode',
208
- punct: 'punct',
209
- text: 'text'
210
- };
211
- export function isInlineTextPart(item) {
212
- return reflection.isInstance(item, InlineTextPart.$type);
213
- }
214
- export const ListItem = {
215
- $type: 'ListItem'
216
- };
217
- export function isListItem(item) {
218
- return reflection.isInstance(item, ListItem.$type);
219
- }
220
- export const ListItemBody = {
221
- $type: 'ListItemBody',
222
- content: 'content'
223
- };
224
- export function isListItemBody(item) {
225
- return reflection.isInstance(item, ListItemBody.$type);
226
- }
227
- export function isListItemPunctuation(item) {
228
- return item === '.' || item === ':' || item === ';' || item === '!' || item === '?' || item === '-';
229
- }
230
- export function isListItemText(item) {
231
- return isListItemPunctuation(item) || item === '(' || item === '|' || item === 'from' || item === 'import' || item === 'as' || item === '`' || (typeof item === 'string' && (/[A-Za-z_][\w']*/.test(item) || /[_a-zA-Z][\w_]*/.test(item) || /\d+/.test(item) || /`[^`\n]+`/.test(item) || /[^\s\w\[\]()`]/.test(item)));
232
- }
233
- export const ListValue = {
234
- $type: 'ListValue',
235
- items: 'items'
236
- };
237
- export function isListValue(item) {
238
- return reflection.isInstance(item, ListValue.$type);
239
- }
240
- export const LocalCommentReference = {
241
- $type: 'LocalCommentReference',
242
- idea: 'idea'
243
- };
244
- export function isLocalCommentReference(item) {
245
- return reflection.isInstance(item, LocalCommentReference.$type);
246
- }
247
- export const LocalReference = {
248
- $type: 'LocalReference',
249
- attribute: 'attribute',
250
- idea: 'idea',
251
- ideaset: 'ideaset'
252
- };
253
- export function isLocalReference(item) {
254
- return reflection.isInstance(item, LocalReference.$type);
255
- }
256
- export const MarkdownLink = {
257
- $type: 'MarkdownLink',
258
- inlineCode: 'inlineCode',
259
- lparen: 'lparen',
260
- punct: 'punct',
261
- raw: 'raw',
262
- rparen: 'rparen',
263
- text: 'text'
264
- };
265
- export function isMarkdownLink(item) {
266
- return reflection.isInstance(item, MarkdownLink.$type);
267
- }
268
- export const Model = {
269
- $type: 'Model',
270
- elements: 'elements',
271
- imports: 'imports'
272
- };
273
- export function isModel(item) {
274
- return reflection.isInstance(item, Model.$type);
275
- }
276
- export const NamedBlockListItem = {
277
- $type: 'NamedBlockListItem',
278
- elements: 'elements',
279
- name: 'name'
280
- };
281
- export function isNamedBlockListItem(item) {
282
- return reflection.isInstance(item, NamedBlockListItem.$type);
283
- }
284
- export const NamedList = {
285
- $type: 'NamedList',
286
- items: 'items',
287
- label: 'label'
288
- };
289
- export function isNamedList(item) {
290
- return reflection.isInstance(item, NamedList.$type);
291
- }
292
- export const NamespaceImport = {
293
- $type: 'NamespaceImport',
294
- alias: 'alias',
295
- path: 'path'
296
- };
297
- export function isNamespaceImport(item) {
298
- return reflection.isInstance(item, NamespaceImport.$type);
299
- }
300
- export const NestedList = {
301
- $type: 'NestedList',
302
- items: 'items'
303
- };
304
- export function isNestedList(item) {
305
- return reflection.isInstance(item, NestedList.$type);
306
- }
307
- export const OneLinerBody = {
308
- $type: 'OneLinerBody',
309
- content: 'content'
310
- };
311
- export function isOneLinerBody(item) {
312
- return reflection.isInstance(item, OneLinerBody.$type);
313
- }
314
- export const OneLinerIdea = {
315
- $type: 'OneLinerIdea',
316
- body: 'body',
317
- name: 'name'
318
- };
319
- export function isOneLinerIdea(item) {
320
- return reflection.isInstance(item, OneLinerIdea.$type);
321
- }
322
- export const OneLinerListItem = {
323
- $type: 'OneLinerListItem',
324
- body: 'body'
325
- };
326
- export function isOneLinerListItem(item) {
327
- return reflection.isInstance(item, OneLinerListItem.$type);
328
- }
329
- export function isOneLinerText(item) {
330
- return isPlainPunctuation(item) || item === '(' || item === ')' || item === '|' || item === 'from' || item === 'import' || item === 'as' || item === '`' || (typeof item === 'string' && (/[A-Za-z_][\w']*/.test(item) || /[_a-zA-Z][\w_]*/.test(item) || /\d+/.test(item) || /`[^`\n]+`/.test(item) || /[^\s\w\[\]()`]/.test(item)));
331
- }
332
- export function isPlainPunctuation(item) {
333
- return item === '.' || item === ',' || item === ':' || item === ';' || item === '!' || item === '?' || item === '-';
334
- }
335
- export function isPlainText(item) {
336
- return isPlainPunctuation(item) || item === '[' || item === ']' || item === '|' || item === 'from' || item === 'import' || item === 'as' || item === '`' || (typeof item === 'string' && (/[A-Za-z_][\w']*/.test(item) || /[_a-zA-Z][\w_]*/.test(item) || /\d+/.test(item) || /`[^`\n]+`/.test(item) || /[^\s\w\[\]()`]/.test(item)));
337
- }
338
- export const QualifiedCommentReference = {
339
- $type: 'QualifiedCommentReference',
340
- idea: 'idea',
341
- path: 'path'
342
- };
343
- export function isQualifiedCommentReference(item) {
344
- return reflection.isInstance(item, QualifiedCommentReference.$type);
345
- }
346
- export const QualifiedImport = {
347
- $type: 'QualifiedImport',
348
- alias: 'alias',
349
- idea: 'idea',
350
- ideaset: 'ideaset',
351
- path: 'path'
352
- };
353
- export function isQualifiedImport(item) {
354
- return reflection.isInstance(item, QualifiedImport.$type);
355
- }
356
- export const QualifiedReference = {
357
- $type: 'QualifiedReference',
358
- idea: 'idea',
359
- ideaset: 'ideaset',
360
- path: 'path',
361
- qualifier: 'qualifier'
362
- };
363
- export function isQualifiedReference(item) {
364
- return reflection.isInstance(item, QualifiedReference.$type);
365
- }
366
- export function isReferenceName(item) {
367
- return (typeof item === 'string' && (/[_a-zA-Z][\w_]*/.test(item)));
368
- }
369
- export const ReferenceTarget = {
370
- $type: 'ReferenceTarget'
371
- };
372
- export function isReferenceTarget(item) {
373
- return reflection.isInstance(item, ReferenceTarget.$type);
374
- }
375
- export const RichTextPart = {
376
- $type: 'RichTextPart',
377
- inlineCode: 'inlineCode',
378
- lparen: 'lparen',
379
- punct: 'punct',
380
- rparen: 'rparen',
381
- text: 'text'
382
- };
383
- export function isRichTextPart(item) {
384
- return reflection.isInstance(item, RichTextPart.$type);
385
- }
386
- export const ScalarValue = {
387
- $type: 'ScalarValue',
388
- parts: 'parts'
389
- };
390
- export function isScalarValue(item) {
391
- return reflection.isInstance(item, ScalarValue.$type);
392
- }
393
- export const TopLevelElement = {
394
- $type: 'TopLevelElement'
395
- };
396
- export function isTopLevelElement(item) {
397
- return reflection.isInstance(item, TopLevelElement.$type);
398
- }
399
- export const WikiLink = {
400
- $type: 'WikiLink',
401
- alias: 'alias',
402
- inlineCode: 'inlineCode',
403
- lparen: 'lparen',
404
- punct: 'punct',
405
- rparen: 'rparen',
406
- target: 'target',
407
- text: 'text'
408
- };
409
- export function isWikiLink(item) {
410
- return reflection.isInstance(item, WikiLink.$type);
411
- }
412
- export class ReqlanAstReflection extends langium.AbstractAstReflection {
413
- constructor() {
414
- super(...arguments);
415
- this.types = {
416
- AliasPart: {
417
- name: AliasPart.$type,
418
- properties: {
419
- punct: {
420
- name: AliasPart.punct,
421
- optional: true
422
- },
423
- text: {
424
- name: AliasPart.text,
425
- optional: true
426
- }
427
- },
428
- superTypes: []
429
- },
430
- AnonymousBlock: {
431
- name: AnonymousBlock.$type,
432
- properties: {
433
- elements: {
434
- name: AnonymousBlock.elements,
435
- defaultValue: [],
436
- optional: true
437
- }
438
- },
439
- superTypes: [ListItem.$type]
440
- },
441
- Attribute: {
442
- name: Attribute.$type,
443
- properties: {
444
- name: {
445
- name: Attribute.name
446
- },
447
- negated: {
448
- name: Attribute.negated,
449
- defaultValue: false,
450
- optional: true
451
- },
452
- value: {
453
- name: Attribute.value,
454
- optional: true
455
- }
456
- },
457
- superTypes: [BlockElement.$type, BodyElement.$type]
458
- },
459
- AttributeValue: {
460
- name: AttributeValue.$type,
461
- properties: {},
462
- superTypes: []
463
- },
464
- BlockElement: {
465
- name: BlockElement.$type,
466
- properties: {},
467
- superTypes: []
468
- },
469
- BlockLine: {
470
- name: BlockLine.$type,
471
- properties: {
472
- parts: {
473
- name: BlockLine.parts,
474
- defaultValue: []
475
- }
476
- },
477
- superTypes: [BlockElement.$type]
478
- },
479
- BlockValue: {
480
- name: BlockValue.$type,
481
- properties: {
482
- elements: {
483
- name: BlockValue.elements,
484
- defaultValue: [],
485
- optional: true
486
- }
487
- },
488
- superTypes: [AttributeValue.$type]
489
- },
490
- BodyElement: {
491
- name: BodyElement.$type,
492
- properties: {},
493
- superTypes: []
494
- },
495
- BodyLine: {
496
- name: BodyLine.$type,
497
- properties: {
498
- parts: {
499
- name: BodyLine.parts,
500
- defaultValue: []
501
- }
502
- },
503
- superTypes: [BodyElement.$type]
504
- },
505
- BracketReference: {
506
- name: BracketReference.$type,
507
- properties: {
508
- inlineCode: {
509
- name: BracketReference.inlineCode,
510
- optional: true
511
- },
512
- lparen: {
513
- name: BracketReference.lparen,
514
- optional: true
515
- },
516
- punct: {
517
- name: BracketReference.punct,
518
- optional: true
519
- },
520
- rparen: {
521
- name: BracketReference.rparen,
522
- optional: true
523
- },
524
- target: {
525
- name: BracketReference.target
526
- },
527
- text: {
528
- name: BracketReference.text,
529
- optional: true
530
- }
531
- },
532
- superTypes: [RichTextPart.$type, InlineTextPart.$type, BlockElement.$type, BodyElement.$type]
533
- },
534
- CodeSnippet: {
535
- name: CodeSnippet.$type,
536
- properties: {
537
- raw: {
538
- name: CodeSnippet.raw
539
- }
540
- },
541
- superTypes: [BlockElement.$type, BodyElement.$type]
542
- },
543
- CommentModel: {
544
- name: CommentModel.$type,
545
- properties: {
546
- references: {
547
- name: CommentModel.references,
548
- defaultValue: [],
549
- optional: true
550
- }
551
- },
552
- superTypes: []
553
- },
554
- CommentReference: {
555
- name: CommentReference.$type,
556
- properties: {
557
- target: {
558
- name: CommentReference.target
559
- }
560
- },
561
- superTypes: []
562
- },
563
- CommentReferenceTarget: {
564
- name: CommentReferenceTarget.$type,
565
- properties: {},
566
- superTypes: []
567
- },
568
- FileReference: {
569
- name: FileReference.$type,
570
- properties: {
571
- file: {
572
- name: FileReference.file
573
- }
574
- },
575
- superTypes: [ReferenceTarget.$type]
576
- },
577
- FileSymbolReference: {
578
- name: FileSymbolReference.$type,
579
- properties: {
580
- file: {
581
- name: FileSymbolReference.file
582
- },
583
- symbols: {
584
- name: FileSymbolReference.symbols,
585
- defaultValue: []
586
- }
587
- },
588
- superTypes: [ReferenceTarget.$type]
589
- },
590
- FromImport: {
591
- name: FromImport.$type,
592
- properties: {
593
- path: {
594
- name: FromImport.path
595
- },
596
- specifiers: {
597
- name: FromImport.specifiers,
598
- defaultValue: []
599
- }
600
- },
601
- superTypes: [Import.$type]
602
- },
603
- FromImportSpecifier: {
604
- name: FromImportSpecifier.$type,
605
- properties: {
606
- alias: {
607
- name: FromImportSpecifier.alias,
608
- optional: true
609
- },
610
- idea: {
611
- name: FromImportSpecifier.idea,
612
- referenceType: IdeaDeclaration.$type
613
- }
614
- },
615
- superTypes: []
616
- },
617
- Idea: {
618
- name: Idea.$type,
619
- properties: {
620
- elements: {
621
- name: Idea.elements,
622
- defaultValue: [],
623
- optional: true
624
- },
625
- name: {
626
- name: Idea.name
627
- }
628
- },
629
- superTypes: [IdeaDeclaration.$type, TopLevelElement.$type]
630
- },
631
- IdeaDeclaration: {
632
- name: IdeaDeclaration.$type,
633
- properties: {},
634
- superTypes: []
635
- },
636
- IdeaSet: {
637
- name: IdeaSet.$type,
638
- properties: {
639
- members: {
640
- name: IdeaSet.members,
641
- defaultValue: [],
642
- referenceType: IdeaDeclaration.$type
643
- },
644
- name: {
645
- name: IdeaSet.name
646
- }
647
- },
648
- superTypes: [TopLevelElement.$type]
649
- },
650
- Import: {
651
- name: Import.$type,
652
- properties: {},
653
- superTypes: []
654
- },
655
- InlineTextPart: {
656
- name: InlineTextPart.$type,
657
- properties: {
658
- inlineCode: {
659
- name: InlineTextPart.inlineCode,
660
- optional: true
661
- },
662
- punct: {
663
- name: InlineTextPart.punct,
664
- optional: true
665
- },
666
- text: {
667
- name: InlineTextPart.text,
668
- optional: true
669
- }
670
- },
671
- superTypes: []
672
- },
673
- ListItem: {
674
- name: ListItem.$type,
675
- properties: {},
676
- superTypes: []
677
- },
678
- ListItemBody: {
679
- name: ListItemBody.$type,
680
- properties: {
681
- content: {
682
- name: ListItemBody.content,
683
- defaultValue: []
684
- }
685
- },
686
- superTypes: []
687
- },
688
- ListValue: {
689
- name: ListValue.$type,
690
- properties: {
691
- items: {
692
- name: ListValue.items,
693
- defaultValue: []
694
- }
695
- },
696
- superTypes: [AttributeValue.$type]
697
- },
698
- LocalCommentReference: {
699
- name: LocalCommentReference.$type,
700
- properties: {
701
- idea: {
702
- name: LocalCommentReference.idea
703
- }
704
- },
705
- superTypes: [CommentReferenceTarget.$type]
706
- },
707
- LocalReference: {
708
- name: LocalReference.$type,
709
- properties: {
710
- attribute: {
711
- name: LocalReference.attribute,
712
- optional: true
713
- },
714
- idea: {
715
- name: LocalReference.idea,
716
- referenceType: IdeaDeclaration.$type,
717
- optional: true
718
- },
719
- ideaset: {
720
- name: LocalReference.ideaset,
721
- referenceType: IdeaSet.$type,
722
- optional: true
723
- }
724
- },
725
- superTypes: [ReferenceTarget.$type]
726
- },
727
- MarkdownLink: {
728
- name: MarkdownLink.$type,
729
- properties: {
730
- inlineCode: {
731
- name: MarkdownLink.inlineCode,
732
- optional: true
733
- },
734
- lparen: {
735
- name: MarkdownLink.lparen,
736
- optional: true
737
- },
738
- punct: {
739
- name: MarkdownLink.punct,
740
- optional: true
741
- },
742
- raw: {
743
- name: MarkdownLink.raw
744
- },
745
- rparen: {
746
- name: MarkdownLink.rparen,
747
- optional: true
748
- },
749
- text: {
750
- name: MarkdownLink.text,
751
- optional: true
752
- }
753
- },
754
- superTypes: [InlineTextPart.$type, RichTextPart.$type, BlockElement.$type, BodyElement.$type]
755
- },
756
- Model: {
757
- name: Model.$type,
758
- properties: {
759
- elements: {
760
- name: Model.elements,
761
- defaultValue: [],
762
- optional: true
763
- },
764
- imports: {
765
- name: Model.imports,
766
- defaultValue: [],
767
- optional: true
768
- }
769
- },
770
- superTypes: []
771
- },
772
- NamedBlockListItem: {
773
- name: NamedBlockListItem.$type,
774
- properties: {
775
- elements: {
776
- name: NamedBlockListItem.elements,
777
- defaultValue: [],
778
- optional: true
779
- },
780
- name: {
781
- name: NamedBlockListItem.name
782
- }
783
- },
784
- superTypes: [ListItem.$type]
785
- },
786
- NamedList: {
787
- name: NamedList.$type,
788
- properties: {
789
- items: {
790
- name: NamedList.items,
791
- defaultValue: []
792
- },
793
- label: {
794
- name: NamedList.label
795
- }
796
- },
797
- superTypes: [BlockElement.$type, BodyElement.$type]
798
- },
799
- NamespaceImport: {
800
- name: NamespaceImport.$type,
801
- properties: {
802
- alias: {
803
- name: NamespaceImport.alias,
804
- optional: true
805
- },
806
- path: {
807
- name: NamespaceImport.path
808
- }
809
- },
810
- superTypes: [Import.$type]
811
- },
812
- NestedList: {
813
- name: NestedList.$type,
814
- properties: {
815
- items: {
816
- name: NestedList.items,
817
- defaultValue: []
818
- }
819
- },
820
- superTypes: [BlockElement.$type, BodyElement.$type, ListItem.$type]
821
- },
822
- OneLinerBody: {
823
- name: OneLinerBody.$type,
824
- properties: {
825
- content: {
826
- name: OneLinerBody.content,
827
- defaultValue: []
828
- }
829
- },
830
- superTypes: []
831
- },
832
- OneLinerIdea: {
833
- name: OneLinerIdea.$type,
834
- properties: {
835
- body: {
836
- name: OneLinerIdea.body
837
- },
838
- name: {
839
- name: OneLinerIdea.name
840
- }
841
- },
842
- superTypes: [IdeaDeclaration.$type, TopLevelElement.$type]
843
- },
844
- OneLinerListItem: {
845
- name: OneLinerListItem.$type,
846
- properties: {
847
- body: {
848
- name: OneLinerListItem.body
849
- }
850
- },
851
- superTypes: [ListItem.$type]
852
- },
853
- QualifiedCommentReference: {
854
- name: QualifiedCommentReference.$type,
855
- properties: {
856
- idea: {
857
- name: QualifiedCommentReference.idea
858
- },
859
- path: {
860
- name: QualifiedCommentReference.path
861
- }
862
- },
863
- superTypes: [CommentReferenceTarget.$type]
864
- },
865
- QualifiedImport: {
866
- name: QualifiedImport.$type,
867
- properties: {
868
- alias: {
869
- name: QualifiedImport.alias,
870
- optional: true
871
- },
872
- idea: {
873
- name: QualifiedImport.idea,
874
- referenceType: IdeaDeclaration.$type
875
- },
876
- ideaset: {
877
- name: QualifiedImport.ideaset
878
- },
879
- path: {
880
- name: QualifiedImport.path
881
- }
882
- },
883
- superTypes: [Import.$type]
884
- },
885
- QualifiedReference: {
886
- name: QualifiedReference.$type,
887
- properties: {
888
- idea: {
889
- name: QualifiedReference.idea,
890
- referenceType: IdeaDeclaration.$type
891
- },
892
- ideaset: {
893
- name: QualifiedReference.ideaset,
894
- referenceType: IdeaSet.$type,
895
- optional: true
896
- },
897
- path: {
898
- name: QualifiedReference.path,
899
- referenceType: Import.$type,
900
- optional: true
901
- },
902
- qualifier: {
903
- name: QualifiedReference.qualifier,
904
- referenceType: Import.$type,
905
- optional: true
906
- }
907
- },
908
- superTypes: [ReferenceTarget.$type]
909
- },
910
- ReferenceTarget: {
911
- name: ReferenceTarget.$type,
912
- properties: {},
913
- superTypes: []
914
- },
915
- RichTextPart: {
916
- name: RichTextPart.$type,
917
- properties: {
918
- inlineCode: {
919
- name: RichTextPart.inlineCode,
920
- optional: true
921
- },
922
- lparen: {
923
- name: RichTextPart.lparen,
924
- optional: true
925
- },
926
- punct: {
927
- name: RichTextPart.punct,
928
- optional: true
929
- },
930
- rparen: {
931
- name: RichTextPart.rparen,
932
- optional: true
933
- },
934
- text: {
935
- name: RichTextPart.text,
936
- optional: true
937
- }
938
- },
939
- superTypes: []
940
- },
941
- ScalarValue: {
942
- name: ScalarValue.$type,
943
- properties: {
944
- parts: {
945
- name: ScalarValue.parts,
946
- defaultValue: []
947
- }
948
- },
949
- superTypes: [AttributeValue.$type]
950
- },
951
- TopLevelElement: {
952
- name: TopLevelElement.$type,
953
- properties: {},
954
- superTypes: []
955
- },
956
- WikiLink: {
957
- name: WikiLink.$type,
958
- properties: {
959
- alias: {
960
- name: WikiLink.alias,
961
- defaultValue: [],
962
- optional: true
963
- },
964
- inlineCode: {
965
- name: WikiLink.inlineCode,
966
- optional: true
967
- },
968
- lparen: {
969
- name: WikiLink.lparen,
970
- optional: true
971
- },
972
- punct: {
973
- name: WikiLink.punct,
974
- optional: true
975
- },
976
- rparen: {
977
- name: WikiLink.rparen,
978
- optional: true
979
- },
980
- target: {
981
- name: WikiLink.target
982
- },
983
- text: {
984
- name: WikiLink.text,
985
- optional: true
986
- }
987
- },
988
- superTypes: [InlineTextPart.$type, RichTextPart.$type, BlockElement.$type, BodyElement.$type]
989
- }
990
- };
991
- }
992
- }
993
- export const reflection = new ReqlanAstReflection();
994
- //# sourceMappingURL=ast.js.map