aurora-langium 0.0.13 → 0.0.15

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.
@@ -0,0 +1,4 @@
1
+ import { PCM } from '../../../language/generated/ast.js';
2
+ import * as vscode from 'vscode';
3
+ import { AuroraServices } from '../../../language/aurora-module.js';
4
+ export declare function parseFromText(services: AuroraServices, model: string, existingUri?: vscode.Uri): Promise<PCM>;
@@ -0,0 +1,13 @@
1
+ import { URI } from 'vscode-uri';
2
+ export async function parseFromText(services, model, existingUri) {
3
+ var _a;
4
+ const metaData = services.LanguageMetaData;
5
+ const randomNumber = Math.floor(Math.random() * 10000000) + 1000000;
6
+ const uri = existingUri ? existingUri : URI.parse(`file:///${randomNumber}${metaData.fileExtensions[0]}`);
7
+ const document = services.shared.workspace.LangiumDocumentFactory.fromString(model, uri);
8
+ services.shared.workspace.LangiumDocuments.addDocument(document);
9
+ await services.shared.workspace.DocumentBuilder.build([document], {});
10
+ (_a = document.parseResult.value.$container) === null || _a === void 0 ? void 0 : _a.$document;
11
+ return document.parseResult.value;
12
+ }
13
+ //# sourceMappingURL=parser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../src/extension/src/parser/parser.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,GAAG,EAAC,MAAM,YAAY,CAAA;AAI9B,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,QAAwB,EAAE,KAAa,EAAE,WAAuB;;IAChG,MAAM,QAAQ,GAAG,QAAQ,CAAC,gBAAgB,CAAA;IAC1C,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,QAAQ,CAAC,GAAG,OAAO,CAAC;IACpE,MAAM,GAAG,GAAG,WAAW,CAAA,CAAC,CAAC,WAAW,CAAC,CAAC,CAAA,GAAG,CAAC,KAAK,CAAC,WAAW,YAAY,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACxG,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,sBAAsB,CAAC,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;IACxF,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,gBAAgB,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;IAChE,MAAM,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAG,CAAC,CAAA;IACtE,MAAA,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,UAAU,0CAAE,SAAS,CAAA;IAChD,OAAO,QAAQ,CAAC,WAAW,CAAC,KAAY,CAAA;AAC5C,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aurora-langium",
3
3
  "description": "It containes the DSL named Aurora",
4
- "version": "0.0.13",
4
+ "version": "0.0.15",
5
5
  "files": [
6
6
  "bin",
7
7
  "out",
@@ -15,7 +15,9 @@
15
15
  "./out/language/aurora-scope": "./out/language/aurora-scope.js",
16
16
  "./out/language/aurora-diagram-generator": "./out/language/aurora-diagram-generator.js",
17
17
  "./out/language/main": "./out/language/main.js",
18
- "./out/extension/main": "./out/extension/main.js"
18
+ "./out/extension/main": "./out/extension/main.js",
19
+ "./pack/webview": "./pack/webview.js",
20
+ "./pack/diagram/main": "./pack/diagram/main.js"
19
21
  },
20
22
  "type": "module",
21
23
  "scripts": {