occam-verify-cli 0.0.700 → 0.0.704
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/lib/assignment/equality.js +2 -2
- package/lib/assignment/metavariable.js +2 -2
- package/lib/assignment/variable.js +2 -2
- package/lib/collection.js +44 -6
- package/lib/conclusion.js +6 -6
- package/lib/consequent.js +4 -4
- package/lib/context/file.js +9 -2
- package/lib/context/local.js +27 -64
- package/lib/context/localMeta.js +8 -1
- package/lib/equality.js +20 -4
- package/lib/premise.js +9 -9
- package/lib/supposition.js +4 -4
- package/lib/utilities/collection.js +27 -13
- package/lib/verifier/node/statementAsCombinator.js +7 -17
- package/lib/verifier/node/termAsConstructor.js +10 -45
- package/lib/verifier/nodes/equality.js +169 -0
- package/lib/verifier/nodes/metastatementForMetavariable.js +6 -7
- package/lib/verifier/nodes/statement.js +12 -4
- package/lib/verifier/nodes/statementForMetavariable.js +6 -7
- package/lib/verifier/nodes/termForVariable.js +19 -20
- package/lib/verify/consequent.js +3 -3
- package/lib/verify/derivation.js +28 -6
- package/lib/verify/equality.js +9 -4
- package/lib/verify/givenType.js +32 -0
- package/lib/verify/metastatement.js +7 -25
- package/lib/verify/statement/qualified.js +135 -37
- package/lib/verify/statement.js +44 -33
- package/lib/verify/supposition.js +13 -8
- package/lib/verify/suppositions.js +2 -11
- package/lib/verify/term.js +35 -50
- package/lib/verify/termAndGivenType.js +39 -0
- package/lib/verify/termAsGivenVariable.js +36 -0
- package/lib/verify/type.js +28 -4
- package/lib/verify/typeAssertion.js +35 -22
- package/package.json +1 -1
- package/src/assignment/equality.js +2 -2
- package/src/assignment/metavariable.js +2 -2
- package/src/assignment/variable.js +2 -2
- package/src/collection.js +55 -5
- package/src/conclusion.js +6 -6
- package/src/consequent.js +4 -4
- package/src/context/file.js +7 -1
- package/src/context/local.js +33 -78
- package/src/context/localMeta.js +6 -0
- package/src/equality.js +23 -2
- package/src/premise.js +10 -10
- package/src/supposition.js +3 -3
- package/src/utilities/collection.js +31 -11
- package/src/verifier/node/statementAsCombinator.js +5 -24
- package/src/verifier/node/termAsConstructor.js +6 -47
- package/src/verifier/nodes/equality.js +47 -0
- package/src/verifier/nodes/metastatementForMetavariable.js +10 -10
- package/src/verifier/nodes/statement.js +1 -1
- package/src/verifier/nodes/statementForMetavariable.js +10 -10
- package/src/verifier/nodes/termForVariable.js +30 -30
- package/src/verify/consequent.js +4 -4
- package/src/verify/derivation.js +37 -8
- package/src/verify/equality.js +12 -3
- package/src/verify/{standaloneType.js → givenType.js} +7 -7
- package/src/verify/metastatement.js +8 -35
- package/src/verify/statement/qualified.js +194 -39
- package/src/verify/statement.js +65 -44
- package/src/verify/supposition.js +15 -8
- package/src/verify/suppositions.js +1 -13
- package/src/verify/term.js +42 -58
- package/src/verify/termAndGivenType.js +37 -0
- package/src/verify/termAsGivenVariable.js +39 -0
- package/src/verify/type.js +26 -0
- package/src/verify/typeAssertion.js +50 -28
- package/lib/verifier/nodes/metastatementForMetavariable/conclusion.js +0 -114
- package/lib/verifier/nodes/metastatementForMetavariable/premise.js +0 -114
- package/lib/verifier/nodes/statementForMetavariable/conclusion.js +0 -114
- package/lib/verifier/nodes/statementForMetavariable/premise.js +0 -114
- package/lib/verifier/nodes/termForVariable/consequent.js +0 -114
- package/lib/verifier/nodes/termForVariable/supposition.js +0 -114
- package/lib/verify/standaloneType.js +0 -32
- package/lib/verify/termAndStandaloneType.js +0 -39
- package/lib/verify/termAsVariableAndStandaloneType.js +0 -39
- package/src/verifier/nodes/metastatementForMetavariable/conclusion.js +0 -11
- package/src/verifier/nodes/metastatementForMetavariable/premise.js +0 -11
- package/src/verifier/nodes/statementForMetavariable/conclusion.js +0 -11
- package/src/verifier/nodes/statementForMetavariable/premise.js +0 -11
- package/src/verifier/nodes/termForVariable/consequent.js +0 -11
- package/src/verifier/nodes/termForVariable/supposition.js +0 -11
- package/src/verify/termAndStandaloneType.js +0 -37
- package/src/verify/termAsVariableAndStandaloneType.js +0 -38
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import verifyTerm from "../verify/term";
|
|
4
|
+
import verifyGivenType from "../verify/givenType";
|
|
5
|
+
|
|
6
|
+
export default function verifyTermAndGivenType(termNode, typeNode, terms, types, context, verifyAhead) {
|
|
7
|
+
let termAndGivenTypeVerified;
|
|
8
|
+
|
|
9
|
+
const termString = context.nodeAsString(termNode),
|
|
10
|
+
typeString = context.nodeAsString(typeNode);
|
|
11
|
+
|
|
12
|
+
context.trace(`Verifying the '${termString}' term and the given '${typeString}' type...`, termNode);
|
|
13
|
+
|
|
14
|
+
const termVerified = verifyTerm(termNode, terms, context, () => {
|
|
15
|
+
let verifiedAhead;
|
|
16
|
+
|
|
17
|
+
const givenTypeVerified = verifyGivenType(typeNode, types, context, () => {
|
|
18
|
+
let verifiedAhead;
|
|
19
|
+
|
|
20
|
+
verifiedAhead = verifyAhead();
|
|
21
|
+
|
|
22
|
+
return verifiedAhead;
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
verifiedAhead = givenTypeVerified; ///
|
|
26
|
+
|
|
27
|
+
return verifiedAhead;
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
termAndGivenTypeVerified = termVerified; ///
|
|
31
|
+
|
|
32
|
+
if (termAndGivenTypeVerified) {
|
|
33
|
+
context.debug(`...verified the '${termString}' term and the given '${typeString}' type.`, termNode);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return termAndGivenTypeVerified
|
|
37
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { nodeQuery } from "../utilities/query";
|
|
4
|
+
|
|
5
|
+
const variableNodeQuery = nodeQuery("/term/variable!");
|
|
6
|
+
|
|
7
|
+
export default function verifyTermAsGivenVariable(termNode, variables, context, verifyAhead) {
|
|
8
|
+
let termVerifiedAsVariable = false;
|
|
9
|
+
|
|
10
|
+
const variableNode = variableNodeQuery(termNode);
|
|
11
|
+
|
|
12
|
+
if (variableNode !== null) {
|
|
13
|
+
const termString = context.nodeAsString(termNode);
|
|
14
|
+
|
|
15
|
+
context.trace(`Verifying the '${termString}' term as a given variable...`, termNode);
|
|
16
|
+
|
|
17
|
+
const variable = context.findVariableByVariableNode(variableNode);
|
|
18
|
+
|
|
19
|
+
if (variable !== null) {
|
|
20
|
+
let verifiedAhead;
|
|
21
|
+
|
|
22
|
+
variables.push(variable);
|
|
23
|
+
|
|
24
|
+
verifiedAhead = verifyAhead();
|
|
25
|
+
|
|
26
|
+
if (!verifiedAhead) {
|
|
27
|
+
variables.pop();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
termVerifiedAsVariable = verifiedAhead; ///
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (termVerifiedAsVariable) {
|
|
34
|
+
context.debug(`...verified the '${termString}' term as a given variable.`, termNode);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return termVerifiedAsVariable;
|
|
39
|
+
}
|
package/src/verify/type.js
CHANGED
|
@@ -46,3 +46,29 @@ export default function verifyType(typeNode, superTypeNode, fileContext) {
|
|
|
46
46
|
|
|
47
47
|
return typeVerified;
|
|
48
48
|
}
|
|
49
|
+
|
|
50
|
+
export function verifyStandaloneType(typeNode, fileContext, verifyAhead) {
|
|
51
|
+
let standaloneTypeVerified = false;
|
|
52
|
+
|
|
53
|
+
const typeString = fileContext.nodeAsString(typeNode);
|
|
54
|
+
|
|
55
|
+
fileContext.trace(`Verifying the '${typeString}' standalone type...`, typeNode);
|
|
56
|
+
|
|
57
|
+
const typeName = typeNameFromTypeNode(typeNode),
|
|
58
|
+
typePresent = fileContext.isTypePresentByTypeName(typeName);
|
|
59
|
+
|
|
60
|
+
if (!typePresent) {
|
|
61
|
+
fileContext.debug(`The type '${typeName}' is not present.`, typeNode);
|
|
62
|
+
} else {
|
|
63
|
+
const verifiedAhead = verifyAhead();
|
|
64
|
+
|
|
65
|
+
standaloneTypeVerified = verifiedAhead; ///
|
|
66
|
+
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (standaloneTypeVerified) {
|
|
70
|
+
fileContext.debug(`...verified the '${typeString}' standalone type.`, typeNode);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return standaloneTypeVerified;
|
|
74
|
+
}
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
import Variable from "../variable";
|
|
4
4
|
import VariableAssignment from "../assignment/variable";
|
|
5
|
-
import
|
|
6
|
-
import verifyTermAsVariableAndStandaloneType from "../verify/termAsVariableAndStandaloneType";
|
|
5
|
+
import verifyTermAndGivenType from "../verify/termAndGivenType";
|
|
7
6
|
|
|
8
7
|
import { first } from "../utilities/array";
|
|
9
8
|
import { nodeQuery } from "../utilities/query";
|
|
9
|
+
import { verifyTermAsGivenVariable } from "./term";
|
|
10
10
|
|
|
11
11
|
const termNodeQuery = nodeQuery("/typeAssertion/term!"),
|
|
12
|
-
typeNodeQuery = nodeQuery("/typeAssertion/type!")
|
|
12
|
+
typeNodeQuery = nodeQuery("/typeAssertion/type!"),
|
|
13
|
+
variableNodeQuery = nodeQuery("/term/variable!");
|
|
13
14
|
|
|
14
15
|
export default function verifyTypeAssertion(typeAssertionNode, assignments, derived, context, verifyAhead) {
|
|
15
16
|
let typeAssertionVerified;
|
|
@@ -50,28 +51,43 @@ function verifyDerivedTypeAssertion(typeAssertionNode, assignments, derived, con
|
|
|
50
51
|
types = [],
|
|
51
52
|
termNode = termNodeQuery(typeAssertionNode),
|
|
52
53
|
typeNode = typeNodeQuery(typeAssertionNode),
|
|
53
|
-
|
|
54
|
+
termAndGivenTypeVerified = verifyTermAndGivenType(termNode, typeNode, terms, types, context, () => {
|
|
54
55
|
let verifiedAhead = false;
|
|
55
56
|
|
|
56
57
|
const firstTerm = first(terms),
|
|
57
58
|
firstType = first(types),
|
|
58
59
|
term = firstTerm, ///
|
|
59
60
|
type = firstType, ///
|
|
60
|
-
termType =
|
|
61
|
-
|
|
61
|
+
termType = context.getTermType(term),
|
|
62
|
+
typeEqualToOrSuperTypeOfTermType = type.isEqualToOrSuperTypeOf(termType);
|
|
62
63
|
|
|
63
|
-
if (
|
|
64
|
-
|
|
64
|
+
if (typeEqualToOrSuperTypeOfTermType) {
|
|
65
|
+
const variableNode = variableNodeQuery(termNode);
|
|
65
66
|
|
|
66
|
-
if (
|
|
67
|
+
if (variableNode === null) {
|
|
67
68
|
verifiedAhead = verifyAhead();
|
|
69
|
+
} else {
|
|
70
|
+
let variable = context.findVariableByVariableNode(variableNode);
|
|
71
|
+
|
|
72
|
+
variable = Variable.fromVariableAndType(variable, type);
|
|
73
|
+
|
|
74
|
+
const variableAssignment = VariableAssignment.fromVariable(variable),
|
|
75
|
+
assignment = variableAssignment; ///
|
|
76
|
+
|
|
77
|
+
assignments.push(assignment);
|
|
78
|
+
|
|
79
|
+
verifiedAhead = verifyAhead();
|
|
80
|
+
|
|
81
|
+
if (!verifiedAhead) {
|
|
82
|
+
assignments.pop();
|
|
83
|
+
}
|
|
68
84
|
}
|
|
69
85
|
}
|
|
70
86
|
|
|
71
87
|
return verifiedAhead;
|
|
72
88
|
});
|
|
73
89
|
|
|
74
|
-
derivedTypeAssertionVerified =
|
|
90
|
+
derivedTypeAssertionVerified = termAndGivenTypeVerified; ///
|
|
75
91
|
|
|
76
92
|
if (derivedTypeAssertionVerified) {
|
|
77
93
|
context.trace(`...verified the '${typeAssertionString}' derived type assertion.`, typeAssertionNode);
|
|
@@ -89,41 +105,47 @@ function verifyGivenTypeAssertion(typeAssertionNode, assignments, derived, conte
|
|
|
89
105
|
|
|
90
106
|
context.trace(`Verifying the '${typeAssertionString}' given type assertion...`, typeAssertionNode);
|
|
91
107
|
|
|
92
|
-
const
|
|
93
|
-
|
|
108
|
+
const terms = [],
|
|
109
|
+
types = [],
|
|
94
110
|
termNode = termNodeQuery(typeAssertionNode),
|
|
95
111
|
typeNode = typeNodeQuery(typeAssertionNode),
|
|
96
|
-
|
|
112
|
+
termAndGivenTypeVerified = verifyTermAndGivenType(termNode, typeNode, terms, types, context, () => {
|
|
97
113
|
let verifiedAhead = false;
|
|
98
114
|
|
|
99
|
-
const
|
|
115
|
+
const firstTerm = first(terms),
|
|
116
|
+
firstType = first(types),
|
|
117
|
+
term = firstTerm, ///
|
|
118
|
+
type = firstType, ///
|
|
119
|
+
termType = term.getType(),
|
|
120
|
+
typeEqualToOrSubTypeOfTermType = type.isEqualToOrSubTypeOf(termType);
|
|
100
121
|
|
|
101
|
-
|
|
122
|
+
if (typeEqualToOrSubTypeOfTermType) {
|
|
123
|
+
const variableNode = variableNodeQuery(termNode);
|
|
102
124
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
125
|
+
if (variableNode === null) {
|
|
126
|
+
verifiedAhead = verifyAhead();
|
|
127
|
+
} else {
|
|
128
|
+
let variable = context.findVariableByVariableNode(variableNode);
|
|
107
129
|
|
|
108
|
-
|
|
109
|
-
variable = Variable.fromVariableAndType(variable, type); ///
|
|
130
|
+
variable = Variable.fromVariableAndType(variable, type);
|
|
110
131
|
|
|
111
|
-
|
|
112
|
-
|
|
132
|
+
const variableAssignment = VariableAssignment.fromVariable(variable),
|
|
133
|
+
assignment = variableAssignment; ///
|
|
113
134
|
|
|
114
|
-
|
|
135
|
+
assignments.push(assignment);
|
|
115
136
|
|
|
116
|
-
|
|
137
|
+
verifiedAhead = verifyAhead();
|
|
117
138
|
|
|
118
|
-
|
|
119
|
-
|
|
139
|
+
if (!verifiedAhead) {
|
|
140
|
+
assignments.pop();
|
|
141
|
+
}
|
|
120
142
|
}
|
|
121
143
|
}
|
|
122
144
|
|
|
123
145
|
return verifiedAhead;
|
|
124
146
|
});
|
|
125
147
|
|
|
126
|
-
givenTypeAssertionVerified =
|
|
148
|
+
givenTypeAssertionVerified = termAndGivenTypeVerified; ///
|
|
127
149
|
|
|
128
150
|
if (givenTypeAssertionVerified) {
|
|
129
151
|
context.trace(`...verified the '${typeAssertionString}' given type assertion.`, typeAssertionNode);
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _default;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var _metastatementForMetavariable = /*#__PURE__*/ _interop_require_default(require("../../../verifier/nodes/metastatementForMetavariable"));
|
|
12
|
-
function _assert_this_initialized(self) {
|
|
13
|
-
if (self === void 0) {
|
|
14
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
|
-
}
|
|
16
|
-
return self;
|
|
17
|
-
}
|
|
18
|
-
function _class_call_check(instance, Constructor) {
|
|
19
|
-
if (!(instance instanceof Constructor)) {
|
|
20
|
-
throw new TypeError("Cannot call a class as a function");
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function _define_property(obj, key, value) {
|
|
24
|
-
if (key in obj) {
|
|
25
|
-
Object.defineProperty(obj, key, {
|
|
26
|
-
value: value,
|
|
27
|
-
enumerable: true,
|
|
28
|
-
configurable: true,
|
|
29
|
-
writable: true
|
|
30
|
-
});
|
|
31
|
-
} else {
|
|
32
|
-
obj[key] = value;
|
|
33
|
-
}
|
|
34
|
-
return obj;
|
|
35
|
-
}
|
|
36
|
-
function _get_prototype_of(o) {
|
|
37
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
38
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
39
|
-
};
|
|
40
|
-
return _get_prototype_of(o);
|
|
41
|
-
}
|
|
42
|
-
function _inherits(subClass, superClass) {
|
|
43
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
44
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
45
|
-
}
|
|
46
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
47
|
-
constructor: {
|
|
48
|
-
value: subClass,
|
|
49
|
-
writable: true,
|
|
50
|
-
configurable: true
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
54
|
-
}
|
|
55
|
-
function _interop_require_default(obj) {
|
|
56
|
-
return obj && obj.__esModule ? obj : {
|
|
57
|
-
default: obj
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function _possible_constructor_return(self, call) {
|
|
61
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
62
|
-
return call;
|
|
63
|
-
}
|
|
64
|
-
return _assert_this_initialized(self);
|
|
65
|
-
}
|
|
66
|
-
function _set_prototype_of(o, p) {
|
|
67
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
68
|
-
o.__proto__ = p;
|
|
69
|
-
return o;
|
|
70
|
-
};
|
|
71
|
-
return _set_prototype_of(o, p);
|
|
72
|
-
}
|
|
73
|
-
function _type_of(obj) {
|
|
74
|
-
"@swc/helpers - typeof";
|
|
75
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
76
|
-
}
|
|
77
|
-
function _is_native_reflect_construct() {
|
|
78
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
79
|
-
if (Reflect.construct.sham) return false;
|
|
80
|
-
if (typeof Proxy === "function") return true;
|
|
81
|
-
try {
|
|
82
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
83
|
-
return true;
|
|
84
|
-
} catch (e) {
|
|
85
|
-
return false;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
function _create_super(Derived) {
|
|
89
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
90
|
-
return function _createSuperInternal() {
|
|
91
|
-
var Super = _get_prototype_of(Derived), result;
|
|
92
|
-
if (hasNativeReflectConstruct) {
|
|
93
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
94
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
95
|
-
} else {
|
|
96
|
-
result = Super.apply(this, arguments);
|
|
97
|
-
}
|
|
98
|
-
return _possible_constructor_return(this, result);
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
var ConclusionMetastatementForMetavariableNodesVerifier = /*#__PURE__*/ function(MetastatementForMetavariableNodesVerifier) {
|
|
102
|
-
_inherits(ConclusionMetastatementForMetavariableNodesVerifier, MetastatementForMetavariableNodesVerifier);
|
|
103
|
-
var _super = _create_super(ConclusionMetastatementForMetavariableNodesVerifier);
|
|
104
|
-
function ConclusionMetastatementForMetavariableNodesVerifier() {
|
|
105
|
-
_class_call_check(this, ConclusionMetastatementForMetavariableNodesVerifier);
|
|
106
|
-
return _super.apply(this, arguments);
|
|
107
|
-
}
|
|
108
|
-
return ConclusionMetastatementForMetavariableNodesVerifier;
|
|
109
|
-
}(_metastatementForMetavariable.default);
|
|
110
|
-
_define_property(ConclusionMetastatementForMetavariableNodesVerifier, "createSubstitutions", false);
|
|
111
|
-
var conclusionMetastatementForMetavariableNodesVerifier = new ConclusionMetastatementForMetavariableNodesVerifier();
|
|
112
|
-
var _default = conclusionMetastatementForMetavariableNodesVerifier;
|
|
113
|
-
|
|
114
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy92ZXJpZmllci9ub2Rlcy9tZXRhc3RhdGVtZW50Rm9yTWV0YXZhcmlhYmxlL2NvbmNsdXNpb24uanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCBNZXRhc3RhdGVtZW50Rm9yTWV0YXZhcmlhYmxlTm9kZXNWZXJpZmllciBmcm9tIFwiLi4vLi4vLi4vdmVyaWZpZXIvbm9kZXMvbWV0YXN0YX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XlDO0FBQ3pHLGlCQURJRCxxREFDR0UsdUJBQXNCO0FBRy9CLElBQU1DLHNEQUFzRCxJQUFJSDtJQUVoRSxXQUFlRyJ9
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _default;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var _metastatementForMetavariable = /*#__PURE__*/ _interop_require_default(require("../../../verifier/nodes/metastatementForMetavariable"));
|
|
12
|
-
function _assert_this_initialized(self) {
|
|
13
|
-
if (self === void 0) {
|
|
14
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
|
-
}
|
|
16
|
-
return self;
|
|
17
|
-
}
|
|
18
|
-
function _class_call_check(instance, Constructor) {
|
|
19
|
-
if (!(instance instanceof Constructor)) {
|
|
20
|
-
throw new TypeError("Cannot call a class as a function");
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function _define_property(obj, key, value) {
|
|
24
|
-
if (key in obj) {
|
|
25
|
-
Object.defineProperty(obj, key, {
|
|
26
|
-
value: value,
|
|
27
|
-
enumerable: true,
|
|
28
|
-
configurable: true,
|
|
29
|
-
writable: true
|
|
30
|
-
});
|
|
31
|
-
} else {
|
|
32
|
-
obj[key] = value;
|
|
33
|
-
}
|
|
34
|
-
return obj;
|
|
35
|
-
}
|
|
36
|
-
function _get_prototype_of(o) {
|
|
37
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
38
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
39
|
-
};
|
|
40
|
-
return _get_prototype_of(o);
|
|
41
|
-
}
|
|
42
|
-
function _inherits(subClass, superClass) {
|
|
43
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
44
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
45
|
-
}
|
|
46
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
47
|
-
constructor: {
|
|
48
|
-
value: subClass,
|
|
49
|
-
writable: true,
|
|
50
|
-
configurable: true
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
54
|
-
}
|
|
55
|
-
function _interop_require_default(obj) {
|
|
56
|
-
return obj && obj.__esModule ? obj : {
|
|
57
|
-
default: obj
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function _possible_constructor_return(self, call) {
|
|
61
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
62
|
-
return call;
|
|
63
|
-
}
|
|
64
|
-
return _assert_this_initialized(self);
|
|
65
|
-
}
|
|
66
|
-
function _set_prototype_of(o, p) {
|
|
67
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
68
|
-
o.__proto__ = p;
|
|
69
|
-
return o;
|
|
70
|
-
};
|
|
71
|
-
return _set_prototype_of(o, p);
|
|
72
|
-
}
|
|
73
|
-
function _type_of(obj) {
|
|
74
|
-
"@swc/helpers - typeof";
|
|
75
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
76
|
-
}
|
|
77
|
-
function _is_native_reflect_construct() {
|
|
78
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
79
|
-
if (Reflect.construct.sham) return false;
|
|
80
|
-
if (typeof Proxy === "function") return true;
|
|
81
|
-
try {
|
|
82
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
83
|
-
return true;
|
|
84
|
-
} catch (e) {
|
|
85
|
-
return false;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
function _create_super(Derived) {
|
|
89
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
90
|
-
return function _createSuperInternal() {
|
|
91
|
-
var Super = _get_prototype_of(Derived), result;
|
|
92
|
-
if (hasNativeReflectConstruct) {
|
|
93
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
94
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
95
|
-
} else {
|
|
96
|
-
result = Super.apply(this, arguments);
|
|
97
|
-
}
|
|
98
|
-
return _possible_constructor_return(this, result);
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
var PremiseMetastatementForMetavariableNodesVerifier = /*#__PURE__*/ function(MetastatementForMetavariableNodesVerifier) {
|
|
102
|
-
_inherits(PremiseMetastatementForMetavariableNodesVerifier, MetastatementForMetavariableNodesVerifier);
|
|
103
|
-
var _super = _create_super(PremiseMetastatementForMetavariableNodesVerifier);
|
|
104
|
-
function PremiseMetastatementForMetavariableNodesVerifier() {
|
|
105
|
-
_class_call_check(this, PremiseMetastatementForMetavariableNodesVerifier);
|
|
106
|
-
return _super.apply(this, arguments);
|
|
107
|
-
}
|
|
108
|
-
return PremiseMetastatementForMetavariableNodesVerifier;
|
|
109
|
-
}(_metastatementForMetavariable.default);
|
|
110
|
-
_define_property(PremiseMetastatementForMetavariableNodesVerifier, "createSubstitutions", true);
|
|
111
|
-
var premiseMetastatementForMetavariableNodesVerifier = new PremiseMetastatementForMetavariableNodesVerifier();
|
|
112
|
-
var _default = premiseMetastatementForMetavariableNodesVerifier;
|
|
113
|
-
|
|
114
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy92ZXJpZmllci9ub2Rlcy9tZXRhc3RhdGVtZW50Rm9yTWV0YXZhcmlhYmxlL3ByZW1pc2UuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCBNZXRhc3RhdGVtZW50Rm9yTWV0YXZhcmlhYmxlTm9kZXNWZXJpZmllciBmcm9tIFwiLi4vLi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BQUFBO0VBQXlEQyxxQ0FBeUM7QUFDdEcsaUJBRElELGtEQUNHRSx1QkFBc0I7QUFHL0IsSUFBTUMsbURBQW1ELElBQUlIO0lBRTdELFdBQWVHIn0=
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _default;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var _statementForMetavariable = /*#__PURE__*/ _interop_require_default(require("../../../verifier/nodes/statementForMetavariable"));
|
|
12
|
-
function _assert_this_initialized(self) {
|
|
13
|
-
if (self === void 0) {
|
|
14
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
|
-
}
|
|
16
|
-
return self;
|
|
17
|
-
}
|
|
18
|
-
function _class_call_check(instance, Constructor) {
|
|
19
|
-
if (!(instance instanceof Constructor)) {
|
|
20
|
-
throw new TypeError("Cannot call a class as a function");
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function _define_property(obj, key, value) {
|
|
24
|
-
if (key in obj) {
|
|
25
|
-
Object.defineProperty(obj, key, {
|
|
26
|
-
value: value,
|
|
27
|
-
enumerable: true,
|
|
28
|
-
configurable: true,
|
|
29
|
-
writable: true
|
|
30
|
-
});
|
|
31
|
-
} else {
|
|
32
|
-
obj[key] = value;
|
|
33
|
-
}
|
|
34
|
-
return obj;
|
|
35
|
-
}
|
|
36
|
-
function _get_prototype_of(o) {
|
|
37
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
38
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
39
|
-
};
|
|
40
|
-
return _get_prototype_of(o);
|
|
41
|
-
}
|
|
42
|
-
function _inherits(subClass, superClass) {
|
|
43
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
44
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
45
|
-
}
|
|
46
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
47
|
-
constructor: {
|
|
48
|
-
value: subClass,
|
|
49
|
-
writable: true,
|
|
50
|
-
configurable: true
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
54
|
-
}
|
|
55
|
-
function _interop_require_default(obj) {
|
|
56
|
-
return obj && obj.__esModule ? obj : {
|
|
57
|
-
default: obj
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function _possible_constructor_return(self, call) {
|
|
61
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
62
|
-
return call;
|
|
63
|
-
}
|
|
64
|
-
return _assert_this_initialized(self);
|
|
65
|
-
}
|
|
66
|
-
function _set_prototype_of(o, p) {
|
|
67
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
68
|
-
o.__proto__ = p;
|
|
69
|
-
return o;
|
|
70
|
-
};
|
|
71
|
-
return _set_prototype_of(o, p);
|
|
72
|
-
}
|
|
73
|
-
function _type_of(obj) {
|
|
74
|
-
"@swc/helpers - typeof";
|
|
75
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
76
|
-
}
|
|
77
|
-
function _is_native_reflect_construct() {
|
|
78
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
79
|
-
if (Reflect.construct.sham) return false;
|
|
80
|
-
if (typeof Proxy === "function") return true;
|
|
81
|
-
try {
|
|
82
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
83
|
-
return true;
|
|
84
|
-
} catch (e) {
|
|
85
|
-
return false;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
function _create_super(Derived) {
|
|
89
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
90
|
-
return function _createSuperInternal() {
|
|
91
|
-
var Super = _get_prototype_of(Derived), result;
|
|
92
|
-
if (hasNativeReflectConstruct) {
|
|
93
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
94
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
95
|
-
} else {
|
|
96
|
-
result = Super.apply(this, arguments);
|
|
97
|
-
}
|
|
98
|
-
return _possible_constructor_return(this, result);
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
var ConclusionStatementForMetavariableNodesVerifier = /*#__PURE__*/ function(StatementForMetavariableNodesVerifier) {
|
|
102
|
-
_inherits(ConclusionStatementForMetavariableNodesVerifier, StatementForMetavariableNodesVerifier);
|
|
103
|
-
var _super = _create_super(ConclusionStatementForMetavariableNodesVerifier);
|
|
104
|
-
function ConclusionStatementForMetavariableNodesVerifier() {
|
|
105
|
-
_class_call_check(this, ConclusionStatementForMetavariableNodesVerifier);
|
|
106
|
-
return _super.apply(this, arguments);
|
|
107
|
-
}
|
|
108
|
-
return ConclusionStatementForMetavariableNodesVerifier;
|
|
109
|
-
}(_statementForMetavariable.default);
|
|
110
|
-
_define_property(ConclusionStatementForMetavariableNodesVerifier, "createSubstitutions", false);
|
|
111
|
-
var conclusionStatementForMetavariableNodesVerifier = new ConclusionStatementForMetavariableNodesVerifier();
|
|
112
|
-
var _default = conclusionStatementForMetavariableNodesVerifier;
|
|
113
|
-
|
|
114
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy92ZXJpZmllci9ub2Rlcy9zdGF0ZW1lbnRGb3JNZXRhdmFyaWFibGUvY29uY2x1c2lvbi5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IFN0YXRlbWVudEZvck1ldGF2YXJpYWJsZU5vZGVzVmVyaWZpZXIgZnJvbSBcIi4uLy4uLy4uL3Zl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