@quenk/wml 2.11.4 → 2.13.0
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 -13
- package/lib/compile/codegen.js +550 -656
- package/lib/compile/codegen.js.map +1 -1
- package/lib/compile/codegen.ts +43 -44
- package/lib/compile/index.js +6 -11
- package/lib/compile/index.js.map +1 -1
- package/lib/compile/transform.js +14 -23
- package/lib/compile/transform.js.map +1 -1
- 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 +8 -12
- package/lib/parse/ast.js +167 -227
- package/lib/parse/ast.js.map +1 -1
- package/lib/parse/ast.ts +4 -14
- package/lib/parse/generated.js +2335 -2288
- package/lib/parse/index.js +7 -10
- package/lib/parse/index.js.map +1 -1
- package/lib/parse/test.js +285 -55
- package/lib/parse/test.js.map +1 -1
- package/lib/parse/test.ts +23 -2
- package/lib/parse/wml.y +58 -59
- package/lib/tsconfig.json +1 -1
- package/package.json +1 -2
package/lib/parse/ast.d.ts
CHANGED
|
@@ -250,11 +250,12 @@ export declare class Node {
|
|
|
250
250
|
}
|
|
251
251
|
export declare class Widget {
|
|
252
252
|
open: Constructor;
|
|
253
|
+
typeArgs: Type[];
|
|
253
254
|
attributes: Attribute[];
|
|
254
255
|
children: Child[];
|
|
255
256
|
close: Constructor;
|
|
256
257
|
type: string;
|
|
257
|
-
constructor(open: Constructor, attributes: Attribute[], children: Child[], close: Constructor);
|
|
258
|
+
constructor(open: Constructor, typeArgs: Type[], attributes: Attribute[], children: Child[], close: Constructor);
|
|
258
259
|
}
|
|
259
260
|
export declare class Attribute {
|
|
260
261
|
namespace: UnqualifiedIdentifier;
|
|
@@ -330,7 +331,7 @@ export declare class Characters {
|
|
|
330
331
|
type: string;
|
|
331
332
|
constructor(value: string, location: Location);
|
|
332
333
|
}
|
|
333
|
-
export declare type Expression = IfThenExpression | BinaryExpression | UnaryExpression |
|
|
334
|
+
export declare type Expression = IfThenExpression | BinaryExpression | UnaryExpression | ViewConstruction | FunApplication | ConstructExpression | CallExpression | MemberExpression | ReadExpression | FunctionExpression | Literal | ContextProperty | Constructor | Identifier | ContextVariable;
|
|
334
335
|
export declare class IfThenExpression {
|
|
335
336
|
condition: Expression;
|
|
336
337
|
iftrue: Expression;
|
|
@@ -353,12 +354,6 @@ export declare class UnaryExpression {
|
|
|
353
354
|
type: string;
|
|
354
355
|
constructor(operator: string, expression: Expression);
|
|
355
356
|
}
|
|
356
|
-
export declare class TypeAssertion {
|
|
357
|
-
target: Type;
|
|
358
|
-
expression: Expression;
|
|
359
|
-
type: string;
|
|
360
|
-
constructor(target: Type, expression: Expression);
|
|
361
|
-
}
|
|
362
357
|
export declare class ViewConstruction {
|
|
363
358
|
expression: Expression;
|
|
364
359
|
location: Location;
|
|
@@ -375,10 +370,11 @@ export declare class FunApplication {
|
|
|
375
370
|
}
|
|
376
371
|
export declare class ConstructExpression {
|
|
377
372
|
cons: Constructor;
|
|
373
|
+
typeArgs: Type[];
|
|
378
374
|
args: Expression[];
|
|
379
375
|
location: Location;
|
|
380
376
|
type: string;
|
|
381
|
-
constructor(cons: Constructor, args: Expression[], location: Location);
|
|
377
|
+
constructor(cons: Constructor, typeArgs: Type[], args: Expression[], location: Location);
|
|
382
378
|
}
|
|
383
379
|
export declare class CallExpression {
|
|
384
380
|
target: Expression;
|
|
@@ -392,10 +388,10 @@ export declare class CallExpression {
|
|
|
392
388
|
* MemberExpression
|
|
393
389
|
*/
|
|
394
390
|
export declare class MemberExpression {
|
|
395
|
-
|
|
396
|
-
|
|
391
|
+
head: Expression;
|
|
392
|
+
tail: UnqualifiedIdentifier | UnqualifiedConstructor | StringLiteral;
|
|
397
393
|
location: Location;
|
|
398
|
-
constructor(
|
|
394
|
+
constructor(head: Expression, tail: UnqualifiedIdentifier | UnqualifiedConstructor | StringLiteral, location: Location);
|
|
399
395
|
}
|
|
400
396
|
export declare class ReadExpression {
|
|
401
397
|
target: Expression;
|