@quenk/wml 2.11.3 → 2.12.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/lib/cli.js +24 -29
- package/lib/cli.js.map +1 -1
- package/lib/cli.ts +20 -13
- package/lib/compile/codegen.d.ts +1 -9
- package/lib/compile/codegen.js +548 -647
- package/lib/compile/codegen.js.map +1 -1
- package/lib/compile/codegen.ts +28 -24
- package/lib/compile/index.js +6 -11
- package/lib/compile/index.js.map +1 -1
- package/lib/compile/transform.js +19 -25
- package/lib/compile/transform.js.map +1 -1
- package/lib/compile/transform.ts +12 -6
- package/lib/dom.js +118 -167
- package/lib/dom.js.map +1 -1
- package/lib/index.js +7 -10
- package/lib/index.js.map +1 -1
- package/lib/main.js +31 -56
- package/lib/main.js.map +1 -1
- package/lib/parse/ast.d.ts +14 -4
- package/lib/parse/ast.js +177 -218
- package/lib/parse/ast.js.map +1 -1
- package/lib/parse/ast.ts +18 -5
- package/lib/parse/generated.js +2068 -2039
- package/lib/parse/index.js +7 -10
- package/lib/parse/index.js.map +1 -1
- package/lib/parse/test.js +277 -54
- package/lib/parse/test.js.map +1 -1
- package/lib/parse/test.ts +10 -1
- package/lib/parse/wml.y +46 -46
- package/lib/tsconfig.json +1 -1
- package/package.json +1 -2
package/lib/parse/ast.d.ts
CHANGED
|
@@ -124,7 +124,17 @@ export declare class LetStatement {
|
|
|
124
124
|
type: string;
|
|
125
125
|
constructor(id: UnqualifiedIdentifier, cons: ConstructorType, expression: Expression, location: Location);
|
|
126
126
|
}
|
|
127
|
-
export declare type ContextTypeIndicator =
|
|
127
|
+
export declare type ContextTypeIndicator = ConstructorType | ContextFromStatement;
|
|
128
|
+
/**
|
|
129
|
+
* ContextFromStatement
|
|
130
|
+
*/
|
|
131
|
+
export declare class ContextFromStatement {
|
|
132
|
+
cons: ConstructorType;
|
|
133
|
+
module: StringLiteral;
|
|
134
|
+
location: Location;
|
|
135
|
+
type: string;
|
|
136
|
+
constructor(cons: ConstructorType, module: StringLiteral, location: Location);
|
|
137
|
+
}
|
|
128
138
|
/**
|
|
129
139
|
* ViewStatement
|
|
130
140
|
*/
|
|
@@ -382,10 +392,10 @@ export declare class CallExpression {
|
|
|
382
392
|
* MemberExpression
|
|
383
393
|
*/
|
|
384
394
|
export declare class MemberExpression {
|
|
385
|
-
|
|
386
|
-
|
|
395
|
+
head: Expression;
|
|
396
|
+
tail: UnqualifiedIdentifier | UnqualifiedConstructor | StringLiteral;
|
|
387
397
|
location: Location;
|
|
388
|
-
constructor(
|
|
398
|
+
constructor(head: Expression, tail: UnqualifiedIdentifier | UnqualifiedConstructor | StringLiteral, location: Location);
|
|
389
399
|
}
|
|
390
400
|
export declare class ReadExpression {
|
|
391
401
|
target: Expression;
|