@reqlan/language 1.6.2 → 1.7.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/README.md +6 -0
- package/out/generated/ast.d.ts +3 -3
- package/out/generated/ast.js +1 -1
- package/out/generated/ast.js.map +1 -1
- package/out/generated/grammar.js +2 -3318
- package/out/generated/grammar.js.map +1 -1
- package/out/generated/module.d.ts +2 -2
- package/out/generated/module.js +2 -2
- package/out/generated/module.js.map +1 -1
- package/out/index.d.ts +3 -0
- package/out/index.js +3 -0
- package/out/index.js.map +1 -1
- package/out/reqlan-async-parser.d.ts +37 -0
- package/out/reqlan-async-parser.js +117 -0
- package/out/reqlan-async-parser.js.map +1 -0
- package/out/reqlan-completion-provider.js +1 -1
- package/out/reqlan-completion-provider.js.map +1 -1
- package/out/reqlan-document-factory.d.ts +16 -0
- package/out/reqlan-document-factory.js +50 -0
- package/out/reqlan-document-factory.js.map +1 -0
- package/out/reqlan-linker.js +2 -2
- package/out/reqlan-linker.js.map +1 -1
- package/out/reqlan-module.d.ts +2 -1
- package/out/reqlan-module.js +12 -2
- package/out/reqlan-module.js.map +1 -1
- package/out/reqlan-parse-budget.d.ts +50 -0
- package/out/reqlan-parse-budget.js +89 -0
- package/out/reqlan-parse-budget.js.map +1 -0
- package/out/reqlan-parse-worker.d.ts +1 -0
- package/out/reqlan-parse-worker.js +34 -0
- package/out/reqlan-parse-worker.js.map +1 -0
- package/out/reqlan-token-builder.js +102 -25
- package/out/reqlan-token-builder.js.map +1 -1
- package/out/reqlan-validator.d.ts +9 -1
- package/out/reqlan-validator.js +16 -2
- package/out/reqlan-validator.js.map +1 -1
- package/out/reqlan-workspace-manager.d.ts +11 -0
- package/out/reqlan-workspace-manager.js +24 -0
- package/out/reqlan-workspace-manager.js.map +1 -0
- package/package.json +1 -1
- package/src/generated/ast.ts +3 -3
- package/src/generated/grammar.ts +2 -3318
- package/src/generated/module.ts +2 -2
- package/src/index.ts +3 -0
- package/src/reqlan-async-parser.ts +178 -0
- package/src/reqlan-completion-provider.ts +1 -1
- package/src/reqlan-document-factory.ts +75 -0
- package/src/reqlan-linker.ts +4 -2
- package/src/reqlan-module.ts +15 -3
- package/src/reqlan-parse-budget.ts +155 -0
- package/src/reqlan-parse-worker.ts +35 -0
- package/src/reqlan-token-builder.ts +122 -25
- package/src/reqlan-validator.ts +22 -1
- package/src/reqlan-workspace-manager.ts +38 -0
- package/src/reqlan.langium +3 -1
package/src/generated/ast.ts
CHANGED
|
@@ -162,7 +162,7 @@ export function isAliasPart(item: unknown): item is AliasPart {
|
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
export interface AnonymousBlock extends langium.AstNode {
|
|
165
|
-
readonly $container: ListValue | NamedList | NestedList;
|
|
165
|
+
readonly $container: ListValue | Model | NamedList | NestedList;
|
|
166
166
|
readonly $type: 'AnonymousBlock';
|
|
167
167
|
elements: Array<BodyElement>;
|
|
168
168
|
}
|
|
@@ -911,7 +911,7 @@ export function isScalarValue(item: unknown): item is ScalarValue {
|
|
|
911
911
|
return reflection.isInstance(item, ScalarValue.$type);
|
|
912
912
|
}
|
|
913
913
|
|
|
914
|
-
export type TopLevelElement = Idea | IdeaSet | OneLinerIdea;
|
|
914
|
+
export type TopLevelElement = AnonymousBlock | Idea | IdeaSet | OneLinerIdea;
|
|
915
915
|
|
|
916
916
|
export const TopLevelElement = {
|
|
917
917
|
$type: 'TopLevelElement'
|
|
@@ -962,7 +962,7 @@ export class ReqlanAstReflection extends langium.AbstractAstReflection {
|
|
|
962
962
|
optional: true
|
|
963
963
|
}
|
|
964
964
|
},
|
|
965
|
-
superTypes: [ListItem.$type]
|
|
965
|
+
superTypes: [ListItem.$type, TopLevelElement.$type]
|
|
966
966
|
},
|
|
967
967
|
Attribute: {
|
|
968
968
|
name: Attribute.$type,
|