@bikky/compiler 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/Libraries/MixinCode.d.ts +4 -4
  2. package/Libraries/MixinCode.d.ts.map +1 -1
  3. package/Source/ASTHelper.d.ts +74 -0
  4. package/Source/ASTHelper.d.ts.map +1 -0
  5. package/Source/ASTHelper.js +16 -30
  6. package/Transformers/CompilerInsertions.d.ts +8 -0
  7. package/Transformers/CompilerInsertions.d.ts.map +1 -0
  8. package/Transformers/CompilerInsertions.js +12 -0
  9. package/Transformers/MacroTransformer.d.ts +3 -0
  10. package/Transformers/MacroTransformer.d.ts.map +1 -0
  11. package/Transformers/MacroTransformer.js +3 -6
  12. package/Transformers/MixinTransformer.d.ts +4 -0
  13. package/Transformers/MixinTransformer.d.ts.map +1 -0
  14. package/Transformers/MixinTransformer.js +18 -22
  15. package/Transformers/SuperTransform.js +2 -5
  16. package/obj/Debug/BiscuitCompiler.njsproj.AssemblyReference.cache +0 -0
  17. package/package.json +4 -4
  18. package/tsconfig.build.json +3 -2
  19. package/tsconfig.build.tsbuildinfo +1 -0
  20. package/tsconfig.json +1 -4
  21. package/BiscuitCompiler.njsproj +0 -89
  22. package/BiscuitCompiler.njsproj.user +0 -7
  23. package/Libraries/BiscuitLibraries.js.map +0 -1
  24. package/Libraries/BiscuitLibraries.ts +0 -2
  25. package/Libraries/MixinCode.js.map +0 -1
  26. package/Libraries/MixinCode.ts +0 -125
  27. package/Source/ASTHelper.js.map +0 -1
  28. package/Source/ASTHelper.ts +0 -373
  29. package/Transformers/CompilerInsertions.ts +0 -21
  30. package/Transformers/MacroTransformer.js.map +0 -1
  31. package/Transformers/MacroTransformer.ts +0 -304
  32. package/Transformers/MixinTransformer.js.map +0 -1
  33. package/Transformers/MixinTransformer.ts +0 -151
  34. package/Transformers/SuperTransform.js.map +0 -1
  35. package/Transformers/SuperTransform.ts +0 -129
@@ -1,9 +1,9 @@
1
- type GetConstraints<Extras> = Extras extends (Function & {
1
+ declare type GetConstraints<Extras> = Extras extends (Function & {
2
2
  prototype: infer Constraints;
3
3
  })[] ? Constraints : never;
4
- type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;
5
- type AllConstraints<Super, Constraints> = UnionToIntersection<Constraints> extends never ? Super : Super & UnionToIntersection<Constraints>;
6
- type Class<T> = (Function & {
4
+ declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;
5
+ declare type AllConstraints<Super, Constraints> = UnionToIntersection<Constraints> extends never ? Super : Super & UnionToIntersection<Constraints>;
6
+ declare type Class<T> = (Function & {
7
7
  prototype: T;
8
8
  });
9
9
  export declare function makeMixerFoo<Mixin extends Object, Super extends Object, Extras extends Class<any>[]>(mixin: Class<Mixin>, common: Class<Super>, ...constraints: Extras): <Core extends AllConstraints<Super, GetConstraints<Extras>>>(core: Function & {
@@ -1 +1 @@
1
- {"version":3,"file":"MixinCode.d.ts","sourceRoot":"","sources":["MixinCode.ts"],"names":[],"mappings":"AAiBA,KAAK,cAAc,CAAC,MAAM,IAAI,MAAM,SAAS,CAAC,QAAQ,GAAG;IAAE,SAAS,EAAE,MAAM,WAAW,CAAA;CAAE,CAAC,EAAE,GAAG,WAAW,GAAG,KAAK,CAAC;AACnH,KAAK,mBAAmB,CAAC,CAAC,IACzB,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;AACpF,KAAK,cAAc,CAAC,KAAK,EAAE,WAAW,IAAI,mBAAmB,CAAC,WAAW,CAAC,SAAS,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC;AAE5I,KAAK,KAAK,CAAC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AE,MAAM,SAAS,KAAK,CAAC,GAAG,CAAC,EAAE,EAClG,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,GAAG,WAAW,EAAE,MAAM;;eA+DhD,MAAM,QAAQ,MAAM,QAAQ,GAAG,aAAa,GAAG,kBAEjE;AAED,wBAAgB,YAAY,CAAC,IAAI,SAAS,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,QAanE"}
@@ -0,0 +1,74 @@
1
+ import * as ts from "typescript";
2
+ export declare function Identifier(context: ts.TransformationContext, name: string): ts.Identifier;
3
+ export declare function StringLiteral(context: ts.TransformationContext, name: string): ts.StringLiteral;
4
+ export declare function StaticModifier(context: ts.TransformationContext): ts.Modifier;
5
+ export interface fromable {
6
+ from: (param: any) => any;
7
+ }
8
+ export declare class NamedExpression {
9
+ name: ts.Identifier;
10
+ constructor(name: ts.Identifier);
11
+ getName(): ts.Identifier;
12
+ rename(name: ts.Identifier): this;
13
+ }
14
+ export declare class VariableDeclaration extends NamedExpression {
15
+ modifiers?: ts.Modifier[];
16
+ value?: ts.Expression;
17
+ setValue(value: ts.Expression): this;
18
+ addModifier(modifier: ts.Modifier): this;
19
+ make(context: ts.TransformationContext): ts.Node;
20
+ }
21
+ export declare module VariableDeclaration {
22
+ function from(variable: ts.VariableDeclaration): VariableDeclaration;
23
+ }
24
+ export declare class PropertyDeclaration extends VariableDeclaration {
25
+ constructor(name: ts.Identifier | ts.ComputedPropertyName);
26
+ make(context: ts.TransformationContext): ts.PropertyDeclaration;
27
+ }
28
+ export declare module PropertyDeclaration {
29
+ function from(variable: ts.PropertyDeclaration | ts.VariableDeclaration): PropertyDeclaration;
30
+ }
31
+ export declare class CallExpression extends NamedExpression {
32
+ arguments: ts.Expression[];
33
+ addArgument(...arg: ts.Expression[]): this;
34
+ make(context: ts.TransformationContext): ts.CallExpression;
35
+ }
36
+ export declare class AccessExpression {
37
+ start: ts.Expression | ts.Identifier;
38
+ chain: ts.AccessExpression;
39
+ context: ts.TransformationContext;
40
+ constructor(context: ts.TransformationContext);
41
+ this(): this;
42
+ access(node: ts.Expression | ts.Identifier | ts.ComputedPropertyName): this;
43
+ make(): ts.AccessExpression;
44
+ }
45
+ export declare class ClassDeclaration extends NamedExpression {
46
+ original?: ts.ClassDeclaration;
47
+ decorators: ts.Decorator[];
48
+ extends: ts.Expression | undefined;
49
+ members: (ts.ClassElement)[];
50
+ static from(oldClass: ts.ClassDeclaration): ClassDeclaration;
51
+ addMemberAtStart(member: ts.ClassElement): this;
52
+ addMember(member: ts.ClassElement): this;
53
+ hasDecorator(identifier: string | ts.Identifier): boolean;
54
+ removeDecorator(identifier: string | ts.Identifier): this;
55
+ hasExtends(): boolean;
56
+ getExtends(): ts.Expression | undefined;
57
+ setExtends(Extends: ts.Expression | undefined): this;
58
+ static eachContextualNode(Class: ts.ClassDeclaration, foo: ts.Visitor, context: ts.TransformationContext): ts.ClassDeclaration;
59
+ update(context: ts.TransformationContext): ts.ClassDeclaration | undefined;
60
+ }
61
+ export declare class SourceFile {
62
+ original?: ts.SourceFile;
63
+ statements: ts.Statement[];
64
+ static from(oldfile: ts.SourceFile): SourceFile;
65
+ replaceNode(oldNode: ts.Statement, newNode: ts.Statement): this;
66
+ insertUnderImports(node: ts.Statement): this;
67
+ update(context: ts.TransformationContext): ts.SourceFile;
68
+ }
69
+ export declare function logError(node: ts.Node, error: string): undefined;
70
+ export declare module Printer {
71
+ function printNode(node: ts.Node, sourceFile: ts.SourceFile): string;
72
+ function printNodeFirstLine(node: ts.Node, sourceFile: ts.SourceFile): string;
73
+ }
74
+ //# sourceMappingURL=ASTHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ASTHelper.d.ts","sourceRoot":"","sources":["ASTHelper.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,wBAAgB,UAAU,CAAC,OAAO,EAAE,EAAE,C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AO,EAAE,OAAO,EAAE,EAAE,CAAC,qBAAqB;IAsCxG,MAAM,CAAC,OAAO,EAAE,EAAE,CAAC,qBAAqB;CA0CxC;AAED,qBAAa,UAAU;IACtB,QAAQ,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC;IACzB,UAAU,EAAE,EAAE,CAAC,SAAS,EAAE,CAAM;IAEhC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU;IAOlC,WAAW,CAAC,OAAO,EAAE,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE,CAAC,SAAS;IASxD,kBAAkB,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS;IAUrC,MAAM,CAAC,OAAO,EAAE,EAAE,CAAC,qBAAqB;CASxC;AAGD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,CAahE;AAED,sBAAc,OAAO,CAAC;IAGrB,SAAgB,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,CAAC,UAAU,UAEjE;IAED,SAAgB,kBAAkB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,CAAC,UAAU,UAM1E;CACD"}
@@ -1,20 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Printer = exports.logError = exports.SourceFile = exports.ClassDeclaration = exports.AccessExpression = exports.CallExpression = exports.PropertyDeclaration = exports.VariableDeclaration = exports.NamedExpression = exports.StaticModifier = exports.StringLiteral = exports.Identifier = void 0;
4
- const ts = require("typescript");
5
- function Identifier(context, name) {
1
+ import * as ts from "typescript";
2
+ export function Identifier(context, name) {
6
3
  return context.factory.createIdentifier(name);
7
4
  }
8
- exports.Identifier = Identifier;
9
- function StringLiteral(context, name) {
5
+ export function StringLiteral(context, name) {
10
6
  return context.factory.createStringLiteral(name);
11
7
  }
12
- exports.StringLiteral = StringLiteral;
13
- function StaticModifier(context) {
8
+ export function StaticModifier(context) {
14
9
  return context.factory.createModifiersFromModifierFlags(ts.ModifierFlags.Static)[0];
15
10
  }
16
- exports.StaticModifier = StaticModifier;
17
- class NamedExpression {
11
+ export class NamedExpression {
18
12
  constructor(name) {
19
13
  this.name = name;
20
14
  }
@@ -26,8 +20,7 @@ class NamedExpression {
26
20
  return this;
27
21
  }
28
22
  }
29
- exports.NamedExpression = NamedExpression;
30
- class VariableDeclaration extends NamedExpression {
23
+ export class VariableDeclaration extends NamedExpression {
31
24
  constructor() {
32
25
  super(...arguments);
33
26
  this.modifiers = [];
@@ -47,7 +40,6 @@ class VariableDeclaration extends NamedExpression {
47
40
  return context.factory.createVariableStatement(this.modifiers, context.factory.createVariableDeclarationList([context.factory.createVariableDeclaration(this.name, undefined, undefined, this.value)]));
48
41
  }
49
42
  }
50
- exports.VariableDeclaration = VariableDeclaration;
51
43
  (function (VariableDeclaration) {
52
44
  function from(variable) {
53
45
  var result = new VariableDeclaration(variable.name);
@@ -56,8 +48,8 @@ exports.VariableDeclaration = VariableDeclaration;
56
48
  return result;
57
49
  }
58
50
  VariableDeclaration.from = from;
59
- })(VariableDeclaration = exports.VariableDeclaration || (exports.VariableDeclaration = {}));
60
- class PropertyDeclaration extends VariableDeclaration {
51
+ })(VariableDeclaration || (VariableDeclaration = {}));
52
+ export class PropertyDeclaration extends VariableDeclaration {
61
53
  //Property declarations can support a few more name types than normal variables.
62
54
  constructor(name) {
63
55
  super(name);
@@ -66,7 +58,6 @@ class PropertyDeclaration extends VariableDeclaration {
66
58
  return context.factory.createPropertyDeclaration([], this.modifiers, this.name, undefined, undefined, this.value);
67
59
  }
68
60
  }
69
- exports.PropertyDeclaration = PropertyDeclaration;
70
61
  (function (PropertyDeclaration) {
71
62
  function from(variable) {
72
63
  var result = new PropertyDeclaration(variable.name);
@@ -75,8 +66,8 @@ exports.PropertyDeclaration = PropertyDeclaration;
75
66
  return result;
76
67
  }
77
68
  PropertyDeclaration.from = from;
78
- })(PropertyDeclaration = exports.PropertyDeclaration || (exports.PropertyDeclaration = {}));
79
- class CallExpression extends NamedExpression {
69
+ })(PropertyDeclaration || (PropertyDeclaration = {}));
70
+ export class CallExpression extends NamedExpression {
80
71
  constructor() {
81
72
  super(...arguments);
82
73
  this.arguments = [];
@@ -89,9 +80,8 @@ class CallExpression extends NamedExpression {
89
80
  return context.factory.createCallExpression(this.name, undefined, this.arguments);
90
81
  }
91
82
  }
92
- exports.CallExpression = CallExpression;
93
83
  //this[super].function.call(this, arguments);
94
- class AccessExpression {
84
+ export class AccessExpression {
95
85
  constructor(context) {
96
86
  this.context = context;
97
87
  }
@@ -127,8 +117,7 @@ class AccessExpression {
127
117
  return this.chain;
128
118
  }
129
119
  }
130
- exports.AccessExpression = AccessExpression;
131
- class ClassDeclaration extends NamedExpression {
120
+ export class ClassDeclaration extends NamedExpression {
132
121
  constructor() {
133
122
  super(...arguments);
134
123
  this.decorators = [];
@@ -272,8 +261,7 @@ class ClassDeclaration extends NamedExpression {
272
261
  return ts.visitEachChild(this.original, replaceExports, context, replaceNodeArrays);
273
262
  }
274
263
  }
275
- exports.ClassDeclaration = ClassDeclaration;
276
- class SourceFile {
264
+ export class SourceFile {
277
265
  constructor() {
278
266
  this.statements = [];
279
267
  }
@@ -310,8 +298,7 @@ class SourceFile {
310
298
  return newSource;
311
299
  }
312
300
  }
313
- exports.SourceFile = SourceFile;
314
- function logError(node, error) {
301
+ export function logError(node, error) {
315
302
  if (!node || !node.getSourceFile()) {
316
303
  console.error("Why are we here?");
317
304
  return;
@@ -325,8 +312,7 @@ function logError(node, error) {
325
312
  //ts.createThrow(ts.createStringLiteral("Compiler Error."));
326
313
  return;
327
314
  }
328
- exports.logError = logError;
329
- var Printer;
315
+ export var Printer;
330
316
  (function (Printer) {
331
317
  var printer = ts.createPrinter();
332
318
  function printNode(node, sourceFile) {
@@ -340,5 +326,5 @@ var Printer;
340
326
  return code.replace(/\r\n.*/gi, "");
341
327
  }
342
328
  Printer.printNodeFirstLine = printNodeFirstLine;
343
- })(Printer = exports.Printer || (exports.Printer = {}));
329
+ })(Printer || (Printer = {}));
344
330
  //# sourceMappingURL=ASTHelper.js.map
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Adds BikkyCompiler type files and supporting code into the program at compile-time.
3
+ */
4
+ import * as ts from 'typescript';
5
+ import { ProgramTransformerExtras, PluginConfig } from 'ts-patch';
6
+ export declare const newFile: string;
7
+ export default function (program: ts.Program, host: ts.CompilerHost | undefined, options: PluginConfig, pte: ProgramTransformerExtras): ts.Program;
8
+ //# sourceMappingURL=CompilerInsertions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompilerInsertions.d.ts","sourceRoot":"","sources":["CompilerInsertions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGlE,eAAO,MAAM,OAAO,QAA2D,CAAC;AAGhF,MAAM,CAAC,OAAO,WAAW,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC,YAAY,GAAG,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,wBAAwB,cAQpI"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Adds BikkyCompiler type files and supporting code into the program at compile-time.
3
+ */
4
+ import * as path from 'path';
5
+ export const newFile = path.resolve(__dirname, '../Libraries/GlobalTypes.d.ts');
6
+ export default function (program, host, options, pte) {
7
+ const tsInstance = pte.ts;
8
+ return tsInstance.createProgram(
9
+ /* rootNames */ [newFile, ...program.getRootFileNames()], program.getCompilerOptions(), host,
10
+ /* oldProgram */ program);
11
+ }
12
+ //# sourceMappingURL=CompilerInsertions.js.map
@@ -0,0 +1,3 @@
1
+ import * as ts from "typescript";
2
+ export default function (program: ts.Program, pluginOptions: {}): (context: ts.TransformationContext) => (sourceFile: ts.SourceFile) => ts.SourceFile;
3
+ //# sourceMappingURL=MacroTransformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MacroTransformer.d.ts","sourceRoot":"","sources":["MacroTransformer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAsSjC,MAAM,CAAC,OAAO,WAAW,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,aAC7C,GAAG,qBAAqB,kBAEpB,GAAG,UAAU,mBAIlC"}
@@ -1,7 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  // transformer1-module
4
- const ts = require("typescript");
2
+ import * as ts from "typescript";
5
3
  //This class should be able to do a few things:
6
4
  // Import macros from other files.
7
5
  // Copy macro AST
@@ -261,7 +259,7 @@ class MacroTransformer {
261
259
  // the import statement if the only thing that's imported is macros. On second thought that last part is really hard so let's not
262
260
  // do that.
263
261
  var transformer = new MacroTransformer();
264
- function default_1(program, pluginOptions) {
262
+ export default function (program, pluginOptions) {
265
263
  return (context) => {
266
264
  transformer.context = context;
267
265
  return (sourceFile) => {
@@ -269,5 +267,4 @@ function default_1(program, pluginOptions) {
269
267
  };
270
268
  };
271
269
  }
272
- exports.default = default_1;
273
- //# sourceMappingURL=Macros.js.map
270
+ //# sourceMappingURL=MacroTransformer.js.map
@@ -0,0 +1,4 @@
1
+ import * as ts from "typescript";
2
+ import { SourceFile } from "../Source/ASTHelper.js";
3
+ export default function (program: ts.Program, pluginOptions: {}): (context: ts.TransformationContext) => (sourceFile: ts.SourceFile) => ts.SourceFile;
4
+ //# sourceMappingURL=MixinTransformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MixinTransformer.d.ts","sourceRoot":"","sources":["MixinTransformer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAA0G,UAAU,EAAsD,MAAM,wBAAwB,CAAC;AA6IhN,MAAM,CAAC,OAAO,WAAW,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,aAC7C,GAAG,qBAAqB,kBACpB,aAAa,mBAKlC"}
@@ -1,7 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const ts = require("typescript");
4
- const ASTHelper_js_1 = require("../../ASTHelper.js");
1
+ import * as ts from "typescript";
2
+ import { VariableDeclaration, CallExpression, PropertyDeclaration, StaticModifier, Identifier, ClassDeclaration, SourceFile, logError, StringLiteral, AccessExpression } from "../Source/ASTHelper.js";
5
3
  //This transform replaces super. usage with this.parent.
6
4
  // - this is to make sure macros work properly.
7
5
  var mixMakerName = "Mixable";
@@ -20,16 +18,16 @@ var MixinMagicNumbers = {
20
18
  function MixClass(context, RawClass, symbolName) {
21
19
  //Add symbol definition to the top of the file.
22
20
  var computedSymbolName = context.factory.createComputedPropertyName(symbolName);
23
- var Class = ASTHelper_js_1.ClassDeclaration.from(RawClass);
21
+ var Class = ClassDeclaration.from(RawClass);
24
22
  if (!Class.hasExtends()) {
25
- ASTHelper_js_1.logError(RawClass, "Mixins need to extend from something");
23
+ logError(RawClass, "Mixins need to extend from something");
26
24
  return RawClass;
27
25
  }
28
26
  //Remove Decorator.
29
27
  Class.removeDecorator("mixin");
30
28
  //Store the symbol statically on the class so we can access it in the mixin maker.
31
- var declareStaticSymbol = (new ASTHelper_js_1.PropertyDeclaration(ASTHelper_js_1.Identifier(context, "Super"))
32
- .addModifier(ASTHelper_js_1.StaticModifier(context))
29
+ var declareStaticSymbol = (new PropertyDeclaration(Identifier(context, "Super"))
30
+ .addModifier(StaticModifier(context))
33
31
  .setValue(symbolName));
34
32
  Class.addMemberAtStart(declareStaticSymbol.make(context));
35
33
  //Can't add prototype manually because it will override the prototype provided by MixinCode.ts (because the constructor
@@ -37,7 +35,7 @@ function MixClass(context, RawClass, symbolName) {
37
35
  //var declareSuperPrototype = (new PropertyDeclaration(computedSymbolName))
38
36
  // .setValue(Class.getExtends()!);
39
37
  //Class.addMemberAtStart(declareSuperPrototype.make(context));
40
- Class.setExtends((new ASTHelper_js_1.CallExpression(ASTHelper_js_1.Identifier(context, mixMakerName))
38
+ Class.setExtends((new CallExpression(Identifier(context, mixMakerName))
41
39
  .addArgument(Class.getExtends())).make(context));
42
40
  var newRawClass = Class.update(context);
43
41
  newRawClass = ts.visitNode(newRawClass, ReplaceSuper(Class.getName(), symbolName, context));
@@ -47,12 +45,12 @@ function MixClass(context, RawClass, symbolName) {
47
45
  function ReplaceSuper(classID, computedSuperID, context) {
48
46
  var className = classID.text;
49
47
  return (node) => {
50
- return ASTHelper_js_1.ClassDeclaration.eachContextualNode(node, (node) => {
48
+ return ClassDeclaration.eachContextualNode(node, (node) => {
51
49
  //check to see if node chain represents this.method().
52
50
  if (ts.isCallExpression(node) && ts.isPropertyAccessExpression(node.expression) && node.expression.expression.kind === ts.SyntaxKind.SuperKeyword) {
53
51
  var f = context.factory;
54
- var access = (new ASTHelper_js_1.AccessExpression(context)).this().access(computedSuperID)
55
- /*.access(f.createIdentifier("prototype"))*/ .access(f.createIdentifier(node.expression.name.text)).access((new ASTHelper_js_1.CallExpression(f.createIdentifier("call")))
52
+ var access = (new AccessExpression(context)).this().access(computedSuperID)
53
+ /*.access(f.createIdentifier("prototype"))*/ .access(f.createIdentifier(node.expression.name.text)).access((new CallExpression(f.createIdentifier("call")))
56
54
  .addArgument(f.createThis())
57
55
  .addArgument(...Array.from(node.arguments)).make(context));
58
56
  //this[super].prototype.method.call(this, arguments);
@@ -76,18 +74,17 @@ class MixinSource {
76
74
  }
77
75
  //Look for a class with the @mixin decorator!
78
76
  update(context) {
79
- var _a;
80
77
  this.context = context;
81
78
  var declarations = [];
82
79
  var crawl = (node) => {
83
80
  if (node.kind === ts.SyntaxKind.ClassDeclaration) {
84
- var Class = ASTHelper_js_1.ClassDeclaration.from(node);
81
+ var Class = ClassDeclaration.from(node);
85
82
  if (Class.hasDecorator("mixin")) {
86
83
  var name = Class.getName().text;
87
- var symbolName = ASTHelper_js_1.Identifier(context, "Super_" + declarations.length);
88
- var declareSuperSymbol = (new ASTHelper_js_1.VariableDeclaration(symbolName))
89
- .setValue((new ASTHelper_js_1.CallExpression(ASTHelper_js_1.Identifier(context, "Symbol")))
90
- .addArgument(ASTHelper_js_1.StringLiteral(context, "super_" + name))
84
+ var symbolName = Identifier(context, "Super_" + declarations.length);
85
+ var declareSuperSymbol = (new VariableDeclaration(symbolName))
86
+ .setValue((new CallExpression(Identifier(context, "Symbol")))
87
+ .addArgument(StringLiteral(context, "super_" + name))
91
88
  .make(context)).make(context);
92
89
  declarations.push(declareSuperSymbol);
93
90
  var test = MixClass(this.context, node, symbolName);
@@ -97,14 +94,14 @@ class MixinSource {
97
94
  return ts.visitEachChild(node, crawl, this.context);
98
95
  };
99
96
  var source = ts.visitNode(this.sourceFile, crawl);
100
- var file = ASTHelper_js_1.SourceFile.from(source);
97
+ var file = SourceFile.from(source);
101
98
  for (var declaration of declarations) {
102
99
  file.insertUnderImports(declaration);
103
100
  }
104
101
  var result = file.update(context);
105
102
  this.sourceFile = result;
106
103
  if (declarations.length > 0) {
107
- console.log("Updated file", (_a = file.original) === null || _a === void 0 ? void 0 : _a.fileName, "with mixin data");
104
+ console.log("Updated file", file.original?.fileName, "with mixin data");
108
105
  // console.log("~~~~~~~~~~~");
109
106
  // console.log(Printer.printNode(result, this.sourceFile));
110
107
  // console.log("~~~~~~~~~~~");
@@ -112,7 +109,7 @@ class MixinSource {
112
109
  return result;
113
110
  }
114
111
  }
115
- function default_1(program, pluginOptions) {
112
+ export default function (program, pluginOptions) {
116
113
  return (context) => {
117
114
  return (sourceFile) => {
118
115
  return (new MixinSource(sourceFile)).update(context);
@@ -120,5 +117,4 @@ function default_1(program, pluginOptions) {
120
117
  };
121
118
  };
122
119
  }
123
- exports.default = default_1;
124
120
  //# sourceMappingURL=MixinTransformer.js.map
@@ -1,7 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  // transformer1-module
4
- const ts = require("typescript");
2
+ import * as ts from "typescript";
5
3
  class SuperTransformer {
6
4
  constructor(line, context, iter) {
7
5
  this.has_super = false;
@@ -55,7 +53,7 @@ class SuperTransformer {
55
53
  return result;
56
54
  }
57
55
  }
58
- function default_1(program, pluginOptions) {
56
+ export default function (program, pluginOptions) {
59
57
  return (context) => {
60
58
  return (sourceFile) => {
61
59
  var parent = {
@@ -112,6 +110,5 @@ function default_1(program, pluginOptions) {
112
110
  };
113
111
  };
114
112
  }
115
- exports.default = default_1;
116
113
  console.log("SHOTO!");
117
114
  //# sourceMappingURL=SuperTransform.js.map
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@bikky/compiler",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Typescript modified for compiling space squad",
5
- "main": "transform.js",
5
+ "main": "./Libraries/BiscuitLibraries.js",
6
6
  "author": {
7
7
  "name": "slbre"
8
8
  },
@@ -14,8 +14,8 @@
14
14
  "typescript": "^4.3.5"
15
15
  },
16
16
  "scripts": {
17
- "build": "npx tsc --build tsconfig.build.json",
18
- "clean": "npx tsc --clean tsconfig.build.json",
17
+ "build": "npm run uninstall && npx tsc --build tsconfig.build.json",
18
+ "clean": "npm run uninstall && npx tsc --build --clean tsconfig.build.json",
19
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
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
21
  "uninstall": "npx ts-patch uninstall && npx ts-patch unpatch tsserverlibrary.js && npx ts-patch unpatch tsserver.js && npx ts-patch unpatch typescriptServices.js"
@@ -14,7 +14,8 @@
14
14
  "composite": true,
15
15
  "experimentalDecorators": true
16
16
  },
17
- "include": [
18
- "Libraries/"
17
+ "include": ["./**/*"],
18
+ "exclude": [
19
+ "**/node_modules"
19
20
  ]
20
21
  }
@@ -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","./node_modules/typescript/lib/typescript.d.ts","./asthelper.d.ts","./libraries/globaltypes.d.ts","./libraries/mixincode.ts","./libraries/biscuitlibraries.ts","./source/asthelper.ts","./node_modules/ts-patch/lib/file-utils.d.ts","./node_modules/ts-patch/lib/system/options.d.ts","./node_modules/ts-patch/lib/system/errors.d.ts","./node_modules/ts-patch/lib/system/helpers.d.ts","./node_modules/ts-patch/lib/system/logger.d.ts","./node_modules/ts-patch/lib/system/index.d.ts","./node_modules/ts-patch/lib/actions.d.ts","./node_modules/ts-patch/plugin-types.d.ts","./node_modules/ts-patch/index.d.ts","./source/tspatchtypes.d.ts","./transformers/compilerinsertions.ts","./transformers/macrotransformer.ts","./transformers/macros.d.ts","./transformers/mixintransformer.ts","./transformers/supertransform.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},"57e52a0882af4e835473dda27e4316cc31149866970210f9f79b940e916b7838","63b62edfed58ee5622cd2472a407a08ec11b33e9d68344a26f6a8cb6a5b0ecae",{"version":"ed2b54ee18753f6a85714c18f281fd3249262f6436ece892afec1a8ba51ca84d","affectsGlobalScope":true},"5adc3db730f8e846ad52d8923843a7e6774cde5f4c49d54939d30e8d072299a1","19edd6e2e2d70eb28af49621792efa22a8bc633925822536510a2d0a79c455f9","5d556f1db938afd4f03b32291084006feb87447d0a77c9ec4d014d3edc7f0da8","cac7ebcbc4b019068eabb38de12a34be660861f0b41e2d9801ebaea2d006a530","ffe4aa664ca1ef25d9dd980b1f1390e52ff2fe844d59d1eb9562356ae2bf1467","3a8e2f936ac9d06a9fe050e50e9360f737b9a4c28cf605436ee9eae17413350b","b8f6e60c0a0c80e685e93b75c22f4986021c851abcd557c5a6a8f2c482f35d9d","e74644e96fa4217b36f2ee8ec07f1279c4f365d925c82b090d1bda983a942026","60f805f9fde3f1fa837c673b639a041a9a012c90ed4bfa3ca69905894e287ae8","ec2f29ea3ecb1bfebe3698c7338da512259fc89d49666f116b24ff05f1866af5","cc88a4d72849bfba72be1c82262cac811594fad5a52c5acf3b0031b591f69296","67a8fc8b1ca8407a6340628087c99c67aa13bec6cce69c278e8a0fa5e90ef7eb","5e9eb324ca882f710bb2b76fd2e937a7012602d3ea1d926ab042b4a1e72881f8","c8d981bcc68e10fc03923cdf00844286dc54620406bafcf8ed7c2b3814eb65fa","63adebb415dfc61edf4b09403b1b5cb0dbc78b3a0ce70c5e0e3c3a705c080097","8a662a5349e1a2e34212616a5b908c85b85b0793ae2eca5cc2291f858a43ad63","f831cf8dd38a2755221760346bda3964c6172d89cd550aed5075f030fda27a70","d2bc87e18013399978ccf9abbd9bcd053a93bd80d5d721cb83f8f5c739c3047c","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],[44,45],[63],[65],[66,71],[67,75,76,83,92],[67,68,75,83],[69,99],[70,71,76,84],[71,92],[72,73,75,83],[73],[74,75],[75],[75,76,77,92,98],[76,77],[78,83,92,98],[75,76,78,79,83,92,95,98],[78,80,92,95,98],[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,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105],[75,81],[82,98],[73,75,83,92],[84],[85],[65,86],[87,97],[88],[89],[75,90],[90,91,99,101],[75,92],[93],[94],[83,92,95],[96],[83,97],[89,98],[99],[92,100],[101],[102],[75,77,92,98,101,103],[92,104],[48,49,54,55],[48,53],[49,50,51,52],[42,56],[42,56,57,85],[42,47]],"referencedMap":[[43,1],[46,2],[63,3],[65,4],[66,5],[67,6],[68,7],[69,8],[70,9],[71,10],[72,11],[73,12],[74,13],[75,14],[76,15],[77,16],[78,17],[79,18],[80,19],[106,20],[81,21],[82,22],[83,23],[84,24],[85,25],[86,26],[87,27],[88,28],[89,29],[90,30],[91,31],[92,32],[93,33],[94,34],[95,35],[96,36],[97,37],[98,38],[99,39],[100,40],[101,41],[102,42],[103,43],[104,44],[56,45],[54,46],[53,47],[55,1],[47,1],[57,48],[58,49],[60,1],[59,1],[61,50],[62,1]],"exportedModulesMap":[[43,1],[46,2],[63,3],[65,4],[66,5],[67,6],[68,7],[69,8],[70,9],[71,10],[72,11],[73,12],[74,13],[75,14],[76,15],[77,16],[78,17],[79,18],[80,19],[106,20],[81,21],[82,22],[83,23],[84,24],[85,25],[86,26],[87,27],[88,28],[89,29],[90,30],[91,31],[92,32],[93,33],[94,34],[95,35],[96,36],[97,37],[98,38],[99,39],[100,40],[101,41],[102,42],[103,43],[104,44],[56,45],[54,46],[53,47],[55,1],[47,1],[57,48],[58,49],[60,1],[59,1],[61,50],[62,1]],"semanticDiagnosticsPerFile":[43,46,44,45,63,65,66,67,68,69,70,71,72,73,74,75,76,77,64,105,78,79,80,106,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,56,54,48,50,51,53,52,49,[55,[{"file":"./node_modules/ts-patch/plugin-types.d.ts","start":12,"length":2,"messageText":"Module '\"C:/DDrive/Dev/Libraries/BikkyCompiler/Compiler/node_modules/typescript/lib/typescript\"' can only be default-imported using the 'allowSyntheticDefaultImports' flag","category":1,"code":1259,"relatedInformation":[{"file":"./node_modules/typescript/lib/typescript.d.ts","start":513864,"length":12,"messageText":"This module is declared with 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag.","category":1,"code":2594}]}]],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,42,47,57,58,60,59,61,62],"affectedFilesPendingEmit":[[43,1],[46,1],[44,1],[45,1],[63,1],[65,1],[66,1],[67,1],[68,1],[69,1],[70,1],[71,1],[72,1],[73,1],[74,1],[75,1],[76,1],[77,1],[64,1],[105,1],[78,1],[79,1],[80,1],[106,1],[81,1],[82,1],[83,1],[84,1],[85,1],[86,1],[87,1],[88,1],[89,1],[90,1],[91,1],[92,1],[93,1],[94,1],[95,1],[96,1],[97,1],[98,1],[99,1],[100,1],[101,1],[102,1],[103,1],[104,1],[56,1],[54,1],[48,1],[50,1],[51,1],[53,1],[52,1],[49,1],[55,1],[2,1],[3,1],[4,1],[5,1],[6,1],[7,1],[42,1],[47,1],[57,1],[58,1],[60,1],[59,1],[61,1],[62,1]],"emitSignatures":[45,46,47,58,59,61,62]},"version":"4.9.4"}
package/tsconfig.json CHANGED
@@ -19,8 +19,5 @@
19
19
  { "transform": "./Transformers/SuperTransformer.js" },
20
20
  { "transform": "./Transformers/CompilerInsertions.ts", "type": "program" }
21
21
  ]
22
- },
23
- "include": [
24
- "Libraries/"
25
- ]
22
+ }
26
23
  }
@@ -1,89 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
- <PropertyGroup>
4
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5
- <SchemaVersion>2.0</SchemaVersion>
6
- <ProjectGuid>{3e2ffef5-c505-494a-be1e-0949a90874f1}</ProjectGuid>
7
- <ProjectHome>.</ProjectHome>
8
- <ProjectView>ProjectFiles</ProjectView>
9
- <StartupFile>tsc.ts</StartupFile>
10
- <WorkingDirectory>.</WorkingDirectory>
11
- <OutputPath>.</OutputPath>
12
- <ProjectTypeGuids>{3AF33F2E-1136-4D97-BBB7-1795711AC8B8};{349c5851-65df-11da-9384-00065b846f21};{9092AA53-FB77-4645-B42D-1CCCA6BD08BD}</ProjectTypeGuids>
13
- <EnableTypeScript>true</EnableTypeScript>
14
- <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">17.0</VisualStudioVersion>
15
- <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
16
- </PropertyGroup>
17
- <PropertyGroup Condition="'$(Configuration)' == 'Debug'" />
18
- <PropertyGroup Condition="'$(Configuration)' == 'Release'" />
19
- <ItemGroup>
20
- <Content Include="package.json" />
21
- <Content Include="Source\TSPatchTypes.d.ts" />
22
- <Content Include="tsconfig.json" />
23
- <Content Include="tsconfig.build.json" />
24
- </ItemGroup>
25
- <ItemGroup>
26
- <TypeScriptCompile Include="Libraries\BiscuitLibraries.ts" />
27
- <TypeScriptCompile Include="Source\ASTHelper.ts" />
28
- <TypeScriptCompile Include="Transformers\MacroTransformer.ts">
29
- <SubType>Code</SubType>
30
- </TypeScriptCompile>
31
- <TypeScriptCompile Include="Libraries\GlobalTypes.d.ts">
32
- <SubType>Code</SubType>
33
- </TypeScriptCompile>
34
- <TypeScriptCompile Include="Libraries\MixinCode.ts" />
35
- <TypeScriptCompile Include="Transformers\MixinTransformer.ts">
36
- <SubType>Code</SubType>
37
- </TypeScriptCompile>
38
- <TypeScriptCompile Include="Transformers\SuperTransform.ts">
39
- <SubType>Code</SubType>
40
- </TypeScriptCompile>
41
- </ItemGroup>
42
- <ItemGroup>
43
- <Folder Include="Libraries\" />
44
- <Folder Include="Transformers\" />
45
- </ItemGroup>
46
- <ItemGroup>
47
- <Script Include="Transformers\CompilerInsertions.ts" />
48
- </ItemGroup>
49
- <Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
50
- <Import Project="$(VSToolsPath)\Node.js Tools\Microsoft.NodejsToolsV2.targets" />
51
- <ProjectExtensions>
52
- <VisualStudio>
53
- <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
54
- <WebProjectProperties>
55
- <UseIIS>False</UseIIS>
56
- <AutoAssignPort>True</AutoAssignPort>
57
- <DevelopmentServerPort>0</DevelopmentServerPort>
58
- <DevelopmentServerVPath>/</DevelopmentServerVPath>
59
- <IISUrl>http://localhost:48022/</IISUrl>
60
- <NTLMAuthentication>False</NTLMAuthentication>
61
- <UseCustomServer>True</UseCustomServer>
62
- <CustomServerUrl>http://localhost:1337</CustomServerUrl>
63
- <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
64
- </WebProjectProperties>
65
- </FlavorProperties>
66
- <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}" User="">
67
- <WebProjectProperties>
68
- <StartPageUrl>
69
- </StartPageUrl>
70
- <StartAction>CurrentPage</StartAction>
71
- <AspNetDebugging>True</AspNetDebugging>
72
- <SilverlightDebugging>False</SilverlightDebugging>
73
- <NativeDebugging>False</NativeDebugging>
74
- <SQLDebugging>False</SQLDebugging>
75
- <ExternalProgram>
76
- </ExternalProgram>
77
- <StartExternalURL>
78
- </StartExternalURL>
79
- <StartCmdLineArguments>
80
- </StartCmdLineArguments>
81
- <StartWorkingDirectory>
82
- </StartWorkingDirectory>
83
- <EnableENC>False</EnableENC>
84
- <AlwaysStartWebServerOnDebug>False</AlwaysStartWebServerOnDebug>
85
- </WebProjectProperties>
86
- </FlavorProperties>
87
- </VisualStudio>
88
- </ProjectExtensions>
89
- </Project>