sysml-validate 0.20.3 → 0.21.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/main.js +15 -1
- package/out/main.js.map +2 -2
- package/package.json +1 -1
- package/resources/sysml.dimension-table.json +1 -1
package/out/main.js
CHANGED
|
@@ -68396,6 +68396,20 @@ var SysmlLinker = class extends DefaultLinker {
|
|
|
68396
68396
|
resolveIndexedNode(nodeDescription) {
|
|
68397
68397
|
return this.loadAstNode(nodeDescription);
|
|
68398
68398
|
}
|
|
68399
|
+
// REQ-210 — Annotation graphics
|
|
68400
|
+
/**
|
|
68401
|
+
* Return the parsed root for a live workspace or lazily loaded library file.
|
|
68402
|
+
* Diagram projection uses this to collect annotations declared beside an
|
|
68403
|
+
* inherited member without adding standard-library files to the workspace.
|
|
68404
|
+
*/
|
|
68405
|
+
resolveDocumentRoot(uri) {
|
|
68406
|
+
const live = this.langiumDocuments().getDocument(uri)?.parseResult?.value;
|
|
68407
|
+
if (live)
|
|
68408
|
+
return live;
|
|
68409
|
+
if (!isStandardLibraryUri(uri))
|
|
68410
|
+
return void 0;
|
|
68411
|
+
return this.parsedLibraryDocument(uri)?.parseResult?.value;
|
|
68412
|
+
}
|
|
68399
68413
|
/** Parse (once) the standard-library file a precomputed description points at.
|
|
68400
68414
|
* Prefers an already-live workspace document when one exists (runtime-loaded
|
|
68401
68415
|
* library, or the user opened the file) so there is never a second copy. */
|
|
@@ -72238,7 +72252,7 @@ async function runValidation(command) {
|
|
|
72238
72252
|
}
|
|
72239
72253
|
|
|
72240
72254
|
// src/main.ts
|
|
72241
|
-
var VERSION2 = true ? "0.
|
|
72255
|
+
var VERSION2 = true ? "0.21.0" : "dev";
|
|
72242
72256
|
async function main(argv) {
|
|
72243
72257
|
const command = parseArgs(argv);
|
|
72244
72258
|
if (command.kind === "help") {
|