@bikky/compiler 0.0.1
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/ASTHelper.d.ts +74 -0
- package/ASTHelper.d.ts.map +1 -0
- package/BiscuitCompiler.njsproj +89 -0
- package/BiscuitCompiler.njsproj.user +7 -0
- package/Libraries/BiscuitLibraries.d.ts +3 -0
- package/Libraries/BiscuitLibraries.d.ts.map +1 -0
- package/Libraries/BiscuitLibraries.js +3 -0
- package/Libraries/BiscuitLibraries.js.map +1 -0
- package/Libraries/BiscuitLibraries.ts +2 -0
- package/Libraries/GlobalTypes.d.ts +57 -0
- package/Libraries/MixinCode.d.ts +14 -0
- package/Libraries/MixinCode.d.ts.map +1 -0
- package/Libraries/MixinCode.js +109 -0
- package/Libraries/MixinCode.js.map +1 -0
- package/Libraries/MixinCode.ts +125 -0
- package/Libraries/package-lock.json +5 -0
- package/Source/ASTHelper.js +344 -0
- package/Source/ASTHelper.js.map +1 -0
- package/Source/ASTHelper.ts +373 -0
- package/Source/TSPatchTypes.d.ts +17 -0
- package/Transformers/CompilerInsertions.ts +21 -0
- package/Transformers/MacroTransformer.js +273 -0
- package/Transformers/MacroTransformer.js.map +1 -0
- package/Transformers/MacroTransformer.ts +304 -0
- package/Transformers/Macros.d.ts +3 -0
- package/Transformers/Macros.d.ts.map +1 -0
- package/Transformers/MixinTransformer.js +124 -0
- package/Transformers/MixinTransformer.js.map +1 -0
- package/Transformers/MixinTransformer.ts +151 -0
- package/Transformers/SuperTransform.d.ts +3 -0
- package/Transformers/SuperTransform.d.ts.map +1 -0
- package/Transformers/SuperTransform.js +117 -0
- package/Transformers/SuperTransform.js.map +1 -0
- package/Transformers/SuperTransform.ts +129 -0
- package/bin/Microsoft.NodejsTools.WebRole.dll +0 -0
- package/obj/Debug/BiscuitCompiler.njsproj.AssemblyReference.cache +0 -0
- package/obj/Debug/BiscuitCompiler.njsproj.CoreCompileInputs.cache +1 -0
- package/obj/Debug/BiscuitCompiler.njsproj.FileListAbsolute.txt +3 -0
- package/package.json +23 -0
- package/tsconfig.build.json +20 -0
- package/tsconfig.json +26 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// transformer1-module
|
|
4
|
+
const ts = require("typescript");
|
|
5
|
+
class SuperTransformer {
|
|
6
|
+
constructor(line, context, iter) {
|
|
7
|
+
this.has_super = false;
|
|
8
|
+
this.iter = iter;
|
|
9
|
+
this.context = context;
|
|
10
|
+
//TODO: Check that this is OK.
|
|
11
|
+
this.result = this.find_super(line);
|
|
12
|
+
if (this.has_super) {
|
|
13
|
+
var typeof_super = ts.createTypeOf(ts.createPropertyAccess(ts.createSuper(), ts.createIdentifier(this.identifier)));
|
|
14
|
+
var typeof_super_not_undefined = ts.createBinary(typeof_super, ts.SyntaxKind.ExclamationEqualsEqualsToken, ts.createStringLiteral("undefined"));
|
|
15
|
+
this.result = ts.createIf(typeof_super_not_undefined, this.result);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
find_identifier(node) {
|
|
19
|
+
if (node.kind == ts.SyntaxKind.Identifier) {
|
|
20
|
+
if (node.getText() != "_super") {
|
|
21
|
+
this.identifier = node.getText();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//Change the _super call over to super.
|
|
26
|
+
find_super(node) {
|
|
27
|
+
var result;
|
|
28
|
+
if (ts.isPropertyAccessExpression(node)) {
|
|
29
|
+
var has_super = false;
|
|
30
|
+
var id;
|
|
31
|
+
result = ts.visitEachChild(node, (node) => {
|
|
32
|
+
if (ts.isIdentifier(node)) {
|
|
33
|
+
if (node.text == "_super") {
|
|
34
|
+
has_super = true;
|
|
35
|
+
let result = ts.createIdentifier("super");
|
|
36
|
+
//ts.setOriginalNode(result, ts.getOriginalNode(node));
|
|
37
|
+
return result;
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
id = node.text;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return node;
|
|
44
|
+
}, this.context);
|
|
45
|
+
if (has_super && id) {
|
|
46
|
+
this.has_super = has_super;
|
|
47
|
+
this.identifier = id;
|
|
48
|
+
}
|
|
49
|
+
return result;
|
|
50
|
+
}
|
|
51
|
+
if (ts.isBlock(node) || ts.isCaseBlock(node) || ts.isModuleBlock(node)) {
|
|
52
|
+
return this.iter(node);
|
|
53
|
+
}
|
|
54
|
+
result = ts.visitEachChild(node, this.find_super.bind(this), this.context);
|
|
55
|
+
return result;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function default_1(program, pluginOptions) {
|
|
59
|
+
return (context) => {
|
|
60
|
+
return (sourceFile) => {
|
|
61
|
+
var parent = {
|
|
62
|
+
kind: ts.SyntaxKind[sourceFile.kind],
|
|
63
|
+
flags: []
|
|
64
|
+
};
|
|
65
|
+
var map = new Map();
|
|
66
|
+
map.set(sourceFile, parent);
|
|
67
|
+
function visitor(node) {
|
|
68
|
+
// if (ts.isCallExpression(node)) {
|
|
69
|
+
// return ts.createLiteral('call');
|
|
70
|
+
// }
|
|
71
|
+
var description = {
|
|
72
|
+
kind: ts.SyntaxKind[node.kind],
|
|
73
|
+
flags: []
|
|
74
|
+
};
|
|
75
|
+
parent[node.escapedText || node.getText()] = description;
|
|
76
|
+
//console.log(ts.SyntaxKind[node.kind], (node as any).escapedText || node.getText());
|
|
77
|
+
for (var prop in ts.NodeFlags) {
|
|
78
|
+
if (typeof prop == "string") {
|
|
79
|
+
if ((node.flags & ts.NodeFlags[prop]) != 0) {
|
|
80
|
+
description.flags.push(prop);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
//console.log(node.modifiers);
|
|
85
|
+
//if (node.kind == ts.SyntaxKind.Block) {
|
|
86
|
+
// console.log(node);
|
|
87
|
+
//}
|
|
88
|
+
//console.log(node.decorators)
|
|
89
|
+
var temp = parent;
|
|
90
|
+
parent = description;
|
|
91
|
+
var result;
|
|
92
|
+
switch (node.kind) {
|
|
93
|
+
case ts.SyntaxKind.ExpressionStatement:
|
|
94
|
+
case ts.SyntaxKind.FirstStatement:
|
|
95
|
+
case ts.SyntaxKind.ReturnStatement:
|
|
96
|
+
var transformed = new SuperTransformer(node, context, visitor);
|
|
97
|
+
result = transformed.result;
|
|
98
|
+
ts.visitEachChild(node, visitor, context);
|
|
99
|
+
break;
|
|
100
|
+
default:
|
|
101
|
+
result = ts.visitEachChild(node, visitor, context);
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
parent = temp;
|
|
105
|
+
return result;
|
|
106
|
+
}
|
|
107
|
+
var result = ts.visitNode(sourceFile, visitor);
|
|
108
|
+
//console.log(sourceFile.fileName);
|
|
109
|
+
//console.log(parent);
|
|
110
|
+
//console.log(JSON.stringify(parent, null, 4));
|
|
111
|
+
return result;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
exports.default = default_1;
|
|
116
|
+
console.log("SHOTO!");
|
|
117
|
+
//# sourceMappingURL=SuperTransform.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuperTransform.js","sourceRoot":"","sources":["SuperTransform.ts"],"names":[],"mappings":";;AAEA,sBAAsB;AACtB,iCAAiC;AAEjC,MAAM,gBAAgB;IAMrB,YAAY,IAAkB,EAAE,OAAiC,EAAE,IAAgC;QALnG,cAAS,GAAG,KAAK,CAAC;QAMjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,8BAA8B;QAC9B,IAAI,CAAC,MAAM,GAAiB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAClD,IAAI,IAAI,CAAC,SAAS,EAAE;YACnB,IAAI,YAAY,GAAG,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC,oBAAoB,CAAC,EAAE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AAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
// transformer1-module
|
|
4
|
+
import * as ts from "typescript";
|
|
5
|
+
|
|
6
|
+
class SuperTransformer {
|
|
7
|
+
has_super = false;
|
|
8
|
+
identifier!: string;
|
|
9
|
+
context: ts.TransformationContext;
|
|
10
|
+
result: ts.Statement;
|
|
11
|
+
iter: (node: ts.Node) => ts.Node;
|
|
12
|
+
constructor(line: ts.Statement, context: ts.TransformationContext, iter: (node: ts.Node) => ts.Node) {
|
|
13
|
+
this.iter = iter;
|
|
14
|
+
this.context = context;
|
|
15
|
+
//TODO: Check that this is OK.
|
|
16
|
+
this.result = <ts.Statement>this.find_super(line);
|
|
17
|
+
if (this.has_super) {
|
|
18
|
+
var typeof_super = ts.createTypeOf(ts.createPropertyAccess(ts.createSuper(), ts.createIdentifier(this.identifier)));
|
|
19
|
+
var typeof_super_not_undefined = ts.createBinary(typeof_super, ts.SyntaxKind.ExclamationEqualsEqualsToken, ts.createStringLiteral("undefined"));
|
|
20
|
+
this.result = ts.createIf(typeof_super_not_undefined, this.result);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
find_identifier(node: ts.Node) {
|
|
25
|
+
if (node.kind == ts.SyntaxKind.Identifier) {
|
|
26
|
+
if (node.getText() != "_super") {
|
|
27
|
+
this.identifier = node.getText();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
//Change the _super call over to super.
|
|
33
|
+
find_super(node: ts.Node) {
|
|
34
|
+
var result: ts.Node;
|
|
35
|
+
if (ts.isPropertyAccessExpression(node)) {
|
|
36
|
+
var has_super = false;
|
|
37
|
+
var id: string | undefined;
|
|
38
|
+
result = ts.visitEachChild(node, (node) => {
|
|
39
|
+
if (ts.isIdentifier(node)) {
|
|
40
|
+
if (node.text == "_super") {
|
|
41
|
+
has_super = true;
|
|
42
|
+
let result: ts.Node = ts.createIdentifier("super");
|
|
43
|
+
//ts.setOriginalNode(result, ts.getOriginalNode(node));
|
|
44
|
+
return result;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
id = node.text;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return node;
|
|
51
|
+
}, this.context);
|
|
52
|
+
if (has_super && id) {
|
|
53
|
+
this.has_super = has_super;
|
|
54
|
+
this.identifier = id;
|
|
55
|
+
}
|
|
56
|
+
return result;
|
|
57
|
+
}
|
|
58
|
+
if (ts.isBlock(node) || ts.isCaseBlock(node) || ts.isModuleBlock(node)) {
|
|
59
|
+
return this.iter(node);
|
|
60
|
+
}
|
|
61
|
+
result = ts.visitEachChild(node, this.find_super.bind(this), this.context);
|
|
62
|
+
return result;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export default function (program: ts.Program, pluginOptions: {}) {
|
|
67
|
+
return (context: ts.TransformationContext) => {
|
|
68
|
+
return (sourceFile: ts.SourceFile) => {
|
|
69
|
+
var parent = <any>{
|
|
70
|
+
kind: ts.SyntaxKind[sourceFile.kind],
|
|
71
|
+
flags: []
|
|
72
|
+
};
|
|
73
|
+
var map = new Map<ts.Node, any>();
|
|
74
|
+
map.set(sourceFile, parent);
|
|
75
|
+
|
|
76
|
+
function visitor(node: ts.Node): ts.Node {
|
|
77
|
+
// if (ts.isCallExpression(node)) {
|
|
78
|
+
// return ts.createLiteral('call');
|
|
79
|
+
// }
|
|
80
|
+
var description = {
|
|
81
|
+
kind: ts.SyntaxKind[node.kind],
|
|
82
|
+
flags: <string[]>[]
|
|
83
|
+
};
|
|
84
|
+
parent[(node as any).escapedText || node.getText()] = description;
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
//console.log(ts.SyntaxKind[node.kind], (node as any).escapedText || node.getText());
|
|
88
|
+
for (var prop in ts.NodeFlags) {
|
|
89
|
+
if (typeof prop == "string") {
|
|
90
|
+
if ((node.flags & (ts.NodeFlags as any)[prop]) != 0) {
|
|
91
|
+
description.flags.push(prop);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
//console.log(node.modifiers);
|
|
96
|
+
//if (node.kind == ts.SyntaxKind.Block) {
|
|
97
|
+
// console.log(node);
|
|
98
|
+
//}
|
|
99
|
+
//console.log(node.decorators)
|
|
100
|
+
var temp = parent;
|
|
101
|
+
parent = description;
|
|
102
|
+
var result: ts.Node;
|
|
103
|
+
switch (node.kind) {
|
|
104
|
+
case ts.SyntaxKind.ExpressionStatement: case ts.SyntaxKind.FirstStatement:
|
|
105
|
+
case ts.SyntaxKind.ReturnStatement:
|
|
106
|
+
var transformed = new SuperTransformer(<ts.Statement>node, context, visitor);
|
|
107
|
+
result = transformed.result;
|
|
108
|
+
ts.visitEachChild(node, visitor, context);
|
|
109
|
+
break;
|
|
110
|
+
default:
|
|
111
|
+
result = ts.visitEachChild(node, visitor, context);
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
parent = temp;
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
return result;
|
|
118
|
+
}
|
|
119
|
+
var result = ts.visitNode(sourceFile, visitor);
|
|
120
|
+
//console.log(sourceFile.fileName);
|
|
121
|
+
//console.log(parent);
|
|
122
|
+
//console.log(JSON.stringify(parent, null, 4));
|
|
123
|
+
|
|
124
|
+
return result;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
console.log("SHOTO!");
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a006da68cee2e5948f791e89043c9fd33dcfa03a
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
C:\DDrive\Dev\Libraries\BikkyCompiler\Compiler\obj\Debug\BiscuitCompiler.njsproj.AssemblyReference.cache
|
|
2
|
+
C:\DDrive\Dev\Libraries\BikkyCompiler\Compiler\obj\Debug\BiscuitCompiler.njsproj.CoreCompileInputs.cache
|
|
3
|
+
C:\DDrive\Dev\Libraries\BikkyCompiler\Compiler\bin\Microsoft.NodejsTools.WebRole.dll
|
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bikky/compiler",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Typescript modified for compiling space squad",
|
|
5
|
+
"main": "transform.js",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "slbre"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"ts-patch": "^2.1.0"
|
|
11
|
+
},
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"@types/node": "^14.11.1",
|
|
14
|
+
"typescript": "^4.3.5"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "npx tsc --build tsconfig.build.json",
|
|
18
|
+
"clean": "npx tsc --clean tsconfig.build.json",
|
|
19
|
+
"prepare": "npx ts-patch install && npx ts-patch patch tsserverlibrary.js && npx ts-patch patch tsserver.js && npx ts-patch patch typescriptServices.js",
|
|
20
|
+
"install": "npx ts-patch install && npx ts-patch patch tsserverlibrary.js && npx ts-patch patch tsserver.js && npx ts-patch patch typescriptServices.js",
|
|
21
|
+
"uninstall": "npx ts-patch uninstall && npx ts-patch unpatch tsserverlibrary.js && npx ts-patch unpatch tsserver.js && npx ts-patch unpatch typescriptServices.js"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compileOnSave": false,
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"strict": true,
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"target": "ES2020",
|
|
7
|
+
"lib": [ "ES2020" ],
|
|
8
|
+
"types": [ "node" ],
|
|
9
|
+
"moduleResolution": "node",
|
|
10
|
+
"rootDir": "./",
|
|
11
|
+
"declaration": true,
|
|
12
|
+
"declarationMap": true,
|
|
13
|
+
"sourceMap": true,
|
|
14
|
+
"composite": true,
|
|
15
|
+
"experimentalDecorators": true
|
|
16
|
+
},
|
|
17
|
+
"include": [
|
|
18
|
+
"Libraries/"
|
|
19
|
+
]
|
|
20
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compileOnSave": false,
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"strict": true,
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"target": "ES2020",
|
|
7
|
+
"lib": [ "ES2020" ],
|
|
8
|
+
"types": [ "node" ],
|
|
9
|
+
"moduleResolution": "node",
|
|
10
|
+
"rootDir": "./",
|
|
11
|
+
"declaration": true,
|
|
12
|
+
"declarationMap": true,
|
|
13
|
+
"sourceMap": true,
|
|
14
|
+
"composite": true,
|
|
15
|
+
"experimentalDecorators": true,
|
|
16
|
+
"plugins": [
|
|
17
|
+
{ "transform": "./Transformers/MacroTransformer.js" },
|
|
18
|
+
{ "transform": "./Transformers/MixinTransformer.js" },
|
|
19
|
+
{ "transform": "./Transformers/SuperTransformer.js" },
|
|
20
|
+
{ "transform": "./Transformers/CompilerInsertions.ts", "type": "program" }
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"include": [
|
|
24
|
+
"Libraries/"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["./node_modules/typescript/lib/lib.es5.d.ts","./node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/typescript/lib/lib.es2018.d.ts","./node_modules/typescript/lib/lib.es2019.d.ts","./node_modules/typescript/lib/lib.es2020.d.ts","./node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","./node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","./node_modules/typescript/lib/lib.es2018.intl.d.ts","./node_modules/typescript/lib/lib.es2018.promise.d.ts","./node_modules/typescript/lib/lib.es2018.regexp.d.ts","./node_modules/typescript/lib/lib.es2019.array.d.ts","./node_modules/typescript/lib/lib.es2019.object.d.ts","./node_modules/typescript/lib/lib.es2019.string.d.ts","./node_modules/typescript/lib/lib.es2019.symbol.d.ts","./node_modules/typescript/lib/lib.es2019.intl.d.ts","./node_modules/typescript/lib/lib.es2020.bigint.d.ts","./node_modules/typescript/lib/lib.es2020.date.d.ts","./node_modules/typescript/lib/lib.es2020.promise.d.ts","./node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2020.string.d.ts","./node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2020.intl.d.ts","./node_modules/typescript/lib/lib.es2020.number.d.ts","./node_modules/typescript/lib/lib.esnext.intl.d.ts","./libraries/globaltypes.d.ts","./libraries/mixincode.ts","./libraries/biscuitlibraries.ts","./node_modules/@types/node/assert.d.ts","./node_modules/@types/node/globals.d.ts","./node_modules/@types/node/async_hooks.d.ts","./node_modules/@types/node/buffer.d.ts","./node_modules/@types/node/child_process.d.ts","./node_modules/@types/node/cluster.d.ts","./node_modules/@types/node/console.d.ts","./node_modules/@types/node/constants.d.ts","./node_modules/@types/node/crypto.d.ts","./node_modules/@types/node/dgram.d.ts","./node_modules/@types/node/dns.d.ts","./node_modules/@types/node/domain.d.ts","./node_modules/@types/node/events.d.ts","./node_modules/@types/node/fs.d.ts","./node_modules/@types/node/fs/promises.d.ts","./node_modules/@types/node/http.d.ts","./node_modules/@types/node/http2.d.ts","./node_modules/@types/node/https.d.ts","./node_modules/@types/node/inspector.d.ts","./node_modules/@types/node/module.d.ts","./node_modules/@types/node/net.d.ts","./node_modules/@types/node/os.d.ts","./node_modules/@types/node/path.d.ts","./node_modules/@types/node/perf_hooks.d.ts","./node_modules/@types/node/process.d.ts","./node_modules/@types/node/punycode.d.ts","./node_modules/@types/node/querystring.d.ts","./node_modules/@types/node/readline.d.ts","./node_modules/@types/node/repl.d.ts","./node_modules/@types/node/stream.d.ts","./node_modules/@types/node/string_decoder.d.ts","./node_modules/@types/node/timers.d.ts","./node_modules/@types/node/tls.d.ts","./node_modules/@types/node/trace_events.d.ts","./node_modules/@types/node/tty.d.ts","./node_modules/@types/node/url.d.ts","./node_modules/@types/node/util.d.ts","./node_modules/@types/node/v8.d.ts","./node_modules/@types/node/vm.d.ts","./node_modules/@types/node/wasi.d.ts","./node_modules/@types/node/worker_threads.d.ts","./node_modules/@types/node/zlib.d.ts","./node_modules/@types/node/globals.global.d.ts","./node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},{"version":"ed2b54ee18753f6a85714c18f281fd3249262f6436ece892afec1a8ba51ca84d","affectsGlobalScope":true},{"version":"5adc3db730f8e846ad52d8923843a7e6774cde5f4c49d54939d30e8d072299a1","signature":"86efbbbe8a01a919f1d5eb3dfff87791c998e1ed9e8773c0d7d23a1de2f3c6e8"},{"version":"19edd6e2e2d70eb28af49621792efa22a8bc633925822536510a2d0a79c455f9","signature":"fe3e2bf22218546038ab7eae863073c28552450dc1a73b0f98a8ef7cbb10f7da"},"4c2c4f53e8eedd970f8afa369d7371544fb6231bf95e659f8602e09abe74d5a5",{"version":"5540267409ab1444c73c786b8ae4caa37d5f0ea41f9255c6123338da790ce5cc","affectsGlobalScope":true},"c2b5085f47e41d6940bbc5b0d3bd7cc0037c752efb18aecd243c9cf83ad0c0b7","3143a5add0467b83150961ecd33773b561a1207aec727002aa1d70333068eb1b","9deb3a5eaf187df1428f0fee83c8c51eedb74f6da3442410bad9688e42a7e2b5","d0fc76a91c828fbe3f0be5d683273634b7b101068333ceed975a8a9ac464137b",{"version":"1a048ff164b8d9609f5de3139d4e37f6e8a82af82087ac414b9208f52ef8aac7","affectsGlobalScope":true},"3111079f3cb5f2b9c812ca3f46161562bce5bfb355e915f46ed46c41714dc1c3","db86f82fac051ae344b47e8fe7ac7990174b41db79b2b220a49dc5a47c71a9b5","b32b6b16cb0bda68199582ad6f22242d07ee75fac9b1f28a98cd838afc5eea45","4441ee4119824bfaebc49308559edd7545978f9cb41a40f115074e1031dde75f",{"version":"60693a88462d0e97900123b5bf7c73e146ce0cc94da46a61fe6775b430d2ff05","affectsGlobalScope":true},{"version":"588c69eda58b9202676ec7ca11a72c3762819b46a0ed72462c769846153c447c","affectsGlobalScope":true},"ae064ed4f855716b7ff348639ddcd6a6d354a72fae82f506608a7dc9266aa24c","92f019c55b21c939616f6a48f678e714ac7b109444cbbf23ad69310ce66ecbdc","cf0a69c71aedf2f8fe45925abd554fd3dc7301ce66d6ab7521fb8c3471c24dd8","56e6722c6013609b3e5e6ed4a8a7e01f41da6c5e3d6f0ecff3d09ef7a81414cf","139fd681eff7771a38d0c025d13c7a11c5474f6aab61e01c41511d71496df173","f614c3f61e46ccc2cb58702d5a158338ea57ee09099fde5db4cfc63ed0ce4d74","44e42ed6ec9c4451ebe89524e80ac8564e9dd0988c56e6c58f393c810730595d","d79fda68cbfb361c4ee9cd9ea169babb65887534d64017726cd01f54783d20a5","155865f5f76db0996cd5e20cc5760613ea170ee5ad594c1f3d76fcaa05382161","e92852d673c836fc64e10c38640abcd67c463456e5df55723ac699b8e6ab3a8a","4455c78d226d061b1203c7614c6c6eb5f4f9db5f00d44ff47d0112de8766fbc4",{"version":"ec369bb9d97c4dc09dd2a4093b7ca3ba69ad284831fccac8a1977785e9e38ce5","affectsGlobalScope":true},"4465a636f5f6e9665a90e30691862c9e0a3ac2edc0e66296704f10865e924f2a","9af781f03d44f5635ed7844be0ce370d9d595d4b4ec67cad88f0fac03255257e","f9fd4c3ef6de27fa0e256f4e75b61711c4be05a3399f7714621d3edc832e36b0","e49290b7a927995c0d7e6b2b9c8296284b68a9036d9966531de65185269258d7","c3689f70ce7563c2299f2dcb3c72efdf6f87ae510e7456fa6223c767d0ca99fc","874ca809b79276460011480a2829f4c8d4db29416dd411f71efbf8f497f0ac09","6c903bceaf3f3bc04f2d4c7dcd89ce9fb148b3ba0a5f5408d8f6de2b7eecc7ea","504d049d9e550a65466b73ca39da6469ab41786074ea1d16d37c8853f9f6ab2e","23a28f834a078986bbf58f4e3705956983ff81c3c2493f3db3e5f0e8a9507779","4febdf7f3ec92706c58e0b4e8159cd6de718284ef384260b07c9641c13fc70ce",{"version":"eabefc2999c1489cf870e0c85af908900462fa245822d9a4616780a1a129945d","affectsGlobalScope":true},"7335933d9f30dcfd2c4b6080a8b78e81912a7fcefb1dafccb67ca4cb4b3ac23d","a6bfe9de9adef749010c118104b071d14943802ff0614732b47ce4f1c3e383cd","4c3d0e10396646db4a1e917fb852077ee77ae62e512913bef9cccc2bb0f8bd0e","3b220849d58140dcc6718f5b52dcd29fdb79c45bc28f561cbd29eb1cac6cce13","0ee22fce41f7417a24c808d266e91b850629113c104713a35854393d55994beb","22d1b1d965baba05766613e2e6c753bb005d4386c448cafd72c309ba689e8c24",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"c6c0bd221bb1e94768e94218f8298e47633495529d60cae7d8da9374247a1cf5"],"options":{"composite":true,"declaration":true,"declarationMap":true,"experimentalDecorators":true,"module":99,"rootDir":"./","sourceMap":true,"strict":true,"target":7},"fileIdsList":[[42,43],[45],[47],[48,53],[49,57,58,65,74],[49,50,57,65],[51,81],[52,53,58,66],[53,74],[54,55,57,65],[55],[56,57],[57],[57,58,59,74,80],[58,59],[60,65,74,80],[57,58,60,61,65,74,77,80],[60,62,74,77,80],[45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87],[57,63],[64,80],[55,57,65,74],[66],[67],[47,68],[69,79],[70],[71],[57,72],[72,73,81,83],[57,74],[75],[76],[65,74,77],[78],[65,79],[71,80],[81],[74,82],[83],[84],[57,59,74,80,83,85],[74,86],[43]],"referencedMap":[[44,1],[45,2],[47,3],[48,4],[49,5],[50,6],[51,7],[52,8],[53,9],[54,10],[55,11],[56,12],[57,13],[58,14],[59,15],[60,16],[61,17],[62,18],[88,19],[63,20],[64,21],[65,22],[66,23],[67,24],[68,25],[69,26],[70,27],[71,28],[72,29],[73,30],[74,31],[75,32],[76,33],[77,34],[78,35],[79,36],[80,37],[81,38],[82,39],[83,40],[84,41],[85,42],[86,43]],"exportedModulesMap":[[44,44],[45,2],[47,3],[48,4],[49,5],[50,6],[51,7],[52,8],[53,9],[54,10],[55,11],[56,12],[57,13],[58,14],[59,15],[60,16],[61,17],[62,18],[88,19],[63,20],[64,21],[65,22],[66,23],[67,24],[68,25],[69,26],[70,27],[71,28],[72,29],[73,30],[74,31],[75,32],[76,33],[77,34],[78,35],[79,36],[80,37],[81,38],[82,39],[83,40],[84,41],[85,42],[86,43]],"semanticDiagnosticsPerFile":[44,42,43,45,47,48,49,50,51,52,53,54,55,56,57,58,59,46,87,60,61,62,88,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,9,8,2,10,11,12,13,14,15,16,17,3,4,21,18,19,20,22,23,24,5,25,26,27,28,6,32,29,30,31,33,7,34,39,40,35,36,37,38,1,41],"latestChangedDtsFile":"./Libraries/BiscuitLibraries.d.ts"},"version":"4.9.4"}
|