sysml-validate 0.15.7 → 0.15.8
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 +13 -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
|
@@ -61187,10 +61187,22 @@ ${baseIndent}}`;
|
|
|
61187
61187
|
// target feature, so each end must be able to hold it (OMG SysML v2 Part 1
|
|
61188
61188
|
// §7.12 ItemFlow / PayloadFeature). Reported per end, and only when the end
|
|
61189
61189
|
// resolves unambiguously and carries exactly one written type.
|
|
61190
|
+
//
|
|
61191
|
+
// A MESSAGE is deliberately exempt, though the grammar folds it into the same
|
|
61192
|
+
// statement. OMG SysML 8.2.2.16 gives `flow` FlowEndMembers — a FlowEnd is a
|
|
61193
|
+
// FlowFeature, the feature that holds the payload — while a message's `from`
|
|
61194
|
+
// and `to` are MessageEventMembers: `message m of i : I from evt1 to evt2` is
|
|
61195
|
+
// "parsed as an abstract FlowUsage, but without any flowEnds", its two ends
|
|
61196
|
+
// redefining Message::sourceEvent and Message::targetEvent (8.4.12.2). The
|
|
61197
|
+
// ends of a message are the two OCCURRENCES that exchange the payload, so
|
|
61198
|
+
// demanding that they be able to hold it reports every sequence-diagram
|
|
61199
|
+
// message as an error.
|
|
61190
61200
|
checkFlowPayload(decl, model, index, accept) {
|
|
61191
61201
|
if (decl.$type !== "FlowStmt")
|
|
61192
61202
|
return;
|
|
61193
61203
|
const flow = decl;
|
|
61204
|
+
if (flow.flowKind === "message")
|
|
61205
|
+
return;
|
|
61194
61206
|
const payload = flowPayloadType(flow.payload);
|
|
61195
61207
|
if (!payload || payload.conjugated)
|
|
61196
61208
|
return;
|
|
@@ -70012,7 +70024,7 @@ async function runValidation(command) {
|
|
|
70012
70024
|
}
|
|
70013
70025
|
|
|
70014
70026
|
// src/main.ts
|
|
70015
|
-
var VERSION2 = true ? "0.15.
|
|
70027
|
+
var VERSION2 = true ? "0.15.8" : "dev";
|
|
70016
70028
|
async function main(argv) {
|
|
70017
70029
|
const command = parseArgs(argv);
|
|
70018
70030
|
if (command.kind === "help") {
|