occam-verify-cli 0.0.1019 → 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 (51) 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 -12
  12. package/lib/premise.js +3 -3
  13. package/lib/ruleNames.js +5 -5
  14. package/lib/statement/qualified.js +3 -3
  15. package/lib/statement/unqualified.js +5 -4
  16. package/lib/supposition.js +3 -3
  17. package/lib/term.js +3 -4
  18. package/lib/utilities/node.js +14 -14
  19. package/lib/utilities/tokens.js +7 -7
  20. package/lib/variable.js +28 -44
  21. package/lib/verify/declaration.js +4 -4
  22. package/lib/verify/frame.js +4 -5
  23. package/package.json +1 -1
  24. package/src/assertion/subproof.js +3 -2
  25. package/src/constructor.js +3 -2
  26. package/src/context/file.js +3 -2
  27. package/src/declaration/metavariable.js +3 -2
  28. package/src/declaration/type.js +3 -2
  29. package/src/declaration/variable.js +4 -2
  30. package/src/derivation.js +3 -2
  31. package/src/metaType.js +32 -0
  32. package/src/metaTypeNames.js +1 -1
  33. package/src/metaTypes.js +1 -3
  34. package/src/metavariable.js +5 -13
  35. package/src/premise.js +3 -2
  36. package/src/ruleNames.js +1 -1
  37. package/src/statement/qualified.js +5 -3
  38. package/src/statement/unqualified.js +5 -2
  39. package/src/supposition.js +3 -2
  40. package/src/term.js +2 -2
  41. package/src/utilities/node.js +14 -14
  42. package/src/utilities/tokens.js +4 -4
  43. package/src/variable.js +44 -3
  44. package/src/verify/declaration.js +1 -1
  45. package/src/verify/frame.js +1 -2
  46. package/lib/metaType/frame.js +0 -111
  47. package/lib/metaType/reference.js +0 -111
  48. package/lib/metaType/statement.js +0 -111
  49. package/src/metaType/frame.js +0 -18
  50. package/src/metaType/reference.js +0 -18
  51. package/src/metaType/statement.js +0 -18
@@ -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(),
@@ -4,11 +4,12 @@ import { parsersUtilities } from "occam-custom-grammars";
4
4
 
5
5
  import { nodeQuery } from "../utilities/query";
6
6
  import { combinedCustomGrammarFromNothing } from "./customGrammar";
7
- import { TERM_RULE_NAME,
7
+ import { VARIABLE_RULE_NAME,
8
8
  METAVARIABLE_RULE_NAME,
9
9
  UNQUALIFIED_STATEMENT_RULE_NAME,
10
10
  CONSTRUCTOR_DECLARATION_RULE_NAME } from "../ruleNames";
11
- import { metavariableTokensFromMetavariableString,
11
+ import { variableTokensFromVariableString,
12
+ metavariableTokensFromMetavariableString,
12
13
  unqualifiedStatementTokensFromUnqualifiedStatementString,
13
14
  constructorDeclarationTokensFromConstructorDeclarationString } from "../utilities/tokens";
14
15
 
@@ -30,6 +31,13 @@ export function termNodeFromTermString(termString, lexer, parser) {
30
31
  return termNode;
31
32
  }
32
33
 
34
+ export function variableNodeFromVariableString(variableString, lexer, parser) {
35
+ const variableTokens = variableTokensFromVariableString(variableString, lexer),
36
+ variableNode = variableNodeFromVariableTokens(variableTokens, parser);
37
+
38
+ return variableNode;
39
+ }
40
+
33
41
  export function statementNodeFromStatementString(statementString, lexer, parser) {
34
42
  const unqualifiedStatementString = `${statementString}
35
43
  `,
@@ -47,19 +55,11 @@ export function metavariableNodeFromMetavariableString(metavariableString, lexer
47
55
  return metavariableNode;
48
56
  }
49
57
 
50
- export function unqualifiedStatementNodeFromUnqualifiedStatementString(unqualifiedStatementString, lexer, parser) {
51
- const unqualifiedStatementTokens = unqualifiedStatementTokensFromUnqualifiedStatementString(unqualifiedStatementString, lexer),
52
- unqualifiedStatementNode = unqualifiedStatementNodeFromUnqualifiedStatementTokens(unqualifiedStatementTokens, parser);
53
-
54
- return unqualifiedStatementNode;
55
- }
56
-
57
- export function termNodeFromTermTokens(termTokens, parser) {
58
- const tokens = termTokens, ///
59
- ruleName = TERM_RULE_NAME,
60
- termNode = nodeFromTokensRuleNameAndParser(tokens, ruleName, parser);
58
+ export function variableNodeFromVariableTokens(variableTokens, parser) {
59
+ const ruleName = VARIABLE_RULE_NAME,
60
+ variableNode = nodeFromTokensRuleNameAndParser(variableTokens, ruleName, parser);
61
61
 
62
- return termNode;
62
+ return variableNode;
63
63
  }
64
64
 
65
65
  export function metavariableNodeFromMetavariableTokens(metavariableTokens, parser) {
@@ -9,11 +9,11 @@ const { nominalLexerFromCombinedCustomGrammar } = lexersUtilities;
9
9
  const combinedCustomGrammar = combinedCustomGrammarFromNothing(),
10
10
  nominalLexer = nominalLexerFromCombinedCustomGrammar(combinedCustomGrammar);
11
11
 
12
- export function termTokensFromTermString(termString, lexer) {
13
- const content = termString, ///
14
- termTokens = tokensFromContentAndLexer(content, lexer);
12
+ export function variableTokensFromVariableString(variableString, lexer) {
13
+ const variableContent = `${variableString}`,
14
+ variableTokens = tokensFromContentAndLexer(variableContent, lexer);
15
15
 
16
- return termTokens;
16
+ return variableTokens;
17
17
  }
18
18
 
19
19
  export function metavariableTokensFromMetavariableString(metavariableString, lexer) {
package/src/variable.js CHANGED
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
 
3
- import Type, {objectType} from "./type";
3
+ import shim from "./shim";
4
4
  import LocalContext from "./context/local";
5
5
 
6
6
  import { nodeQuery } from "./utilities/query";
7
- import { variableNameFromVariableNode } from "./utilities/name";
7
+ import { objectType } from "./type";
8
+ import { variableNameFromVariableNode} from "./utilities/name";
9
+ import { variableNodeFromVariableString } from "./utilities/node";
8
10
 
9
11
  const typeNodeQuery = nodeQuery("/variableDeclaration/type"),
10
12
  variableNodeQuery = nodeQuery("/variableDeclaration/variable");
@@ -112,6 +114,44 @@ export default class Variable {
112
114
  return verifiedAtTopLevel;
113
115
  }
114
116
 
117
+ toJSON() {
118
+ const typeJSON = (this.type !== null) ?
119
+ this.type.toJSON() :
120
+ null,
121
+ string = this.string,
122
+ type = typeJSON, ///
123
+ json = {
124
+ string,
125
+ type
126
+ };
127
+
128
+ return json;
129
+ }
130
+
131
+ static fromJSON(json, fileContext) {
132
+ const { Type } = shim,
133
+ { string } = json,
134
+ lexer = fileContext.getLexer(),
135
+ parser = fileContext.getParser(),
136
+ variableString = string, ///
137
+ variableNode = variableNodeFromVariableString(variableString, lexer, parser),
138
+ node = variableNode; ///
139
+
140
+ let { type } = json;
141
+
142
+ if (type !== null) {
143
+ json = type; ///
144
+
145
+ type = Type.fromJSON(json, fileContext);
146
+ }
147
+
148
+ const variableName = variableNameFromVariableNode(variableNode),
149
+ name = variableName, ///
150
+ variable = new Variable(string, node, name, type);
151
+
152
+ return variable;
153
+ }
154
+
115
155
  static fromVariableNode(variableNode, localContext) {
116
156
  const node = variableNode, ///
117
157
  variableName = variableNameFromVariableNode(variableNode),
@@ -134,7 +174,8 @@ export default class Variable {
134
174
  }
135
175
 
136
176
  static fromVariableDeclarationNode(variableDeclarationNode, fileContext) {
137
- const typeNode = typeNodeQuery(variableDeclarationNode),
177
+ const { Type } = shim,
178
+ typeNode = typeNodeQuery(variableDeclarationNode),
138
179
  variableNode = variableNodeQuery(variableDeclarationNode),
139
180
  variableName = variableNameFromVariableNode(variableNode),
140
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;base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UNHQyxLQUFBQTttQkFBUCxTQUFPQTtnQkFDTCxJQUFNQyxPQUFPQyxtQ0FBb0IsRUFDM0JDLGdCQUFnQixJQUhwQkosY0FHc0NFO2dCQUV4QyxPQUFPRTtZQUNUOzs7V0FOSUo7RUFBc0JLLGlCQUFRO0FBU3BDLElBQU1ELGdCQUFnQkosY0FBY0MsV0FBVztJQUUvQyxXQUFlRyJ9
@@ -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,eyJ2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1BLGtDQUFOO2NBQU1BO2FBQUFBO2dDQUFBQTtpQ0FBQUE7O2tCQUFBQTs7WUFDR0MsS0FBQUE7bUJBQVAsU0FBT0E7Z0JBQ0wsSUFBTUMsT0FBT0MsdUNBQXdCLEVBQy9CQyxvQkFBb0IsSUFIeEJKLGtCQUc4Q0U7Z0JBRWhELE9BQU9FO1lBQ1Q7OztXQU5JSjtFQUEwQkssaUJBQVE7QUFTeEMsSUFBTUQsb0JBQW9CSixrQkFBa0JDLFdBQVc7SUFFdkQsV0FBZUcifQ==
@@ -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 StatementMetaType = /*#__PURE__*/ function(MetaType) {
92
- _inherits(StatementMetaType, MetaType);
93
- function StatementMetaType() {
94
- _class_call_check(this, StatementMetaType);
95
- return _call_super(this, StatementMetaType, arguments);
96
- }
97
- _create_class(StatementMetaType, null, [
98
- {
99
- key: "fromNothing",
100
- value: function fromNothing() {
101
- var name = _metaTypeNames.STATEMENT_META_TYPE_NAME, statementMetaType = new StatementMetaType(name);
102
- return statementMetaType;
103
- }
104
- }
105
- ]);
106
- return StatementMetaType;
107
- }(_metaType.default);
108
- var statementMetaType = StatementMetaType.fromN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s7Ozs7Ozs7Ozs7Ozs7OztBQUV6QyxJQUFBLEFBQU1BLGtDQUFOO2NBQU1BO2FBQUFBO2dDQUFBQTtpQ0FBQUE7O2tCQUFBQTs7WUFDR0MsS0FBQUE7bUJBQVAsU0FBT0E7Z0JBQ0wsSUFBTUMsT0FBT0MsdUNBQXdCLEVBQy9CQyxvQkFBb0IsSUFIeEJKLGtCQUc4Q0U7Z0JBRWhELE9BQU9FO1lBQ1Q7OztXQU5JSjtFQUEwQkssaUJBQVE7QUFTeEMsSUFBTUQsb0JBQW9CSixrQkFBa0JDLFdBQVc7SUFFdkQsV0FBZUcifQ==
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- import MetaType from "../metaType";
4
-
5
- import { FRAME_META_TYPE_NAME } from "../metaTypeNames";
6
-
7
- class FrameMetaType extends MetaType {
8
- static fromNothing() {
9
- const name = FRAME_META_TYPE_NAME,
10
- frameMetaType = new FrameMetaType(name);
11
-
12
- return frameMetaType;
13
- }
14
- }
15
-
16
- const frameMetaType = FrameMetaType.fromNothing();
17
-
18
- export default frameMetaType;
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- import MetaType from "../metaType";
4
-
5
- import { REFERENCE_META_TYPE_NAME } from "../metaTypeNames";
6
-
7
- class ReferenceMetaType extends MetaType {
8
- static fromNothing() {
9
- const name = REFERENCE_META_TYPE_NAME,
10
- referenceMetaType = new ReferenceMetaType(name);
11
-
12
- return referenceMetaType;
13
- }
14
- }
15
-
16
- const referenceMetaType = ReferenceMetaType.fromNothing();
17
-
18
- export default referenceMetaType;
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- import MetaType from "../metaType";
4
-
5
- import { STATEMENT_META_TYPE_NAME } from "../metaTypeNames";
6
-
7
- class StatementMetaType extends MetaType {
8
- static fromNothing() {
9
- const name = STATEMENT_META_TYPE_NAME,
10
- statementMetaType = new StatementMetaType(name);
11
-
12
- return statementMetaType;
13
- }
14
- }
15
-
16
- const statementMetaType = StatementMetaType.fromNothing();
17
-
18
- export default statementMetaType;