@artel/artc 0.6.25210 → 0.6.25211
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 +14 -4
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +318 -333
- package/build/{chunk-CAQIZO5K.js → chunk-5BGDYCRQ.js} +2 -2
- package/build/{chunk-HRQLSHI7.js → chunk-EYLAO2SF.js} +1 -1
- package/build/{chunk-3ORG7RXI.js → chunk-Y3KGPV3L.js} +1498 -1616
- package/build/types/analysis/Analyzer.d.ts +1 -2
- package/build/types/common/Debug.d.ts +3 -0
- package/build/types/common/Logger.d.ts +1 -1
- package/build/types/emitter/Transformer.d.ts +1 -1
- package/build/types/emitter/ir/Nodes.d.ts +13 -11
- package/build/types/entities/BinaryOperatorEntity.d.ts +4 -1
- package/build/types/entities/EntityHiding.d.ts +2 -2
- package/build/types/entities/OperatorEntity.d.ts +45 -0
- package/build/types/entities/OperatorKind.d.ts +63 -0
- package/build/types/entities/UnaryOperatorEntity.d.ts +2 -1
- package/build/types/entities/VariableEntity.d.ts +1 -11
- package/build/types/entities/index.d.ts +7 -4
- package/build/types/parser/OperatorDictionary.d.ts +11 -0
- package/build/types/services/DisplayService.d.ts +5 -5
- package/build/types/tree/KeywordKind.d.ts +25 -29
- package/build/types/tree/NodeKind.d.ts +83 -87
- package/build/types/tree/OperatorKind.d.ts +23 -0
- package/build/types/tree/green/Nodes.d.ts +27 -83
- package/build/types/tree/green/Token.d.ts +4 -3
- package/build/types/tree/green/index.d.ts +1 -0
- package/build/types/tree/index.d.ts +0 -3
- package/build/types/tree/red/Nodes.d.ts +22 -74
- package/build/types/tree/red/index.d.ts +4 -0
- package/build/types/ts-interop/Entities.d.ts +0 -4
- package/package.json +4 -4
- package/build/types/emitter/IntrinsicEntities.d.ts +0 -118
- /package/build/types/emitter/{error-boundary.d.ts → ErrorBoundary.d.ts} +0 -0
@@ -336,7 +336,7 @@ export declare class PackageMethodDeclaration extends BaseNode {
|
|
336
336
|
readonly children: readonly [
|
337
337
|
TagList,
|
338
338
|
ModifierList,
|
339
|
-
Keyword<KeywordKind.
|
339
|
+
Keyword<KeywordKind.Function>,
|
340
340
|
Identifier,
|
341
341
|
TypeParameterClause | undefined,
|
342
342
|
ParameterClause,
|
@@ -345,14 +345,14 @@ export declare class PackageMethodDeclaration extends BaseNode {
|
|
345
345
|
];
|
346
346
|
get tagList(): TagList;
|
347
347
|
get modifierList(): ModifierList;
|
348
|
-
get
|
348
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
349
349
|
get name(): Identifier;
|
350
350
|
get typeParameterClause(): TypeParameterClause | undefined;
|
351
351
|
get parameterClause(): ParameterClause;
|
352
352
|
get returnTypeAnnotation(): TypeAnnotation | undefined;
|
353
353
|
get body(): StatementBlock | undefined;
|
354
354
|
protected get thisAsNode(): Node;
|
355
|
-
constructor(tagList: TagList, modifierList: ModifierList,
|
355
|
+
constructor(tagList: TagList, modifierList: ModifierList, functionKeyword: Keyword<KeywordKind.Function>, name: Identifier, typeParameterClause: TypeParameterClause | undefined, parameterClause: ParameterClause, returnTypeAnnotation: TypeAnnotation | undefined, body: StatementBlock | undefined);
|
356
356
|
toRed(rangeStart: number, parent: red.PackageMemberDeclarationParent): red.PackageMethodDeclaration;
|
357
357
|
}
|
358
358
|
export declare class PackageMethodTypeDeclaration extends BaseNode {
|
@@ -381,16 +381,16 @@ export declare class MethodTypeDeclarationBody extends BaseNode {
|
|
381
381
|
readonly kind = NodeKind.MethodTypeDeclarationBody;
|
382
382
|
readonly children: readonly [
|
383
383
|
Keyword<KeywordKind.Async> | undefined,
|
384
|
-
Keyword<KeywordKind.
|
384
|
+
Keyword<KeywordKind.Function>,
|
385
385
|
ParameterClause,
|
386
386
|
TypeAnnotation | undefined
|
387
387
|
];
|
388
388
|
get asyncKeyword(): Keyword<KeywordKind.Async> | undefined;
|
389
|
-
get
|
389
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
390
390
|
get parameterClause(): ParameterClause;
|
391
391
|
get returnTypeAnnotation(): TypeAnnotation | undefined;
|
392
392
|
protected get thisAsNode(): Node;
|
393
|
-
constructor(asyncKeyword: Keyword<KeywordKind.Async> | undefined,
|
393
|
+
constructor(asyncKeyword: Keyword<KeywordKind.Async> | undefined, functionKeyword: Keyword<KeywordKind.Function>, parameterClause: ParameterClause, returnTypeAnnotation: TypeAnnotation | undefined);
|
394
394
|
toRed(rangeStart: number, parent: red.MethodTypeDeclarationBodyParent): red.MethodTypeDeclarationBody;
|
395
395
|
}
|
396
396
|
export type BaseTypeListElement = NamedTypeSpecifier | Comma;
|
@@ -764,7 +764,7 @@ export declare class TypeMethodDeclaration extends BaseNode {
|
|
764
764
|
readonly children: readonly [
|
765
765
|
TagList,
|
766
766
|
ModifierList,
|
767
|
-
Keyword<KeywordKind.
|
767
|
+
Keyword<KeywordKind.Function>,
|
768
768
|
Identifier,
|
769
769
|
TypeParameterClause | undefined,
|
770
770
|
ParameterClause,
|
@@ -773,14 +773,14 @@ export declare class TypeMethodDeclaration extends BaseNode {
|
|
773
773
|
];
|
774
774
|
get tagList(): TagList;
|
775
775
|
get modifierList(): ModifierList;
|
776
|
-
get
|
776
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
777
777
|
get name(): Identifier;
|
778
778
|
get typeParameterClause(): TypeParameterClause | undefined;
|
779
779
|
get parameterClause(): ParameterClause;
|
780
780
|
get returnTypeAnnotation(): TypeAnnotation | undefined;
|
781
781
|
get body(): StatementBlock | undefined;
|
782
782
|
protected get thisAsNode(): Node;
|
783
|
-
constructor(tagList: TagList, modifierList: ModifierList,
|
783
|
+
constructor(tagList: TagList, modifierList: ModifierList, functionKeyword: Keyword<KeywordKind.Function>, name: Identifier, typeParameterClause: TypeParameterClause | undefined, parameterClause: ParameterClause, returnTypeAnnotation: TypeAnnotation | undefined, body: StatementBlock | undefined);
|
784
784
|
toRed(rangeStart: number, parent: red.TypeMemberDeclarationParent): red.TypeMethodDeclaration;
|
785
785
|
}
|
786
786
|
export declare class TypeVariableDeclaration extends BaseNode {
|
@@ -859,7 +859,7 @@ export declare class NestedMethodDeclaration extends BaseNode {
|
|
859
859
|
readonly kind = NodeKind.NestedMethodDeclaration;
|
860
860
|
readonly children: readonly [
|
861
861
|
Keyword<KeywordKind.Async> | undefined,
|
862
|
-
Keyword<KeywordKind.
|
862
|
+
Keyword<KeywordKind.Function>,
|
863
863
|
Identifier,
|
864
864
|
TypeParameterClause | undefined,
|
865
865
|
ParameterClause,
|
@@ -867,14 +867,14 @@ export declare class NestedMethodDeclaration extends BaseNode {
|
|
867
867
|
StatementBlock
|
868
868
|
];
|
869
869
|
get asyncKeyword(): Keyword<KeywordKind.Async> | undefined;
|
870
|
-
get
|
870
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
871
871
|
get name(): Identifier;
|
872
872
|
get typeParameterClause(): TypeParameterClause | undefined;
|
873
873
|
get parameterClause(): ParameterClause;
|
874
874
|
get returnTypeAnnotation(): TypeAnnotation | undefined;
|
875
875
|
get body(): StatementBlock;
|
876
876
|
protected get thisAsNode(): Node;
|
877
|
-
constructor(asyncKeyword: Keyword<KeywordKind.Async> | undefined,
|
877
|
+
constructor(asyncKeyword: Keyword<KeywordKind.Async> | undefined, functionKeyword: Keyword<KeywordKind.Function>, name: Identifier, typeParameterClause: TypeParameterClause | undefined, parameterClause: ParameterClause, returnTypeAnnotation: TypeAnnotation | undefined, body: StatementBlock);
|
878
878
|
toRed(rangeStart: number, parent: red.NestedMethodDeclarationParent): red.NestedMethodDeclaration;
|
879
879
|
}
|
880
880
|
export declare class LocalVariableDeclaration extends BaseNode {
|
@@ -905,7 +905,7 @@ export declare class EnumerationVariableDeclaration extends BaseNode {
|
|
905
905
|
constructor(name: Identifier);
|
906
906
|
toRed(rangeStart: number, parent: red.EnumerationVariableDeclarationParent): red.EnumerationVariableDeclaration;
|
907
907
|
}
|
908
|
-
export type Expression = ArrayLiteral | AsExpression | AssertionExpression | AssumptionExpression | BinaryExpression | MethodBlockLiteral | CallExpression | IdentifierExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression |
|
908
|
+
export type Expression = ArrayLiteral | AsExpression | AssertionExpression | AssumptionExpression | BinaryExpression | MethodBlockLiteral | CallExpression | IdentifierExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | NotExpression | MethodLiteral | ParenthesizedExpression | WhenTernaryExpression | PrefixUnaryExpression | PropertyAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | GenericSpecializationExpression | DefaultMatchExpression | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression;
|
909
909
|
export declare class ArrayLiteral extends BaseNode {
|
910
910
|
readonly kind = NodeKind.ArrayLiteral;
|
911
911
|
readonly children: readonly [
|
@@ -981,7 +981,7 @@ export declare class BinaryExpression extends BaseNode {
|
|
981
981
|
constructor(left: Expression, operator: BinaryExpressionOperator, right: Expression);
|
982
982
|
toRed(rangeStart: number, parent: red.ExpressionParent): red.BinaryExpression;
|
983
983
|
}
|
984
|
-
export type BinaryExpressionOperator = Token<TokenKind.Plus> | Token<TokenKind.Minus> | Token<TokenKind.Asterisk> | Token<TokenKind.Slash> | Token<TokenKind.Backslash> | Token<TokenKind.BackslashBackslash> | Token<TokenKind.EqualsEquals> | Token<TokenKind.ExclamationEquals> | Token<TokenKind.LessThan> | Token<TokenKind.GreaterThan> | Token<TokenKind.LessThanEquals> | Token<TokenKind.GreaterThanEquals> | Token<TokenKind.QuestionQuestion> | Keyword<KeywordKind.Or> | Keyword<KeywordKind.And> | Keyword<KeywordKind.Xor>;
|
984
|
+
export type BinaryExpressionOperator = Token<TokenKind.Plus> | Token<TokenKind.Minus> | Token<TokenKind.Asterisk> | Token<TokenKind.Slash> | Token<TokenKind.Backslash> | Token<TokenKind.BackslashBackslash> | Token<TokenKind.EqualsEquals> | Token<TokenKind.ExclamationEquals> | Token<TokenKind.LessThan> | Token<TokenKind.GreaterThan> | Token<TokenKind.LessThanEquals> | Token<TokenKind.GreaterThanEquals> | Token<TokenKind.QuestionQuestion> | Keyword<KeywordKind.Or> | Keyword<KeywordKind.And> | Keyword<KeywordKind.Xor> | Token<TokenKind.Ampersand> | Token<TokenKind.Bar> | Token<TokenKind.BarBar>;
|
985
985
|
export declare class MethodBlockLiteral extends BaseNode {
|
986
986
|
readonly kind = NodeKind.MethodBlockLiteral;
|
987
987
|
readonly children: readonly [
|
@@ -1079,22 +1079,6 @@ export declare class IsExpression extends BaseNode {
|
|
1079
1079
|
constructor(expression: Expression, isKeyword: Keyword<KeywordKind.Is>, typeSpecifier: TypeSpecifier);
|
1080
1080
|
toRed(rangeStart: number, parent: red.ExpressionParent): red.IsExpression;
|
1081
1081
|
}
|
1082
|
-
export declare class UnobservableExpression extends BaseNode {
|
1083
|
-
readonly kind = NodeKind.UnobservableExpression;
|
1084
|
-
readonly children: readonly [
|
1085
|
-
Keyword<KeywordKind.Unobservable>,
|
1086
|
-
Token<TokenKind.OpenParenthesis>,
|
1087
|
-
Expression,
|
1088
|
-
Token<TokenKind.CloseParenthesis>
|
1089
|
-
];
|
1090
|
-
get unobservableKeyword(): Keyword<KeywordKind.Unobservable>;
|
1091
|
-
get openParenthesisToken(): Token<TokenKind.OpenParenthesis>;
|
1092
|
-
get expression(): Expression;
|
1093
|
-
get closeParenthesisToken(): Token<TokenKind.CloseParenthesis>;
|
1094
|
-
protected get thisAsNode(): Node;
|
1095
|
-
constructor(unobservableKeyword: Keyword<KeywordKind.Unobservable>, openParenthesisToken: Token<TokenKind.OpenParenthesis>, expression: Expression, closeParenthesisToken: Token<TokenKind.CloseParenthesis>);
|
1096
|
-
toRed(rangeStart: number, parent: red.ExpressionParent): red.UnobservableExpression;
|
1097
|
-
}
|
1098
1082
|
export declare class NotExpression extends BaseNode {
|
1099
1083
|
readonly kind = NodeKind.NotExpression;
|
1100
1084
|
readonly children: readonly [
|
@@ -1115,18 +1099,18 @@ export declare class MethodLiteral extends BaseNode {
|
|
1115
1099
|
readonly kind = NodeKind.MethodLiteral;
|
1116
1100
|
readonly children: readonly [
|
1117
1101
|
Keyword<KeywordKind.Async> | undefined,
|
1118
|
-
Keyword<KeywordKind.
|
1102
|
+
Keyword<KeywordKind.Function>,
|
1119
1103
|
ParameterClause,
|
1120
1104
|
TypeAnnotation | undefined,
|
1121
1105
|
StatementBlock
|
1122
1106
|
];
|
1123
1107
|
get asyncKeyword(): Keyword<KeywordKind.Async> | undefined;
|
1124
|
-
get
|
1108
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
1125
1109
|
get parameterClause(): ParameterClause;
|
1126
1110
|
get returnTypeAnnotation(): TypeAnnotation | undefined;
|
1127
1111
|
get body(): StatementBlock;
|
1128
1112
|
protected get thisAsNode(): Node;
|
1129
|
-
constructor(asyncKeyword: Keyword<KeywordKind.Async> | undefined,
|
1113
|
+
constructor(asyncKeyword: Keyword<KeywordKind.Async> | undefined, functionKeyword: Keyword<KeywordKind.Function>, parameterClause: ParameterClause, returnTypeAnnotation: TypeAnnotation | undefined, body: StatementBlock);
|
1130
1114
|
toRed(rangeStart: number, parent: red.ExpressionParent): red.MethodLiteral;
|
1131
1115
|
}
|
1132
1116
|
export declare class ParenthesizedExpression extends BaseNode {
|
@@ -1173,7 +1157,7 @@ export declare class PrefixUnaryExpression extends BaseNode {
|
|
1173
1157
|
constructor(operator: PrefixUnaryExpressionOperator, operand: Expression);
|
1174
1158
|
toRed(rangeStart: number, parent: red.ExpressionParent): red.PrefixUnaryExpression;
|
1175
1159
|
}
|
1176
|
-
export type PrefixUnaryExpressionOperator = Token<TokenKind.Plus> | Token<TokenKind.Minus>;
|
1160
|
+
export type PrefixUnaryExpressionOperator = Token<TokenKind.Plus> | Token<TokenKind.Minus> | Token<TokenKind.Exclamation>;
|
1177
1161
|
export declare class PropertyAccessExpression extends BaseNode {
|
1178
1162
|
readonly kind = NodeKind.PropertyAccessExpression;
|
1179
1163
|
readonly children: readonly [
|
@@ -1303,22 +1287,6 @@ export declare class IdentifierExpression extends BaseNode {
|
|
1303
1287
|
constructor(identifier: Identifier);
|
1304
1288
|
toRed(rangeStart: number, parent: red.ExpressionParent): red.IdentifierExpression;
|
1305
1289
|
}
|
1306
|
-
export declare class TransactionalExpression extends BaseNode {
|
1307
|
-
readonly kind = NodeKind.TransactionalExpression;
|
1308
|
-
readonly children: readonly [
|
1309
|
-
Keyword<KeywordKind.Transactional>,
|
1310
|
-
Token<TokenKind.OpenParenthesis>,
|
1311
|
-
Expression,
|
1312
|
-
Token<TokenKind.CloseParenthesis>
|
1313
|
-
];
|
1314
|
-
get transactionalKeyword(): Keyword<KeywordKind.Transactional>;
|
1315
|
-
get openParenthesisToken(): Token<TokenKind.OpenParenthesis>;
|
1316
|
-
get expression(): Expression;
|
1317
|
-
get closeParenthesisToken(): Token<TokenKind.CloseParenthesis>;
|
1318
|
-
protected get thisAsNode(): Node;
|
1319
|
-
constructor(transactionalKeyword: Keyword<KeywordKind.Transactional>, openParenthesisToken: Token<TokenKind.OpenParenthesis>, expression: Expression, closeParenthesisToken: Token<TokenKind.CloseParenthesis>);
|
1320
|
-
toRed(rangeStart: number, parent: red.ExpressionParent): red.TransactionalExpression;
|
1321
|
-
}
|
1322
1290
|
export declare class GenericSpecializationExpression extends BaseNode {
|
1323
1291
|
readonly kind = NodeKind.GenericSpecializationExpression;
|
1324
1292
|
readonly children: readonly [
|
@@ -1341,7 +1309,7 @@ export declare class DefaultMatchExpression extends BaseNode {
|
|
1341
1309
|
constructor(asteriskToken: Token<TokenKind.Asterisk>);
|
1342
1310
|
toRed(rangeStart: number, parent: red.ExpressionParent): red.DefaultMatchExpression;
|
1343
1311
|
}
|
1344
|
-
export type Statement = RunStatement | EmptyStatement | IfStatement | ForStatement | WhileStatement | LoopStatement | ReturnStatement | ErrorStatement | LocalVariableDeclarationStatement | AssignmentStatement | YieldStatement | InvalidStatement | ExpressionStatement | SwitchStatement | BreakLoopStatement | ContinueLoopStatement | NestedMethodDeclarationStatement |
|
1312
|
+
export type Statement = RunStatement | EmptyStatement | IfStatement | ForStatement | WhileStatement | LoopStatement | ReturnStatement | ErrorStatement | LocalVariableDeclarationStatement | AssignmentStatement | YieldStatement | InvalidStatement | ExpressionStatement | SwitchStatement | BreakLoopStatement | ContinueLoopStatement | NestedMethodDeclarationStatement | DisposeStatement;
|
1345
1313
|
export declare class AssignmentStatement extends BaseNode {
|
1346
1314
|
readonly kind = NodeKind.AssignmentStatement;
|
1347
1315
|
readonly children: readonly [
|
@@ -1601,18 +1569,6 @@ export declare class LocalVariableDeclarationStatement extends BaseNode {
|
|
1601
1569
|
constructor(declaration: LocalVariableDeclaration);
|
1602
1570
|
toRed(rangeStart: number, parent: red.StatementParent): red.LocalVariableDeclarationStatement;
|
1603
1571
|
}
|
1604
|
-
export declare class UnobservableStatement extends BaseNode {
|
1605
|
-
readonly kind = NodeKind.UnobservableStatement;
|
1606
|
-
readonly children: readonly [
|
1607
|
-
Keyword<KeywordKind.Unobservable>,
|
1608
|
-
StatementBlock
|
1609
|
-
];
|
1610
|
-
get unobservableKeyword(): Keyword<KeywordKind.Unobservable>;
|
1611
|
-
get body(): StatementBlock;
|
1612
|
-
protected get thisAsNode(): Node;
|
1613
|
-
constructor(unobservableKeyword: Keyword<KeywordKind.Unobservable>, body: StatementBlock);
|
1614
|
-
toRed(rangeStart: number, parent: red.StatementParent): red.UnobservableStatement;
|
1615
|
-
}
|
1616
1572
|
export declare class LoopStatement extends BaseNode {
|
1617
1573
|
readonly kind = NodeKind.LoopStatement;
|
1618
1574
|
readonly children: readonly [
|
@@ -1686,18 +1642,6 @@ export declare class SwitchStatementCaseClause extends BaseNode {
|
|
1686
1642
|
constructor(caseKeyword: Keyword<KeywordKind.Case>, matchExpressionList: MatchExpressionList, body: StatementBlock);
|
1687
1643
|
toRed(rangeStart: number, parent: red.SwitchStatementCaseClauseParent): red.SwitchStatementCaseClause;
|
1688
1644
|
}
|
1689
|
-
export declare class TransactionalStatement extends BaseNode {
|
1690
|
-
readonly kind = NodeKind.TransactionalStatement;
|
1691
|
-
readonly children: readonly [
|
1692
|
-
Keyword<KeywordKind.Transactional>,
|
1693
|
-
StatementBlock
|
1694
|
-
];
|
1695
|
-
get transactionalKeyword(): Keyword<KeywordKind.Transactional>;
|
1696
|
-
get body(): StatementBlock;
|
1697
|
-
protected get thisAsNode(): Node;
|
1698
|
-
constructor(transactionalKeyword: Keyword<KeywordKind.Transactional>, body: StatementBlock);
|
1699
|
-
toRed(rangeStart: number, parent: red.StatementParent): red.TransactionalStatement;
|
1700
|
-
}
|
1701
1645
|
export declare class WhileStatement extends BaseNode {
|
1702
1646
|
readonly kind = NodeKind.WhileStatement;
|
1703
1647
|
readonly children: readonly [
|
@@ -1818,7 +1762,7 @@ export declare class TranslationTypeParameterClause extends BaseNode {
|
|
1818
1762
|
export declare class PackageMethodTranslation extends BaseNode {
|
1819
1763
|
readonly kind = NodeKind.PackageMethodTranslation;
|
1820
1764
|
readonly children: readonly [
|
1821
|
-
Keyword<KeywordKind.
|
1765
|
+
Keyword<KeywordKind.Function>,
|
1822
1766
|
Identifier,
|
1823
1767
|
TranslationTypeParameterClause | undefined,
|
1824
1768
|
TranslationParameterClause,
|
@@ -1827,7 +1771,7 @@ export declare class PackageMethodTranslation extends BaseNode {
|
|
1827
1771
|
TranslationTypeParameterClause | undefined,
|
1828
1772
|
TranslationParameterClause
|
1829
1773
|
];
|
1830
|
-
get
|
1774
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
1831
1775
|
get sourceName(): Identifier;
|
1832
1776
|
get sourceTypeParameterClause(): TranslationTypeParameterClause | undefined;
|
1833
1777
|
get sourceParameterClause(): TranslationParameterClause;
|
@@ -1836,13 +1780,13 @@ export declare class PackageMethodTranslation extends BaseNode {
|
|
1836
1780
|
get translatedTypeParameterClause(): TranslationTypeParameterClause | undefined;
|
1837
1781
|
get translatedParameterClause(): TranslationParameterClause;
|
1838
1782
|
protected get thisAsNode(): Node;
|
1839
|
-
constructor(
|
1783
|
+
constructor(functionKeyword: Keyword<KeywordKind.Function>, sourceName: Identifier, sourceTypeParameterClause: TranslationTypeParameterClause | undefined, sourceParameterClause: TranslationParameterClause, minusGreaterThanToken: Token<TokenKind.MinusGreaterThan>, translatedName: Identifier, translatedTypeParameterClause: TranslationTypeParameterClause | undefined, translatedParameterClause: TranslationParameterClause);
|
1840
1784
|
toRed(rangeStart: number, parent: red.PackageMethodTranslationParent): red.PackageMethodTranslation;
|
1841
1785
|
}
|
1842
1786
|
export declare class TypeMethodTranslation extends BaseNode {
|
1843
1787
|
readonly kind = NodeKind.TypeMethodTranslation;
|
1844
1788
|
readonly children: readonly [
|
1845
|
-
Keyword<KeywordKind.
|
1789
|
+
Keyword<KeywordKind.Function>,
|
1846
1790
|
Identifier,
|
1847
1791
|
TranslationTypeParameterClause | undefined,
|
1848
1792
|
TranslationParameterClause,
|
@@ -1851,7 +1795,7 @@ export declare class TypeMethodTranslation extends BaseNode {
|
|
1851
1795
|
TranslationTypeParameterClause | undefined,
|
1852
1796
|
TranslationParameterClause
|
1853
1797
|
];
|
1854
|
-
get
|
1798
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
1855
1799
|
get sourceName(): Identifier;
|
1856
1800
|
get sourceTypeParameterClause(): TranslationTypeParameterClause | undefined;
|
1857
1801
|
get sourceParameterClause(): TranslationParameterClause;
|
@@ -1860,7 +1804,7 @@ export declare class TypeMethodTranslation extends BaseNode {
|
|
1860
1804
|
get translatedTypeParameterClause(): TranslationTypeParameterClause | undefined;
|
1861
1805
|
get translatedParameterClause(): TranslationParameterClause;
|
1862
1806
|
protected get thisAsNode(): Node;
|
1863
|
-
constructor(
|
1807
|
+
constructor(functionKeyword: Keyword<KeywordKind.Function>, sourceName: Identifier, sourceTypeParameterClause: TranslationTypeParameterClause | undefined, sourceParameterClause: TranslationParameterClause, minusGreaterThanToken: Token<TokenKind.MinusGreaterThan>, translatedName: Identifier, translatedTypeParameterClause: TranslationTypeParameterClause | undefined, translatedParameterClause: TranslationParameterClause);
|
1864
1808
|
toRed(rangeStart: number, parent: red.TypeMethodTranslationParent): red.TypeMethodTranslation;
|
1865
1809
|
}
|
1866
1810
|
export declare class MethodTypeTranslation extends BaseNode {
|
@@ -2123,7 +2067,7 @@ export declare class Modifier extends BaseNode {
|
|
2123
2067
|
toRed(rangeStart: number, parent: red.ModifierParent): red.Modifier;
|
2124
2068
|
}
|
2125
2069
|
export type ModifierKeyword = Keyword<ModifierKeywordKind>;
|
2126
|
-
export type ModifierKeywordKind = KeywordKind.
|
2070
|
+
export type ModifierKeywordKind = KeywordKind.Hidden | KeywordKind.Basic | KeywordKind.Static | KeywordKind.Redefinable | KeywordKind.Abstract | KeywordKind.Redefined | KeywordKind.Async | KeywordKind.Const;
|
2127
2071
|
export type ModifierLevelKeyword = Keyword<KeywordKind.InType> | Keyword<KeywordKind.InHierarchy> | Keyword<KeywordKind.InFile> | Keyword<KeywordKind.InPackage>;
|
2128
2072
|
export declare class ParameterClause extends BaseNode {
|
2129
2073
|
readonly kind = NodeKind.ParameterClause;
|
@@ -2232,4 +2176,4 @@ export declare class TypeAnnotation extends BaseNode {
|
|
2232
2176
|
constructor(colonToken: Token<TokenKind.Colon>, typeSpecifier: TypeSpecifier);
|
2233
2177
|
toRed(rangeStart: number, parent: red.TypeAnnotationParent): red.TypeAnnotation;
|
2234
2178
|
}
|
2235
|
-
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 | TypeVariableDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | InvalidTypeMemberDeclaration | NestedMethodDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | MethodBlockLiteral | CallArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessArgumentList | IndexedAccessExpression | InvalidExpression | IsExpression |
|
2179
|
+
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 | TypeVariableDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | InvalidTypeMemberDeclaration | NestedMethodDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | MethodBlockLiteral | CallArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessArgumentList | IndexedAccessExpression | InvalidExpression | IsExpression | NotExpression | MethodLiteral | ParenthesizedExpression | WhenTernaryExpression | PrefixUnaryExpression | PropertyAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | AssignmentStatement | StatementList | StatementBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatementClauseList | RunStatement | OnErrorClause | ErrorVariableDeclaration | FinallyClause | EmptyStatement | ErrorStatement | ExpressionStatement | EnumerationVariableList | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | InvalidStatement | NestedMethodDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList | SwitchStatementCaseClause | WhileStatement | YieldStatement | TranslationParameterList | TranslationParameterClause | ConstructorTranslation | IndexerTranslationParameterClause | IndexerTranslation | TranslationTypeParameterList | TranslationTypeParameterClause | PackageMethodTranslation | TypeMethodTranslation | MethodTypeTranslation | PackageImportTranslation | QualifiedName | PackageVariableTranslation | TypeVariableOrVariantTranslation | TypeMemberTranslationList | TypeTranslation | TextLiteralTranslation | TextTemplateLiteralTranslation | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | CallArgument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | SetterParameterClause | SetterParameterDeclaration | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation | Token;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { OperatorKind } from '../OperatorKind.js';
|
1
2
|
import * as red from '../red/index.js';
|
2
3
|
import { BaseNode } from './BaseNode.js';
|
3
4
|
import { Node, NodeKind, TokenKind, TriviaKind } from './index.js';
|
@@ -9,8 +10,7 @@ export declare const enum TokenFlags {
|
|
9
10
|
RequiresQuotes = 8,// 'имя с пробелами', '+'
|
10
11
|
EscapedKeyword = 16,// выполнить`
|
11
12
|
ConflictResolvingParameterName = 32,// имя`, выполнить``
|
12
|
-
BackingVariableName = 64
|
13
|
-
OperatorSignOrName = 128
|
13
|
+
BackingVariableName = 64
|
14
14
|
}
|
15
15
|
export declare class Token<TKind extends TokenKind = TokenKind> extends BaseNode {
|
16
16
|
readonly kind = NodeKind.Token;
|
@@ -19,10 +19,11 @@ export declare class Token<TKind extends TokenKind = TokenKind> extends BaseNode
|
|
19
19
|
readonly value: string;
|
20
20
|
readonly leadingTrivia: readonly Trivia[];
|
21
21
|
readonly flags: TokenFlags;
|
22
|
+
readonly ifOperatorNameThenKind: OperatorKind | undefined;
|
22
23
|
get isMissing(): boolean;
|
23
24
|
protected get thisAsNode(): Node;
|
24
25
|
get rangeLength(): number;
|
25
|
-
constructor(tokenKind: TKind, value: string, leadingTrivia: readonly Trivia[], flags: TokenFlags);
|
26
|
+
constructor(tokenKind: TKind, value: string, leadingTrivia: readonly Trivia[], flags: TokenFlags, ifOperatorNameThenKind: OperatorKind | undefined);
|
26
27
|
getTextWithTrivia(): string;
|
27
28
|
toRed(rangeStart: number, parent: red.TokenParent): red.Token<TKind>;
|
28
29
|
hasPrecedingLineBreak(): boolean;
|
@@ -362,10 +362,10 @@ export declare class PackageMethodDeclaration extends BaseNode {
|
|
362
362
|
readonly green: green.PackageMethodDeclaration;
|
363
363
|
readonly parent: PackageMemberDeclarationParent;
|
364
364
|
private _children;
|
365
|
-
get children(): readonly [TagList, ModifierList, Keyword<green.KeywordKind.
|
365
|
+
get children(): readonly [TagList, ModifierList, Keyword<green.KeywordKind.Function>, Identifier, TypeParameterClause | undefined, ParameterClause, TypeAnnotation | undefined, StatementBlock | undefined];
|
366
366
|
get tagList(): TagList;
|
367
367
|
get modifierList(): ModifierList;
|
368
|
-
get
|
368
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
369
369
|
get name(): Identifier;
|
370
370
|
get typeParameterClause(): TypeParameterClause | undefined;
|
371
371
|
get parameterClause(): ParameterClause;
|
@@ -398,9 +398,9 @@ export declare class MethodTypeDeclarationBody extends BaseNode {
|
|
398
398
|
readonly green: green.MethodTypeDeclarationBody;
|
399
399
|
readonly parent: MethodTypeDeclarationBodyParent;
|
400
400
|
private _children;
|
401
|
-
get children(): readonly [Keyword<green.KeywordKind.Async> | undefined, Keyword<green.KeywordKind.
|
401
|
+
get children(): readonly [Keyword<green.KeywordKind.Async> | undefined, Keyword<green.KeywordKind.Function>, ParameterClause, TypeAnnotation | undefined];
|
402
402
|
get asyncKeyword(): Keyword<KeywordKind.Async> | undefined;
|
403
|
-
get
|
403
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
404
404
|
get parameterClause(): ParameterClause;
|
405
405
|
get returnTypeAnnotation(): TypeAnnotation | undefined;
|
406
406
|
protected get thisAsNode(): Node;
|
@@ -744,10 +744,10 @@ export declare class TypeMethodDeclaration extends BaseNode {
|
|
744
744
|
readonly green: green.TypeMethodDeclaration;
|
745
745
|
readonly parent: TypeMemberDeclarationParent;
|
746
746
|
private _children;
|
747
|
-
get children(): readonly [TagList, ModifierList, Keyword<green.KeywordKind.
|
747
|
+
get children(): readonly [TagList, ModifierList, Keyword<green.KeywordKind.Function>, Identifier, TypeParameterClause | undefined, ParameterClause, TypeAnnotation | undefined, StatementBlock | undefined];
|
748
748
|
get tagList(): TagList;
|
749
749
|
get modifierList(): ModifierList;
|
750
|
-
get
|
750
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
751
751
|
get name(): Identifier;
|
752
752
|
get typeParameterClause(): TypeParameterClause | undefined;
|
753
753
|
get parameterClause(): ParameterClause;
|
@@ -823,9 +823,9 @@ export declare class NestedMethodDeclaration extends BaseNode {
|
|
823
823
|
readonly green: green.NestedMethodDeclaration;
|
824
824
|
readonly parent: NestedMethodDeclarationParent;
|
825
825
|
private _children;
|
826
|
-
get children(): readonly [Keyword<green.KeywordKind.Async> | undefined, Keyword<green.KeywordKind.
|
826
|
+
get children(): readonly [Keyword<green.KeywordKind.Async> | undefined, Keyword<green.KeywordKind.Function>, Identifier, TypeParameterClause | undefined, ParameterClause, TypeAnnotation | undefined, StatementBlock];
|
827
827
|
get asyncKeyword(): Keyword<KeywordKind.Async> | undefined;
|
828
|
-
get
|
828
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
829
829
|
get name(): Identifier;
|
830
830
|
get typeParameterClause(): TypeParameterClause | undefined;
|
831
831
|
get parameterClause(): ParameterClause;
|
@@ -863,8 +863,8 @@ export declare class EnumerationVariableDeclaration extends BaseNode {
|
|
863
863
|
constructor(green: green.EnumerationVariableDeclaration, rangeStart: number, parent: EnumerationVariableDeclarationParent);
|
864
864
|
private createChildren;
|
865
865
|
}
|
866
|
-
export type Expression = ArrayLiteral | AsExpression | AssertionExpression | AssumptionExpression | BinaryExpression | MethodBlockLiteral | CallExpression | IdentifierExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression |
|
867
|
-
export type ExpressionParent = ArrayLiteralElementList | AsExpression | AssertionExpression | AssumptionExpression | AssignmentStatement | BinaryExpression | CallArgument | CallExpression | DisposeStatement | ErrorStatement | ExpressionStatement | ForStatement | PackageVariableDeclaration | IfStatement | IndexedAccessArgumentList | IndexedAccessExpression | IsExpression | LocalVariableDeclaration | MatchExpressionList |
|
866
|
+
export type Expression = ArrayLiteral | AsExpression | AssertionExpression | AssumptionExpression | BinaryExpression | MethodBlockLiteral | CallExpression | IdentifierExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | NotExpression | MethodLiteral | ParenthesizedExpression | WhenTernaryExpression | PrefixUnaryExpression | PropertyAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | GenericSpecializationExpression | DefaultMatchExpression | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression;
|
867
|
+
export type ExpressionParent = ArrayLiteralElementList | AsExpression | AssertionExpression | AssumptionExpression | AssignmentStatement | BinaryExpression | CallArgument | CallExpression | DisposeStatement | ErrorStatement | ExpressionStatement | ForStatement | PackageVariableDeclaration | IfStatement | IndexedAccessArgumentList | IndexedAccessExpression | IsExpression | LocalVariableDeclaration | MatchExpressionList | NotExpression | ParameterDeclaration | ParenthesizedExpression | WhenTernaryExpression | PrefixUnaryExpression | PropertyAccessExpression | ReferenceExpression | DereferenceExpression | LoopStatement | ReturnStatement | TextTemplateSpan | TypeVariableDeclaration | SwitchStatement | VariantDeclaration | WhileStatement | YieldStatement | GenericSpecializationExpression | ElseIfClause | TextTemplateLiteralTranslation;
|
868
868
|
export declare class ArrayLiteral extends BaseNode {
|
869
869
|
readonly kind = NodeKind.ArrayLiteral;
|
870
870
|
readonly green: green.ArrayLiteral;
|
@@ -942,7 +942,7 @@ export declare class BinaryExpression extends BaseNode {
|
|
942
942
|
constructor(green: green.BinaryExpression, rangeStart: number, parent: ExpressionParent);
|
943
943
|
private createChildren;
|
944
944
|
}
|
945
|
-
export type BinaryExpressionOperator = Token<TokenKind.Plus> | Token<TokenKind.Minus> | Token<TokenKind.Asterisk> | Token<TokenKind.Slash> | Token<TokenKind.Backslash> | Token<TokenKind.BackslashBackslash> | Token<TokenKind.EqualsEquals> | Token<TokenKind.ExclamationEquals> | Token<TokenKind.LessThan> | Token<TokenKind.GreaterThan> | Token<TokenKind.LessThanEquals> | Token<TokenKind.GreaterThanEquals> | Token<TokenKind.QuestionQuestion> | Keyword<KeywordKind.Or> | Keyword<KeywordKind.And> | Keyword<KeywordKind.Xor>;
|
945
|
+
export type BinaryExpressionOperator = Token<TokenKind.Plus> | Token<TokenKind.Minus> | Token<TokenKind.Asterisk> | Token<TokenKind.Slash> | Token<TokenKind.Backslash> | Token<TokenKind.BackslashBackslash> | Token<TokenKind.EqualsEquals> | Token<TokenKind.ExclamationEquals> | Token<TokenKind.LessThan> | Token<TokenKind.GreaterThan> | Token<TokenKind.LessThanEquals> | Token<TokenKind.GreaterThanEquals> | Token<TokenKind.QuestionQuestion> | Keyword<KeywordKind.Or> | Keyword<KeywordKind.And> | Keyword<KeywordKind.Xor> | Token<TokenKind.Ampersand> | Token<TokenKind.Bar> | Token<TokenKind.BarBar>;
|
946
946
|
export declare class MethodBlockLiteral extends BaseNode {
|
947
947
|
readonly kind = NodeKind.MethodBlockLiteral;
|
948
948
|
readonly green: green.MethodBlockLiteral;
|
@@ -1045,20 +1045,6 @@ export declare class IsExpression extends BaseNode {
|
|
1045
1045
|
constructor(green: green.IsExpression, rangeStart: number, parent: ExpressionParent);
|
1046
1046
|
private createChildren;
|
1047
1047
|
}
|
1048
|
-
export declare class UnobservableExpression extends BaseNode {
|
1049
|
-
readonly kind = NodeKind.UnobservableExpression;
|
1050
|
-
readonly green: green.UnobservableExpression;
|
1051
|
-
readonly parent: ExpressionParent;
|
1052
|
-
private _children;
|
1053
|
-
get children(): readonly [Keyword<green.KeywordKind.Unobservable>, Token<green.TokenKind.OpenParenthesis>, Expression, Token<green.TokenKind.CloseParenthesis>];
|
1054
|
-
get unobservableKeyword(): Keyword<KeywordKind.Unobservable>;
|
1055
|
-
get openParenthesisToken(): Token<TokenKind.OpenParenthesis>;
|
1056
|
-
get expression(): Expression;
|
1057
|
-
get closeParenthesisToken(): Token<TokenKind.CloseParenthesis>;
|
1058
|
-
protected get thisAsNode(): Node;
|
1059
|
-
constructor(green: green.UnobservableExpression, rangeStart: number, parent: ExpressionParent);
|
1060
|
-
private createChildren;
|
1061
|
-
}
|
1062
1048
|
export declare class NotExpression extends BaseNode {
|
1063
1049
|
readonly kind = NodeKind.NotExpression;
|
1064
1050
|
readonly green: green.NotExpression;
|
@@ -1078,9 +1064,9 @@ export declare class MethodLiteral extends BaseNode {
|
|
1078
1064
|
readonly green: green.MethodLiteral;
|
1079
1065
|
readonly parent: ExpressionParent;
|
1080
1066
|
private _children;
|
1081
|
-
get children(): readonly [Keyword<green.KeywordKind.Async> | undefined, Keyword<green.KeywordKind.
|
1067
|
+
get children(): readonly [Keyword<green.KeywordKind.Async> | undefined, Keyword<green.KeywordKind.Function>, ParameterClause, TypeAnnotation | undefined, StatementBlock];
|
1082
1068
|
get asyncKeyword(): Keyword<KeywordKind.Async> | undefined;
|
1083
|
-
get
|
1069
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
1084
1070
|
get parameterClause(): ParameterClause;
|
1085
1071
|
get returnTypeAnnotation(): TypeAnnotation | undefined;
|
1086
1072
|
get body(): StatementBlock;
|
@@ -1128,7 +1114,7 @@ export declare class PrefixUnaryExpression extends BaseNode {
|
|
1128
1114
|
constructor(green: green.PrefixUnaryExpression, rangeStart: number, parent: ExpressionParent);
|
1129
1115
|
private createChildren;
|
1130
1116
|
}
|
1131
|
-
export type PrefixUnaryExpressionOperator = Token<TokenKind.Plus> | Token<TokenKind.Minus>;
|
1117
|
+
export type PrefixUnaryExpressionOperator = Token<TokenKind.Plus> | Token<TokenKind.Minus> | Token<TokenKind.Exclamation>;
|
1132
1118
|
export declare class PropertyAccessExpression extends BaseNode {
|
1133
1119
|
readonly kind = NodeKind.PropertyAccessExpression;
|
1134
1120
|
readonly green: green.PropertyAccessExpression;
|
@@ -1266,20 +1252,6 @@ export declare class IdentifierExpression extends BaseNode {
|
|
1266
1252
|
constructor(green: green.IdentifierExpression, rangeStart: number, parent: ExpressionParent);
|
1267
1253
|
private createChildren;
|
1268
1254
|
}
|
1269
|
-
export declare class TransactionalExpression extends BaseNode {
|
1270
|
-
readonly kind = NodeKind.TransactionalExpression;
|
1271
|
-
readonly green: green.TransactionalExpression;
|
1272
|
-
readonly parent: ExpressionParent;
|
1273
|
-
private _children;
|
1274
|
-
get children(): readonly [Keyword<green.KeywordKind.Transactional>, Token<green.TokenKind.OpenParenthesis>, Expression, Token<green.TokenKind.CloseParenthesis>];
|
1275
|
-
get transactionalKeyword(): Keyword<KeywordKind.Transactional>;
|
1276
|
-
get openParenthesisToken(): Token<TokenKind.OpenParenthesis>;
|
1277
|
-
get expression(): Expression;
|
1278
|
-
get closeParenthesisToken(): Token<TokenKind.CloseParenthesis>;
|
1279
|
-
protected get thisAsNode(): Node;
|
1280
|
-
constructor(green: green.TransactionalExpression, rangeStart: number, parent: ExpressionParent);
|
1281
|
-
private createChildren;
|
1282
|
-
}
|
1283
1255
|
export declare class GenericSpecializationExpression extends BaseNode {
|
1284
1256
|
readonly kind = NodeKind.GenericSpecializationExpression;
|
1285
1257
|
readonly green: green.GenericSpecializationExpression;
|
@@ -1303,7 +1275,7 @@ export declare class DefaultMatchExpression extends BaseNode {
|
|
1303
1275
|
constructor(green: green.DefaultMatchExpression, rangeStart: number, parent: ExpressionParent);
|
1304
1276
|
private createChildren;
|
1305
1277
|
}
|
1306
|
-
export type Statement = RunStatement | EmptyStatement | IfStatement | ForStatement | WhileStatement | LoopStatement | ReturnStatement | ErrorStatement | LocalVariableDeclarationStatement | AssignmentStatement | YieldStatement | InvalidStatement | ExpressionStatement | SwitchStatement | BreakLoopStatement | ContinueLoopStatement | NestedMethodDeclarationStatement |
|
1278
|
+
export type Statement = RunStatement | EmptyStatement | IfStatement | ForStatement | WhileStatement | LoopStatement | ReturnStatement | ErrorStatement | LocalVariableDeclarationStatement | AssignmentStatement | YieldStatement | InvalidStatement | ExpressionStatement | SwitchStatement | BreakLoopStatement | ContinueLoopStatement | NestedMethodDeclarationStatement | DisposeStatement;
|
1307
1279
|
export type StatementParent = StatementList;
|
1308
1280
|
export declare class AssignmentStatement extends BaseNode {
|
1309
1281
|
readonly kind = NodeKind.AssignmentStatement;
|
@@ -1333,7 +1305,7 @@ export declare class StatementList extends BaseNode {
|
|
1333
1305
|
constructor(green: green.StatementList, rangeStart: number, parent: StatementListParent);
|
1334
1306
|
private createChildren;
|
1335
1307
|
}
|
1336
|
-
export type StatementBlockParent = PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageMethodDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | TypeIndexedGetterDeclaration | TypeIndexedSetterDeclaration | TypeDereferencedVariableGetterDeclaration | TypeDereferencedVariableSetterDeclaration | TypeMethodDeclaration | NestedMethodDeclaration | MethodLiteral | MethodBlockLiteral | PackageConstructorDeclaration | PackageEntryPointDeclaration | TypeConstructorDeclaration | TypeDestructorDeclaration | IfStatement | ElseIfClause | RunStatement | OnErrorClause | FinallyClause | ForStatement | LoopStatement | SwitchStatementCaseClause | WhileStatement
|
1308
|
+
export type StatementBlockParent = PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageMethodDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | TypeIndexedGetterDeclaration | TypeIndexedSetterDeclaration | TypeDereferencedVariableGetterDeclaration | TypeDereferencedVariableSetterDeclaration | TypeMethodDeclaration | NestedMethodDeclaration | MethodLiteral | MethodBlockLiteral | PackageConstructorDeclaration | PackageEntryPointDeclaration | TypeConstructorDeclaration | TypeDestructorDeclaration | IfStatement | ElseIfClause | RunStatement | OnErrorClause | FinallyClause | ForStatement | LoopStatement | SwitchStatementCaseClause | WhileStatement;
|
1337
1309
|
export declare class StatementBlock extends BaseNode {
|
1338
1310
|
readonly kind = NodeKind.StatementBlock;
|
1339
1311
|
readonly green: green.StatementBlock;
|
@@ -1586,18 +1558,6 @@ export declare class LocalVariableDeclarationStatement extends BaseNode {
|
|
1586
1558
|
constructor(green: green.LocalVariableDeclarationStatement, rangeStart: number, parent: StatementParent);
|
1587
1559
|
private createChildren;
|
1588
1560
|
}
|
1589
|
-
export declare class UnobservableStatement extends BaseNode {
|
1590
|
-
readonly kind = NodeKind.UnobservableStatement;
|
1591
|
-
readonly green: green.UnobservableStatement;
|
1592
|
-
readonly parent: StatementParent;
|
1593
|
-
private _children;
|
1594
|
-
get children(): readonly [Keyword<green.KeywordKind.Unobservable>, StatementBlock];
|
1595
|
-
get unobservableKeyword(): Keyword<KeywordKind.Unobservable>;
|
1596
|
-
get body(): StatementBlock;
|
1597
|
-
protected get thisAsNode(): Node;
|
1598
|
-
constructor(green: green.UnobservableStatement, rangeStart: number, parent: StatementParent);
|
1599
|
-
private createChildren;
|
1600
|
-
}
|
1601
1561
|
export declare class LoopStatement extends BaseNode {
|
1602
1562
|
readonly kind = NodeKind.LoopStatement;
|
1603
1563
|
readonly green: green.LoopStatement;
|
@@ -1678,18 +1638,6 @@ export declare class SwitchStatementCaseClause extends BaseNode {
|
|
1678
1638
|
constructor(green: green.SwitchStatementCaseClause, rangeStart: number, parent: SwitchStatementCaseClauseParent);
|
1679
1639
|
private createChildren;
|
1680
1640
|
}
|
1681
|
-
export declare class TransactionalStatement extends BaseNode {
|
1682
|
-
readonly kind = NodeKind.TransactionalStatement;
|
1683
|
-
readonly green: green.TransactionalStatement;
|
1684
|
-
readonly parent: StatementParent;
|
1685
|
-
private _children;
|
1686
|
-
get children(): readonly [Keyword<green.KeywordKind.Transactional>, StatementBlock];
|
1687
|
-
get transactionalKeyword(): Keyword<KeywordKind.Transactional>;
|
1688
|
-
get body(): StatementBlock;
|
1689
|
-
protected get thisAsNode(): Node;
|
1690
|
-
constructor(green: green.TransactionalStatement, rangeStart: number, parent: StatementParent);
|
1691
|
-
private createChildren;
|
1692
|
-
}
|
1693
1641
|
export declare class WhileStatement extends BaseNode {
|
1694
1642
|
readonly kind = NodeKind.WhileStatement;
|
1695
1643
|
readonly green: green.WhileStatement;
|
@@ -1819,8 +1767,8 @@ export declare class PackageMethodTranslation extends BaseNode {
|
|
1819
1767
|
readonly green: green.PackageMethodTranslation;
|
1820
1768
|
readonly parent: PackageMethodTranslationParent;
|
1821
1769
|
private _children;
|
1822
|
-
get children(): readonly [Keyword<green.KeywordKind.
|
1823
|
-
get
|
1770
|
+
get children(): readonly [Keyword<green.KeywordKind.Function>, Identifier, TranslationTypeParameterClause | undefined, TranslationParameterClause, Token<green.TokenKind.MinusGreaterThan>, Identifier, TranslationTypeParameterClause | undefined, TranslationParameterClause];
|
1771
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
1824
1772
|
get sourceName(): Identifier;
|
1825
1773
|
get sourceTypeParameterClause(): TranslationTypeParameterClause | undefined;
|
1826
1774
|
get sourceParameterClause(): TranslationParameterClause;
|
@@ -1838,8 +1786,8 @@ export declare class TypeMethodTranslation extends BaseNode {
|
|
1838
1786
|
readonly green: green.TypeMethodTranslation;
|
1839
1787
|
readonly parent: TypeMethodTranslationParent;
|
1840
1788
|
private _children;
|
1841
|
-
get children(): readonly [Keyword<green.KeywordKind.
|
1842
|
-
get
|
1789
|
+
get children(): readonly [Keyword<green.KeywordKind.Function>, Identifier, TranslationTypeParameterClause | undefined, TranslationParameterClause, Token<green.TokenKind.MinusGreaterThan>, Identifier, TranslationTypeParameterClause | undefined, TranslationParameterClause];
|
1790
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
1843
1791
|
get sourceName(): Identifier;
|
1844
1792
|
get sourceTypeParameterClause(): TranslationTypeParameterClause | undefined;
|
1845
1793
|
get sourceParameterClause(): TranslationParameterClause;
|
@@ -2108,7 +2056,7 @@ export declare class Modifier extends BaseNode {
|
|
2108
2056
|
private createChildren;
|
2109
2057
|
}
|
2110
2058
|
export type ModifierKeyword = Keyword<ModifierKeywordKind>;
|
2111
|
-
export type ModifierKeywordKind = KeywordKind.
|
2059
|
+
export type ModifierKeywordKind = KeywordKind.Hidden | KeywordKind.Basic | KeywordKind.Static | KeywordKind.Redefinable | KeywordKind.Abstract | KeywordKind.Redefined | KeywordKind.Async | KeywordKind.Const;
|
2112
2060
|
export type ModifierLevelKeyword = Keyword<KeywordKind.InType> | Keyword<KeywordKind.InHierarchy> | Keyword<KeywordKind.InFile> | Keyword<KeywordKind.InPackage>;
|
2113
2061
|
export type ParameterClauseParent = PackageMethodDeclaration | NestedMethodDeclaration | MethodLiteral | TypeConstructorDeclaration | TypeDestructorDeclaration | TypeMethodDeclaration | MethodTypeDeclarationBody;
|
2114
2062
|
export declare class ParameterClause extends BaseNode {
|
@@ -2234,4 +2182,4 @@ export declare class TypeAnnotation extends BaseNode {
|
|
2234
2182
|
constructor(green: green.TypeAnnotation, rangeStart: number, parent: TypeAnnotationParent);
|
2235
2183
|
private createChildren;
|
2236
2184
|
}
|
2237
|
-
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 | TypeVariableDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | InvalidTypeMemberDeclaration | NestedMethodDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | MethodBlockLiteral | CallArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessArgumentList | IndexedAccessExpression | InvalidExpression | IsExpression |
|
2185
|
+
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 | TypeVariableDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | InvalidTypeMemberDeclaration | NestedMethodDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | MethodBlockLiteral | CallArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessArgumentList | IndexedAccessExpression | InvalidExpression | IsExpression | NotExpression | MethodLiteral | ParenthesizedExpression | WhenTernaryExpression | PrefixUnaryExpression | PropertyAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | AssignmentStatement | StatementList | StatementBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatementClauseList | RunStatement | OnErrorClause | ErrorVariableDeclaration | FinallyClause | EmptyStatement | ErrorStatement | ExpressionStatement | EnumerationVariableList | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | InvalidStatement | NestedMethodDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList | SwitchStatementCaseClause | WhileStatement | YieldStatement | TranslationParameterList | TranslationParameterClause | ConstructorTranslation | IndexerTranslationParameterClause | IndexerTranslation | TranslationTypeParameterList | TranslationTypeParameterClause | PackageMethodTranslation | TypeMethodTranslation | MethodTypeTranslation | PackageImportTranslation | QualifiedName | PackageVariableTranslation | TypeVariableOrVariantTranslation | TypeMemberTranslationList | TypeTranslation | TextLiteralTranslation | TextTemplateLiteralTranslation | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | CallArgument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | SetterParameterClause | SetterParameterDeclaration | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation | Token;
|
@@ -1,5 +1,9 @@
|
|
1
1
|
export { TokenFlags } from '../green/index.js';
|
2
|
+
export * from '../KeywordKind.js';
|
2
3
|
export * from '../NodeKind.js';
|
4
|
+
export * from '../OperatorKind.js';
|
5
|
+
export * from '../TokenKind.js';
|
6
|
+
export * from '../TriviaKind.js';
|
3
7
|
export * from './NodePath.js';
|
4
8
|
export * from './Nodes.js';
|
5
9
|
export * from './Token.js';
|