occam-verify-cli 1.0.301 → 1.0.303
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/context/file.js +25 -33
- package/lib/dom/assertion/property.js +4 -4
- package/lib/dom/conclusion.js +3 -3
- package/lib/dom/declaration.js +98 -35
- package/lib/dom/deduction.js +3 -3
- package/lib/dom/frame.js +34 -73
- package/lib/dom/metavariable.js +1 -70
- package/lib/dom/premise.js +5 -5
- package/lib/dom/procedureCall.js +3 -3
- package/lib/dom/statement.js +12 -9
- package/lib/dom/supposition.js +5 -5
- package/lib/index.js +1 -2
- package/lib/node/declaration.js +8 -1
- package/lib/node/statement.js +1 -8
- package/lib/nonTerminalNodeMap.js +2 -3
- package/lib/ruleNames.js +1 -5
- package/lib/unifier/metaLevel.js +4 -4
- package/package.json +2 -2
- package/src/context/file.js +25 -33
- package/src/dom/assertion/property.js +3 -3
- package/src/dom/conclusion.js +2 -2
- package/src/dom/declaration.js +111 -42
- package/src/dom/deduction.js +2 -2
- package/src/dom/frame.js +36 -92
- package/src/dom/metavariable.js +0 -103
- package/src/dom/premise.js +4 -4
- package/src/dom/procedureCall.js +2 -2
- package/src/dom/statement.js +12 -8
- package/src/dom/supposition.js +4 -4
- package/src/index.js +0 -1
- package/src/node/declaration.js +7 -0
- package/src/node/statement.js +0 -8
- package/src/nonTerminalNodeMap.js +0 -3
- package/src/ruleNames.js +0 -1
- package/src/unifier/metaLevel.js +3 -3
- package/lib/context/partial/substitution/reference.js +0 -158
- package/lib/dom/substitution/reference.js +0 -203
- package/lib/node/substitution/reference.js +0 -123
- package/src/context/partial/substitution/reference.js +0 -18
- package/src/dom/substitution/reference.js +0 -75
- package/src/node/substitution/reference.js +0 -23
package/src/dom/statement.js
CHANGED
|
@@ -151,7 +151,7 @@ export default domAssigned(class Statement {
|
|
|
151
151
|
const subproofString = subproof.getString(),
|
|
152
152
|
subproofAssertionString = subproofAssertion.getString();
|
|
153
153
|
|
|
154
|
-
specificContext.trace(`Unifying the '${subproofString}' subproof with the '${subproofAssertionString}' subproof assertion
|
|
154
|
+
specificContext.trace(`Unifying the '${subproofString}' subproof with the '${subproofAssertionString}' subproof assertion...`);
|
|
155
155
|
|
|
156
156
|
const subproofStatements = subproof.getStatements(),
|
|
157
157
|
subproofAssertionStatements = subproofAssertion.getStatements();
|
|
@@ -167,7 +167,7 @@ export default domAssigned(class Statement {
|
|
|
167
167
|
});
|
|
168
168
|
|
|
169
169
|
if (subproofUnifies) {
|
|
170
|
-
specificContext.debug(`...unified the '${subproofString}' subproof with the '${subproofAssertionString}' subproof assertion
|
|
170
|
+
specificContext.debug(`...unified the '${subproofString}' subproof with the '${subproofAssertionString}' subproof assertion.`);
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
|
|
@@ -182,12 +182,12 @@ export default domAssigned(class Statement {
|
|
|
182
182
|
generalStatementString = generalStatement.getString(),
|
|
183
183
|
specificStatementString = specificStatement.getString();
|
|
184
184
|
|
|
185
|
-
specificContext.trace(`Unifying the '${specificStatementString}' statement with the '${generalStatementString}' statement
|
|
185
|
+
specificContext.trace(`Unifying the '${specificStatementString}' statement with the '${generalStatementString}' statement...`);
|
|
186
186
|
|
|
187
187
|
statementUnifies = unifyStatement(generalStatement, specificStatement, substitutions, generalContext, specificContext);
|
|
188
188
|
|
|
189
189
|
if (statementUnifies) {
|
|
190
|
-
specificContext.debug(`...unified the '${specificStatementString}' statement with the '${generalStatementString}' statement
|
|
190
|
+
specificContext.debug(`...unified the '${specificStatementString}' statement with the '${generalStatementString}' statement.`);
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
return statementUnifies;
|
|
@@ -199,7 +199,7 @@ export default domAssigned(class Statement {
|
|
|
199
199
|
const statement = this, ///
|
|
200
200
|
statementString = this.string; ///
|
|
201
201
|
|
|
202
|
-
context.trace(`Unifying the '${statementString}' statement independently
|
|
202
|
+
context.trace(`Unifying the '${statementString}' statement independently...`);
|
|
203
203
|
|
|
204
204
|
const definedAssertion = definedAssertionFromStatement(statement, context),
|
|
205
205
|
containedAssertion = containedAssertionFromStatement(statement, context);
|
|
@@ -217,7 +217,7 @@ export default domAssigned(class Statement {
|
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
if (unifiesIndependently) {
|
|
220
|
-
context.debug(`...unified the '${statementString}' statement independently
|
|
220
|
+
context.debug(`...unified the '${statementString}' statement independently.`);
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
return unifiesIndependently;
|
|
@@ -340,13 +340,17 @@ export default domAssigned(class Statement {
|
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
static fromDeclarationNode(declarationNode, context) {
|
|
343
|
+
let statement = null;
|
|
344
|
+
|
|
343
345
|
let statementNode;
|
|
344
346
|
|
|
345
347
|
statementNode = declarationNode.getStatementNode(); ///
|
|
346
348
|
|
|
347
|
-
statementNode
|
|
349
|
+
if (statementNode !== null) {
|
|
350
|
+
statementNode = stripBracketsFromStatementNode(statementNode); ///
|
|
348
351
|
|
|
349
|
-
|
|
352
|
+
statement = statementFromStatementNode(statementNode, context);
|
|
353
|
+
}
|
|
350
354
|
|
|
351
355
|
return statement;
|
|
352
356
|
}
|
package/src/dom/supposition.js
CHANGED
|
@@ -172,7 +172,7 @@ export default domAssigned(class Supposition {
|
|
|
172
172
|
suppositionStatement = supposition.getStatement(),
|
|
173
173
|
suppositionStatementString = suppositionStatement.getString();
|
|
174
174
|
|
|
175
|
-
specificContext.trace(`Unifying the '${subproofString}' subproof with the supposition's '${suppositionStatementString}' statement
|
|
175
|
+
specificContext.trace(`Unifying the '${subproofString}' subproof with the supposition's '${suppositionStatementString}' statement...`);
|
|
176
176
|
|
|
177
177
|
if (this.statement !== null) {
|
|
178
178
|
const context = generalContext, ///
|
|
@@ -184,7 +184,7 @@ export default domAssigned(class Supposition {
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
if (subproofUnifies) {
|
|
187
|
-
specificContext.debug(`...unified the '${subproofString}' subproof with the supposition's '${suppositionStatementString}' statement
|
|
187
|
+
specificContext.debug(`...unified the '${subproofString}' subproof with the supposition's '${suppositionStatementString}' statement.`);
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
return subproofUnifies;
|
|
@@ -197,14 +197,14 @@ export default domAssigned(class Supposition {
|
|
|
197
197
|
statementString = statement.getString(),
|
|
198
198
|
suppositionString = supposition.getString();
|
|
199
199
|
|
|
200
|
-
specificContext.trace(`Unifying the '${statementString}' statement with the '${suppositionString}' supposition
|
|
200
|
+
specificContext.trace(`Unifying the '${statementString}' statement with the '${suppositionString}' supposition...`);
|
|
201
201
|
|
|
202
202
|
if (this.statement !== null) {
|
|
203
203
|
statementUnifies = this.statement.unifyStatement(statement, substitutions, generalContext, specificContext);
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
if (statementUnifies) {
|
|
207
|
-
specificContext.debug(`...unified the '${statementString}' statement with the '${suppositionString}' supposition
|
|
207
|
+
specificContext.debug(`...unified the '${statementString}' statement with the '${suppositionString}' supposition.`);
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
return statementUnifies;
|
package/src/index.js
CHANGED
|
@@ -50,7 +50,6 @@ import VariableDeclaration from "./dom/declaration/variable";
|
|
|
50
50
|
import BracketedCombinator from "./dom/combinator/bracketed";
|
|
51
51
|
import BracketedConstructor from "./dom/constructor/bracketed";
|
|
52
52
|
import SimpleTypeDeclaration from "./dom/declaration/simpleType";
|
|
53
|
-
import ReferenceSubstitution from "./dom/substitution/reference";
|
|
54
53
|
import StatementSubstitution from "./dom/substitution/statement";
|
|
55
54
|
import CombinatorDeclaration from "./dom/declaration/combinator";
|
|
56
55
|
import ConstructorDeclaration from "./dom/declaration/constructor";
|
package/src/node/declaration.js
CHANGED
|
@@ -5,6 +5,13 @@ import NonTerminalNode from "../node/nonTerminal";
|
|
|
5
5
|
import { STATEMENT_RULE_NAME, METAVARIABLE_RULE_NAME } from "../ruleNames";
|
|
6
6
|
|
|
7
7
|
export default class DeclarationNode extends NonTerminalNode {
|
|
8
|
+
isSimple() {
|
|
9
|
+
const statementNode = this.getStatementNode(),
|
|
10
|
+
simple = (statementNode === null);
|
|
11
|
+
|
|
12
|
+
return simple;
|
|
13
|
+
}
|
|
14
|
+
|
|
8
15
|
getStatementNode() {
|
|
9
16
|
const ruleName = STATEMENT_RULE_NAME,
|
|
10
17
|
statementNode = this.getNodeByRuleName(ruleName);
|
package/src/node/statement.js
CHANGED
|
@@ -16,7 +16,6 @@ import { TERM_RULE_NAME,
|
|
|
16
16
|
FRAME_SUBSTITUTION_RULE_NAME,
|
|
17
17
|
SATISFIES_ASSERTION_RULE_NAME,
|
|
18
18
|
CONTAINED_ASSERTION_RULE_NAME,
|
|
19
|
-
REFERENCE_SUBSTITUTION_RULE_NAME,
|
|
20
19
|
STATEMENT_SUBSTITUTION_RULE_NAME } from "../ruleNames";
|
|
21
20
|
|
|
22
21
|
export default class StatementNode extends NonTerminalNode {
|
|
@@ -137,13 +136,6 @@ export default class StatementNode extends NonTerminalNode {
|
|
|
137
136
|
return singularMetaArgumentNode;
|
|
138
137
|
}
|
|
139
138
|
|
|
140
|
-
getReferenceSubstitutionNode() {
|
|
141
|
-
const ruleName = REFERENCE_SUBSTITUTION_RULE_NAME,
|
|
142
|
-
referenceSubstitutionNode = this.getNodeByRuleName(ruleName);
|
|
143
|
-
|
|
144
|
-
return referenceSubstitutionNode;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
139
|
getStatementSubstitutionNode() {
|
|
148
140
|
const ruleName = STATEMENT_SUBSTITUTION_RULE_NAME,
|
|
149
141
|
statementSubstitutionNode = this.getNodeByRuleName(ruleName);
|
|
@@ -71,7 +71,6 @@ import ParenthesisedLabelsNode from "./node/parenthesisedLabels"
|
|
|
71
71
|
import PropertyDeclarationNode from "./node/declaration/property";
|
|
72
72
|
import variableDeclarationNode from "./node/declaration/variable";
|
|
73
73
|
import StatementSubstitutionNode from "./node/substitution/statement";
|
|
74
|
-
import ReferenceSubstitutionNode from "./node/substitution/reference";
|
|
75
74
|
import SimpleTypeDeclarationNode from "./node/declaration/simpleType";
|
|
76
75
|
import combinatorDeclarationNode from "./node/declaration/combinator";
|
|
77
76
|
import complexTypeDeclarationNode from "./node/declaration/complexType";
|
|
@@ -149,7 +148,6 @@ import { RULE_RULE_NAME,
|
|
|
149
148
|
PROPERTY_DECLARATION_RULE_NAME,
|
|
150
149
|
VARIABLE_DECLARATION_RULE_NAME,
|
|
151
150
|
STATEMENT_SUBSTITUTION_RULE_NAME,
|
|
152
|
-
REFERENCE_SUBSTITUTION_RULE_NAME,
|
|
153
151
|
COMBINATOR_DECLARATION_RULE_NAME,
|
|
154
152
|
SIMPLE_TYPE_DECLARATION_RULE_NAME,
|
|
155
153
|
CONSTRUCTOR_DECLARATION_RULE_NAME,
|
|
@@ -228,7 +226,6 @@ const NonTerminalNodeMap = {
|
|
|
228
226
|
[VARIABLE_DECLARATION_RULE_NAME]: variableDeclarationNode,
|
|
229
227
|
[PROPERTY_DECLARATION_RULE_NAME]: PropertyDeclarationNode,
|
|
230
228
|
[STATEMENT_SUBSTITUTION_RULE_NAME]: StatementSubstitutionNode,
|
|
231
|
-
[REFERENCE_SUBSTITUTION_RULE_NAME]: ReferenceSubstitutionNode,
|
|
232
229
|
[COMBINATOR_DECLARATION_RULE_NAME]: combinatorDeclarationNode,
|
|
233
230
|
[SIMPLE_TYPE_DECLARATION_RULE_NAME]: SimpleTypeDeclarationNode,
|
|
234
231
|
[CONSTRUCTOR_DECLARATION_RULE_NAME]: constructorDeclarationNode,
|
package/src/ruleNames.js
CHANGED
|
@@ -71,7 +71,6 @@ export const PARENTHESISED_LABELS_RULE_NAME = "parenthesisedLabels";
|
|
|
71
71
|
export const PROPERTY_DECLARATION_RULE_NAME = "propertyDeclaration";
|
|
72
72
|
export const VARIABLE_DECLARATION_RULE_NAME = "variableDeclaration";
|
|
73
73
|
export const STATEMENT_SUBSTITUTION_RULE_NAME = "statementSubstitution";
|
|
74
|
-
export const REFERENCE_SUBSTITUTION_RULE_NAME = "referenceSubstitution";
|
|
75
74
|
export const COMBINATOR_DECLARATION_RULE_NAME = "combinatorDeclaration";
|
|
76
75
|
export const SIMPLE_TYPE_DECLARATION_RULE_NAME = "simpleTypeDeclaration";
|
|
77
76
|
export const CONSTRUCTOR_DECLARATION_RULE_NAME = "constructorDeclaration";
|
package/src/unifier/metaLevel.js
CHANGED
|
@@ -71,7 +71,7 @@ class MetaLevelUnifier extends Unifier {
|
|
|
71
71
|
unify: (generalDeclarationMetavariableNode, specificDeclarationMetavariableNode, substitutions, generalContext, specificContext) => {
|
|
72
72
|
let referenceUnifies;
|
|
73
73
|
|
|
74
|
-
const {
|
|
74
|
+
const { Frame, Metavariable } = dom;
|
|
75
75
|
|
|
76
76
|
let context,
|
|
77
77
|
metavariableNode;
|
|
@@ -86,9 +86,9 @@ class MetaLevelUnifier extends Unifier {
|
|
|
86
86
|
|
|
87
87
|
metavariableNode = specificDeclarationMetavariableNode; ///
|
|
88
88
|
|
|
89
|
-
const
|
|
89
|
+
const frame = Frame.fromMetavariableNode(metavariableNode, context);
|
|
90
90
|
|
|
91
|
-
referenceUnifies = metavariable.
|
|
91
|
+
referenceUnifies = metavariable.unifyFrame(frame, substitutions, generalContext, specificContext);
|
|
92
92
|
|
|
93
93
|
return referenceUnifies;
|
|
94
94
|
}
|
|
@@ -1,158 +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 ReferenceSubstitutionPartialContext;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var _partial = /*#__PURE__*/ _interop_require_wildcard(require("../../../context/partial"));
|
|
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 _call_super(_this, derived, args) {
|
|
19
|
-
derived = _get_prototype_of(derived);
|
|
20
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
21
|
-
}
|
|
22
|
-
function _class_call_check(instance, Constructor) {
|
|
23
|
-
if (!(instance instanceof Constructor)) {
|
|
24
|
-
throw new TypeError("Cannot call a class as a function");
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
function _defineProperties(target, props) {
|
|
28
|
-
for(var i = 0; i < props.length; i++){
|
|
29
|
-
var descriptor = props[i];
|
|
30
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
31
|
-
descriptor.configurable = true;
|
|
32
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
33
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
37
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
39
|
-
return Constructor;
|
|
40
|
-
}
|
|
41
|
-
function _define_property(obj, key, value) {
|
|
42
|
-
if (key in obj) {
|
|
43
|
-
Object.defineProperty(obj, key, {
|
|
44
|
-
value: value,
|
|
45
|
-
enumerable: true,
|
|
46
|
-
configurable: true,
|
|
47
|
-
writable: true
|
|
48
|
-
});
|
|
49
|
-
} else {
|
|
50
|
-
obj[key] = value;
|
|
51
|
-
}
|
|
52
|
-
return obj;
|
|
53
|
-
}
|
|
54
|
-
function _get_prototype_of(o) {
|
|
55
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
56
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
57
|
-
};
|
|
58
|
-
return _get_prototype_of(o);
|
|
59
|
-
}
|
|
60
|
-
function _inherits(subClass, superClass) {
|
|
61
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
62
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
63
|
-
}
|
|
64
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
65
|
-
constructor: {
|
|
66
|
-
value: subClass,
|
|
67
|
-
writable: true,
|
|
68
|
-
configurable: true
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
72
|
-
}
|
|
73
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
74
|
-
if (typeof WeakMap !== "function") return null;
|
|
75
|
-
var cacheBabelInterop = new WeakMap();
|
|
76
|
-
var cacheNodeInterop = new WeakMap();
|
|
77
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
78
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
79
|
-
})(nodeInterop);
|
|
80
|
-
}
|
|
81
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
82
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
83
|
-
return obj;
|
|
84
|
-
}
|
|
85
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
86
|
-
return {
|
|
87
|
-
default: obj
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
91
|
-
if (cache && cache.has(obj)) {
|
|
92
|
-
return cache.get(obj);
|
|
93
|
-
}
|
|
94
|
-
var newObj = {
|
|
95
|
-
__proto__: null
|
|
96
|
-
};
|
|
97
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
98
|
-
for(var key in obj){
|
|
99
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
100
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
101
|
-
if (desc && (desc.get || desc.set)) {
|
|
102
|
-
Object.defineProperty(newObj, key, desc);
|
|
103
|
-
} else {
|
|
104
|
-
newObj[key] = obj[key];
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
newObj.default = obj;
|
|
109
|
-
if (cache) {
|
|
110
|
-
cache.set(obj, newObj);
|
|
111
|
-
}
|
|
112
|
-
return newObj;
|
|
113
|
-
}
|
|
114
|
-
function _possible_constructor_return(self, call) {
|
|
115
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
116
|
-
return call;
|
|
117
|
-
}
|
|
118
|
-
return _assert_this_initialized(self);
|
|
119
|
-
}
|
|
120
|
-
function _set_prototype_of(o, p) {
|
|
121
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
122
|
-
o.__proto__ = p;
|
|
123
|
-
return o;
|
|
124
|
-
};
|
|
125
|
-
return _set_prototype_of(o, p);
|
|
126
|
-
}
|
|
127
|
-
function _type_of(obj) {
|
|
128
|
-
"@swc/helpers - typeof";
|
|
129
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
130
|
-
}
|
|
131
|
-
function _is_native_reflect_construct() {
|
|
132
|
-
try {
|
|
133
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
134
|
-
} catch (_) {}
|
|
135
|
-
return (_is_native_reflect_construct = function() {
|
|
136
|
-
return !!result;
|
|
137
|
-
})();
|
|
138
|
-
}
|
|
139
|
-
var bnf = "\n\n _ ::= referenceSubstitution... <END_OF_LINE> ;\n \n ", rule = (0, _partial.ruleFromBNF)(bnf);
|
|
140
|
-
var ReferenceSubstitutionPartialContext = /*#__PURE__*/ function(PartialContext) {
|
|
141
|
-
_inherits(ReferenceSubstitutionPartialContext, PartialContext);
|
|
142
|
-
function ReferenceSubstitutionPartialContext() {
|
|
143
|
-
_class_call_check(this, ReferenceSubstitutionPartialContext);
|
|
144
|
-
return _call_super(this, ReferenceSubstitutionPartialContext, arguments);
|
|
145
|
-
}
|
|
146
|
-
_create_class(ReferenceSubstitutionPartialContext, null, [
|
|
147
|
-
{
|
|
148
|
-
key: "fromStringLexerAndParser",
|
|
149
|
-
value: function fromStringLexerAndParser(string, lexer, parser) {
|
|
150
|
-
return _partial.default.fromStringLexerAndParser(ReferenceSubstitutionPartialContext, string, lexer, parser);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
]);
|
|
154
|
-
return ReferenceSubstitutionPartialContext;
|
|
155
|
-
}(_partial.default);
|
|
156
|
-
_define_property(ReferenceSubstitutionPartialContext, "rule", rule);
|
|
157
|
-
|
|
158
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb250ZXh0L3BhcnRpYWwvc3Vic3RpdHV0aW9uL3JlZmVyZW5jZS5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IFBhcnRpYWxDb250ZXh0IGZyb20gXCIuLi8uLi8uLi9jb250ZXh0L3BhcnRpYWxcIjtcblxuaW1wb3J0IHsgcnVsZUZyb21CTkYgfSBmcm9tIFwiLi4vLi4vLi4vY29udGV4dC9wYXJ0aWFsXCI7XG5cbmNvbnN0IGJuZiA9IGBcblxuICAgICAgICBfIDo6PSByZWZlcmVuY2VTdWJzdGl0dXRpb24uLi4gPEVORF9PRl9MSU5FPiA7XG4gICAgICAgICAgICBcbiAgICAgIGAsXG4gICAgICBydWxlID0gcnVsZUZyb21CTkYoYm5mKTtcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgUmVmZXJlbmNlU3Vic3RpdHV0aW9uUGFydGlhbENvbnRleHQgZXh0ZW5kcyBQYXJ0aWFsQ29udGV4dCB7XG4gIHN0YXRpYyBydWxlID0gcnVsZTtcblxuICBzdGF0aWMgZnJvbVN0cmluZ0xleGVyQW5kUGFy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@@
|
|
|
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 _dom = /*#__PURE__*/ _interop_require_wildcard(require("../../dom"));
|
|
12
|
-
var _substitution = /*#__PURE__*/ _interop_require_default(require("../substitution"));
|
|
13
|
-
var _reference = /*#__PURE__*/ _interop_require_default(require("../../context/partial/substitution/reference"));
|
|
14
|
-
function _assert_this_initialized(self) {
|
|
15
|
-
if (self === void 0) {
|
|
16
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
17
|
-
}
|
|
18
|
-
return self;
|
|
19
|
-
}
|
|
20
|
-
function _call_super(_this, derived, args) {
|
|
21
|
-
derived = _get_prototype_of(derived);
|
|
22
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
23
|
-
}
|
|
24
|
-
function _class_call_check(instance, Constructor) {
|
|
25
|
-
if (!(instance instanceof Constructor)) {
|
|
26
|
-
throw new TypeError("Cannot call a class as a function");
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
function _defineProperties(target, props) {
|
|
30
|
-
for(var i = 0; i < props.length; i++){
|
|
31
|
-
var descriptor = props[i];
|
|
32
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
33
|
-
descriptor.configurable = true;
|
|
34
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
35
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
39
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
40
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
41
|
-
return Constructor;
|
|
42
|
-
}
|
|
43
|
-
function _get_prototype_of(o) {
|
|
44
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
45
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46
|
-
};
|
|
47
|
-
return _get_prototype_of(o);
|
|
48
|
-
}
|
|
49
|
-
function _inherits(subClass, superClass) {
|
|
50
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
51
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
52
|
-
}
|
|
53
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
54
|
-
constructor: {
|
|
55
|
-
value: subClass,
|
|
56
|
-
writable: true,
|
|
57
|
-
configurable: true
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
61
|
-
}
|
|
62
|
-
function _interop_require_default(obj) {
|
|
63
|
-
return obj && obj.__esModule ? obj : {
|
|
64
|
-
default: obj
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
68
|
-
if (typeof WeakMap !== "function") return null;
|
|
69
|
-
var cacheBabelInterop = new WeakMap();
|
|
70
|
-
var cacheNodeInterop = new WeakMap();
|
|
71
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
72
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
73
|
-
})(nodeInterop);
|
|
74
|
-
}
|
|
75
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
76
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
77
|
-
return obj;
|
|
78
|
-
}
|
|
79
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
80
|
-
return {
|
|
81
|
-
default: obj
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
85
|
-
if (cache && cache.has(obj)) {
|
|
86
|
-
return cache.get(obj);
|
|
87
|
-
}
|
|
88
|
-
var newObj = {
|
|
89
|
-
__proto__: null
|
|
90
|
-
};
|
|
91
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
92
|
-
for(var key in obj){
|
|
93
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
94
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
95
|
-
if (desc && (desc.get || desc.set)) {
|
|
96
|
-
Object.defineProperty(newObj, key, desc);
|
|
97
|
-
} else {
|
|
98
|
-
newObj[key] = obj[key];
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
newObj.default = obj;
|
|
103
|
-
if (cache) {
|
|
104
|
-
cache.set(obj, newObj);
|
|
105
|
-
}
|
|
106
|
-
return newObj;
|
|
107
|
-
}
|
|
108
|
-
function _possible_constructor_return(self, call) {
|
|
109
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
110
|
-
return call;
|
|
111
|
-
}
|
|
112
|
-
return _assert_this_initialized(self);
|
|
113
|
-
}
|
|
114
|
-
function _set_prototype_of(o, p) {
|
|
115
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
116
|
-
o.__proto__ = p;
|
|
117
|
-
return o;
|
|
118
|
-
};
|
|
119
|
-
return _set_prototype_of(o, p);
|
|
120
|
-
}
|
|
121
|
-
function _type_of(obj) {
|
|
122
|
-
"@swc/helpers - typeof";
|
|
123
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
124
|
-
}
|
|
125
|
-
function _is_native_reflect_construct() {
|
|
126
|
-
try {
|
|
127
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
128
|
-
} catch (_) {}
|
|
129
|
-
return (_is_native_reflect_construct = function() {
|
|
130
|
-
return !!result;
|
|
131
|
-
})();
|
|
132
|
-
}
|
|
133
|
-
var _default = (0, _dom.domAssigned)(/*#__PURE__*/ function(Substitution) {
|
|
134
|
-
_inherits(ReferenceSubstitution, Substitution);
|
|
135
|
-
function ReferenceSubstitution(string, node, tokens, reference, metavariable) {
|
|
136
|
-
_class_call_check(this, ReferenceSubstitution);
|
|
137
|
-
var _this;
|
|
138
|
-
_this = _call_super(this, ReferenceSubstitution, [
|
|
139
|
-
string,
|
|
140
|
-
node,
|
|
141
|
-
tokens
|
|
142
|
-
]);
|
|
143
|
-
_this.reference = reference;
|
|
144
|
-
_this.metavariable = metavariable;
|
|
145
|
-
return _this;
|
|
146
|
-
}
|
|
147
|
-
_create_class(ReferenceSubstitution, [
|
|
148
|
-
{
|
|
149
|
-
key: "getReference",
|
|
150
|
-
value: function getReference() {
|
|
151
|
-
return this.reference;
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
key: "getMetavariable",
|
|
156
|
-
value: function getMetavariable() {
|
|
157
|
-
return this.metavariable;
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
key: "isReferenceEqualTo",
|
|
162
|
-
value: function isReferenceEqualTo(reference) {
|
|
163
|
-
return this.reference.isEqualTo(reference);
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
key: "isMetavariableEqualTo",
|
|
168
|
-
value: function isMetavariableEqualTo(metavariable) {
|
|
169
|
-
return this.metavariable.isEqualTo(metavariable);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
], [
|
|
173
|
-
{
|
|
174
|
-
key: "fromStatementNode",
|
|
175
|
-
value: function fromStatementNode(statementNode, context) {
|
|
176
|
-
var referenceSubstitution = null;
|
|
177
|
-
var referenceSubstitutionNode = statementNode.getReferenceSubstitutionNode();
|
|
178
|
-
if (referenceSubstitutionNode !== null) {
|
|
179
|
-
var lastReferenceNode = referenceSubstitutionNode.getLastReferenceNode(), firstReferenceNode = referenceSubstitutionNode.getFirstReferenceNode(), singularMetavariableNode = lastReferenceNode.getSingularMetavariableNode();
|
|
180
|
-
if (singularMetavariableNode !== null) {
|
|
181
|
-
var Reference = _dom.default.Reference, Metavariable = _dom.default.Metavariable, referenceNode = firstReferenceNode, metavariableNode = singularMetavariableNode, reference = Reference.fromReferenceNode(referenceNode, context), metavariable = Metavariable.fromMetavariableNode(metavariableNode, context), node = referenceSubstitutionNode, tokens = context.nodeAsTokens(node), string = stringFromReferenceAndMetavariable(reference, metavariable);
|
|
182
|
-
referenceSubstitution = new ReferenceSubstitution(string, node, tokens, reference, metavariable);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
return referenceSubstitution;
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
key: "fromReferenceAndMetavariable",
|
|
190
|
-
value: function fromReferenceAndMetavariable(reference, metavariable, context) {
|
|
191
|
-
var string = stringFromReferenceAndMetavariable(reference, metavariable), lexer = context.getLexer(), parser = context.getParser(), referenceSubstitutionPartialContext = _reference.default.fromStringLexerAndParser(string, lexer, parser), node = referenceSubstitutionPartialContext.getNode(), tokens = referenceSubstitutionPartialContext.getTokens(), referenceSubstitution = new ReferenceSubstitution(string, node, tokens, reference, metavariable);
|
|
192
|
-
return referenceSubstitution;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
]);
|
|
196
|
-
return ReferenceSubstitution;
|
|
197
|
-
}(_substitution.default));
|
|
198
|
-
function stringFromReferenceAndMetavariable(reference, metavariable) {
|
|
199
|
-
var referenceString = reference.getString(), metavariableString = metavariable.getString(), string = "[".concat(referenceString, " for ").concat(metavariableString, "]");
|
|
200
|
-
return string;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9kb20vc3Vic3RpdHV0aW9uL3JlZmVyZW5jZS5qcy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