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.
- package/lib/assertion/subproof.js +4 -4
- package/lib/constructor.js +5 -46
- package/lib/context/file.js +4 -44
- package/lib/declaration/metavariable.js +3 -3
- package/lib/declaration/type.js +3 -3
- package/lib/declaration/variable.js +4 -44
- package/lib/derivation.js +4 -4
- package/lib/metaType.js +127 -4
- package/lib/metaTypeNames.js +2 -2
- package/lib/metaTypes.js +5 -12
- package/lib/metavariable.js +5 -5
- package/lib/premise.js +3 -3
- package/lib/statement/qualified.js +3 -3
- package/lib/statement/unqualified.js +5 -4
- package/lib/supposition.js +3 -3
- package/lib/term.js +3 -4
- package/lib/variable.js +6 -46
- package/lib/verify/declaration.js +4 -4
- package/lib/verify/frame.js +4 -5
- package/package.json +1 -1
- package/src/assertion/subproof.js +3 -2
- package/src/constructor.js +3 -2
- package/src/context/file.js +3 -2
- package/src/declaration/metavariable.js +3 -2
- package/src/declaration/type.js +3 -2
- package/src/declaration/variable.js +4 -2
- package/src/derivation.js +3 -2
- package/src/metaType.js +32 -0
- package/src/metaTypeNames.js +1 -1
- package/src/metaTypes.js +1 -3
- package/src/metavariable.js +5 -3
- package/src/premise.js +3 -2
- package/src/statement/qualified.js +5 -3
- package/src/statement/unqualified.js +5 -2
- package/src/supposition.js +3 -2
- package/src/term.js +2 -2
- package/src/variable.js +7 -5
- package/src/verify/declaration.js +1 -1
- package/src/verify/frame.js +1 -2
- package/lib/metaType/frame.js +0 -111
- package/lib/metaType/reference.js +0 -111
- package/lib/metaType/statement.js +0 -111
- package/src/metaType/frame.js +0 -18
- package/src/metaType/reference.js +0 -18
- package/src/metaType/statement.js +0 -18
package/src/constructor.js
CHANGED
|
@@ -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
|
|
80
|
+
const { Term, Type } = shim,
|
|
81
|
+
termNode = termNodeQuery(constructorDeclarationNode),
|
|
81
82
|
typeNode = typeNodeQuery(constructorDeclarationNode),
|
|
82
83
|
type = (typeNode === null) ?
|
|
83
84
|
objectType :
|
package/src/context/file.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import
|
|
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
|
|
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
|
|
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
|
|
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),
|
package/src/declaration/type.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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();
|
package/src/metaTypeNames.js
CHANGED
package/src/metaTypes.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import frameMetaType from "./metaType
|
|
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,
|
package/src/metavariable.js
CHANGED
|
@@ -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 {
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
67
|
+
const { Statement } = shim,
|
|
68
|
+
statementNode = statementNodeQuery(unqualifiedStatementNode),
|
|
66
69
|
localContext = LocalContext.fromFileContext(fileContext),
|
|
67
70
|
statement = Statement.fromStatementNode(statementNode, localContext);
|
|
68
71
|
|
package/src/supposition.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
-
|
|
149
|
-
|
|
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
|
|
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"); ///
|
package/src/verify/frame.js
CHANGED
|
@@ -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
|
|
package/lib/metaType/frame.js
DELETED
|
@@ -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==
|