@bikky/compiler 0.0.11 → 0.0.13

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.
@@ -1 +1 @@
1
- {"version":3,"file":"MixinTransformer.d.ts","sourceRoot":"","sources":["MixinTransformer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAiVjC,MAAM,CAAC,OAAO,WAAW,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,aAC7C,GAAG,qBAAqB,kBAEpB,GAAG,UAAU,aAQlC"}
1
+ {"version":3,"file":"MixinTransformer.d.ts","sourceRoot":"","sources":["MixinTransformer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAiKjC,MAAM,CAAC,OAAO,WAAW,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,aAC7C,GAAG,qBAAqB,kBAEpB,GAAG,UAAU,aAKlC"}
@@ -26,7 +26,6 @@ let source;
26
26
  let numDeclarations = 0;
27
27
  Class_1.Class.onClass((mixClass) => {
28
28
  let isMixin = false;
29
- ts.SyntaxKind.ClassDeclaration;
30
29
  console.log(`Found class: ${mixClass.name.text}, decorators: ${mixClass.decorators.map((e) => e.name.text)}`);
31
30
  // console.log(mixClass.base);
32
31
  // console.log(`${((mixClass.base as any).decorators ?? []).map((e: any)=>e.getText())}`);
@@ -100,220 +99,46 @@ Class_1.Class.onClass((mixClass) => {
100
99
  });
101
100
  return [declareSuperSymbol, mixClass.update()];
102
101
  });
103
- /*
104
-
105
- var crawl = (node: ts.Node): ts.Node => {
106
- if (ts.canHaveDecorators(node)) {
107
- console.log("DECORATOR?");
108
- let text = getNodeText(node, this.sourceFile).split("\n")[0].replace("\r", "");
109
- console.log(node.kind, text);
110
- if (text.includes("implements")) {
111
- console.log(node);
112
- }
113
- console.log(ts.getDecorators(node));
114
- }
115
- // if (node.pos > 0 && node.end < this.sourceFile.end) {
116
- // console.log(node.getText(this.sourceFile));
117
- // }
118
- if (ts.isDecorator(node)) {
119
- // console.log("FOUND DECORATOR");
120
- // console.log(getNodeText(node, this.sourceFile));
121
- }
122
- else if (ts.isClassDeclaration(node) || ts.isClassExpression(node)) {
123
- var Class = ClassDeclaration.from(<ts.ClassDeclaration>node);
124
- // console.log("FOUND CLASS");
125
- // console.log(getNodeText(node, this.sourceFile).split("\n")[0].replace("\r", ""));
126
- // if (ts.isClassExpression(node)) {
127
- // console.log(node);
128
- // console.log(ts.getModifiers(node));
129
- // console.log(node.modifiers);
130
- // }
131
- if (Class.hasDecorator("mixin")) {
132
- console.log("FOUND ONE", Class.name);
133
- var name = Class.getName().text;
134
- var symbolName = ID("Super_" + declarations.length).toAST();
135
- var declareSuperSymbol = (new VariableDeclaration(symbolName))
136
- .setValue(
137
- CALL(ID("Symbol"), LITERAL("super_"+name)).toAST()
138
- ).make(context);
139
- declarations.push(<ts.Statement>declareSuperSymbol);
140
- var test = MixClass(this.context, <ts.ClassDeclaration>node, symbolName);
141
- return test;
142
- }
143
- }
144
- else {
145
- // let text = getNodeText(node, this.sourceFile).substring(0, 50);
146
- // if (text.includes("class")) {
147
- // console.log("FOUND OTHER", node.kind);
148
- // console.log(getNodeText(node, this.sourceFile).substring(0, 50));
149
- // console.log(node);
150
- // }
151
- }
152
- return ts.visitEachChild(node, crawl, this.context);
102
+ //Resolve ERROR_INFO macro:
103
+ Crawler_1.Crawler.Register((node) => {
104
+ if (ts.isIdentifier(node) && node.text === "ERROR_INFO") {
105
+ let arg = node;
106
+ let parent = node.parent;
107
+ while (!ts.isCallExpression(parent) || !parent.arguments.includes(arg)) {
108
+ arg = parent;
109
+ parent = arg.parent;
110
+ if (ts.isSourceFile(parent))
111
+ return false;
153
112
  }
154
-
155
- */
156
- // function MixClass(context: ts.TransformationContext, RawClass: ts.ClassDeclaration, symbolName: ts.Identifier): ts.ClassDeclaration {
157
- // //Add symbol definition to the top of the file.
158
- // var computedSymbolName = context.factory.createComputedPropertyName(symbolName);
159
- //
160
- // var Class = ClassDeclaration.from(RawClass);
161
- // if (!Class.hasExtends()) {
162
- // logError(RawClass, "Mixins need to extend from something");
163
- // return RawClass;
164
- // }
165
- // //Remove Decorator.
166
- // Class.removeDecorator("mixin");
167
- // console.log("FOUND MIXIN CLASS", Class.getName());
168
- //
169
- // //Store the symbol statically on the class so we can access it in the mixin maker.
170
- // var declareStaticSymbol = (new PropertyDeclaration(ID("Super").toAST())
171
- // .addModifier(ts.factory.createModifier(ts.SyntaxKind.StaticKeyword))
172
- // .setValue(symbolName)
173
- // );
174
- // Class.addMemberAtStart(declareStaticSymbol.make(context));
175
- //
176
- // //Can't add prototype manually because it will override the prototype provided by MixinCode.ts (because the constructor
177
- // // runs after the mixin code, and class variables are assigned in the constructor).
178
- // //var declareSuperPrototype = (new PropertyDeclaration(computedSymbolName))
179
- // // .setValue(Class.getExtends()!);
180
- // //Class.addMemberAtStart(declareSuperPrototype.make(context));
181
- //
182
- // Class.setExtends(CALL(ID(mixMakerName), Class.getExtends()!).toAST());
183
- //
184
- // var newRawClass = Class.update(context)!;
185
- //
186
- // newRawClass = ts.visitNode(newRawClass, ReplaceSuper(Class.getName(), symbolName, context)) as ts.ClassDeclaration;
187
- //
188
- // return newRawClass;
189
- // }
190
- //
191
- // //Change all references in member functions of super. to this[Super].
192
- // function ReplaceSuper(classID: ts.Identifier, computedSuperID: ts.Identifier, context: ts.TransformationContext) {
193
- // var className = classID.text;
194
- // return (node: ts.Node) => {
195
- // return ClassDeclaration.eachContextualNode(<ts.ClassDeclaration>node, (node: ts.Node) => {
196
- // //check to see if node chain represents this.method().
197
- // if (ts.isCallExpression(node) && ts.isPropertyAccessExpression(node.expression) && node.expression.expression.kind === ts.SyntaxKind.SuperKeyword) {
198
- // var f = context.factory;
199
- // var access = METHOD_CALL(THIS().LOOKUP(computedSuperID), ID(node.expression.name.text), THIS(), ...Array.from(node.arguments));
200
- // //DOT(ID(node.expression.name.text))
201
- // // .DOT(CALL(ID("call"), THIS(), ...Array.from(node.arguments)));
202
- // // var access = (new AccessExpression(context)).this().access(computedSuperID)
203
- // // /*.access(f.createIdentifier("prototype"))*/.access(f.createIdentifier(node.expression.name.text)).access(
204
- // // (new CallExpression(f.createIdentifier("call")))
205
- // // .addArgument(f.createThis())
206
- // // .addArgument(...Array.from(node.arguments)
207
- // // ).make(context)
208
- // // );
209
- // //this[super].prototype.method.call(this, arguments);
210
- // // return access.make();
211
- // return access.toAST();
212
- // }
213
- // else {
214
- // return node;
215
- // }
216
- // }, context);
217
- // }
218
- // }
219
- //
220
- // /**
221
- // *
222
- // * Searching stuff!
223
- // * 1) Find classes defined with the @mixin decorator.
224
- // *
225
- // */
226
- //
227
- // class MixinSource {
228
- // sourceFile: ts.SourceFile;
229
- // context!: ts.TransformationContext;
230
- // constructor(sourceFile: ts.SourceFile) {
231
- // this.sourceFile = sourceFile;
232
- // }
233
- //
234
- // //Look for a class with the @mixin decorator!
235
- // update(context: ts.TransformationContext) {
236
- // this.context = context;
237
- // var declarations = <ts.Statement[]>[];
238
- //
239
- // var crawl = (node: ts.Node): ts.Node => {
240
- // if (ts.canHaveDecorators(node)) {
241
- // console.log("DECORATOR?");
242
- // let text = getNodeText(node, this.sourceFile).split("\n")[0].replace("\r", "");
243
- // console.log(node.kind, text);
244
- // if (text.includes("implements")) {
245
- // console.log(node);
246
- // }
247
- // console.log(ts.getDecorators(node));
248
- // }
249
- // // if (node.pos > 0 && node.end < this.sourceFile.end) {
250
- // // console.log(node.getText(this.sourceFile));
251
- // // }
252
- // if (ts.isDecorator(node)) {
253
- // // console.log("FOUND DECORATOR");
254
- // // console.log(getNodeText(node, this.sourceFile));
255
- // }
256
- // else if (ts.isClassDeclaration(node) || ts.isClassExpression(node)) {
257
- // var Class = ClassDeclaration.from(<ts.ClassDeclaration>node);
258
- // // console.log("FOUND CLASS");
259
- // // console.log(getNodeText(node, this.sourceFile).split("\n")[0].replace("\r", ""));
260
- // // if (ts.isClassExpression(node)) {
261
- // // console.log(node);
262
- // // console.log(ts.getModifiers(node));
263
- // // console.log(node.modifiers);
264
- // // }
265
- // if (Class.hasDecorator("mixin")) {
266
- // console.log("FOUND ONE", Class.name);
267
- // var name = Class.getName().text;
268
- // var symbolName = ID("Super_" + declarations.length).toAST();
269
- // var declareSuperSymbol = (new VariableDeclaration(symbolName))
270
- // .setValue(
271
- // CALL(ID("Symbol"), LITERAL("super_"+name)).toAST()
272
- // ).make(context);
273
- // declarations.push(<ts.Statement>declareSuperSymbol);
274
- // var test = MixClass(this.context, <ts.ClassDeclaration>node, symbolName);
275
- // return test;
276
- // }
277
- // }
278
- // else {
279
- // // let text = getNodeText(node, this.sourceFile).substring(0, 50);
280
- // // if (text.includes("class")) {
281
- // // console.log("FOUND OTHER", node.kind);
282
- // // console.log(getNodeText(node, this.sourceFile).substring(0, 50));
283
- // // console.log(node);
284
- // // }
285
- // }
286
- // return ts.visitEachChild(node, crawl, this.context);
287
- // }
288
- //
289
- // var source = ts.visitNode(this.sourceFile, crawl);
290
- //
291
- // var file = SourceFile.from(source as ts.SourceFile);
292
- // for (var declaration of declarations) {
293
- // file.insertUnderImports(declaration);
294
- // }
295
- // var result = file.update(context);
296
- // this.sourceFile = result;
297
- // if (declarations.length > 0) {
298
- // console.log("Updated file", file.original?.fileName, "with mixin data");
299
- // // console.log("~~~~~~~~~~~");
300
- // // console.log(Printer.printNode(result, this.sourceFile));
301
- // // console.log("~~~~~~~~~~~");
302
- // }
303
- // return result;
304
- // }
305
- // }
306
- //
307
- // console.log("MIXINS ENABLED lalala");
113
+ return true;
114
+ }
115
+ return false;
116
+ }, (node) => {
117
+ if (ts.isIdentifier(node) && node.text === "ERROR_INFO") {
118
+ let thisArg = node;
119
+ let parent = node.parent;
120
+ while (!ts.isCallExpression(parent) || !parent.arguments.includes(thisArg)) {
121
+ thisArg = parent;
122
+ parent = thisArg.parent;
123
+ if (ts.isSourceFile(parent))
124
+ return node;
125
+ }
126
+ let text = [];
127
+ for (let arg of parent.arguments) {
128
+ if (arg === thisArg)
129
+ continue;
130
+ text.push(ts.factory.createStringLiteral(arg.getText()));
131
+ }
132
+ return ts.factory.createArrayLiteralExpression(text);
133
+ }
134
+ return node;
135
+ });
308
136
  function default_1(program, pluginOptions) {
309
137
  return (context) => {
310
138
  Crawler_1.Crawler.setContext(context);
311
139
  return (sourceFile) => {
312
140
  numDeclarations = 0;
313
141
  return Crawler_1.Crawler.Crawl(sourceFile);
314
- // console.log(sourceFile.fileName);
315
- // return (new MixinSource(sourceFile)).update(context);
316
- //return sourceFile;
317
142
  };
318
143
  };
319
144
  }
@@ -1,3 +1 @@
1
- import * as ts from "typescript";
2
- export default function (program: ts.Program, pluginOptions: {}): (context: ts.TransformationContext) => (sourceFile: ts.SourceFile) => ts.Node;
3
1
  //# sourceMappingURL=SuperTransformer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SuperTransformer.d.ts","sourceRoot":"","sources":["SuperTransformer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAsEjC,MAAM,CAAC,OAAO,WAAW,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,aAE7C,GAAG,qBAAqB,kBAEpB,GAAG,UAAU,aA0ElC"}
1
+ {"version":3,"file":"SuperTransformer.d.ts","sourceRoot":"","sources":["SuperTransformer.ts"],"names":[],"mappings":""}
@@ -1,139 +1,155 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- // transformer1-module
4
- const ts = require("typescript");
5
- const typescript_1 = require("typescript");
6
- const ASTHelper_1 = require("../Source/ASTHelper");
7
- const ASTBuilder_1 = require("../Source/ASTBuilder");
8
- class SuperTransformer {
9
- constructor(line, context, iter) {
10
- this.has_super = false;
11
- this.iter = iter;
12
- this.context = context;
13
- //TODO: Check that this is OK.
14
- this.result = this.find_super(line);
15
- if (this.has_super) {
16
- const f = ts.factory;
17
- ts.createSourceFile("SuperTransformer.ts", `
18
- `, typescript_1.ScriptTarget.ES5, true, typescript_1.ScriptKind.TS);
19
- this.result = (0, ASTBuilder_1.IF)((0, ASTBuilder_1.SUPER)().DOT((0, ASTBuilder_1.ID)(this.identifier)).OP("!==", (0, ASTBuilder_1.LITERAL)("undefined")).toAST(), this.result);
20
- }
21
- }
22
- find_identifier(node) {
23
- if (node.kind == ts.SyntaxKind.Identifier) {
24
- if (node.getText() != "_super") {
25
- this.identifier = node.getText();
26
- }
27
- }
28
- }
29
- //Change the _super call over to super.
30
- find_super(node) {
31
- var result;
32
- if (ts.isPropertyAccessExpression(node)) {
33
- var has_super = false;
34
- var id;
35
- result = ts.visitEachChild(node, (node) => {
36
- if (ts.isIdentifier(node)) {
37
- if (node.text == "_super") {
38
- has_super = true;
39
- let result = ts.factory.createIdentifier("super");
40
- //ts.setOriginalNode(result, ts.getOriginalNode(node));
41
- return result;
42
- }
43
- else {
44
- id = node.text;
45
- }
46
- }
47
- return node;
48
- }, this.context);
49
- if (has_super && id) {
50
- this.has_super = has_super;
51
- this.identifier = id;
52
- }
53
- return result;
54
- }
55
- if (ts.isBlock(node) || ts.isCaseBlock(node) || ts.isModuleBlock(node)) {
56
- return this.iter(node);
57
- }
58
- result = ts.visitEachChild(node, this.find_super.bind(this), this.context);
59
- return result;
60
- }
61
- }
62
- function default_1(program, pluginOptions) {
63
- // let checker = program.getTypeChecker();
64
- return (context) => {
65
- (0, ASTHelper_1.setContext)(context);
66
- return (sourceFile) => {
67
- var parent = {
68
- kind: ts.SyntaxKind[sourceFile.kind],
69
- flags: []
70
- };
71
- var map = new Map();
72
- map.set(sourceFile, parent);
73
- function visitor(node) {
74
- console.log(node);
75
- if (!node.parent)
76
- node.parent = sourceFile;
77
- // if (ts.isCallExpression(node)) {
78
- // return ts.createLiteral('call');
79
- // }
80
- var description = {
81
- kind: ts.SyntaxKind[node.kind],
82
- flags: []
83
- };
84
- parent[node.escapedText || node.getText()] = description;
85
- //console.log(ts.SyntaxKind[node.kind], (node as any).escapedText || node.getText());
86
- for (var prop in ts.NodeFlags) {
87
- if (typeof prop == "string") {
88
- if ((node.flags & ts.NodeFlags[prop]) != 0) {
89
- description.flags.push(prop);
90
- }
91
- }
92
- }
93
- //console.log(node.modifiers);
94
- //if (node.kind == ts.SyntaxKind.Block) {
95
- // console.log(node);
96
- //}
97
- //console.log(node.decorators)
98
- var temp = parent;
99
- parent = description;
100
- var result;
101
- switch (node.kind) {
102
- case ts.SyntaxKind.ExpressionStatement:
103
- case ts.SyntaxKind.FirstStatement:
104
- case ts.SyntaxKind.ReturnStatement:
105
- var transformed = new SuperTransformer(node, context, visitor);
106
- result = transformed.result;
107
- ts.visitEachChild(node, visitor, context);
108
- break;
109
- default:
110
- result = ts.visitEachChild(node, visitor, context);
111
- break;
112
- }
113
- parent = temp;
114
- if (ts.isClassDeclaration(node)) {
115
- ASTHelper_1.ClassDeclaration.eachContextualNode(node, (node) => {
116
- // if (ts.isFunctionLike(node)) {
117
- // ts.visitEachChild(node);
118
- // }
119
- // if (ts.)
120
- return node;
121
- }, context);
122
- }
123
- else {
124
- ts.visitEachChild(node, visitor, context);
125
- }
126
- return result;
127
- }
128
- var result = ts.visitNode(sourceFile, visitor);
129
- //console.log(sourceFile.fileName);
130
- //console.log(parent);
131
- //console.log(JSON.stringify(parent, null, 4));
132
- return result;
133
- };
134
- };
135
- }
136
- exports.default = default_1;
137
- console.log("_SUPER ENABLED");
138
- console.log("SHOTO!");
2
+ // // transformer1-module
3
+ // import * as ts from "typescript";
4
+ // import {ScriptKind, ScriptTarget} from "typescript";
5
+ // import {ClassDeclaration, setContext} from "../Source/ASTHelper";
6
+ // import {ID, IF, LITERAL, SUPER} from "../Source/ASTBuilder";
7
+ //
8
+ // class SuperTransformer {
9
+ // has_super = false;
10
+ // identifier!: string;
11
+ // context: ts.TransformationContext;
12
+ // result: ts.Statement;
13
+ // iter: (node: ts.Node) => ts.Node;
14
+ // constructor(line: ts.Statement, context: ts.TransformationContext, iter: (node: ts.Node) => ts.Node) {
15
+ // this.iter = iter;
16
+ // this.context = context;
17
+ // //TODO: Check that this is OK.
18
+ // this.result = <ts.Statement>this.find_super(line);
19
+ // if (this.has_super) {
20
+ // const f = ts.factory;
21
+ // ts.createSourceFile("SuperTransformer.ts", `
22
+ // `, ScriptTarget.ES5, true, ScriptKind.TS)
23
+ //
24
+ // this.result = IF(
25
+ // SUPER().DOT(ID(this.identifier)).OP("!==", LITERAL("undefined")).toAST(),
26
+ // this.result
27
+ // );
28
+ // }
29
+ // }
30
+ //
31
+ // find_identifier(node: ts.Node) {
32
+ // if (node.kind == ts.SyntaxKind.Identifier) {
33
+ // if (node.getText() != "_super") {
34
+ // this.identifier = node.getText();
35
+ // }
36
+ // }
37
+ // }
38
+ //
39
+ // //Change the _super call over to super.
40
+ // find_super(node: ts.Node) {
41
+ // var result: ts.Node;
42
+ // if (ts.isPropertyAccessExpression(node)) {
43
+ // var has_super = false;
44
+ // var id: string | undefined;
45
+ // result = ts.visitEachChild(node, (node) => {
46
+ // if (ts.isIdentifier(node)) {
47
+ // if (node.text == "_super") {
48
+ // has_super = true;
49
+ // let result: ts.Node = ts.factory.createIdentifier("super");
50
+ // //ts.setOriginalNode(result, ts.getOriginalNode(node));
51
+ // return result;
52
+ // }
53
+ // else {
54
+ // id = node.text;
55
+ // }
56
+ // }
57
+ // return node;
58
+ // }, this.context);
59
+ // if (has_super && id) {
60
+ // this.has_super = has_super;
61
+ // this.identifier = id;
62
+ // }
63
+ // return result;
64
+ // }
65
+ // if (ts.isBlock(node) || ts.isCaseBlock(node) || ts.isModuleBlock(node)) {
66
+ // return this.iter(node);
67
+ // }
68
+ // result = ts.visitEachChild(node, this.find_super.bind(this), this.context);
69
+ // return result;
70
+ // }
71
+ // }
72
+ //
73
+ // export default function (program: ts.Program, pluginOptions: {}) {
74
+ // // let checker = program.getTypeChecker();
75
+ // return (context: ts.TransformationContext) => {
76
+ // setContext(context);
77
+ // return (sourceFile: ts.SourceFile) => {
78
+ // var parent = <any>{
79
+ // kind: ts.SyntaxKind[sourceFile.kind],
80
+ // flags: []
81
+ // };
82
+ // var map = new Map<ts.Node, any>();
83
+ // map.set(sourceFile, parent);
84
+ //
85
+ // function visitor(node: ts.Node): ts.Node {
86
+ // console.log(node);
87
+ // if (!node.parent) (node as any).parent = sourceFile;
88
+ // // if (ts.isCallExpression(node)) {
89
+ // // return ts.createLiteral('call');
90
+ // // }
91
+ // var description = {
92
+ // kind: ts.SyntaxKind[node.kind],
93
+ // flags: <string[]>[]
94
+ // };
95
+ // parent[(node as any).escapedText || node.getText()] = description;
96
+ //
97
+ //
98
+ // //console.log(ts.SyntaxKind[node.kind], (node as any).escapedText || node.getText());
99
+ // for (var prop in ts.NodeFlags) {
100
+ // if (typeof prop == "string") {
101
+ // if ((node.flags & (ts.NodeFlags as any)[prop]) != 0) {
102
+ // description.flags.push(prop);
103
+ // }
104
+ // }
105
+ // }
106
+ // //console.log(node.modifiers);
107
+ // //if (node.kind == ts.SyntaxKind.Block) {
108
+ // // console.log(node);
109
+ // //}
110
+ // //console.log(node.decorators)
111
+ // var temp = parent;
112
+ // parent = description;
113
+ // var result: ts.Node;
114
+ // switch (node.kind) {
115
+ // case ts.SyntaxKind.ExpressionStatement: case ts.SyntaxKind.FirstStatement:
116
+ // case ts.SyntaxKind.ReturnStatement:
117
+ // var transformed = new SuperTransformer(<ts.Statement>node, context, visitor);
118
+ // result = transformed.result;
119
+ // ts.visitEachChild(node, visitor, context);
120
+ // break;
121
+ // default:
122
+ // result = ts.visitEachChild(node, visitor, context);
123
+ // break;
124
+ // }
125
+ // parent = temp;
126
+ //
127
+ // if (ts.isClassDeclaration(node)) {
128
+ // ClassDeclaration.eachContextualNode(node, (node) => {
129
+ // // if (ts.isFunctionLike(node)) {
130
+ // // ts.visitEachChild(node);
131
+ // // }
132
+ // // if (ts.)
133
+ // return node;
134
+ // }, context);
135
+ // }
136
+ // else {
137
+ // ts.visitEachChild(node, visitor, context);
138
+ // }
139
+ //
140
+ //
141
+ // return result;
142
+ // }
143
+ // var result = ts.visitNode(sourceFile, visitor);
144
+ // //console.log(sourceFile.fileName);
145
+ // //console.log(parent);
146
+ // //console.log(JSON.stringify(parent, null, 4));
147
+ //
148
+ // return result;
149
+ // };
150
+ // };
151
+ // }
152
+ // console.log("_SUPER ENABLED");
153
+ //
154
+ // console.log("SHOTO!");
139
155
  //# sourceMappingURL=SuperTransformer.js.map
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@bikky/compiler",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "Typescript modified for compiling space squad",
5
5
  "main": "./Libraries/BiscuitLibraries.js",
6
+ "type": "module",
6
7
  "author": {
7
8
  "name": "slbre"
8
9
  },