occam-verify-cli 1.0.359 → 1.0.360
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 +5 -5
- package/lib/context/local.js +13 -13
- package/lib/dom/assertion/defined.js +4 -4
- package/lib/dom/declaration.js +22 -22
- package/lib/dom/metavariable.js +1 -14
- package/lib/dom/reference.js +2 -6
- package/lib/index.js +1 -2
- package/lib/node/assertion/satisfies.js +5 -5
- package/lib/nonTerminalNodeMap.js +2 -3
- package/lib/ruleNames.js +1 -5
- package/package.json +1 -1
- package/src/context/file.js +4 -4
- package/src/context/local.js +12 -12
- package/src/dom/assertion/defined.js +5 -5
- package/src/dom/declaration.js +22 -22
- package/src/dom/metavariable.js +0 -21
- package/src/dom/reference.js +2 -10
- package/src/index.js +0 -1
- package/src/node/assertion/satisfies.js +5 -5
- package/src/nonTerminalNodeMap.js +0 -2
- package/src/ruleNames.js +0 -1
- package/lib/node/simpleReference.js +0 -116
- package/src/node/simpleReference.js +0 -16
package/src/dom/declaration.js
CHANGED
|
@@ -7,11 +7,11 @@ import { domAssigned } from "../dom";
|
|
|
7
7
|
import { unifyStatementIntrinsically } from "../utilities/unification";
|
|
8
8
|
|
|
9
9
|
export default domAssigned(class Declaration {
|
|
10
|
-
constructor(string, node, statement,
|
|
10
|
+
constructor(string, node, statement, metavariable) {
|
|
11
11
|
this.string = string;
|
|
12
12
|
this.node = node;
|
|
13
13
|
this.statement = statement;
|
|
14
|
-
this.
|
|
14
|
+
this.metavariable = metavariable;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
getString() {
|
|
@@ -26,8 +26,8 @@ export default domAssigned(class Declaration {
|
|
|
26
26
|
return this.statement;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
return this.
|
|
29
|
+
getMetavariable() {
|
|
30
|
+
return this.metavariable;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
isSimple() {
|
|
@@ -47,7 +47,7 @@ export default domAssigned(class Declaration {
|
|
|
47
47
|
const simple = this.isSimple();
|
|
48
48
|
|
|
49
49
|
if (simple) {
|
|
50
|
-
const judgement = context.
|
|
50
|
+
const judgement = context.findJudgementByMetavariable(this.metavariable);
|
|
51
51
|
|
|
52
52
|
if (judgement !== null) {
|
|
53
53
|
const declaration = judgement.getDeclaration();
|
|
@@ -56,9 +56,9 @@ export default domAssigned(class Declaration {
|
|
|
56
56
|
}
|
|
57
57
|
} else {
|
|
58
58
|
const statement = substitution.getStatement(),
|
|
59
|
-
|
|
59
|
+
metavariable = substitution.getMetavariable(),
|
|
60
60
|
statementEqualToStatement = this.statement.isEqualTo(statement),
|
|
61
|
-
metavariableEqualToMetavariable = this.
|
|
61
|
+
metavariableEqualToMetavariable = this.metavariable.isEqualTo(metavariable);
|
|
62
62
|
|
|
63
63
|
if (metavariableEqualToMetavariable && statementEqualToStatement) {
|
|
64
64
|
substitutionMatches = true;
|
|
@@ -119,17 +119,17 @@ export default domAssigned(class Declaration {
|
|
|
119
119
|
let metavariableVerifiesAsReference;
|
|
120
120
|
|
|
121
121
|
const declarationString = this.string,
|
|
122
|
-
metavariableString = this.
|
|
122
|
+
metavariableString = this.metavariable.getString();
|
|
123
123
|
|
|
124
|
-
context.trace(`Verifying the '${declarationString}' declaration's '${metavariableString}'
|
|
124
|
+
context.trace(`Verifying the '${declarationString}' declaration's '${metavariableString}' metavariable as a reference...`);
|
|
125
125
|
|
|
126
|
-
const reference = referenceFromMetavariable(this.
|
|
126
|
+
const reference = referenceFromMetavariable(this.metavariable, context),
|
|
127
127
|
referenceVerifies = reference.verify(context);
|
|
128
128
|
|
|
129
129
|
metavariableVerifiesAsReference = referenceVerifies; ///
|
|
130
130
|
|
|
131
131
|
if (metavariableVerifiesAsReference) {
|
|
132
|
-
context.debug(`...verified the '${declarationString}' declaration's '${metavariableString}'
|
|
132
|
+
context.debug(`...verified the '${declarationString}' declaration's '${metavariableString}' metavariable as a reference.`);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
return metavariableVerifiesAsReference;
|
|
@@ -163,14 +163,14 @@ export default domAssigned(class Declaration {
|
|
|
163
163
|
let verifiesAsMetavariable;
|
|
164
164
|
|
|
165
165
|
const declarationString = this.string, ///
|
|
166
|
-
metavariableString = this.
|
|
166
|
+
metavariableString = this.metavariable.getString();
|
|
167
167
|
|
|
168
|
-
context.trace(`Verifying the '${declarationString}' declaration's '${metavariableString}'
|
|
168
|
+
context.trace(`Verifying the '${declarationString}' declaration's '${metavariableString}' metavariable...`);
|
|
169
169
|
|
|
170
|
-
verifiesAsMetavariable = this.
|
|
170
|
+
verifiesAsMetavariable = this.metavariable.verify(context);
|
|
171
171
|
|
|
172
172
|
if (verifiesAsMetavariable) {
|
|
173
|
-
context.debug(`...verified the '${declarationString}' declaration's '${metavariableString}'
|
|
173
|
+
context.debug(`...verified the '${declarationString}' declaration's '${metavariableString}' metavariable.`);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
return verifiesAsMetavariable;
|
|
@@ -183,7 +183,7 @@ export default domAssigned(class Declaration {
|
|
|
183
183
|
|
|
184
184
|
context.trace(`Verifying the '${declarationString}' stated declaration...`);
|
|
185
185
|
|
|
186
|
-
const reference = referenceFromMetavariable(this.
|
|
186
|
+
const reference = referenceFromMetavariable(this.metavariable, context),
|
|
187
187
|
metavariablePresent = context.isMetavariablePresentByReference(reference);
|
|
188
188
|
|
|
189
189
|
if (metavariablePresent) {
|
|
@@ -215,7 +215,7 @@ export default domAssigned(class Declaration {
|
|
|
215
215
|
|
|
216
216
|
context.trace(`Verifying the '${declarationString}' derived declaration...`);
|
|
217
217
|
|
|
218
|
-
const reference = referenceFromMetavariable(this.
|
|
218
|
+
const reference = referenceFromMetavariable(this.metavariable, context),
|
|
219
219
|
metaLemmaMetatheoremPresent = context.isMetaLemmaMetatheoremPresentByReference(reference);
|
|
220
220
|
|
|
221
221
|
verifiesWhenDerived = metaLemmaMetatheoremPresent; ///
|
|
@@ -264,7 +264,7 @@ export default domAssigned(class Declaration {
|
|
|
264
264
|
|
|
265
265
|
context.trace(`Unifying the '${labelString}' label with the '${declarationString}' declaration...`);
|
|
266
266
|
|
|
267
|
-
const reference = referenceFromMetavariable(this.
|
|
267
|
+
const reference = referenceFromMetavariable(this.metavariable, context),
|
|
268
268
|
labelUnifies = reference.unifyLabel(label, substitutions, context);
|
|
269
269
|
|
|
270
270
|
labelUnifiesWithReference = labelUnifies; ///
|
|
@@ -332,9 +332,9 @@ export default domAssigned(class Declaration {
|
|
|
332
332
|
}
|
|
333
333
|
});
|
|
334
334
|
|
|
335
|
-
function referenceFromMetavariable(
|
|
335
|
+
function referenceFromMetavariable(metavariable, context) {
|
|
336
336
|
const { Reference } = dom,
|
|
337
|
-
metavariableNode =
|
|
337
|
+
metavariableNode = metavariable.getNode(),
|
|
338
338
|
reference = Reference.fromMetavariableNode(metavariableNode, context);
|
|
339
339
|
|
|
340
340
|
return reference;
|
|
@@ -344,9 +344,9 @@ function declarationFromDeclarationNode(declarationNode, context) {
|
|
|
344
344
|
const { Metavariable, Declaration, Statement } = dom,
|
|
345
345
|
node = declarationNode, ///
|
|
346
346
|
string = context.nodeAsString(node),
|
|
347
|
-
|
|
347
|
+
metavariable = Metavariable.fromDeclarationNode(declarationNode, context),
|
|
348
348
|
statement = Statement.fromDeclarationNode(declarationNode, context),
|
|
349
|
-
declaration = new Declaration(string, node, statement,
|
|
349
|
+
declaration = new Declaration(string, node, statement, metavariable);
|
|
350
350
|
|
|
351
351
|
return declaration;
|
|
352
352
|
}
|
package/src/dom/metavariable.js
CHANGED
|
@@ -494,27 +494,6 @@ export default domAssigned(class Metavariable {
|
|
|
494
494
|
return metavariable;
|
|
495
495
|
}
|
|
496
496
|
|
|
497
|
-
static fromSimpleReferenceNode(simpleReferenceNode, context) {
|
|
498
|
-
const { Metavariable } = dom;
|
|
499
|
-
|
|
500
|
-
let node;
|
|
501
|
-
|
|
502
|
-
const type = null,
|
|
503
|
-
name = simpleReferenceNode.getName();
|
|
504
|
-
|
|
505
|
-
node = simpleReferenceNode; ///
|
|
506
|
-
|
|
507
|
-
const string = context.nodeAsString(node),
|
|
508
|
-
tokens = context.nodeAsTokens(node),
|
|
509
|
-
metaType = null;
|
|
510
|
-
|
|
511
|
-
node = null;
|
|
512
|
-
|
|
513
|
-
const metavariable = new Metavariable(string, node, tokens, name, type, metaType);
|
|
514
|
-
|
|
515
|
-
return metavariable;
|
|
516
|
-
}
|
|
517
|
-
|
|
518
497
|
static fromMetavariableDeclarationNode(metavariableDeclarationNode, context) {
|
|
519
498
|
const { MetaType } = dom,
|
|
520
499
|
metavariableNode = metavariableDeclarationNode.getMetavariableNode(),
|
package/src/dom/reference.js
CHANGED
|
@@ -214,8 +214,8 @@ export default domAssigned(class Reference {
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
static fromSatisfiesAssertionNode(satisfiesAssertionNode, context) {
|
|
217
|
-
const
|
|
218
|
-
reference =
|
|
217
|
+
const metavariableNode = satisfiesAssertionNode.getMetavariableNode(),
|
|
218
|
+
reference = referenceFromMetavariableNode(metavariableNode, context);
|
|
219
219
|
|
|
220
220
|
return reference;
|
|
221
221
|
}
|
|
@@ -236,11 +236,3 @@ function referenceFromMetavariableNode(metavariableNode, context) {
|
|
|
236
236
|
|
|
237
237
|
return reference;
|
|
238
238
|
}
|
|
239
|
-
|
|
240
|
-
function referenceFromSimpleReferenceNode(simpleReferenceNode, context) {
|
|
241
|
-
const { Reference, Metavariable } = dom,
|
|
242
|
-
metavariable = Metavariable.fromSimpleReferenceNode(simpleReferenceNode, context),
|
|
243
|
-
reference = new Reference(metavariable);
|
|
244
|
-
|
|
245
|
-
return reference;
|
|
246
|
-
}
|
package/src/index.js
CHANGED
|
@@ -39,7 +39,6 @@ import Metavariable from "./dom/metavariable";
|
|
|
39
39
|
import ProcedureCall from "./dom/procedureCall";
|
|
40
40
|
import SubDerivation from "./dom/subDerivation";
|
|
41
41
|
import TypeAssertion from "./dom/assertion/type";
|
|
42
|
-
import SimpleReference from "./dom/simpleReference";
|
|
43
42
|
import DefinedAssertion from "./dom/assertion/defined";
|
|
44
43
|
import PropertyRelation from "./dom/propertyRelation";
|
|
45
44
|
import TermSubstitution from "./dom/substitution/term";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import NonTerminalNode from "../../node/nonTerminal";
|
|
4
4
|
|
|
5
|
-
import { SIGNATURE_RULE_NAME,
|
|
5
|
+
import { SIGNATURE_RULE_NAME, METAVARIABLE_RULE_NAME } from "../../ruleNames";
|
|
6
6
|
|
|
7
7
|
export default class SatisfiesAssertionNode extends NonTerminalNode {
|
|
8
8
|
getSignatureNode() {
|
|
@@ -12,11 +12,11 @@ export default class SatisfiesAssertionNode extends NonTerminalNode {
|
|
|
12
12
|
return signatureNode;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
const ruleName =
|
|
17
|
-
|
|
15
|
+
getMetavariableNode() {
|
|
16
|
+
const ruleName = METAVARIABLE_RULE_NAME,
|
|
17
|
+
metavariableNode = this.getNodeByRuleName(ruleName);
|
|
18
18
|
|
|
19
|
-
return
|
|
19
|
+
return metavariableNode;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
static fromRuleNameChildNodesOpacityAndPrecedence(ruleName, childNodes, opacity, precedence) { return NonTerminalNode.fromRuleNameChildNodesOpacityAndPrecedence(SatisfiesAssertionNode, ruleName, childNodes, opacity, precedence); }
|
|
@@ -57,7 +57,6 @@ import TypeAssertionNode from "./node/assertion/type";
|
|
|
57
57
|
import ConjectureBodyNode from "./node/body/conjecture";
|
|
58
58
|
import MetatheoremBodyNode from "./node/body/metatheorem";
|
|
59
59
|
import MetaLemmaHeaderNode from "./node/header/metaLemma";
|
|
60
|
-
import SimpleReferenceNode from "./node/simpleReference";
|
|
61
60
|
import PropertyRelationNode from "./node/propertyRelation"
|
|
62
61
|
import DefinedAssertionNode from "./node/assertion/defined";
|
|
63
62
|
import TermSubstitutionNode from "./node/substitution/term";
|
|
@@ -216,7 +215,6 @@ const NonTerminalNodeMap = {
|
|
|
216
215
|
[THEOREM_HEADER_RULE_NAME]: TheoremHeaderNode,
|
|
217
216
|
[META_LEMMA_BODY_RULE_NAME]: MetaLemmaBodyNode,
|
|
218
217
|
[CONJECTURE_BODY_RULE_NAME]: ConjectureBodyNode,
|
|
219
|
-
[SIMPLE_REFERENCE_RULE_NAME]: SimpleReferenceNode,
|
|
220
218
|
[METATHEOREM_BODY_RULE_NAME]: MetatheoremBodyNode,
|
|
221
219
|
[META_LEMMA_HEADER_RULE_NAME]: MetaLemmaHeaderNode,
|
|
222
220
|
[CONJECTURE_HEADER_RULE_NAME]: ConjectureHeaderNode,
|
package/src/ruleNames.js
CHANGED
|
@@ -56,7 +56,6 @@ export const THEOREM_HEADER_RULE_NAME = "theoremHeader";
|
|
|
56
56
|
export const META_LEMMA_BODY_RULE_NAME = "metaLemmaBody";
|
|
57
57
|
export const CONJECTURE_BODY_RULE_NAME = "conjectureBody";
|
|
58
58
|
export const METATHEOREM_BODY_RULE_NAME = "metatheoremBody";
|
|
59
|
-
export const SIMPLE_REFERENCE_RULE_NAME = "simpleReference";
|
|
60
59
|
export const META_LEMMA_HEADER_RULE_NAME = "metaLemmaHeader";
|
|
61
60
|
export const PROPERTY_RELATION_RULE_NAME = "propertyRelation";
|
|
62
61
|
export const DEFINED_ASSERTION_RULE_NAME = "definedAssertion";
|
|
@@ -1,116 +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 SimpleReferenceNode;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var _nonTerminal = /*#__PURE__*/ _interop_require_default(require("../node/nonTerminal"));
|
|
12
|
-
var _ruleNames = require("../ruleNames");
|
|
13
|
-
function _assert_this_initialized(self) {
|
|
14
|
-
if (self === void 0) {
|
|
15
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
|
-
}
|
|
17
|
-
return self;
|
|
18
|
-
}
|
|
19
|
-
function _call_super(_this, derived, args) {
|
|
20
|
-
derived = _get_prototype_of(derived);
|
|
21
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
22
|
-
}
|
|
23
|
-
function _class_call_check(instance, Constructor) {
|
|
24
|
-
if (!(instance instanceof Constructor)) {
|
|
25
|
-
throw new TypeError("Cannot call a class as a function");
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function _defineProperties(target, props) {
|
|
29
|
-
for(var i = 0; i < props.length; i++){
|
|
30
|
-
var descriptor = props[i];
|
|
31
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
32
|
-
descriptor.configurable = true;
|
|
33
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
38
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
39
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
40
|
-
return Constructor;
|
|
41
|
-
}
|
|
42
|
-
function _get_prototype_of(o) {
|
|
43
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
44
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
45
|
-
};
|
|
46
|
-
return _get_prototype_of(o);
|
|
47
|
-
}
|
|
48
|
-
function _inherits(subClass, superClass) {
|
|
49
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
50
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
51
|
-
}
|
|
52
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
53
|
-
constructor: {
|
|
54
|
-
value: subClass,
|
|
55
|
-
writable: true,
|
|
56
|
-
configurable: true
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
60
|
-
}
|
|
61
|
-
function _interop_require_default(obj) {
|
|
62
|
-
return obj && obj.__esModule ? obj : {
|
|
63
|
-
default: obj
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
function _possible_constructor_return(self, call) {
|
|
67
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
68
|
-
return call;
|
|
69
|
-
}
|
|
70
|
-
return _assert_this_initialized(self);
|
|
71
|
-
}
|
|
72
|
-
function _set_prototype_of(o, p) {
|
|
73
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
74
|
-
o.__proto__ = p;
|
|
75
|
-
return o;
|
|
76
|
-
};
|
|
77
|
-
return _set_prototype_of(o, p);
|
|
78
|
-
}
|
|
79
|
-
function _type_of(obj) {
|
|
80
|
-
"@swc/helpers - typeof";
|
|
81
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
82
|
-
}
|
|
83
|
-
function _is_native_reflect_construct() {
|
|
84
|
-
try {
|
|
85
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
86
|
-
} catch (_) {}
|
|
87
|
-
return (_is_native_reflect_construct = function() {
|
|
88
|
-
return !!result;
|
|
89
|
-
})();
|
|
90
|
-
}
|
|
91
|
-
var SimpleReferenceNode = /*#__PURE__*/ function(NonTerminalNode) {
|
|
92
|
-
_inherits(SimpleReferenceNode, NonTerminalNode);
|
|
93
|
-
function SimpleReferenceNode() {
|
|
94
|
-
_class_call_check(this, SimpleReferenceNode);
|
|
95
|
-
return _call_super(this, SimpleReferenceNode, arguments);
|
|
96
|
-
}
|
|
97
|
-
_create_class(SimpleReferenceNode, [
|
|
98
|
-
{
|
|
99
|
-
key: "getMetavariableNode",
|
|
100
|
-
value: function getMetavariableNode() {
|
|
101
|
-
var ruleName = _ruleNames.METAVARIABLE_RULE_NAME, metavariableNode = this.getNodeByRuleName(ruleName);
|
|
102
|
-
return metavariableNode;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
], [
|
|
106
|
-
{
|
|
107
|
-
key: "fromRuleNameChildNodesOpacityAndPrecedence",
|
|
108
|
-
value: function fromRuleNameChildNodesOpacityAndPrecedence(ruleName, childNodes, opacity, precedence) {
|
|
109
|
-
return _nonTerminal.default.fromRuleNameChildNodesOpacityAndPrecedence(SimpleReferenceNode, ruleName, childNodes, opacity, precedence);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
]);
|
|
113
|
-
return SimpleReferenceNode;
|
|
114
|
-
}(_nonTerminal.default);
|
|
115
|
-
|
|
116
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ub2RlL3NpbXBsZVJlZmVyZW5jZS5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IE5vblRlcm1pbmFsTm9kZSBmcm9tIFwiLi4vbm9kZS9ub25UZXJtaW5hbFwiO1xuXG5pbXBvcnQgeyBNRVRBVkFSSUFCTEVfUlVMRV9OQU1FIH0gZnJvbSBcIi4uL3J1bGVOYW1lc1wiO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBTaW1wbGVSZWZlcmVuY2VOb2RlIGV4dGVuZHMgTm9uVGVybWluYWxOb2RlIHtcbiAgZ2V0TWV0YXZhcmlhYmxlTm9kZSgpIHtcbiAgICBjb25zdCBydWxlTmFtZSA9IE1FVEFWQVJJQUJMRV9SVUxFX05BTUUsXG4gICAgICAgICAgbWV0YXZhcmlhYmxlTm9kZSA9IHRoaXMuZ2V0Tm9kZUJ5UnVsZU5hbWUocnVsZU5hbWUpO1xuXG4gICAgcmV0dXJuIG1ldGF2YXJpYWJsZU5vZGU7XG4gIH1cblxuICBzdGF0aWMgZnJvbVJ1bGVOYW1lQ2hpbGROb2Rlc09wYWNpdHlBbmRQcmVjZWRlbmNlKHJ1bGVOYW1lLCBjaGlsZE5vZGVzLCBvcGFjaXR5LCBwcmVjZWRlbmNlKSB7IHJldHVybiBOb25UZXJtaW5hbE5vZGUuZnJvbVJ1bGVOYW1lQ2hpbGROb2Rlc09wYWNpdHlBbmRQcmVjZWRlbmNlKFNpbXBsZVJlZmVyZW5jZU5vZGUsIHJ1bGVOYW1lLCBjaGlsZE5vZGVzLCBvcGFjaXR5LCBwcmVjZWRlbmNlKTsgfVxufVxuIl0sIm5hbWVzIjpbIlNpbXBsZVJlZmVyZW5jZU5vZGUiLCJnZXRNZXRhdmFyaWFibGVOb2RlIiwicnVsZU5hbWUiLCJNRVRBVkFSSUFCTEVfUlVMRV9OQU1FIiwibWV0YXZhcmlhYmxlTm9kZSIsImdldE5vZGVCeVJ1bGVOYW1lIiwiZnJvbVJ1bGVOYW1lQ2hpbGROb2Rlc09wYWNpdHlBbmRQcmVjZWRlbmNlIiwiY2hpbGROb2RlcyIsIm9wYWNpdHkiLCJwcmVjZWRlbmNlIiwiTm9uVGVybWluYWxOb2RlIl0sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7OztlQU1xQkE7OztrRUFKTzt5QkFFVzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUV4QixJQUFBLEFBQU1BLG9DQUFOO2NBQU1BO2FBQUFBO2dDQUFBQTtRQUFOLE9BQUEsa0JBQU1BOztrQkFBQUE7O1lBQ25CQyxLQUFBQTttQkFBQUEsU0FBQUE7Z0JBQ0UsSUFBTUMsV0FBV0MsaUNBQXNCLEVBQ2pDQyxtQkFBbUIsSUFBSSxDQUFDQyxpQkFBaUIsQ0FBQ0g7Z0JBRWhELE9BQU9FO1lBQ1Q7Ozs7WUFFT0UsS0FBQUE7bUJBQVAsU0FBT0EsMkNBQTJDSixRQUFRLEVBQUVLLFVBQVUsRUFBRUMsT0FBTyxFQUFFQyxVQUFVO2dCQUFJLE9BQU9DLG9CQUFlLENBQUNKLDBDQUEwQyxDQVI3SU4scUJBUW1LRSxVQUFVSyxZQUFZQyxTQUFTQztZQUFhOzs7V0FSL01UO0VBQTRCVSxvQkFBZSJ9
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import NonTerminalNode from "../node/nonTerminal";
|
|
4
|
-
|
|
5
|
-
import { METAVARIABLE_RULE_NAME } from "../ruleNames";
|
|
6
|
-
|
|
7
|
-
export default class SimpleReferenceNode extends NonTerminalNode {
|
|
8
|
-
getMetavariableNode() {
|
|
9
|
-
const ruleName = METAVARIABLE_RULE_NAME,
|
|
10
|
-
metavariableNode = this.getNodeByRuleName(ruleName);
|
|
11
|
-
|
|
12
|
-
return metavariableNode;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
static fromRuleNameChildNodesOpacityAndPrecedence(ruleName, childNodes, opacity, precedence) { return NonTerminalNode.fromRuleNameChildNodesOpacityAndPrecedence(SimpleReferenceNode, ruleName, childNodes, opacity, precedence); }
|
|
16
|
-
}
|