occam-verify-cli 0.0.1020 → 0.0.1021

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.
Files changed (45) hide show
  1. package/lib/assertion/subproof.js +4 -4
  2. package/lib/constructor.js +5 -46
  3. package/lib/context/file.js +4 -44
  4. package/lib/declaration/metavariable.js +3 -3
  5. package/lib/declaration/type.js +3 -3
  6. package/lib/declaration/variable.js +4 -44
  7. package/lib/derivation.js +4 -4
  8. package/lib/metaType.js +127 -4
  9. package/lib/metaTypeNames.js +2 -2
  10. package/lib/metaTypes.js +5 -12
  11. package/lib/metavariable.js +5 -5
  12. package/lib/premise.js +3 -3
  13. package/lib/statement/qualified.js +3 -3
  14. package/lib/statement/unqualified.js +5 -4
  15. package/lib/supposition.js +3 -3
  16. package/lib/term.js +3 -4
  17. package/lib/variable.js +6 -46
  18. package/lib/verify/declaration.js +4 -4
  19. package/lib/verify/frame.js +4 -5
  20. package/package.json +1 -1
  21. package/src/assertion/subproof.js +3 -2
  22. package/src/constructor.js +3 -2
  23. package/src/context/file.js +3 -2
  24. package/src/declaration/metavariable.js +3 -2
  25. package/src/declaration/type.js +3 -2
  26. package/src/declaration/variable.js +4 -2
  27. package/src/derivation.js +3 -2
  28. package/src/metaType.js +32 -0
  29. package/src/metaTypeNames.js +1 -1
  30. package/src/metaTypes.js +1 -3
  31. package/src/metavariable.js +5 -3
  32. package/src/premise.js +3 -2
  33. package/src/statement/qualified.js +5 -3
  34. package/src/statement/unqualified.js +5 -2
  35. package/src/supposition.js +3 -2
  36. package/src/term.js +2 -2
  37. package/src/variable.js +7 -5
  38. package/src/verify/declaration.js +1 -1
  39. package/src/verify/frame.js +1 -2
  40. package/lib/metaType/frame.js +0 -111
  41. package/lib/metaType/reference.js +0 -111
  42. package/lib/metaType/statement.js +0 -111
  43. package/src/metaType/frame.js +0 -18
  44. package/src/metaType/reference.js +0 -18
  45. package/src/metaType/statement.js +0 -18
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
 
3
3
  import shim from "./shim";
4
- import Type, {objectType} from "./type";
5
4
 
6
5
  import { nodeQuery } from "./utilities/query";
6
+ import { objectType } from "./type";
7
7
 
8
8
  const termNodeQuery = nodeQuery("/constructorDeclaration/term"),
9
9
  typeNodeQuery = nodeQuery("/constructorDeclaration/type");
@@ -77,7 +77,8 @@ export default class Constructor {
77
77
  }
78
78
 
79
79
  static fromConstructorDeclarationNode(constructorDeclarationNode, fileContext) {
80
- const termNode = termNodeQuery(constructorDeclarationNode),
80
+ const { Term, Type } = shim,
81
+ termNode = termNodeQuery(constructorDeclarationNode),
81
82
  typeNode = typeNodeQuery(constructorDeclarationNode),
82
83
  type = (typeNode === null) ?
83
84
  objectType :
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import Type from "../type";
3
+ import shim from "../shim";
4
4
  import Rule from "../rule";
5
5
  import Axiom from "../axiom";
6
6
  import Lemma from "../lemma";
@@ -779,7 +779,8 @@ export default class FileContext {
779
779
  metavariablesJSON = metavariables; ///
780
780
 
781
781
  typesJSON.forEach((typeJSON) => {
782
- const json = typeJSON, ///
782
+ const { Type } = shim,
783
+ json = typeJSON, ///
783
784
  type = Type.fromJSON(json, fileContext);
784
785
 
785
786
  this.types.push(type);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import MetaType from "../metaType";
3
+ import shim from "../shim";
4
4
  import Metavariable from "../metavariable";
5
5
 
6
6
  import { nodeQuery } from "../utilities/query";
@@ -49,7 +49,8 @@ export default class MetavariableDeclaration {
49
49
  }
50
50
 
51
51
  static fromMetavariableDeclarationNode(metavariableDeclarationNode, fileContext) {
52
- const metaTypeNode = metaTypeNodeQuery(metavariableDeclarationNode),
52
+ const { MetaType } = shim,
53
+ metaTypeNode = metaTypeNodeQuery(metavariableDeclarationNode),
53
54
  metaType = MetaType.fromMetaTypeNode(metaTypeNode, fileContext),
54
55
  metavariable = Metavariable.fromMetavariableDeclarationNode(metavariableDeclarationNode, fileContext),
55
56
  string = stringFromMetavariableAndMetaType(metavariable, metaType),
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import Type from "../type";
3
+ import shim from "../shim";
4
4
 
5
5
  export default class TypeDeclaration {
6
6
  constructor(fileContext, type) {
@@ -41,7 +41,8 @@ export default class TypeDeclaration {
41
41
  }
42
42
 
43
43
  static fromTypeDeclarationNode(typeDeclarationNode, fileContext) {
44
- const type = Type.fromTypeDeclarationNode(typeDeclarationNode, fileContext),
44
+ const { Type } = shim,
45
+ type = Type.fromTypeDeclarationNode(typeDeclarationNode, fileContext),
45
46
  typeDeclaration = new TypeDeclaration(fileContext, type);
46
47
 
47
48
  return typeDeclaration;
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
 
3
- import Type, {objectType} from "../type";
3
+ import shim from "../shim";
4
4
  import Variable from "../variable";
5
5
 
6
6
  import { nodeQuery } from "../utilities/query";
7
+ import { objectType } from "../type";
7
8
 
8
9
  const typeNodeQuery = nodeQuery("/variableDeclaration/type");
9
10
 
@@ -49,7 +50,8 @@ export default class VariableDeclaration {
49
50
  }
50
51
 
51
52
  static fromVariableDeclarationNode(variableDeclarationNode, fileContext) {
52
- const typeNode = typeNodeQuery(variableDeclarationNode),
53
+ const { Type } = shim,
54
+ typeNode = typeNodeQuery(variableDeclarationNode),
53
55
  type = (typeNode === null) ?
54
56
  objectType :
55
57
  Type.fromTypeNode(typeNode, fileContext),
package/src/derivation.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import ProofStep from "./proofStep";
3
+ import shim from "./shim";
4
4
 
5
5
  import { last } from "./utilities/array";
6
6
  import { nodesQuery } from "./utilities/query";
@@ -37,7 +37,8 @@ export default class Derivation {
37
37
  }
38
38
 
39
39
  static fromDerivationNode(derivationNode, fileContext) {
40
- const proofStepNodes = proofStepNodesQuery(derivationNode),
40
+ const { ProofStep } = shim,
41
+ proofStepNodes = proofStepNodesQuery(derivationNode),
41
42
  proofSteps = proofStepNodes.map((proofStepNode) => {
42
43
  const proofStep = ProofStep.fromProofStepNode(proofStepNode, fileContext);
43
44
 
package/src/metaType.js CHANGED
@@ -3,6 +3,7 @@
3
3
  import shim from "./shim";
4
4
 
5
5
  import { metaTypeNameFromMetaTypeNode } from "./utilities/name";
6
+ import { FRAME_META_TYPE_NAME, REFERENCE_META_TYPE_NAME, STATEMENT_META_TYPE_NAME } from "./metaTypeNames";
6
7
 
7
8
  class MetaType {
8
9
  constructor(name) {
@@ -75,3 +76,34 @@ Object.assign(shim, {
75
76
  });
76
77
 
77
78
  export default MetaType;
79
+
80
+ class FrameMetaType extends MetaType {
81
+ static fromNothing() {
82
+ const name = FRAME_META_TYPE_NAME,
83
+ frameMetaType = new FrameMetaType(name);
84
+
85
+ return frameMetaType;
86
+ }
87
+ }
88
+
89
+ class ReferenceMetaType extends MetaType {
90
+ static fromNothing() {
91
+ const name = REFERENCE_META_TYPE_NAME,
92
+ referenceMetaType = new ReferenceMetaType(name);
93
+
94
+ return referenceMetaType;
95
+ }
96
+ }
97
+
98
+ class StatementMetaType extends MetaType {
99
+ static fromNothing() {
100
+ const name = STATEMENT_META_TYPE_NAME,
101
+ statementMetaType = new StatementMetaType(name);
102
+
103
+ return statementMetaType;
104
+ }
105
+ }
106
+
107
+ export const frameMetaType = FrameMetaType.fromNothing();
108
+ export const referenceMetaType = ReferenceMetaType.fromNothing();
109
+ export const statementMetaType = StatementMetaType.fromNothing();
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
 
3
3
  export const FRAME_META_TYPE_NAME = "Frame";
4
- export const STATEMENT_META_TYPE_NAME = "Statement";
5
4
  export const REFERENCE_META_TYPE_NAME = "Reference";
5
+ export const STATEMENT_META_TYPE_NAME = "Statement";
package/src/metaTypes.js CHANGED
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import frameMetaType from "./metaType/frame";
4
- import referenceMetaType from "./metaType/reference";
5
- import statementMetaType from "./metaType/statement";
3
+ import { frameMetaType, referenceMetaType, statementMetaType } from "./metaType";
6
4
 
7
5
  const metaTypes = [
8
6
  frameMetaType,
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ import shim from "./shim";
3
4
  import Argument from "./argument";
4
- import MetaType from "./metaType";
5
5
  import LocalContext from "./context/local";
6
6
 
7
7
  import { nodeQuery } from "./utilities/query";
@@ -120,7 +120,8 @@ export default class Metavariable {
120
120
  }
121
121
 
122
122
  static fromJSON(json, fileContext) {
123
- const { string } = json,
123
+ const { MetaType } = shim,
124
+ { string } = json,
124
125
  lexer = fileContext.getLexer(),
125
126
  parser = fileContext.getParser(),
126
127
  metavariableString = string, ///
@@ -154,7 +155,8 @@ export default class Metavariable {
154
155
  }
155
156
 
156
157
  static fromMetavariableDeclarationNode(metavariableDeclarationNode, fileContext) {
157
- const metaTypeNode = metaTypeNodeQuery(metavariableDeclarationNode),
158
+ const { MetaType } = shim,
159
+ metaTypeNode = metaTypeNodeQuery(metavariableDeclarationNode),
158
160
  metavariableNode = metavariableNodeQuery(metavariableDeclarationNode),
159
161
  metavariableName = metavariableNameFromMetavariableNode(metavariableNode),
160
162
  localContext = LocalContext.fromFileContext(fileContext),
package/src/premise.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import ProofStep from "./proofStep";
3
+ import shim from "./shim";
4
4
  import LocalContext from "./context/local";
5
5
  import metaLevelUnifier from "./unifier/metaLevel";
6
6
  import SubproofAssertion from "./assertion/subproof";
@@ -121,7 +121,8 @@ export default class Premise {
121
121
  const assignmentsAssigned = assignAssignments(assignments, localContext);
122
122
 
123
123
  if (assignmentsAssigned) {
124
- const proofStep = ProofStep.fromUnqualifiedStatement(this.unqualifiedStatement);
124
+ const { ProofStep } = shim,
125
+ proofStep = ProofStep.fromUnqualifiedStatement(this.unqualifiedStatement);
125
126
 
126
127
  localContext.addProofStep(proofStep);
127
128
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import Statement from "../statement";
3
+ import shim from "../shim";
4
4
  import Reference from "../reference";
5
5
  import unifyMixins from "../mixins/statement/qualified/unify";
6
6
  import LocalContext from "../context/local";
@@ -87,7 +87,9 @@ export default class QualifiedStatement {
87
87
 
88
88
  if (qualifiedStatementNode !== null) {
89
89
  let string;
90
- const statementNode = statementNodeQuery(qualifiedStatementNode),
90
+
91
+ const { Statement } = shim,
92
+ statementNode = statementNodeQuery(qualifiedStatementNode),
91
93
  referenceNode = referenceNodeQuery(qualifiedStatementNode),
92
94
  localContext = LocalContext.fromFileContext(fileContext),
93
95
  statement = Statement.fromStatementNode(statementNode, localContext),
@@ -98,7 +100,7 @@ export default class QualifiedStatement {
98
100
 
99
101
  string = trim(string); ///
100
102
 
101
- qualifiedStatement = new QualifiedStatement(string, statement, reference);
103
+ qualifiedStatement = new QualifiedStatement(string, statement, reference);
102
104
  }
103
105
 
104
106
  return qualifiedStatement;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import Statement from "../statement";
3
+ import shim from "../shim";
4
4
  import LocalContext from "../context/local";
5
5
 
6
6
  import { nodeQuery } from "../utilities/query";
@@ -47,6 +47,8 @@ export default class UnqualifiedStatement {
47
47
  }
48
48
 
49
49
  static fromJSON(json, fileContext) {
50
+ const { Statement } = shim;
51
+
50
52
  let { statement } = json;
51
53
 
52
54
  json = statement; ///
@@ -62,7 +64,8 @@ export default class UnqualifiedStatement {
62
64
  let unqualifiedStatement = null;
63
65
 
64
66
  if (unqualifiedStatementNode !== null) {
65
- const statementNode = statementNodeQuery(unqualifiedStatementNode),
67
+ const { Statement } = shim,
68
+ statementNode = statementNodeQuery(unqualifiedStatementNode),
66
69
  localContext = LocalContext.fromFileContext(fileContext),
67
70
  statement = Statement.fromStatementNode(statementNode, localContext);
68
71
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import ProofStep from "./proofStep";
3
+ import shim from "./shim";
4
4
  import LocalContext from "./context/local";
5
5
  import metaLevelUnifier from "./unifier/metaLevel";
6
6
  import SubproofAssertion from "./assertion/subproof";
@@ -121,7 +121,8 @@ export default class Supposition {
121
121
  const assignmentsAssigned = assignAssignments(assignments, localContext);
122
122
 
123
123
  if (assignmentsAssigned) {
124
- const proofStep = ProofStep.fromUnqualifiedStatement(this.unqualifiedStatement);
124
+ const { ProofStep } = shim,
125
+ proofStep = ProofStep.fromUnqualifiedStatement(this.unqualifiedStatement);
125
126
 
126
127
  localContext.addProofStep(proofStep);
127
128
 
package/src/term.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  import shim from "./shim";
4
- import Type from "./type";
5
4
  import unifyMixins from "./mixins/term/unify";
6
5
  import verifyMixins from "./mixins/term/verify";
7
6
  import termAsConstructorVerifier from "./verifier/termAsConstructor";
@@ -224,7 +223,8 @@ class Term {
224
223
  }
225
224
 
226
225
  static fromJSON(json, fileContext) {
227
- const { string } = json,
226
+ const { Type } = shim,
227
+ { string } = json,
228
228
  termString = string, ///
229
229
  lexer = fileContext.getLexer(),
230
230
  parser = fileContext.getParser(),
package/src/variable.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import Type from "./type";
3
+ import shim from "./shim";
4
4
  import LocalContext from "./context/local";
5
5
 
6
6
  import { nodeQuery } from "./utilities/query";
@@ -129,7 +129,8 @@ export default class Variable {
129
129
  }
130
130
 
131
131
  static fromJSON(json, fileContext) {
132
- const { string } = json,
132
+ const { Type } = shim,
133
+ { string } = json,
133
134
  lexer = fileContext.getLexer(),
134
135
  parser = fileContext.getParser(),
135
136
  variableString = string, ///
@@ -145,8 +146,8 @@ export default class Variable {
145
146
  }
146
147
 
147
148
  const variableName = variableNameFromVariableNode(variableNode),
148
- name = variableName, ///
149
- variable = new Variable(string, node, name, type);
149
+ name = variableName, ///
150
+ variable = new Variable(string, node, name, type);
150
151
 
151
152
  return variable;
152
153
  }
@@ -173,7 +174,8 @@ export default class Variable {
173
174
  }
174
175
 
175
176
  static fromVariableDeclarationNode(variableDeclarationNode, fileContext) {
176
- const typeNode = typeNodeQuery(variableDeclarationNode),
177
+ const { Type } = shim,
178
+ typeNode = typeNodeQuery(variableDeclarationNode),
177
179
  variableNode = variableNodeQuery(variableDeclarationNode),
178
180
  variableName = variableNameFromVariableNode(variableNode),
179
181
  localContext = LocalContext.fromFileContext(fileContext),
@@ -3,10 +3,10 @@
3
3
  import shim from "../shim";
4
4
  import Reference from "../reference";
5
5
  import Declaration from "../declaration"
6
- import referenceMetaType from "../metaType/reference";
7
6
  import verifyMetavariableGivenMetaType from "../verify/metavariableGivenMetaType";
8
7
 
9
8
  import { nodeQuery } from "../utilities/query";
9
+ import { referenceMetaType } from "../metaType";
10
10
 
11
11
  const statementNodeQuery = nodeQuery("/declaration/statement"),
12
12
  metavariableNodeQuery = nodeQuery("/declaration/reference/metavariable"); ///
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
 
3
- import shim from "../shim";
4
3
  import Frame from "../frame";
5
- import frameMetaType from "../metaType/frame";
6
4
  import verifyDeclaration from "../verify/declaration";
7
5
  import verifyMetavariableGivenMetaType from "./metavariableGivenMetaType";
8
6
 
7
+ import { frameMetaType } from "../metaType";
9
8
  import { nodeQuery, nodesQuery } from "../utilities/query";
10
9
  import { metavariableNameFromMetavariableNode } from "../utilities/name";
11
10
 
@@ -1,111 +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 _metaType = /*#__PURE__*/ _interop_require_default(require("../metaType"));
12
- var _metaTypeNames = require("../metaTypeNames");
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 FrameMetaType = /*#__PURE__*/ function(MetaType) {
92
- _inherits(FrameMetaType, MetaType);
93
- function FrameMetaType() {
94
- _class_call_check(this, FrameMetaType);
95
- return _call_super(this, FrameMetaType, arguments);
96
- }
97
- _create_class(FrameMetaType, null, [
98
- {
99
- key: "fromNothing",
100
- value: function fromNothing() {
101
- var name = _metaTypeNames.FRAME_META_TYPE_NAME, frameMetaType = new FrameMetaType(name);
102
- return frameMetaType;
103
- }
104
- }
105
- ]);
106
- return FrameMetaType;
107
- }(_metaType.default);
108
- var frameMetaType = FrameMetaType.fromNothing();
109
- var _default = frameMetaType;
110
-
111
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9tZXRhVHlwZS9mcmFtZS5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IE1ldGFUeXBlIGZyb20gXCIuLi9tZXRhVHlwZVwiO1xuXG5pbXBvcnQgeyBGUkFNRV9NRVRBX1RZUEVfTkFNRSB9IGZyb20gXCIuLi9tZXRhVHlwZU5hbWVzXCI7XG5cbmNsYXNzIEZyYW1lTWV0YVR5cGUgZXh0ZW5kcyBNZXRhVHlwZSB7XG4gIHN0YXRpYyBmcm9tTm90aGluZygpIHtcbiAgICBjb25zdCBuYW1lID0gRlJBTUVfTUVUQV9UWVBFX05BTUUsXG4gICAgICAgICAgZnJhbWVNZXRhVHlwZSA9IG5ldyBGcmFtZU1ldGFUeXBlKG5hbWUpO1xuXG4gICAgcmV0dXJuIGZyYW1lTWV0YVR5cGU7XG4gIH1cbn1cblxuY29uc3QgZnJhbWVNZXRhVHlwZSA9IEZyYW1lTWV0YVR5cGUuZnJvbU5vdGhpbmcoKTtcblxuZXhwb3J0IGRlZmF1bHQgZnJhbWVNZXRhVHlwZTtcbiJdLCJuYW1lcyI6WyJGcmFtZU1ldGFUeXBlIiwiZnJvbU5vdGhpbmciLCJuYW1lIiwiRlJBTUVfTUVUQV9UWVBFX05BTUUiLCJmcmFtZU1ldGFUeXBlIiwiTWV0YVR5cGUiXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQWlCQTs7O2VBQUE7OzsrREFmcUI7NkJBRWdCOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBRXJDLElBQUEsQUFBTUEsOEJBQU47Y0FBTUE7YUFBQUE7Z0NBQUFBO2lDQUFBQTs7a0JBQUFBOztZQUNHQyxLQUFBQTttQkFBUCxTQUFPQTtnQkFDTCxJQUFNQyxPQUFPQyxtQ0FBb0IsRUFDM0JDLGdCQUFnQixJQUhwQkosY0FHc0NFO2dCQUV4QyxPQUFPRTtZQUNUOzs7V0FOSUo7RUFBc0JLLGlCQUFRO0FBU3BDLElBQU1ELGdCQUFnQkosY0FBY0MsV0FBVztJQUUvQyxXQUFlRyJ9
@@ -1,111 +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 _metaType = /*#__PURE__*/ _interop_require_default(require("../metaType"));
12
- var _metaTypeNames = require("../metaTypeNames");
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 ReferenceMetaType = /*#__PURE__*/ function(MetaType) {
92
- _inherits(ReferenceMetaType, MetaType);
93
- function ReferenceMetaType() {
94
- _class_call_check(this, ReferenceMetaType);
95
- return _call_super(this, ReferenceMetaType, arguments);
96
- }
97
- _create_class(ReferenceMetaType, null, [
98
- {
99
- key: "fromNothing",
100
- value: function fromNothing() {
101
- var name = _metaTypeNames.REFERENCE_META_TYPE_NAME, referenceMetaType = new ReferenceMetaType(name);
102
- return referenceMetaType;
103
- }
104
- }
105
- ]);
106
- return ReferenceMetaType;
107
- }(_metaType.default);
108
- var referenceMetaType = ReferenceMetaType.fromNothing();
109
- var _default = referenceMetaType;
110
-
111
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9tZXRhVHlwZS9yZWZlcmVuY2UuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCBNZXRhVHlwZSBmcm9tIFwiLi4vbWV0YVR5cGVcIjtcblxuaW1wb3J0IHsgUkVGRVJFTkNFX01FVEFfVFlQRV9OQU1FIH0gZnJvbSBcIi4uL21ldGFUeXBlTmFtZXNcIjtcblxuY2xhc3MgUmVmZXJlbmNlTWV0YVR5cGUgZXh0ZW5kcyBNZXRhVHlwZSB7XG4gIHN0YXRpYyBmcm9tTm90aGluZygpIHtcbiAgICBjb25zdCBuYW1lID0gUkVGRVJFTkNFX01FVEFfVFlQRV9OQU1FLFxuICAgICAgICAgIHJlZmVyZW5jZU1ldGFUeXBlID0gbmV3IFJlZmVyZW5jZU1ldGFUeXBlKG5hbWUpO1xuXG4gICAgcmV0dXJuIHJlZmVyZW5jZU1ldGFUeXBlO1xuICB9XG59XG5cbmNvbnN0IHJlZmVyZW5jZU1ldGFUeXBlID0gUmVmZXJlbmNlTWV0YVR5cGUuZnJvbU5vdGhpbmcoKTtcblxuZXhwb3J0IGRlZmF1bHQgcmVmZXJlbmNlTWV0YVR5cGU7XG4iXSwibmFtZXMiOlsiUmVmZXJlbmNlTWV0YVR5cGUiLCJmcm9tTm90aGluZyIsIm5hbWUiLCJSRUZFUkVOQ0VfTUVUQV9UWVBFX05BTUUiLCJyZWZlcmVuY2VNZXRhVHlwZSIsIk1ldGFUeXBlIl0sIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkFpQkE7OztlQUFBOzs7K0RBZnFCOzZCQUVvQjs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUV6QyxJQUFBLEFBQU1BLGtDQUFOO2NBQU1BO2FBQUFBO2dDQUFBQTtpQ0FBQUE7O2tCQUFBQTs7WUFDR0MsS0FBQUE7bUJBQVAsU0FBT0E7Z0JBQ0wsSUFBTUMsT0FBT0MsdUNBQXdCLEVBQy9CQyxvQkFBb0IsSUFIeEJKLGtCQUc4Q0U7Z0JBRWhELE9BQU9FO1lBQ1Q7OztXQU5JSjtFQUEwQkssaUJBQVE7QUFTeEMsSUFBTUQsb0JBQW9CSixrQkFBa0JDLFdBQVc7SUFFdkQsV0FBZUcifQ==