@artel/artc 0.6.25220 → 0.6.25221
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/build/Cli.js +3 -3
- package/build/api/Api.js +4 -4
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +248 -184
- package/build/{chunk-AUDD2JDS.js → chunk-5F65ZJE3.js} +3 -3
- package/build/{chunk-RHY36EE7.js → chunk-X7TMUZ4C.js} +2746 -1292
- package/build/{chunk-ASXPPFGP.js → chunk-XMV7LOUY.js} +3 -3
- package/build/types/analysis/Analyzer.d.ts +46 -2
- package/build/types/analysis/ControlFlowGraphBuilder.d.ts +121 -0
- package/build/types/analysis/ControlFlowGraphVisualizer.d.ts +12 -0
- package/build/types/analysis/DiagnosticCollector.d.ts +3 -0
- package/build/types/analysis/NodeTypeUtils.d.ts +9 -1
- package/build/types/analysis/TypeNarrower.d.ts +57 -0
- package/build/types/common/Range.d.ts +1 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +131 -123
- package/build/types/diagnostic/DiagnosticData.d.ts +2 -1
- package/build/types/parser/Scanner.d.ts +1 -0
- package/build/types/services/CompletionService.d.ts +2 -1
- package/build/types/services/DisplayService.d.ts +4 -2
- package/build/types/services/NodeSemanticInfo.d.ts +4 -2
- package/build/types/tree/NodeKind.d.ts +45 -44
- package/build/types/tree/green/Nodes.d.ts +77 -67
- package/build/types/tree/green/Token.d.ts +1 -1
- package/build/types/tree/green/Utils.d.ts +1 -1
- package/build/types/tree/red/Nodes.d.ts +54 -42
- package/build/types/tree/red/Utils.d.ts +1 -1
- package/build/types/types/TypeFactory.d.ts +2 -1
- package/package.json +1 -1
@@ -338,7 +338,7 @@ export declare class PackageConstructorDeclaration extends BaseNode {
|
|
338
338
|
get tagList(): TagList;
|
339
339
|
get modifierList(): ModifierList;
|
340
340
|
get creationKeyword(): Keyword<KeywordKind.Creation>;
|
341
|
-
get
|
341
|
+
get block(): StatementBlock;
|
342
342
|
protected get thisAsNode(): Node;
|
343
343
|
constructor(green: green.PackageConstructorDeclaration, rangeStart: number, parent: PackageMemberDeclarationParent);
|
344
344
|
private createChildren;
|
@@ -352,7 +352,7 @@ export declare class PackageEntryPointDeclaration extends BaseNode {
|
|
352
352
|
get tagList(): TagList;
|
353
353
|
get modifierList(): ModifierList;
|
354
354
|
get runKeyword(): Keyword<KeywordKind.Run>;
|
355
|
-
get
|
355
|
+
get block(): StatementBlock;
|
356
356
|
protected get thisAsNode(): Node;
|
357
357
|
constructor(green: green.PackageEntryPointDeclaration, rangeStart: number, parent: PackageMemberDeclarationParent);
|
358
358
|
private createChildren;
|
@@ -370,7 +370,7 @@ export declare class PackageMethodDeclaration extends BaseNode {
|
|
370
370
|
get typeParameterClause(): TypeParameterClause | undefined;
|
371
371
|
get parameterClause(): ParameterClause;
|
372
372
|
get returnTypeAnnotation(): TypeAnnotation | undefined;
|
373
|
-
get
|
373
|
+
get block(): StatementBlock | undefined;
|
374
374
|
protected get thisAsNode(): Node;
|
375
375
|
constructor(green: green.PackageMethodDeclaration, rangeStart: number, parent: PackageMemberDeclarationParent);
|
376
376
|
private createChildren;
|
@@ -508,7 +508,7 @@ export declare class PackageVariableGetterDeclaration extends BaseNode {
|
|
508
508
|
get getKeyword(): Keyword<KeywordKind.Get>;
|
509
509
|
get name(): Identifier;
|
510
510
|
get typeAnnotation(): TypeAnnotation;
|
511
|
-
get
|
511
|
+
get block(): StatementBlock | undefined;
|
512
512
|
protected get thisAsNode(): Node;
|
513
513
|
constructor(green: green.PackageVariableGetterDeclaration, rangeStart: number, parent: PackageMemberDeclarationParent);
|
514
514
|
private createChildren;
|
@@ -523,7 +523,7 @@ export declare class PackageVariableSetterDeclaration extends BaseNode {
|
|
523
523
|
get modifierList(): ModifierList;
|
524
524
|
get setKeyword(): Keyword<KeywordKind.Set>;
|
525
525
|
get name(): Identifier;
|
526
|
-
get
|
526
|
+
get block(): StatementBlock | undefined;
|
527
527
|
protected get thisAsNode(): Node;
|
528
528
|
constructor(green: green.PackageVariableSetterDeclaration, rangeStart: number, parent: PackageMemberDeclarationParent);
|
529
529
|
private createChildren;
|
@@ -640,7 +640,7 @@ export declare class TypeConstructorDeclaration extends BaseNode {
|
|
640
640
|
get modifierList(): ModifierList;
|
641
641
|
get creationKeyword(): Keyword<KeywordKind.Creation>;
|
642
642
|
get parameterClause(): ParameterClause;
|
643
|
-
get
|
643
|
+
get block(): StatementBlock | undefined;
|
644
644
|
protected get thisAsNode(): Node;
|
645
645
|
constructor(green: green.TypeConstructorDeclaration, rangeStart: number, parent: TypeMemberDeclarationParent);
|
646
646
|
private createChildren;
|
@@ -655,7 +655,7 @@ export declare class TypeDestructorDeclaration extends BaseNode {
|
|
655
655
|
get modifierList(): ModifierList;
|
656
656
|
get destructionKeyword(): Keyword<KeywordKind.Destruction>;
|
657
657
|
get parameterClause(): ParameterClause;
|
658
|
-
get
|
658
|
+
get block(): StatementBlock | undefined;
|
659
659
|
protected get thisAsNode(): Node;
|
660
660
|
constructor(green: green.TypeDestructorDeclaration, rangeStart: number, parent: TypeMemberDeclarationParent);
|
661
661
|
private createChildren;
|
@@ -671,7 +671,7 @@ export declare class TypeIndexedGetterDeclaration extends BaseNode {
|
|
671
671
|
get getKeyword(): Keyword<KeywordKind.Get>;
|
672
672
|
get parameterClause(): TypeIndexerParameterClause;
|
673
673
|
get typeAnnotation(): TypeAnnotation;
|
674
|
-
get
|
674
|
+
get block(): StatementBlock | undefined;
|
675
675
|
protected get thisAsNode(): Node;
|
676
676
|
constructor(green: green.TypeIndexedGetterDeclaration, rangeStart: number, parent: TypeMemberDeclarationParent);
|
677
677
|
private createChildren;
|
@@ -686,7 +686,7 @@ export declare class TypeIndexedSetterDeclaration extends BaseNode {
|
|
686
686
|
get modifierList(): ModifierList;
|
687
687
|
get setKeyword(): Keyword<KeywordKind.Set>;
|
688
688
|
get parameterClause(): TypeIndexerParameterClause;
|
689
|
-
get
|
689
|
+
get block(): StatementBlock | undefined;
|
690
690
|
protected get thisAsNode(): Node;
|
691
691
|
constructor(green: green.TypeIndexedSetterDeclaration, rangeStart: number, parent: TypeMemberDeclarationParent);
|
692
692
|
private createChildren;
|
@@ -716,7 +716,7 @@ export declare class TypeDereferencedVariableGetterDeclaration extends BaseNode
|
|
716
716
|
get getKeyword(): Keyword<KeywordKind.Get>;
|
717
717
|
get caretToken(): Token<TokenKind.Caret>;
|
718
718
|
get typeAnnotation(): TypeAnnotation;
|
719
|
-
get
|
719
|
+
get block(): StatementBlock | undefined;
|
720
720
|
protected get thisAsNode(): Node;
|
721
721
|
constructor(green: green.TypeDereferencedVariableGetterDeclaration, rangeStart: number, parent: TypeMemberDeclarationParent);
|
722
722
|
private createChildren;
|
@@ -731,7 +731,7 @@ export declare class TypeDereferencedVariableSetterDeclaration extends BaseNode
|
|
731
731
|
get modifierList(): ModifierList;
|
732
732
|
get setKeyword(): Keyword<KeywordKind.Set>;
|
733
733
|
get caretToken(): Token<TokenKind.Caret>;
|
734
|
-
get
|
734
|
+
get block(): StatementBlock | undefined;
|
735
735
|
protected get thisAsNode(): Node;
|
736
736
|
constructor(green: green.TypeDereferencedVariableSetterDeclaration, rangeStart: number, parent: TypeMemberDeclarationParent);
|
737
737
|
private createChildren;
|
@@ -749,7 +749,7 @@ export declare class TypeMethodDeclaration extends BaseNode {
|
|
749
749
|
get typeParameterClause(): TypeParameterClause | undefined;
|
750
750
|
get parameterClause(): ParameterClause;
|
751
751
|
get returnTypeAnnotation(): TypeAnnotation | undefined;
|
752
|
-
get
|
752
|
+
get block(): StatementBlock | undefined;
|
753
753
|
protected get thisAsNode(): Node;
|
754
754
|
constructor(green: green.TypeMethodDeclaration, rangeStart: number, parent: TypeMemberDeclarationParent);
|
755
755
|
private createChildren;
|
@@ -766,7 +766,7 @@ export declare class OperatorDeclaration extends BaseNode {
|
|
766
766
|
get name(): Identifier;
|
767
767
|
get parameterClause(): ParameterClause;
|
768
768
|
get returnTypeAnnotation(): TypeAnnotation | undefined;
|
769
|
-
get
|
769
|
+
get block(): StatementBlock | undefined;
|
770
770
|
get operatorKind(): OperatorKind;
|
771
771
|
protected get thisAsNode(): Node;
|
772
772
|
constructor(green: green.OperatorDeclaration, rangeStart: number, parent: TypeMemberDeclarationParent);
|
@@ -799,7 +799,7 @@ export declare class TypeVariableGetterDeclaration extends BaseNode {
|
|
799
799
|
get getKeyword(): Keyword<KeywordKind.Get>;
|
800
800
|
get name(): Identifier;
|
801
801
|
get typeAnnotation(): TypeAnnotation;
|
802
|
-
get
|
802
|
+
get block(): StatementBlock | undefined;
|
803
803
|
protected get thisAsNode(): Node;
|
804
804
|
constructor(green: green.TypeVariableGetterDeclaration, rangeStart: number, parent: TypeMemberDeclarationParent);
|
805
805
|
private createChildren;
|
@@ -814,7 +814,7 @@ export declare class TypeVariableSetterDeclaration extends BaseNode {
|
|
814
814
|
get modifierList(): ModifierList;
|
815
815
|
get setKeyword(): Keyword<KeywordKind.Set>;
|
816
816
|
get name(): Identifier;
|
817
|
-
get
|
817
|
+
get block(): StatementBlock | undefined;
|
818
818
|
protected get thisAsNode(): Node;
|
819
819
|
constructor(green: green.TypeVariableSetterDeclaration, rangeStart: number, parent: TypeMemberDeclarationParent);
|
820
820
|
private createChildren;
|
@@ -844,7 +844,7 @@ export declare class NestedMethodDeclaration extends BaseNode {
|
|
844
844
|
get typeParameterClause(): TypeParameterClause | undefined;
|
845
845
|
get parameterClause(): ParameterClause;
|
846
846
|
get returnTypeAnnotation(): TypeAnnotation | undefined;
|
847
|
-
get
|
847
|
+
get block(): StatementBlock;
|
848
848
|
protected get thisAsNode(): Node;
|
849
849
|
constructor(green: green.NestedMethodDeclaration, rangeStart: number, parent: NestedMethodDeclarationParent);
|
850
850
|
private createChildren;
|
@@ -963,7 +963,7 @@ export declare class MethodBlockLiteral extends BaseNode {
|
|
963
963
|
readonly parent: ExpressionParent;
|
964
964
|
private _children;
|
965
965
|
get children(): readonly [StatementBlock];
|
966
|
-
get
|
966
|
+
get block(): StatementBlock;
|
967
967
|
protected get thisAsNode(): Node;
|
968
968
|
constructor(green: green.MethodBlockLiteral, rangeStart: number, parent: ExpressionParent);
|
969
969
|
private createChildren;
|
@@ -1055,7 +1055,7 @@ export declare class MethodLiteral extends BaseNode {
|
|
1055
1055
|
get functionKeyword(): Keyword<KeywordKind.Function>;
|
1056
1056
|
get parameterClause(): ParameterClause;
|
1057
1057
|
get returnTypeAnnotation(): TypeAnnotation | undefined;
|
1058
|
-
get
|
1058
|
+
get block(): StatementBlock;
|
1059
1059
|
protected get thisAsNode(): Node;
|
1060
1060
|
constructor(green: green.MethodLiteral, rangeStart: number, parent: ExpressionParent);
|
1061
1061
|
private createChildren;
|
@@ -1291,7 +1291,7 @@ export declare class StatementList extends BaseNode {
|
|
1291
1291
|
constructor(green: green.StatementList, rangeStart: number, parent: StatementListParent);
|
1292
1292
|
private createChildren;
|
1293
1293
|
}
|
1294
|
-
export type StatementBlockParent = PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageMethodDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | TypeIndexedGetterDeclaration | TypeIndexedSetterDeclaration | TypeDereferencedVariableGetterDeclaration | TypeDereferencedVariableSetterDeclaration | TypeMethodDeclaration | OperatorDeclaration | NestedMethodDeclaration | MethodLiteral | MethodBlockLiteral | PackageConstructorDeclaration | PackageEntryPointDeclaration | TypeConstructorDeclaration | TypeDestructorDeclaration | IfStatement | ElseIfClause | RunStatement | TryStatement | CatchClause | FinallyClause | ForStatement | LoopStatement |
|
1294
|
+
export type StatementBlockParent = PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageMethodDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | TypeIndexedGetterDeclaration | TypeIndexedSetterDeclaration | TypeDereferencedVariableGetterDeclaration | TypeDereferencedVariableSetterDeclaration | TypeMethodDeclaration | OperatorDeclaration | NestedMethodDeclaration | MethodLiteral | MethodBlockLiteral | PackageConstructorDeclaration | PackageEntryPointDeclaration | TypeConstructorDeclaration | TypeDestructorDeclaration | IfStatement | ElseIfClause | ElseClause | RunStatement | TryStatement | CatchClause | FinallyClause | ForStatement | LoopStatement | CaseClause | WhileStatement;
|
1295
1295
|
export declare class StatementBlock extends BaseNode {
|
1296
1296
|
readonly kind = NodeKind.StatementBlock;
|
1297
1297
|
readonly green: green.StatementBlock;
|
@@ -1346,7 +1346,7 @@ export declare class RunStatement extends BaseNode {
|
|
1346
1346
|
private _children;
|
1347
1347
|
get children(): readonly [Keyword<green.KeywordKind.Run>, StatementBlock];
|
1348
1348
|
get runKeyword(): Keyword<KeywordKind.Run>;
|
1349
|
-
get
|
1349
|
+
get block(): StatementBlock;
|
1350
1350
|
protected get thisAsNode(): Node;
|
1351
1351
|
constructor(green: green.RunStatement, rangeStart: number, parent: StatementParent);
|
1352
1352
|
private createChildren;
|
@@ -1359,7 +1359,7 @@ export declare class TryStatement extends BaseNode {
|
|
1359
1359
|
private _children;
|
1360
1360
|
get children(): readonly [Keyword<green.KeywordKind.Try>, StatementBlock, CatchClause | undefined, FinallyClause | undefined];
|
1361
1361
|
get tryKeyword(): Keyword<KeywordKind.Try>;
|
1362
|
-
get
|
1362
|
+
get block(): StatementBlock;
|
1363
1363
|
get catchClause(): CatchClause | undefined;
|
1364
1364
|
get finallyClause(): FinallyClause | undefined;
|
1365
1365
|
protected get thisAsNode(): Node;
|
@@ -1375,7 +1375,7 @@ export declare class CatchClause extends BaseNode {
|
|
1375
1375
|
get children(): readonly [Keyword<green.KeywordKind.Catch>, ErrorVariableDeclaration | undefined, StatementBlock];
|
1376
1376
|
get catchKeyword(): Keyword<KeywordKind.Catch>;
|
1377
1377
|
get errorVariable(): ErrorVariableDeclaration | undefined;
|
1378
|
-
get
|
1378
|
+
get block(): StatementBlock;
|
1379
1379
|
protected get thisAsNode(): Node;
|
1380
1380
|
constructor(green: green.CatchClause, rangeStart: number, parent: CatchClauseParent);
|
1381
1381
|
private createChildren;
|
@@ -1401,7 +1401,7 @@ export declare class FinallyClause extends BaseNode {
|
|
1401
1401
|
private _children;
|
1402
1402
|
get children(): readonly [Keyword<green.KeywordKind.Finally>, StatementBlock];
|
1403
1403
|
get finallyKeyword(): Keyword<KeywordKind.Finally>;
|
1404
|
-
get
|
1404
|
+
get block(): StatementBlock;
|
1405
1405
|
protected get thisAsNode(): Node;
|
1406
1406
|
constructor(green: green.FinallyClause, rangeStart: number, parent: FinallyClauseParent);
|
1407
1407
|
private createChildren;
|
@@ -1467,7 +1467,7 @@ export declare class ForStatement extends BaseNode {
|
|
1467
1467
|
get enumerationVariableList(): EnumerationVariableList;
|
1468
1468
|
get fromKeyword(): Keyword<KeywordKind.From>;
|
1469
1469
|
get enumeratedExpression(): Expression;
|
1470
|
-
get
|
1470
|
+
get block(): StatementBlock;
|
1471
1471
|
protected get thisAsNode(): Node;
|
1472
1472
|
constructor(green: green.ForStatement, rangeStart: number, parent: StatementParent);
|
1473
1473
|
private createChildren;
|
@@ -1477,13 +1477,12 @@ export declare class IfStatement extends BaseNode {
|
|
1477
1477
|
readonly green: green.IfStatement;
|
1478
1478
|
readonly parent: StatementParent;
|
1479
1479
|
private _children;
|
1480
|
-
get children(): readonly [Keyword<green.KeywordKind.If>, Expression, StatementBlock, ElseIfClauseList,
|
1480
|
+
get children(): readonly [Keyword<green.KeywordKind.If>, Expression, StatementBlock, ElseIfClauseList, ElseClause | undefined];
|
1481
1481
|
get ifKeyword(): Keyword<KeywordKind.If>;
|
1482
1482
|
get condition(): Expression;
|
1483
|
-
get
|
1483
|
+
get block(): StatementBlock;
|
1484
1484
|
get elseIfClauseList(): ElseIfClauseList;
|
1485
|
-
get
|
1486
|
-
get elseBlock(): StatementBlock | undefined;
|
1485
|
+
get elseClause(): ElseClause | undefined;
|
1487
1486
|
protected get thisAsNode(): Node;
|
1488
1487
|
constructor(green: green.IfStatement, rangeStart: number, parent: StatementParent);
|
1489
1488
|
private createChildren;
|
@@ -1509,11 +1508,24 @@ export declare class ElseIfClause extends BaseNode {
|
|
1509
1508
|
get children(): readonly [Keyword<green.KeywordKind.ElseIf>, Expression, StatementBlock];
|
1510
1509
|
get elseIfKeyword(): Keyword<KeywordKind.ElseIf>;
|
1511
1510
|
get condition(): Expression;
|
1512
|
-
get
|
1511
|
+
get block(): StatementBlock;
|
1513
1512
|
protected get thisAsNode(): Node;
|
1514
1513
|
constructor(green: green.ElseIfClause, rangeStart: number, parent: ElseIfClauseParent);
|
1515
1514
|
private createChildren;
|
1516
1515
|
}
|
1516
|
+
export type ElseClauseParent = IfStatement;
|
1517
|
+
export declare class ElseClause extends BaseNode {
|
1518
|
+
readonly kind = NodeKind.ElseClause;
|
1519
|
+
readonly green: green.ElseClause;
|
1520
|
+
readonly parent: ElseClauseParent;
|
1521
|
+
private _children;
|
1522
|
+
get children(): readonly [Keyword<green.KeywordKind.Else>, StatementBlock];
|
1523
|
+
get elseKeyword(): Keyword<KeywordKind.Else>;
|
1524
|
+
get block(): StatementBlock;
|
1525
|
+
protected get thisAsNode(): Node;
|
1526
|
+
constructor(green: green.ElseClause, rangeStart: number, parent: ElseClauseParent);
|
1527
|
+
private createChildren;
|
1528
|
+
}
|
1517
1529
|
export declare class InvalidStatement extends BaseNode {
|
1518
1530
|
readonly kind = NodeKind.InvalidStatement;
|
1519
1531
|
readonly green: green.InvalidStatement;
|
@@ -1551,7 +1563,7 @@ export declare class LoopStatement extends BaseNode {
|
|
1551
1563
|
private _children;
|
1552
1564
|
get children(): readonly [Keyword<green.KeywordKind.Loop>, StatementBlock, Keyword<green.KeywordKind.RepeatWhile> | undefined, Expression | undefined];
|
1553
1565
|
get loopKeyword(): Keyword<KeywordKind.Loop>;
|
1554
|
-
get
|
1566
|
+
get block(): StatementBlock;
|
1555
1567
|
get repeatWhileKeyword(): Keyword<KeywordKind.RepeatWhile> | undefined;
|
1556
1568
|
get condition(): Expression | undefined;
|
1557
1569
|
protected get thisAsNode(): Node;
|
@@ -1576,8 +1588,8 @@ export declare class CaseClauseList extends BaseNode {
|
|
1576
1588
|
readonly green: green.CaseClauseList;
|
1577
1589
|
readonly parent: CaseClauseListParent;
|
1578
1590
|
private _children;
|
1579
|
-
get children(): readonly
|
1580
|
-
get caseClauses(): readonly
|
1591
|
+
get children(): readonly CaseClause[];
|
1592
|
+
get caseClauses(): readonly CaseClause[];
|
1581
1593
|
protected get thisAsNode(): Node;
|
1582
1594
|
constructor(green: green.CaseClauseList, rangeStart: number, parent: CaseClauseListParent);
|
1583
1595
|
private createChildren;
|
@@ -1597,7 +1609,7 @@ export declare class SwitchStatement extends BaseNode {
|
|
1597
1609
|
private createChildren;
|
1598
1610
|
}
|
1599
1611
|
export type MatchExpressionListElement = Expression | Comma;
|
1600
|
-
export type MatchExpressionListParent =
|
1612
|
+
export type MatchExpressionListParent = CaseClause;
|
1601
1613
|
export declare class MatchExpressionList extends BaseNode {
|
1602
1614
|
readonly kind = NodeKind.MatchExpressionList;
|
1603
1615
|
readonly green: green.MatchExpressionList;
|
@@ -1610,18 +1622,18 @@ export declare class MatchExpressionList extends BaseNode {
|
|
1610
1622
|
constructor(green: green.MatchExpressionList, rangeStart: number, parent: MatchExpressionListParent);
|
1611
1623
|
private createChildren;
|
1612
1624
|
}
|
1613
|
-
export type
|
1614
|
-
export declare class
|
1615
|
-
readonly kind = NodeKind.
|
1616
|
-
readonly green: green.
|
1617
|
-
readonly parent:
|
1625
|
+
export type CaseClauseParent = CaseClauseList;
|
1626
|
+
export declare class CaseClause extends BaseNode {
|
1627
|
+
readonly kind = NodeKind.CaseClause;
|
1628
|
+
readonly green: green.CaseClause;
|
1629
|
+
readonly parent: CaseClauseParent;
|
1618
1630
|
private _children;
|
1619
1631
|
get children(): readonly [Keyword<green.KeywordKind.Case>, MatchExpressionList, StatementBlock];
|
1620
1632
|
get caseKeyword(): Keyword<KeywordKind.Case>;
|
1621
1633
|
get matchExpressionList(): MatchExpressionList;
|
1622
|
-
get
|
1634
|
+
get block(): StatementBlock;
|
1623
1635
|
protected get thisAsNode(): Node;
|
1624
|
-
constructor(green: green.
|
1636
|
+
constructor(green: green.CaseClause, rangeStart: number, parent: CaseClauseParent);
|
1625
1637
|
private createChildren;
|
1626
1638
|
}
|
1627
1639
|
export declare class WhileStatement extends BaseNode {
|
@@ -1632,7 +1644,7 @@ export declare class WhileStatement extends BaseNode {
|
|
1632
1644
|
get children(): readonly [Keyword<green.KeywordKind.While>, Expression, StatementBlock];
|
1633
1645
|
get whileKeyword(): Keyword<KeywordKind.While>;
|
1634
1646
|
get condition(): Expression;
|
1635
|
-
get
|
1647
|
+
get block(): StatementBlock;
|
1636
1648
|
protected get thisAsNode(): Node;
|
1637
1649
|
constructor(green: green.WhileStatement, rangeStart: number, parent: StatementParent);
|
1638
1650
|
private createChildren;
|
@@ -2142,4 +2154,4 @@ export declare class TypeAnnotation extends BaseNode {
|
|
2142
2154
|
constructor(green: green.TypeAnnotation, rangeStart: number, parent: TypeAnnotationParent);
|
2143
2155
|
private createChildren;
|
2144
2156
|
}
|
2145
|
-
export type Node = SourceFile | PackageMemberDeclarationList | Keyword | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackagePath | NamedTypeSpecifier | UnionTypeSpecifier | UnionTypeSpecifierTypeList | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | InvalidTypeSpecifier | AnonymousMethodTypeDeclaration | AnonymousStructuredTypeDeclaration | AnonymousVariantTypeDeclaration | TopLevelTranslationList | TranslationsDeclaration | PackageAliasTypeDeclaration | AliasTypeDeclarationBody | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageMethodDeclaration | PackageMethodTypeDeclaration | MethodTypeDeclarationBody | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageStructuredTypeDeclaration | StructuredTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | VariantTypeDeclarationBody | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | InvalidPackageMemberDeclaration | TypeMemberGroupDeclaration | TypeConstructorDeclaration | TypeDestructorDeclaration | TypeIndexedGetterDeclaration | TypeIndexedSetterDeclaration | TypeIndexerParameterClause | TypeDereferencedVariableGetterDeclaration | TypeDereferencedVariableSetterDeclaration | TypeMethodDeclaration | OperatorDeclaration | TypeVariableDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | InvalidTypeMemberDeclaration | NestedMethodDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | MethodBlockLiteral | ArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | MethodLiteral | ParenthesizedExpression | WhenTernaryExpression | PrefixUnaryExpression | PropertyAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | AssignmentStatement | StatementList | StatementBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatement | TryStatement | CatchClause | ErrorVariableDeclaration | FinallyClause | EmptyStatement | ErrorStatement | ExpressionStatement | EnumerationVariableList | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | InvalidStatement | NestedMethodDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList |
|
2157
|
+
export type Node = SourceFile | PackageMemberDeclarationList | Keyword | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackagePath | NamedTypeSpecifier | UnionTypeSpecifier | UnionTypeSpecifierTypeList | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | InvalidTypeSpecifier | AnonymousMethodTypeDeclaration | AnonymousStructuredTypeDeclaration | AnonymousVariantTypeDeclaration | TopLevelTranslationList | TranslationsDeclaration | PackageAliasTypeDeclaration | AliasTypeDeclarationBody | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageMethodDeclaration | PackageMethodTypeDeclaration | MethodTypeDeclarationBody | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageStructuredTypeDeclaration | StructuredTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | VariantTypeDeclarationBody | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | InvalidPackageMemberDeclaration | TypeMemberGroupDeclaration | TypeConstructorDeclaration | TypeDestructorDeclaration | TypeIndexedGetterDeclaration | TypeIndexedSetterDeclaration | TypeIndexerParameterClause | TypeDereferencedVariableGetterDeclaration | TypeDereferencedVariableSetterDeclaration | TypeMethodDeclaration | OperatorDeclaration | TypeVariableDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | InvalidTypeMemberDeclaration | NestedMethodDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | MethodBlockLiteral | ArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | MethodLiteral | ParenthesizedExpression | WhenTernaryExpression | PrefixUnaryExpression | PropertyAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | AssignmentStatement | StatementList | StatementBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatement | TryStatement | CatchClause | ErrorVariableDeclaration | FinallyClause | EmptyStatement | ErrorStatement | ExpressionStatement | EnumerationVariableList | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | ElseClause | InvalidStatement | NestedMethodDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList | CaseClause | WhileStatement | YieldStatement | TranslationParameterList | TranslationParameterClause | ConstructorTranslation | IndexerTranslationParameterClause | IndexerTranslation | TranslationTypeParameterList | TranslationTypeParameterClause | PackageMethodTranslation | TypeMethodTranslation | MethodTypeTranslation | PackageImportTranslation | QualifiedName | PackageVariableTranslation | TypeVariableOrVariantTranslation | TypeMemberTranslationList | TypeTranslation | TextLiteralTranslation | TextTemplateLiteralTranslation | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation | Token;
|
@@ -3,4 +3,4 @@ import { Identifier, Keyword, Node, Token } from './index.js';
|
|
3
3
|
export declare function isIdentifier(node: Node): node is Identifier;
|
4
4
|
export declare function isToken<T extends TokenKind>(node: Node, kind?: T): node is Token<T>;
|
5
5
|
export declare function isKeyword<T extends KeywordKind>(node: Node, kind?: T): node is Keyword<T>;
|
6
|
-
export declare function toSourceCode(node: Node, lengthLimit?: number): string;
|
6
|
+
export declare function toSourceCode(node: Node, lengthLimit?: number, excludeLeadingTrivia?: boolean): string;
|
@@ -9,7 +9,8 @@ export declare class TypeFactory {
|
|
9
9
|
getVariantType(entity: VariantTypeEntity, substitutions: Substitutions): VariantType;
|
10
10
|
getMethodType(entity: MethodTypeEntity, substitutions: Substitutions): MethodType;
|
11
11
|
getAliasType(entity: AliasTypeEntity, substitutions: Substitutions): AliasType;
|
12
|
-
getUnionType(types: readonly Type[]): Type;
|
12
|
+
getUnionType(types: readonly Type[], excludeDuplicates?: boolean): Type;
|
13
13
|
getUnresolvedType(): UnresolvedType;
|
14
14
|
private getUniqueFlattenedConstituentTypes;
|
15
|
+
private excludeDuplicateTypesComparingWithEqualsMethod;
|
15
16
|
}
|