@ibyar/expressions 0.8.6 → 1.1.0
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/README.md +48 -1
- package/api/abstract.d.ts +1 -0
- package/api/abstract.d.ts.map +1 -0
- package/api/abstract.js +12 -0
- package/api/abstract.js.map +1 -1
- package/api/class/class.d.ts +1 -0
- package/api/class/class.d.ts.map +1 -0
- package/api/class/class.js +603 -472
- package/api/class/class.js.map +1 -1
- package/api/class/decorator.d.ts +1 -0
- package/api/class/decorator.d.ts.map +1 -0
- package/api/class/decorator.js +53 -41
- package/api/class/decorator.js.map +1 -1
- package/api/computing/call.d.ts +1 -0
- package/api/computing/call.d.ts.map +1 -0
- package/api/computing/call.js +83 -69
- package/api/computing/call.js.map +1 -1
- package/api/computing/debugger.d.ts +1 -0
- package/api/computing/debugger.d.ts.map +1 -0
- package/api/computing/debugger.js +40 -28
- package/api/computing/debugger.js.map +1 -1
- package/api/computing/new.d.ts +1 -0
- package/api/computing/new.d.ts.map +1 -0
- package/api/computing/new.js +81 -68
- package/api/computing/new.js.map +1 -1
- package/api/computing/rest.d.ts +1 -0
- package/api/computing/rest.d.ts.map +1 -0
- package/api/computing/rest.js +54 -42
- package/api/computing/rest.js.map +1 -1
- package/api/computing/return.d.ts +1 -0
- package/api/computing/return.d.ts.map +1 -0
- package/api/computing/return.js +52 -40
- package/api/computing/return.js.map +1 -1
- package/api/computing/spread.d.ts +1 -0
- package/api/computing/spread.d.ts.map +1 -0
- package/api/computing/spread.js +70 -58
- package/api/computing/spread.js.map +1 -1
- package/api/computing/throw.d.ts +1 -0
- package/api/computing/throw.d.ts.map +1 -0
- package/api/computing/throw.js +216 -175
- package/api/computing/throw.js.map +1 -1
- package/api/computing/yield.d.ts +1 -0
- package/api/computing/yield.d.ts.map +1 -0
- package/api/computing/yield.js +60 -47
- package/api/computing/yield.js.map +1 -1
- package/api/definition/array.d.ts +1 -0
- package/api/definition/array.d.ts.map +1 -0
- package/api/definition/array.js +147 -122
- package/api/definition/array.js.map +1 -1
- package/api/definition/bind.d.ts +1 -0
- package/api/definition/bind.d.ts.map +1 -0
- package/api/definition/bind.js +85 -70
- package/api/definition/bind.js.map +1 -1
- package/api/definition/comment.d.ts +1 -0
- package/api/definition/comment.d.ts.map +1 -0
- package/api/definition/comment.js +44 -32
- package/api/definition/comment.js.map +1 -1
- package/api/definition/function.d.ts +1 -0
- package/api/definition/function.d.ts.map +1 -0
- package/api/definition/function.js +500 -443
- package/api/definition/function.js.map +1 -1
- package/api/definition/member.d.ts +1 -0
- package/api/definition/member.d.ts.map +1 -0
- package/api/definition/member.js +104 -89
- package/api/definition/member.js.map +1 -1
- package/api/definition/object.d.ts +1 -0
- package/api/definition/object.d.ts.map +1 -0
- package/api/definition/object.js +243 -200
- package/api/definition/object.js.map +1 -1
- package/api/definition/statement.d.ts +1 -0
- package/api/definition/statement.d.ts.map +1 -0
- package/api/definition/statement.js +56 -44
- package/api/definition/statement.js.map +1 -1
- package/api/definition/values.d.ts +1 -0
- package/api/definition/values.d.ts.map +1 -0
- package/api/definition/values.js +228 -160
- package/api/definition/values.js.map +1 -1
- package/api/deserialize/deserialize.d.ts +2 -1
- package/api/deserialize/deserialize.d.ts.map +1 -0
- package/api/deserialize/deserialize.js +5 -7
- package/api/deserialize/deserialize.js.map +1 -1
- package/api/deserialize/type-store.d.ts +1 -0
- package/api/deserialize/type-store.d.ts.map +1 -0
- package/api/expression.d.ts +1 -0
- package/api/expression.d.ts.map +1 -0
- package/api/index.d.ts +1 -0
- package/api/index.d.ts.map +1 -0
- package/api/module/common.d.ts +1 -0
- package/api/module/common.d.ts.map +1 -0
- package/api/module/common.js +63 -50
- package/api/module/common.js.map +1 -1
- package/api/module/export.d.ts +1 -0
- package/api/module/export.d.ts.map +1 -0
- package/api/module/export.js +343 -290
- package/api/module/export.js.map +1 -1
- package/api/module/import.d.ts +1 -0
- package/api/module/import.d.ts.map +1 -0
- package/api/module/import.js +318 -253
- package/api/module/import.js.map +1 -1
- package/api/operators/assignment.d.ts +1 -0
- package/api/operators/assignment.d.ts.map +1 -0
- package/api/operators/assignment.js +88 -75
- package/api/operators/assignment.js.map +1 -1
- package/api/operators/await.d.ts +1 -0
- package/api/operators/await.d.ts.map +1 -0
- package/api/operators/await.js +54 -42
- package/api/operators/await.js.map +1 -1
- package/api/operators/binary.d.ts +1 -0
- package/api/operators/binary.d.ts.map +1 -0
- package/api/operators/binary.js +78 -64
- package/api/operators/binary.js.map +1 -1
- package/api/operators/chaining.d.ts +1 -0
- package/api/operators/chaining.d.ts.map +1 -0
- package/api/operators/chaining.js +56 -44
- package/api/operators/chaining.js.map +1 -1
- package/api/operators/comma.d.ts +1 -0
- package/api/operators/comma.d.ts.map +1 -0
- package/api/operators/comma.js +53 -41
- package/api/operators/comma.js.map +1 -1
- package/api/operators/grouping.d.ts +1 -0
- package/api/operators/grouping.d.ts.map +1 -0
- package/api/operators/grouping.js +51 -39
- package/api/operators/grouping.js.map +1 -1
- package/api/operators/logical.d.ts +1 -0
- package/api/operators/logical.d.ts.map +1 -0
- package/api/operators/logical.js +51 -37
- package/api/operators/logical.js.map +1 -1
- package/api/operators/pipeline.d.ts +1 -0
- package/api/operators/pipeline.d.ts.map +1 -0
- package/api/operators/pipeline.js +95 -81
- package/api/operators/pipeline.js.map +1 -1
- package/api/operators/ternary.d.ts +1 -0
- package/api/operators/ternary.d.ts.map +1 -0
- package/api/operators/ternary.js +69 -55
- package/api/operators/ternary.js.map +1 -1
- package/api/operators/types.d.ts +1 -0
- package/api/operators/types.d.ts.map +1 -0
- package/api/operators/unary.d.ts +1 -0
- package/api/operators/unary.d.ts.map +1 -0
- package/api/operators/unary.js +97 -82
- package/api/operators/unary.js.map +1 -1
- package/api/operators/update.d.ts +1 -0
- package/api/operators/update.d.ts.map +1 -0
- package/api/operators/update.js +78 -62
- package/api/operators/update.js.map +1 -1
- package/api/program.d.ts +1 -0
- package/api/program.d.ts.map +1 -0
- package/api/program.js +53 -40
- package/api/program.js.map +1 -1
- package/api/statement/control/block.d.ts +1 -0
- package/api/statement/control/block.d.ts.map +1 -0
- package/api/statement/control/block.js +65 -53
- package/api/statement/control/block.js.map +1 -1
- package/api/statement/control/empty.d.ts +1 -1
- package/api/statement/control/empty.d.ts.map +1 -0
- package/api/statement/control/empty.js +43 -33
- package/api/statement/control/empty.js.map +1 -1
- package/api/statement/control/if.d.ts +1 -0
- package/api/statement/control/if.d.ts.map +1 -0
- package/api/statement/control/if.js +79 -65
- package/api/statement/control/if.js.map +1 -1
- package/api/statement/control/switch.d.ts +1 -0
- package/api/statement/control/switch.d.ts.map +1 -0
- package/api/statement/control/switch.js +180 -141
- package/api/statement/control/switch.js.map +1 -1
- package/api/statement/control/terminate.d.ts +1 -2
- package/api/statement/control/terminate.d.ts.map +1 -0
- package/api/statement/control/terminate.js +117 -78
- package/api/statement/control/terminate.js.map +1 -1
- package/api/statement/control/with.d.ts +1 -0
- package/api/statement/control/with.d.ts.map +1 -0
- package/api/statement/control/with.js +72 -59
- package/api/statement/control/with.js.map +1 -1
- package/api/statement/declarations/declares.d.ts +1 -0
- package/api/statement/declarations/declares.d.ts.map +1 -0
- package/api/statement/declarations/declares.js +148 -121
- package/api/statement/declarations/declares.js.map +1 -1
- package/api/statement/iterations/for.d.ts +1 -0
- package/api/statement/iterations/for.d.ts.map +1 -0
- package/api/statement/iterations/for.js +337 -277
- package/api/statement/iterations/for.js.map +1 -1
- package/api/statement/iterations/while.d.ts +1 -0
- package/api/statement/iterations/while.d.ts.map +1 -0
- package/api/statement/iterations/while.js +152 -125
- package/api/statement/iterations/while.js.map +1 -1
- package/api/utils.d.ts +1 -0
- package/api/utils.d.ts.map +1 -0
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -0
- package/package.json +5 -5
- package/scope/builder.d.ts +27 -0
- package/scope/builder.d.ts.map +1 -0
- package/scope/builder.js +73 -0
- package/scope/builder.js.map +1 -0
- package/scope/event.d.ts +1 -0
- package/scope/event.d.ts.map +1 -0
- package/scope/finalizer.d.ts +1 -0
- package/scope/finalizer.d.ts.map +1 -0
- package/scope/index.d.ts +1 -0
- package/scope/index.d.ts.map +1 -0
- package/scope/pool.d.ts +1 -0
- package/scope/pool.d.ts.map +1 -0
- package/scope/proxy.d.ts +1 -0
- package/scope/proxy.d.ts.map +1 -0
- package/scope/proxy.js +1 -0
- package/scope/proxy.js.map +1 -1
- package/scope/scope.d.ts +1 -0
- package/scope/scope.d.ts.map +1 -0
- package/scope/scope.js +17 -11
- package/scope/scope.js.map +1 -1
- package/scope/stack.d.ts +1 -0
- package/scope/stack.d.ts.map +1 -0
- package/scope/stack.js +22 -14
- package/scope/stack.js.map +1 -1
- package/v8/enums.d.ts +1 -0
- package/v8/enums.d.ts.map +1 -0
- package/v8/enums.js +11 -11
- package/v8/enums.js.map +1 -1
- package/v8/factory.d.ts +1 -0
- package/v8/factory.d.ts.map +1 -0
- package/v8/factory.js +3 -1
- package/v8/factory.js.map +1 -1
- package/v8/index.d.ts +1 -0
- package/v8/index.d.ts.map +1 -0
- package/v8/inline.d.ts +1 -0
- package/v8/inline.d.ts.map +1 -0
- package/v8/inline.js +9 -5
- package/v8/inline.js.map +1 -1
- package/v8/language.d.ts +1 -0
- package/v8/language.d.ts.map +1 -0
- package/v8/node.d.ts +1 -0
- package/v8/node.d.ts.map +1 -0
- package/v8/parser.d.ts +1 -0
- package/v8/parser.d.ts.map +1 -0
- package/v8/parser.js +5 -5
- package/v8/parser.js.map +1 -1
- package/v8/stream.d.ts +1 -0
- package/v8/stream.d.ts.map +1 -0
- package/v8/stream.js +17 -7
- package/v8/stream.js.map +1 -1
- package/v8/token.d.ts +1 -0
- package/v8/token.d.ts.map +1 -0
- package/v8/token.js +363 -358
- package/v8/token.js.map +1 -1
- package/visit/index.d.ts +1 -0
- package/visit/index.d.ts.map +1 -0
- package/visit/visitor.d.ts +1 -0
- package/visit/visitor.d.ts.map +1 -0
- package/v8/nodes.d.ts +0 -0
- package/v8/nodes.js +0 -2
- package/v8/nodes.js.map +0 -1
|
@@ -1,49 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __metadata } from "tslib";
|
|
1
|
+
import { __esDecorate, __runInitializers } from "tslib";
|
|
3
2
|
import { AbstractExpressionNode } from '../abstract.js';
|
|
4
3
|
import { Deserializer } from '../deserialize/deserialize.js';
|
|
5
4
|
import { isDeclarationExpression } from '../utils.js';
|
|
6
|
-
let ExpressionStatement =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
5
|
+
let ExpressionStatement = (() => {
|
|
6
|
+
let _classDecorators = [Deserializer('ExpressionStatement')];
|
|
7
|
+
let _classDescriptor;
|
|
8
|
+
let _classExtraInitializers = [];
|
|
9
|
+
let _classThis;
|
|
10
|
+
let _classSuper = AbstractExpressionNode;
|
|
11
|
+
var ExpressionStatement = class extends _classSuper {
|
|
12
|
+
static { _classThis = this; }
|
|
13
|
+
static {
|
|
14
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
15
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
16
|
+
ExpressionStatement = _classThis = _classDescriptor.value;
|
|
17
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
18
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
19
|
+
}
|
|
20
|
+
body;
|
|
21
|
+
static fromJSON(node, deserializer) {
|
|
22
|
+
return new ExpressionStatement(node.body.map(deserializer), node.range, node.loc);
|
|
23
|
+
}
|
|
24
|
+
static visit(node, visitNode) {
|
|
25
|
+
node.body.forEach(visitNode);
|
|
26
|
+
}
|
|
27
|
+
constructor(body, range, loc) {
|
|
28
|
+
super(range, loc);
|
|
29
|
+
this.body = body;
|
|
30
|
+
}
|
|
31
|
+
getBody() {
|
|
32
|
+
return this.body;
|
|
33
|
+
}
|
|
34
|
+
set(stack, value) {
|
|
35
|
+
throw new Error(`ExpressionStatement#set() has no implementation.`);
|
|
36
|
+
}
|
|
37
|
+
get(stack) {
|
|
38
|
+
let value;
|
|
39
|
+
this.body.forEach(node => value = node.get(stack));
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
dependency(computed) {
|
|
43
|
+
return this.body.flatMap(exp => exp.dependency(computed));
|
|
44
|
+
}
|
|
45
|
+
dependencyPath(computed) {
|
|
46
|
+
return this.body.flatMap(node => node.dependencyPath(computed));
|
|
47
|
+
}
|
|
48
|
+
toString() {
|
|
49
|
+
return this.body
|
|
50
|
+
.map(node => ({ insert: !isDeclarationExpression(node), string: node.toString() }))
|
|
51
|
+
.map(ref => `${ref.string}${ref.insert ? ';' : ''}`)
|
|
52
|
+
.join('\n');
|
|
53
|
+
}
|
|
54
|
+
toJson() {
|
|
55
|
+
return { body: this.body.map(exp => exp.toJSON()) };
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
return ExpressionStatement = _classThis;
|
|
59
|
+
})();
|
|
48
60
|
export { ExpressionStatement };
|
|
49
61
|
//# sourceMappingURL=statement.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statement.js","sourceRoot":"","sources":["../../../../src/expressions/api/definition/statement.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"statement.js","sourceRoot":"","sources":["../../../../src/expressions/api/definition/statement.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;IAGzC,mBAAmB;4BAD/B,YAAY,CAAC,qBAAqB,CAAC;;;;sBACK,sBAAsB;mCAA9B,SAAQ,WAAsB;;;;YAA/D,6KA2CC;;;YA3CY,uDAAmB;;QAYtB,IAAI;QAXb,MAAM,CAAC,QAAQ,CAAC,IAAyB,EAAE,YAA8B;YACxE,OAAO,IAAI,mBAAmB,CAC7B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,EAC3B,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,GAAG,CACR,CAAC;QACH,CAAC;QACD,MAAM,CAAC,KAAK,CAAC,IAAyB,EAAE,SAAwB;YAC/D,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAC9B,CAAC;QACD,YACS,IAAsB,EAC9B,KAAwB,EACxB,GAAoB;YACpB,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;YAHV,SAAI,GAAJ,IAAI,CAAkB;QAI/B,CAAC;QACD,OAAO;YACN,OAAO,IAAI,CAAC,IAAI,CAAC;QAClB,CAAC;QACD,GAAG,CAAC,KAAY,EAAE,KAAU;YAC3B,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;QACrE,CAAC;QACD,GAAG,CAAC,KAAY;YACf,IAAI,KAAK,CAAC;YACV,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;YACnD,OAAO,KAAK,CAAC;QACd,CAAC;QACD,UAAU,CAAC,QAAe;YACzB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC3D,CAAC;QACD,cAAc,CAAC,QAAe;YAC7B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;QACjE,CAAC;QACD,QAAQ;YACP,OAAO,IAAI,CAAC,IAAI;iBACd,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,uBAAuB,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;iBAClF,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;iBACnD,IAAI,CAAC,IAAI,CAAC,CAAC;QACd,CAAC;QACD,MAAM;YACL,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC;QACrD,CAAC;;;;SA1CW,mBAAmB","sourcesContent":["import type {\n\tNodeDeserializer, ExpressionNode,\n\tExpressionEventPath, VisitNodeType, SourceLocation,\n} from '../expression.js';\nimport type { Stack } from '../../scope/stack.js';\nimport { AbstractExpressionNode } from '../abstract.js';\nimport { Deserializer } from '../deserialize/deserialize.js';\nimport { isDeclarationExpression } from '../utils.js';\n\n@Deserializer('ExpressionStatement')\nexport class ExpressionStatement extends AbstractExpressionNode {\n\tstatic fromJSON(node: ExpressionStatement, deserializer: NodeDeserializer): ExpressionStatement {\n\t\treturn new ExpressionStatement(\n\t\t\tnode.body.map(deserializer),\n\t\t\tnode.range,\n\t\t\tnode.loc\n\t\t);\n\t}\n\tstatic visit(node: ExpressionStatement, visitNode: VisitNodeType): void {\n\t\tnode.body.forEach(visitNode);\n\t}\n\tconstructor(\n\t\tprivate body: ExpressionNode[],\n\t\trange?: [number, number],\n\t\tloc?: SourceLocation) {\n\t\tsuper(range, loc);\n\t}\n\tgetBody() {\n\t\treturn this.body;\n\t}\n\tset(stack: Stack, value: any) {\n\t\tthrow new Error(`ExpressionStatement#set() has no implementation.`);\n\t}\n\tget(stack: Stack) {\n\t\tlet value;\n\t\tthis.body.forEach(node => value = node.get(stack));\n\t\treturn value;\n\t}\n\tdependency(computed?: true): ExpressionNode[] {\n\t\treturn this.body.flatMap(exp => exp.dependency(computed));\n\t}\n\tdependencyPath(computed?: true): ExpressionEventPath[] {\n\t\treturn this.body.flatMap(node => node.dependencyPath(computed));\n\t}\n\ttoString(): string {\n\t\treturn this.body\n\t\t\t.map(node => ({ insert: !isDeclarationExpression(node), string: node.toString() }))\n\t\t\t.map(ref => `${ref.string}${ref.insert ? ';' : ''}`)\n\t\t\t.join('\\n');\n\t}\n\ttoJson(): object {\n\t\treturn { body: this.body.map(exp => exp.toJSON()) };\n\t}\n}\n"]}
|
|
@@ -89,3 +89,4 @@ export declare class TaggedTemplateExpression extends TemplateLiteralExpressionN
|
|
|
89
89
|
constructor(tag: ExpressionNode, quasis: string[], expressions: ExpressionNode[], range?: [number, number], loc?: SourceLocation);
|
|
90
90
|
getTag(): ExpressionNode;
|
|
91
91
|
}
|
|
92
|
+
//# sourceMappingURL=values.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"values.d.ts","sourceRoot":"","sources":["../../../../src/expressions/api/definition/values.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,qBAAqB,EAAE,cAAc,EAAE,gBAAgB,EACvD,YAAY,EAAE,mBA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E,cAAc,EAAE,EAC7B,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EACxB,GAAG,CAAC,EAAE,cAAc;IAGZ,MAAM,IAAI,SAAS;CAG5B;AAED,qBACa,wBAAyB,SAAQ,6BAA6B;IAC1E,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,wBAAwB,EAAE,YAAY,EAAE,gBAAgB,GAAG,6BAA6B;IAS9G,UAAkB,GAAG,EAAE,cAAc,CAAC;gBAErC,GAAG,EAAE,cAAc,EACnB,MAAM,EAAE,MAAM,EAAE,EAChB,WAAW,EAAE,cAAc,EAAE,EAC7B,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EACxB,GAAG,CAAC,EAAE,cAAc;IAGZ,MAAM,IAAI,cAAc;CAGjC"}
|
package/api/definition/values.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __metadata } from "tslib";
|
|
1
|
+
import { __esDecorate, __runInitializers } from "tslib";
|
|
3
2
|
import { Deserializer } from '../deserialize/deserialize.js';
|
|
4
3
|
import { AbstractExpressionNode } from '../abstract.js';
|
|
5
4
|
/**
|
|
@@ -11,156 +10,201 @@ import { AbstractExpressionNode } from '../abstract.js';
|
|
|
11
10
|
* there is no way to convert identifiers to strings,
|
|
12
11
|
* but sometimes it is possible to parse strings into identifiers.
|
|
13
12
|
*/
|
|
14
|
-
let Identifier =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
get(stack, thisContext) {
|
|
29
|
-
if (thisContext) {
|
|
30
|
-
return thisContext[this.name];
|
|
13
|
+
let Identifier = (() => {
|
|
14
|
+
let _classDecorators = [Deserializer('Identifier')];
|
|
15
|
+
let _classDescriptor;
|
|
16
|
+
let _classExtraInitializers = [];
|
|
17
|
+
let _classThis;
|
|
18
|
+
let _classSuper = AbstractExpressionNode;
|
|
19
|
+
var Identifier = class extends _classSuper {
|
|
20
|
+
static { _classThis = this; }
|
|
21
|
+
static {
|
|
22
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
23
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
24
|
+
Identifier = _classThis = _classDescriptor.value;
|
|
25
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
26
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
31
27
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
name;
|
|
29
|
+
static fromJSON(node) {
|
|
30
|
+
return new Identifier(node.name, node.range, node.loc);
|
|
31
|
+
}
|
|
32
|
+
constructor(name, range, loc) {
|
|
33
|
+
super(range, loc);
|
|
34
|
+
this.name = name;
|
|
35
|
+
}
|
|
36
|
+
getName() {
|
|
37
|
+
return this.name;
|
|
38
|
+
}
|
|
39
|
+
set(stack, value) {
|
|
40
|
+
return stack.set(this.name, value) ? value : void 0;
|
|
41
|
+
}
|
|
42
|
+
get(stack, thisContext) {
|
|
43
|
+
if (thisContext) {
|
|
44
|
+
return thisContext[this.name];
|
|
45
|
+
}
|
|
46
|
+
return stack.get(this.name);
|
|
47
|
+
}
|
|
48
|
+
findScope(stack, scope) {
|
|
49
|
+
if (scope) {
|
|
50
|
+
return scope.getInnerScope(this.name);
|
|
51
|
+
}
|
|
52
|
+
scope = stack.findScope(this.name);
|
|
36
53
|
return scope.getInnerScope(this.name);
|
|
37
54
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
};
|
|
61
|
-
Identifier = Identifier_1 = __decorate([
|
|
62
|
-
Deserializer('Identifier'),
|
|
63
|
-
__metadata("design:paramtypes", [Object, Array, Object])
|
|
64
|
-
], Identifier);
|
|
55
|
+
declareVariable(stack, propertyValue) {
|
|
56
|
+
return stack.declareVariable(this.name, propertyValue);
|
|
57
|
+
}
|
|
58
|
+
getDeclarationName() {
|
|
59
|
+
return this.toString();
|
|
60
|
+
}
|
|
61
|
+
dependency(computed) {
|
|
62
|
+
return [this];
|
|
63
|
+
}
|
|
64
|
+
dependencyPath(computed) {
|
|
65
|
+
const path = [{ computed: false, path: this.toString() }];
|
|
66
|
+
return computed ? [{ computed, path: this.toString(), computedPath: [path] }] : path;
|
|
67
|
+
}
|
|
68
|
+
toString() {
|
|
69
|
+
return String(this.name);
|
|
70
|
+
}
|
|
71
|
+
toJson() {
|
|
72
|
+
return { name: this.name };
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
return Identifier = _classThis;
|
|
76
|
+
})();
|
|
65
77
|
export { Identifier };
|
|
66
|
-
let ThisExpression =
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
};
|
|
77
|
-
ThisExpression =
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
let ThisExpression = (() => {
|
|
79
|
+
let _classDecorators = [Deserializer('ThisExpression')];
|
|
80
|
+
let _classDescriptor;
|
|
81
|
+
let _classExtraInitializers = [];
|
|
82
|
+
let _classThis;
|
|
83
|
+
let _classSuper = Identifier;
|
|
84
|
+
var ThisExpression = class extends _classSuper {
|
|
85
|
+
static { _classThis = this; }
|
|
86
|
+
static {
|
|
87
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
88
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
89
|
+
ThisExpression = _classThis = _classDescriptor.value;
|
|
90
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
91
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
92
|
+
}
|
|
93
|
+
static fromJSON(node) {
|
|
94
|
+
return new ThisExpression(node.range, node.loc);
|
|
95
|
+
}
|
|
96
|
+
constructor(range, loc) {
|
|
97
|
+
super('this', range, loc);
|
|
98
|
+
}
|
|
99
|
+
toJson() {
|
|
100
|
+
return {};
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
return ThisExpression = _classThis;
|
|
104
|
+
})();
|
|
81
105
|
export { ThisExpression };
|
|
82
|
-
let Literal =
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
106
|
+
let Literal = (() => {
|
|
107
|
+
let _classDecorators = [Deserializer('Literal')];
|
|
108
|
+
let _classDescriptor;
|
|
109
|
+
let _classExtraInitializers = [];
|
|
110
|
+
let _classThis;
|
|
111
|
+
let _classSuper = AbstractExpressionNode;
|
|
112
|
+
var Literal = class extends _classSuper {
|
|
113
|
+
static { _classThis = this; }
|
|
114
|
+
static {
|
|
115
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
116
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
117
|
+
Literal = _classThis = _classDescriptor.value;
|
|
118
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
119
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
86
120
|
}
|
|
87
|
-
|
|
88
|
-
|
|
121
|
+
value;
|
|
122
|
+
static fromJSON(node) {
|
|
123
|
+
if (node.bigint) {
|
|
124
|
+
return new Literal(BigInt(node.bigint), node.raw, undefined, node.bigint, node.range, node.loc);
|
|
125
|
+
}
|
|
126
|
+
else if (node.regex) {
|
|
127
|
+
return new Literal(RegExp(node.regex.pattern, node.regex.flags), node.raw, node.regex, undefined, node.range, node.loc);
|
|
128
|
+
}
|
|
129
|
+
return new Literal(node.value, node.raw, undefined, undefined, node.range, node.loc);
|
|
89
130
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
131
|
+
regex;
|
|
132
|
+
bigint;
|
|
133
|
+
raw;
|
|
134
|
+
constructor(value, raw, regex, bigint, range, loc) {
|
|
135
|
+
super(range, loc);
|
|
136
|
+
this.value = value;
|
|
137
|
+
raw && (this.raw = raw);
|
|
138
|
+
regex && (this.regex = regex);
|
|
139
|
+
bigint && (this.bigint = bigint);
|
|
140
|
+
}
|
|
141
|
+
getValue() {
|
|
142
|
+
return this.value;
|
|
143
|
+
}
|
|
144
|
+
getRegex() {
|
|
145
|
+
return this.regex;
|
|
146
|
+
}
|
|
147
|
+
getBigint() {
|
|
148
|
+
return this.bigint;
|
|
149
|
+
}
|
|
150
|
+
geRaw() {
|
|
151
|
+
return this.raw;
|
|
152
|
+
}
|
|
153
|
+
set() {
|
|
154
|
+
throw new Error(`${this.constructor.name}#set() has no implementation.`);
|
|
155
|
+
}
|
|
156
|
+
get() {
|
|
157
|
+
return this.value;
|
|
158
|
+
}
|
|
159
|
+
findScope(stack, scope) {
|
|
160
|
+
if (scope) {
|
|
161
|
+
return scope.getInnerScope(this.value);
|
|
162
|
+
}
|
|
163
|
+
scope = stack.findScope(this.value);
|
|
119
164
|
return scope.getInnerScope(this.value);
|
|
120
165
|
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
dependency(computed) {
|
|
125
|
-
return computed ? [this] : [];
|
|
126
|
-
}
|
|
127
|
-
dependencyPath(computed) {
|
|
128
|
-
return computed ? [{ computed: false, path: this.toString() }] : [];
|
|
129
|
-
}
|
|
130
|
-
toString() {
|
|
131
|
-
return this.raw ?? String(this.value);
|
|
132
|
-
}
|
|
133
|
-
toJson() {
|
|
134
|
-
if (this.bigint) {
|
|
135
|
-
return {
|
|
136
|
-
bigint: this.bigint,
|
|
137
|
-
raw: this.raw,
|
|
138
|
-
};
|
|
166
|
+
dependency(computed) {
|
|
167
|
+
return computed ? [this] : [];
|
|
139
168
|
}
|
|
140
|
-
|
|
169
|
+
dependencyPath(computed) {
|
|
170
|
+
return computed ? [{ computed: false, path: this.toString() }] : [];
|
|
171
|
+
}
|
|
172
|
+
toString() {
|
|
173
|
+
return this.raw ?? String(this.value);
|
|
174
|
+
}
|
|
175
|
+
toJson() {
|
|
176
|
+
if (this.bigint) {
|
|
177
|
+
return {
|
|
178
|
+
bigint: this.bigint,
|
|
179
|
+
raw: this.raw,
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
else if (this.regex) {
|
|
183
|
+
return {
|
|
184
|
+
regex: { pattern: this.regex?.pattern, flags: this.regex?.flags },
|
|
185
|
+
raw: this.raw,
|
|
186
|
+
};
|
|
187
|
+
}
|
|
141
188
|
return {
|
|
142
|
-
|
|
189
|
+
value: this.value,
|
|
143
190
|
raw: this.raw,
|
|
144
191
|
};
|
|
145
192
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
Literal = Literal_1 = __decorate([
|
|
153
|
-
Deserializer('Literal'),
|
|
154
|
-
__metadata("design:paramtypes", [Object, String, Object, String, Array, Object])
|
|
155
|
-
], Literal);
|
|
193
|
+
};
|
|
194
|
+
return Literal = _classThis;
|
|
195
|
+
})();
|
|
156
196
|
export { Literal };
|
|
157
197
|
class TemplateArray extends Array {
|
|
198
|
+
raw;
|
|
158
199
|
constructor(strings) {
|
|
159
200
|
super(...strings);
|
|
160
201
|
this.raw = strings;
|
|
161
202
|
}
|
|
162
203
|
}
|
|
163
204
|
export class TemplateLiteralExpressionNode extends AbstractExpressionNode {
|
|
205
|
+
quasis;
|
|
206
|
+
expressions;
|
|
207
|
+
tag;
|
|
164
208
|
static visit(node, visitNode) {
|
|
165
209
|
node.tag && visitNode(node.tag);
|
|
166
210
|
node.expressions.forEach(visitNode);
|
|
@@ -215,36 +259,60 @@ export class TemplateLiteralExpressionNode extends AbstractExpressionNode {
|
|
|
215
259
|
};
|
|
216
260
|
}
|
|
217
261
|
}
|
|
218
|
-
let TemplateLiteral =
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
};
|
|
229
|
-
TemplateLiteral =
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
262
|
+
let TemplateLiteral = (() => {
|
|
263
|
+
let _classDecorators = [Deserializer('TemplateLiteral')];
|
|
264
|
+
let _classDescriptor;
|
|
265
|
+
let _classExtraInitializers = [];
|
|
266
|
+
let _classThis;
|
|
267
|
+
let _classSuper = TemplateLiteralExpressionNode;
|
|
268
|
+
var TemplateLiteral = class extends _classSuper {
|
|
269
|
+
static { _classThis = this; }
|
|
270
|
+
static {
|
|
271
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
272
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
273
|
+
TemplateLiteral = _classThis = _classDescriptor.value;
|
|
274
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
275
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
276
|
+
}
|
|
277
|
+
static fromJSON(node, deserializer) {
|
|
278
|
+
return new TemplateLiteral(node.quasis, node.expressions.map(deserializer), node.range, node.loc);
|
|
279
|
+
}
|
|
280
|
+
constructor(quasis, expressions, range, loc) {
|
|
281
|
+
super(quasis, expressions, undefined, range, loc);
|
|
282
|
+
}
|
|
283
|
+
getTag() {
|
|
284
|
+
return undefined;
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
return TemplateLiteral = _classThis;
|
|
288
|
+
})();
|
|
233
289
|
export { TemplateLiteral };
|
|
234
|
-
let TaggedTemplateExpression =
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
};
|
|
245
|
-
TaggedTemplateExpression =
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
290
|
+
let TaggedTemplateExpression = (() => {
|
|
291
|
+
let _classDecorators = [Deserializer('TaggedTemplateExpression')];
|
|
292
|
+
let _classDescriptor;
|
|
293
|
+
let _classExtraInitializers = [];
|
|
294
|
+
let _classThis;
|
|
295
|
+
let _classSuper = TemplateLiteralExpressionNode;
|
|
296
|
+
var TaggedTemplateExpression = class extends _classSuper {
|
|
297
|
+
static { _classThis = this; }
|
|
298
|
+
static {
|
|
299
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
300
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
301
|
+
TaggedTemplateExpression = _classThis = _classDescriptor.value;
|
|
302
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
303
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
304
|
+
}
|
|
305
|
+
static fromJSON(node, deserializer) {
|
|
306
|
+
return new TaggedTemplateExpression(deserializer(node.tag), node.quasis, node.expressions.map(deserializer), node.range, node.loc);
|
|
307
|
+
}
|
|
308
|
+
constructor(tag, quasis, expressions, range, loc) {
|
|
309
|
+
super(quasis, expressions, tag, range, loc);
|
|
310
|
+
}
|
|
311
|
+
getTag() {
|
|
312
|
+
return super.getTag();
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
return TaggedTemplateExpression = _classThis;
|
|
316
|
+
})();
|
|
249
317
|
export { TaggedTemplateExpression };
|
|
250
318
|
//# sourceMappingURL=values.js.map
|