@bikky/compiler 0.0.7 → 0.0.9
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/Libraries/BiscuitLibraries.d.ts +2 -2
- package/Libraries/BiscuitLibraries.js +2 -2
- package/Libraries/GlobalTypes.d.ts +25 -27
- package/Libraries/MixinCode.d.ts +13 -13
- package/Libraries/MixinCode.js +92 -92
- package/Source/ASTBuilder.d.ts +36 -0
- package/Source/ASTBuilder.d.ts.map +1 -0
- package/Source/ASTBuilder.js +180 -0
- package/Source/ASTHelper.d.ts +67 -73
- package/Source/ASTHelper.d.ts.map +1 -1
- package/Source/ASTHelper.js +320 -343
- package/Source/ASTInterface/Class.d.ts +38 -0
- package/Source/ASTInterface/Class.d.ts.map +1 -0
- package/Source/ASTInterface/Class.js +256 -0
- package/Source/ASTInterface/Crawler.d.ts +8 -0
- package/Source/ASTInterface/Crawler.d.ts.map +1 -0
- package/Source/ASTInterface/Crawler.js +55 -0
- package/Source/ASTInterface/Tokens.d.ts +78 -0
- package/Source/ASTInterface/Tokens.d.ts.map +1 -0
- package/Source/ASTInterface/Tokens.js +49 -0
- package/Source/ASTSearcher.d.ts +20 -0
- package/Source/ASTSearcher.d.ts.map +1 -0
- package/Source/ASTSearcher.js +116 -0
- package/Source/ASTTraverser.d.ts +10 -0
- package/Source/ASTTraverser.d.ts.map +1 -0
- package/Source/ASTTraverser.js +74 -0
- package/Transformers/CompilerInsertions.js +23 -22
- package/Transformers/MacroTransformer.d.ts +2 -2
- package/Transformers/MacroTransformer.d.ts.map +1 -1
- package/Transformers/MacroTransformer.js +282 -272
- package/Transformers/MixinTransformer.d.ts +2 -3
- package/Transformers/MixinTransformer.d.ts.map +1 -1
- package/Transformers/MixinTransformer.js +320 -123
- package/Transformers/{Macros.d.ts → SuperTransformer.d.ts} +3 -3
- package/Transformers/SuperTransformer.d.ts.map +1 -0
- package/Transformers/{SuperTransform.js → SuperTransformer.js} +139 -117
- package/bin/Microsoft.NodejsTools.WebRole.dll +0 -0
- package/obj/Debug/BiscuitCompiler.njsproj.AssemblyReference.cache +0 -0
- package/obj/Debug/BiscuitCompiler.njsproj.FileListAbsolute.txt +3 -3
- package/package.json +6 -5
- package/tsconfig.build.libs.json +1 -1
- package/tsconfig.build.libs.tsbuildinfo +1 -1
- package/tsconfig.build.src.json +1 -1
- package/tsconfig.build.src.tsbuildinfo +1 -1
- package/tsconfig.json +10 -11
- package/tsconfig.tsbuildinfo +1 -1
- package/ASTHelper.d.ts +0 -74
- package/ASTHelper.d.ts.map +0 -1
- package/Transformers/Macros.d.ts.map +0 -1
- package/Transformers/SuperTransform.d.ts +0 -3
- package/Transformers/SuperTransform.d.ts.map +0 -1
- package/tsconfig.build.tsbuildinfo +0 -1
package/Source/ASTHelper.d.ts
CHANGED
|
@@ -1,74 +1,68 @@
|
|
|
1
|
-
import * as ts from "typescript";
|
|
2
|
-
export declare function
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
name: ts.Identifier;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
value
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
static
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
}
|
|
1
|
+
import * as ts from "typescript";
|
|
2
|
+
export declare function setContext(newContext: ts.TransformationContext): void;
|
|
3
|
+
export interface fromable {
|
|
4
|
+
from: (param: any) => any;
|
|
5
|
+
}
|
|
6
|
+
export declare function getNodeText(node: ts.Node, source: ts.SourceFile): string;
|
|
7
|
+
export declare class NamedExpression {
|
|
8
|
+
name: ts.Identifier;
|
|
9
|
+
constructor(name: ts.Identifier);
|
|
10
|
+
getName(): ts.Identifier;
|
|
11
|
+
rename(name: ts.Identifier): this;
|
|
12
|
+
}
|
|
13
|
+
export declare class VariableDeclaration extends NamedExpression {
|
|
14
|
+
modifiers?: ts.Modifier[];
|
|
15
|
+
value?: ts.Expression;
|
|
16
|
+
setValue(value: ts.Expression): this;
|
|
17
|
+
addModifier(modifier: ts.Modifier): this;
|
|
18
|
+
make(context: ts.TransformationContext): ts.Node;
|
|
19
|
+
}
|
|
20
|
+
export declare module VariableDeclaration {
|
|
21
|
+
function from(variable: ts.VariableDeclaration): VariableDeclaration;
|
|
22
|
+
}
|
|
23
|
+
export declare class PropertyDeclaration extends VariableDeclaration {
|
|
24
|
+
constructor(name: ts.Identifier | ts.ComputedPropertyName);
|
|
25
|
+
make(context: ts.TransformationContext): ts.PropertyDeclaration;
|
|
26
|
+
}
|
|
27
|
+
export declare module PropertyDeclaration {
|
|
28
|
+
function from(variable: ts.PropertyDeclaration | ts.VariableDeclaration): PropertyDeclaration;
|
|
29
|
+
}
|
|
30
|
+
export declare class AccessExpression {
|
|
31
|
+
start: ts.Expression | ts.Identifier;
|
|
32
|
+
chain: ts.AccessExpression;
|
|
33
|
+
constructor(start: ts.Expression | ts.Identifier);
|
|
34
|
+
access(node: ts.Expression | ts.Identifier | ts.ComputedPropertyName): this;
|
|
35
|
+
make(): ts.AccessExpression;
|
|
36
|
+
}
|
|
37
|
+
export declare class ClassDeclaration extends NamedExpression {
|
|
38
|
+
original?: ts.ClassDeclaration;
|
|
39
|
+
decorators: ts.Decorator[];
|
|
40
|
+
extends: ts.Expression | undefined;
|
|
41
|
+
members: (ts.ClassElement)[];
|
|
42
|
+
static from(oldClass: ts.ClassDeclaration): ClassDeclaration;
|
|
43
|
+
static getModifiers(node: ts.ClassDeclaration): ts.Modifier[];
|
|
44
|
+
static getDecorators(node: ts.ClassDeclaration): ts.Decorator[];
|
|
45
|
+
addMemberAtStart(member: ts.ClassElement): this;
|
|
46
|
+
addMember(member: ts.ClassElement): this;
|
|
47
|
+
hasDecorator(identifier: string | ts.Identifier): boolean;
|
|
48
|
+
removeDecorator(identifier: string | ts.Identifier): this;
|
|
49
|
+
hasExtends(): boolean;
|
|
50
|
+
getExtends(): ts.Expression | undefined;
|
|
51
|
+
setExtends(Extends: ts.Expression | undefined): this;
|
|
52
|
+
static eachContextualNode(Class: ts.ClassDeclaration, foo: ts.Visitor, context: ts.TransformationContext): ts.ClassDeclaration;
|
|
53
|
+
update(context: ts.TransformationContext): ts.ClassDeclaration | undefined;
|
|
54
|
+
}
|
|
55
|
+
export declare class SourceFile {
|
|
56
|
+
original?: ts.SourceFile;
|
|
57
|
+
statements: ts.Statement[];
|
|
58
|
+
static from(oldfile: ts.SourceFile): SourceFile;
|
|
59
|
+
replaceNode(oldNode: ts.Statement, newNode: ts.Statement): this;
|
|
60
|
+
insertUnderImports(node: ts.Statement): this;
|
|
61
|
+
update(context: ts.TransformationContext): ts.SourceFile;
|
|
62
|
+
}
|
|
63
|
+
export declare function logError(node: ts.Node, error: string): undefined;
|
|
64
|
+
export declare module Printer {
|
|
65
|
+
function printNode(node: ts.Node, sourceFile: ts.SourceFile): string;
|
|
66
|
+
function printNodeFirstLine(node: ts.Node, sourceFile: ts.SourceFile): string;
|
|
67
|
+
}
|
|
74
68
|
//# sourceMappingURL=ASTHelper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ASTHelper.d.ts","sourceRoot":"","sources":["ASTHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ASTHelper.d.ts","sourceRoot":"","sources":["ASTHelper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAKjC,wBAAgB,UAAU,CAAC,UAAU,EAAE,EAAE,CAAC,qBAAqB,QAE9D;AAED,MAAM,WAAW,QAAQ;IACrB,IAAI,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;CAC7B;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,UAAU,UAK/D;AAED,qBAAa,eAAe;IACxB,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC;gBAER,IAAI,EAAE,EAAE,CAAC,UAAU;IAI/B,OAAO;IAIP,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU;CAI7B;AAED,qBAAa,mBAAoB,SAAQ,eAAe;IACpD,SAAS,CAAC,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAM;IAC/B,KAAK,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC;IAGtB,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU;IAK7B,WAAW,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ;IAQjC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,qBAAqB,GAAG,EAAE,CAAC,IAAI;CAKnD;AAED,sBAAc,mBAAmB,CAAC;IAC9B,SAAgB,IAAI,CAAC,QAAQ,E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