occam-verify-cli 1.0.662 → 1.0.663
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/.swcrc +3 -0
- package/lib/abbreviations.js +10 -10
- package/lib/action/help.js +27 -2
- package/lib/action/verify.js +33 -205
- package/lib/action/version.js +6 -6
- package/lib/commands.js +4 -4
- package/lib/constants.js +16 -16
- package/lib/context/ephemeral.js +337 -540
- package/lib/context/file/nominal.js +545 -1040
- package/lib/context/liminal.js +159 -325
- package/lib/context/literal.js +34 -138
- package/lib/context/nominal.js +29 -124
- package/lib/context/scoped.js +163 -325
- package/lib/context/synthetic.js +31 -126
- package/lib/context.js +230 -482
- package/lib/defaults.js +8 -8
- package/lib/element/assertion/contained.js +159 -299
- package/lib/element/assertion/defined.js +145 -279
- package/lib/element/assertion/property.js +132 -266
- package/lib/element/assertion/satisfies.js +108 -239
- package/lib/element/assertion/subproof.js +88 -207
- package/lib/element/assertion/type.js +132 -262
- package/lib/element/assertion.js +17 -156
- package/lib/element/assumption.js +187 -386
- package/lib/element/combinator/bracketed.js +19 -142
- package/lib/element/combinator.js +65 -228
- package/lib/element/conclusion.js +72 -370
- package/lib/element/constructor/bracketed.js +34 -157
- package/lib/element/constructor.js +81 -253
- package/lib/element/declaration/combinator.js +41 -286
- package/lib/element/declaration/complexType.js +184 -452
- package/lib/element/declaration/constructor.js +69 -323
- package/lib/element/declaration/metavariable.js +70 -317
- package/lib/element/declaration/simpleType.js +117 -378
- package/lib/element/declaration/typePrefix.js +54 -299
- package/lib/element/declaration/variable.js +74 -328
- package/lib/element/declaration.js +3 -114
- package/lib/element/deduction.js +76 -378
- package/lib/element/derivation.js +31 -340
- package/lib/element/equality.js +152 -347
- package/lib/element/equivalence.js +160 -385
- package/lib/element/equivalences.js +132 -356
- package/lib/element/error.js +16 -290
- package/lib/element/frame.js +210 -418
- package/lib/element/hypothesis.js +56 -354
- package/lib/element/judgement.js +120 -305
- package/lib/element/label.js +62 -236
- package/lib/element/metaType.js +35 -200
- package/lib/element/metavariable.js +249 -459
- package/lib/element/parameter.js +39 -202
- package/lib/element/procedureCall.js +74 -381
- package/lib/element/procedureReference.js +27 -186
- package/lib/element/proof.js +38 -349
- package/lib/element/proofAssertion/premise.js +174 -466
- package/lib/element/proofAssertion/step.js +144 -495
- package/lib/element/proofAssertion/supposition.js +170 -466
- package/lib/element/proofAssertion.js +47 -195
- package/lib/element/property.js +36 -201
- package/lib/element/propertyRelation.js +62 -223
- package/lib/element/reference.js +173 -378
- package/lib/element/rule.js +178 -673
- package/lib/element/section.js +47 -356
- package/lib/element/signature.js +96 -264
- package/lib/element/statement.js +195 -395
- package/lib/element/subDerivation.js +32 -341
- package/lib/element/subproof.js +73 -448
- package/lib/element/substitution/frame.js +114 -257
- package/lib/element/substitution/reference.js +108 -248
- package/lib/element/substitution/statement.js +223 -397
- package/lib/element/substitution/term.js +123 -266
- package/lib/element/substitution.js +97 -296
- package/lib/element/term.js +139 -339
- package/lib/element/topLevelAssertion/axiom.js +153 -459
- package/lib/element/topLevelAssertion/conjecture.js +24 -295
- package/lib/element/topLevelAssertion/lemma.js +22 -289
- package/lib/element/topLevelAssertion/theorem.js +24 -295
- package/lib/element/topLevelAssertion.js +218 -718
- package/lib/element/topLevelMetaAssertion/metaLemma.js +24 -290
- package/lib/element/topLevelMetaAssertion/metatheorem.js +24 -290
- package/lib/element/topLevelMetaAssertion.js +109 -509
- package/lib/element/type.js +198 -435
- package/lib/element/typePrefix.js +27 -186
- package/lib/element/variable.js +119 -308
- package/lib/elements.js +4 -4
- package/lib/index.js +4 -4
- package/lib/main.js +18 -18
- package/lib/messages.js +2 -2
- package/lib/metaTypeNames.js +4 -4
- package/lib/metaTypes.js +10 -10
- package/lib/node/argument.js +15 -109
- package/lib/node/assertion/contained.js +33 -130
- package/lib/node/assertion/defined.js +29 -123
- package/lib/node/assertion/property.js +18 -112
- package/lib/node/assertion/satisfies.js +14 -105
- package/lib/node/assertion/subproof.js +10 -98
- package/lib/node/assertion/type.js +14 -105
- package/lib/node/assertion.js +5 -89
- package/lib/node/assumption.js +12 -103
- package/lib/node/body/axiom.js +5 -89
- package/lib/node/body/conjecture.js +5 -89
- package/lib/node/body/lemma.js +5 -89
- package/lib/node/body/metaLemma.js +5 -89
- package/lib/node/body/metatheorem.js +5 -89
- package/lib/node/body/rule.js +26 -126
- package/lib/node/body/theorem.js +5 -89
- package/lib/node/body.js +15 -109
- package/lib/node/combinator.js +9 -97
- package/lib/node/conclusion.js +12 -103
- package/lib/node/constructor.js +9 -97
- package/lib/node/declaration/combinator.js +10 -98
- package/lib/node/declaration/complexType.js +53 -162
- package/lib/node/declaration/constructor.js +29 -123
- package/lib/node/declaration/metavariable.js +18 -112
- package/lib/node/declaration/property.js +26 -123
- package/lib/node/declaration/simpleType.js +52 -158
- package/lib/node/declaration/typePrefix.js +14 -105
- package/lib/node/declaration/variable.js +33 -130
- package/lib/node/declaration.js +5 -89
- package/lib/node/deduction.js +12 -103
- package/lib/node/derivation.js +12 -125
- package/lib/node/document.js +5 -89
- package/lib/node/equality.js +17 -111
- package/lib/node/equivalence.js +9 -97
- package/lib/node/equivalences.js +5 -89
- package/lib/node/error.js +5 -89
- package/lib/node/frame.js +26 -123
- package/lib/node/header/axiom.js +10 -98
- package/lib/node/header/conjecture.js +5 -89
- package/lib/node/header/lemma.js +5 -89
- package/lib/node/header/metaLemma.js +5 -89
- package/lib/node/header/metatheorem.js +5 -89
- package/lib/node/header/rule.js +5 -89
- package/lib/node/header/theorem.js +5 -89
- package/lib/node/header.js +30 -130
- package/lib/node/hypothesis.js +12 -103
- package/lib/node/judgement.js +15 -109
- package/lib/node/label.js +9 -97
- package/lib/node/labels.js +9 -97
- package/lib/node/metaArgument.js +9 -97
- package/lib/node/metaType.js +16 -104
- package/lib/node/metavariable.js +23 -117
- package/lib/node/parameter.js +32 -123
- package/lib/node/parenthesisedLabel.js +9 -97
- package/lib/node/parenthesisedLabels.js +12 -103
- package/lib/node/placeholder.js +5 -89
- package/lib/node/procedureCall.js +15 -109
- package/lib/node/procedureReference.js +16 -104
- package/lib/node/proof.js +9 -97
- package/lib/node/proofAssertion/premise.js +10 -98
- package/lib/node/proofAssertion/step.js +32 -132
- package/lib/node/proofAssertion/supposition.js +10 -98
- package/lib/node/proofAssertion.js +12 -103
- package/lib/node/property.js +15 -106
- package/lib/node/propertyRelation.js +15 -109
- package/lib/node/qualification.js +12 -103
- package/lib/node/reference.js +9 -97
- package/lib/node/rule.js +26 -129
- package/lib/node/section.js +22 -122
- package/lib/node/signature.js +9 -97
- package/lib/node/statement.js +93 -238
- package/lib/node/subDerivation.js +12 -125
- package/lib/node/subproof.js +18 -115
- package/lib/node/substitution/frame.js +22 -119
- package/lib/node/substitution/reference.js +22 -119
- package/lib/node/substitution/statement.js +42 -151
- package/lib/node/substitution/term.js +22 -119
- package/lib/node/substitution.js +5 -89
- package/lib/node/term.js +51 -160
- package/lib/node/topLevelAssertion/axiom.js +8 -105
- package/lib/node/topLevelAssertion/conjecture.js +8 -105
- package/lib/node/topLevelAssertion/lemma.js +8 -105
- package/lib/node/topLevelAssertion/theorem.js +8 -105
- package/lib/node/topLevelAssertion.js +29 -135
- package/lib/node/topLevelMetaAssertion/metaLemma.js +8 -105
- package/lib/node/topLevelMetaAssertion/metatheorem.js +8 -105
- package/lib/node/topLevelMetaAssertion.js +25 -128
- package/lib/node/type.js +43 -140
- package/lib/node/typePrefix.js +16 -104
- package/lib/node/types.js +9 -97
- package/lib/node/variable.js +16 -104
- package/lib/nominal/lexer.js +3 -68
- package/lib/nominal/parser.js +7 -85
- package/lib/nonTerminalNodeMap.js +171 -101
- package/lib/options.js +6 -6
- package/lib/preamble.js +62 -62
- package/lib/prepare.js +4 -4
- package/lib/process/assign.js +20 -20
- package/lib/process/equate.js +39 -117
- package/lib/process/instantiate.js +10 -9
- package/lib/process/unify.js +199 -325
- package/lib/process/validate.js +87 -195
- package/lib/process/verify.js +263 -786
- package/lib/ruleNames.js +84 -84
- package/lib/tokenTypes.js +3 -3
- package/lib/utilities/bnf.js +7 -7
- package/lib/utilities/brackets.js +18 -18
- package/lib/utilities/clock.js +8 -8
- package/lib/utilities/context.js +23 -191
- package/lib/utilities/element.js +276 -276
- package/lib/utilities/equivalence.js +7 -7
- package/lib/utilities/fileContext.js +9 -9
- package/lib/utilities/instance.js +14 -14
- package/lib/utilities/json.js +211 -211
- package/lib/utilities/releaseContext.js +19 -147
- package/lib/utilities/statement.js +10 -10
- package/lib/utilities/string.js +47 -47
- package/lib/utilities/substitutions.js +19 -19
- package/lib/utilities/type.js +5 -5
- package/lib/utilities/unification.js +196 -426
- package/lib/utilities/validation.js +72 -72
- package/package.json +1 -1
package/lib/element/error.js
CHANGED
|
@@ -8,294 +8,20 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
if (info.done) {
|
|
28
|
-
resolve(value);
|
|
29
|
-
} else {
|
|
30
|
-
Promise.resolve(value).then(_next, _throw);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function _async_to_generator(fn) {
|
|
34
|
-
return function() {
|
|
35
|
-
var self = this, args = arguments;
|
|
36
|
-
return new Promise(function(resolve, reject) {
|
|
37
|
-
var gen = fn.apply(self, args);
|
|
38
|
-
function _next(value) {
|
|
39
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
40
|
-
}
|
|
41
|
-
function _throw(err) {
|
|
42
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
43
|
-
}
|
|
44
|
-
_next(undefined);
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
function _call_super(_this, derived, args) {
|
|
49
|
-
derived = _get_prototype_of(derived);
|
|
50
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
51
|
-
}
|
|
52
|
-
function _class_call_check(instance, Constructor) {
|
|
53
|
-
if (!(instance instanceof Constructor)) {
|
|
54
|
-
throw new TypeError("Cannot call a class as a function");
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function _construct(Parent, args, Class) {
|
|
58
|
-
if (_is_native_reflect_construct()) {
|
|
59
|
-
_construct = Reflect.construct;
|
|
60
|
-
} else {
|
|
61
|
-
_construct = function construct(Parent, args, Class) {
|
|
62
|
-
var a = [
|
|
63
|
-
null
|
|
64
|
-
];
|
|
65
|
-
a.push.apply(a, args);
|
|
66
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
67
|
-
var instance = new Constructor();
|
|
68
|
-
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
69
|
-
return instance;
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
return _construct.apply(null, arguments);
|
|
73
|
-
}
|
|
74
|
-
function _defineProperties(target, props) {
|
|
75
|
-
for(var i = 0; i < props.length; i++){
|
|
76
|
-
var descriptor = props[i];
|
|
77
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
78
|
-
descriptor.configurable = true;
|
|
79
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
80
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
84
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
85
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
86
|
-
return Constructor;
|
|
87
|
-
}
|
|
88
|
-
function _define_property(obj, key, value) {
|
|
89
|
-
if (key in obj) {
|
|
90
|
-
Object.defineProperty(obj, key, {
|
|
91
|
-
value: value,
|
|
92
|
-
enumerable: true,
|
|
93
|
-
configurable: true,
|
|
94
|
-
writable: true
|
|
95
|
-
});
|
|
96
|
-
} else {
|
|
97
|
-
obj[key] = value;
|
|
98
|
-
}
|
|
99
|
-
return obj;
|
|
100
|
-
}
|
|
101
|
-
function _get_prototype_of(o) {
|
|
102
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
103
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
104
|
-
};
|
|
105
|
-
return _get_prototype_of(o);
|
|
106
|
-
}
|
|
107
|
-
function _inherits(subClass, superClass) {
|
|
108
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
109
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
110
|
-
}
|
|
111
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
112
|
-
constructor: {
|
|
113
|
-
value: subClass,
|
|
114
|
-
writable: true,
|
|
115
|
-
configurable: true
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
119
|
-
}
|
|
120
|
-
function _is_native_function(fn) {
|
|
121
|
-
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
122
|
-
}
|
|
123
|
-
function _possible_constructor_return(self, call) {
|
|
124
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
125
|
-
return call;
|
|
126
|
-
}
|
|
127
|
-
return _assert_this_initialized(self);
|
|
128
|
-
}
|
|
129
|
-
function _set_prototype_of(o, p) {
|
|
130
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
131
|
-
o.__proto__ = p;
|
|
132
|
-
return o;
|
|
133
|
-
};
|
|
134
|
-
return _set_prototype_of(o, p);
|
|
135
|
-
}
|
|
136
|
-
function _type_of(obj) {
|
|
137
|
-
"@swc/helpers - typeof";
|
|
138
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
139
|
-
}
|
|
140
|
-
function _wrap_native_super(Class) {
|
|
141
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
142
|
-
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
143
|
-
if (Class === null || !_is_native_function(Class)) return Class;
|
|
144
|
-
if (typeof Class !== "function") {
|
|
145
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
146
|
-
}
|
|
147
|
-
if (typeof _cache !== "undefined") {
|
|
148
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
149
|
-
_cache.set(Class, Wrapper);
|
|
150
|
-
}
|
|
151
|
-
function Wrapper() {
|
|
152
|
-
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
153
|
-
}
|
|
154
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
|
155
|
-
constructor: {
|
|
156
|
-
value: Wrapper,
|
|
157
|
-
enumerable: false,
|
|
158
|
-
writable: true,
|
|
159
|
-
configurable: true
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
return _set_prototype_of(Wrapper, Class);
|
|
163
|
-
};
|
|
164
|
-
return _wrap_native_super(Class);
|
|
165
|
-
}
|
|
166
|
-
function _is_native_reflect_construct() {
|
|
167
|
-
try {
|
|
168
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
169
|
-
} catch (_) {}
|
|
170
|
-
return (_is_native_reflect_construct = function() {
|
|
171
|
-
return !!result;
|
|
172
|
-
})();
|
|
173
|
-
}
|
|
174
|
-
function _ts_generator(thisArg, body) {
|
|
175
|
-
var f, y, t, _ = {
|
|
176
|
-
label: 0,
|
|
177
|
-
sent: function() {
|
|
178
|
-
if (t[0] & 1) throw t[1];
|
|
179
|
-
return t[1];
|
|
180
|
-
},
|
|
181
|
-
trys: [],
|
|
182
|
-
ops: []
|
|
183
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
184
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
185
|
-
return this;
|
|
186
|
-
}), g;
|
|
187
|
-
function verb(n) {
|
|
188
|
-
return function(v) {
|
|
189
|
-
return step([
|
|
190
|
-
n,
|
|
191
|
-
v
|
|
192
|
-
]);
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
function step(op) {
|
|
196
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
197
|
-
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
198
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
199
|
-
if (y = 0, t) op = [
|
|
200
|
-
op[0] & 2,
|
|
201
|
-
t.value
|
|
202
|
-
];
|
|
203
|
-
switch(op[0]){
|
|
204
|
-
case 0:
|
|
205
|
-
case 1:
|
|
206
|
-
t = op;
|
|
207
|
-
break;
|
|
208
|
-
case 4:
|
|
209
|
-
_.label++;
|
|
210
|
-
return {
|
|
211
|
-
value: op[1],
|
|
212
|
-
done: false
|
|
213
|
-
};
|
|
214
|
-
case 5:
|
|
215
|
-
_.label++;
|
|
216
|
-
y = op[1];
|
|
217
|
-
op = [
|
|
218
|
-
0
|
|
219
|
-
];
|
|
220
|
-
continue;
|
|
221
|
-
case 7:
|
|
222
|
-
op = _.ops.pop();
|
|
223
|
-
_.trys.pop();
|
|
224
|
-
continue;
|
|
225
|
-
default:
|
|
226
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
227
|
-
_ = 0;
|
|
228
|
-
continue;
|
|
229
|
-
}
|
|
230
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
231
|
-
_.label = op[1];
|
|
232
|
-
break;
|
|
233
|
-
}
|
|
234
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
235
|
-
_.label = t[1];
|
|
236
|
-
t = op;
|
|
237
|
-
break;
|
|
238
|
-
}
|
|
239
|
-
if (t && _.label < t[2]) {
|
|
240
|
-
_.label = t[2];
|
|
241
|
-
_.ops.push(op);
|
|
242
|
-
break;
|
|
243
|
-
}
|
|
244
|
-
if (t[2]) _.ops.pop();
|
|
245
|
-
_.trys.pop();
|
|
246
|
-
continue;
|
|
247
|
-
}
|
|
248
|
-
op = body.call(thisArg, _);
|
|
249
|
-
} catch (e) {
|
|
250
|
-
op = [
|
|
251
|
-
6,
|
|
252
|
-
e
|
|
253
|
-
];
|
|
254
|
-
y = 0;
|
|
255
|
-
} finally{
|
|
256
|
-
f = t = 0;
|
|
257
|
-
}
|
|
258
|
-
if (op[0] & 5) throw op[1];
|
|
259
|
-
return {
|
|
260
|
-
value: op[0] ? op[1] : void 0,
|
|
261
|
-
done: true
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
var _Error;
|
|
266
|
-
var _default = (0, _elements.define)((_Error = /*#__PURE__*/ function(Element) {
|
|
267
|
-
_inherits(Error, Element);
|
|
268
|
-
function Error() {
|
|
269
|
-
_class_call_check(this, Error);
|
|
270
|
-
return _call_super(this, Error, arguments);
|
|
271
|
-
}
|
|
272
|
-
_create_class(Error, [
|
|
273
|
-
{
|
|
274
|
-
key: "getErrorNode",
|
|
275
|
-
value: function getErrorNode() {
|
|
276
|
-
var node = this.getNode(), errorNode = node; ///
|
|
277
|
-
return errorNode;
|
|
278
|
-
}
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
key: "verify",
|
|
282
|
-
value: function verify() {
|
|
283
|
-
return _async_to_generator(function() {
|
|
284
|
-
var verifies, context, errorString;
|
|
285
|
-
return _ts_generator(this, function(_state) {
|
|
286
|
-
verifies = false;
|
|
287
|
-
context = this.getContext(), errorString = this.getString(); ///
|
|
288
|
-
context.warning("The '".concat(errorString, "' error cannot be verified."));
|
|
289
|
-
return [
|
|
290
|
-
2,
|
|
291
|
-
verifies
|
|
292
|
-
];
|
|
293
|
-
});
|
|
294
|
-
}).call(this);
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
]);
|
|
298
|
-
return Error;
|
|
299
|
-
}(_wrap_native_super(_occamlanguages.Element)), _define_property(_Error, "name", "Error"), _Error));
|
|
11
|
+
const _occamlanguages = require("occam-languages");
|
|
12
|
+
const _elements = require("../elements");
|
|
13
|
+
const _default = (0, _elements.define)(class Error extends _occamlanguages.Element {
|
|
14
|
+
getErrorNode() {
|
|
15
|
+
const node = this.getNode(), errorNode = node; ///
|
|
16
|
+
return errorNode;
|
|
17
|
+
}
|
|
18
|
+
async verify() {
|
|
19
|
+
let verifies = false;
|
|
20
|
+
const context = this.getContext(), errorString = this.getString(); ///
|
|
21
|
+
context.warning(`The '${errorString}' error cannot be verified.`);
|
|
22
|
+
return verifies;
|
|
23
|
+
}
|
|
24
|
+
static name = "Error";
|
|
25
|
+
});
|
|
300
26
|
|
|
301
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lbGVtZW50L2Vycm9yLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgeyBFbGVtZW50IH0gZnJvbSBcIm9jY2FtLWxhbmd1YWdlc1wiO1xuXG5pbXBvcnQgeyBkZWZpbmUgfSBmcm9tIFwiLi4vZWxlbWVudHNcIjtcblxuZXhwb3J0IGRlZmF1bHQgZGVmaW5lKGNsYXNzIEVycm9yIGV4dGVuZHMgRWxlbWVudCB7XG4gIGdldEVycm9yTm9kZSgpIHtcbiAgICBjb25zdCBub2RlID0gdGhpcy5nZXROb2RlKCksXG4gICAgICAgICAgZXJyb3JOb2RlID0gbm9kZTsgLy8vXG5cbiAgICByZXR1cm4gZXJyb3JOb2RlO1xuICB9XG5cbiAgYXN5bmMgdmVyaWZ5KCkge1xuICAgIGxldCB2ZXJpZmllcyA9IGZhbHNlO1xuXG4gICAgY29uc3QgY29udGV4dCA9IHRoaXMuZ2V0Q29udGV4dCgpLFxuICAgICAgICAgIGVycm9yU3RyaW5nID0gdGhpcy5nZXRTdHJpbmcoKTsgIC8vL1xuXG4gICAgY29udGV4dC53YXJuaW5nKGBUaGUgJyR7ZXJyb3JTdHJpbmd9JyBlcnJvciBjYW5ub3QgYmUgdmVyaWZpZWQuYCk7XG5cbiAgICByZXR1cm4gdmVyaWZpZXM7XG4gIH1cblxuICBzdGF0aWMgbmFtZSA9IFwiRXJyb3JcIjtcbn0pO1xuIl0sIm5hbWVzIjpbImRlZmluZSIsIkVycm9yIiwiRWxlbWVudCIsImdldEVycm9yTm9kZSIsIm5vZGUiLCJnZXROb2RlIiwiZXJyb3JOb2RlIiwidmVyaWZ5IiwidmVyaWZpZXMiLCJjb250ZXh0IiwiZ2V0Q29udGV4dCIsImVycm9yU3RyaW5nIiwiZ2V0U3RyaW5nIiwid2FybmluZyIsIm5hbWUiXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQU1BOzs7ZUFBQTs7O2dDQUp3QjswQkFFRDtNQUV2QixXQUFlQSxJQUFBQSxnQkFBTSxFQUFDLE1BQU1DLGNBQWNDLHVCQUFPO0lBQy9DQyxlQUFlO1FBQ2IsTUFBTUMsT0FBTyxJQUFJLENBQUNDLE9BQU8sSUFDbkJDLFlBQVlGLE1BQU0sR0FBRztRQUUzQixPQUFPRTtJQUNUO0lBRUEsTUFBTUMsU0FBUztRQUNiLElBQUlDLFdBQVc7UUFFZixNQUFNQyxVQUFVLElBQUksQ0FBQ0MsVUFBVSxJQUN6QkMsY0FBYyxJQUFJLENBQUNDLFNBQVMsSUFBSyxHQUFHO1FBRTFDSCxRQUFRSSxPQUFPLENBQUMsQ0FBQyxLQUFLLEVBQUVGLFlBQVksMkJBQTJCLENBQUM7UUFFaEUsT0FBT0g7SUFDVDtJQUVBLE9BQU9NLE9BQU8sUUFBUTtBQUN4QiJ9
|