@artel/artc 0.6.25218 → 0.6.25219
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 +8 -6
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +157 -158
- package/build/{chunk-FI6LW2RD.js → chunk-AIY75NR5.js} +1 -1
- package/build/{chunk-SK7ZBC3X.js → chunk-IYSH7MAQ.js} +878 -1003
- package/build/{chunk-TQDMVKTN.js → chunk-QLTGS2V2.js} +2 -2
- package/build/types/analysis/Analyzer.d.ts +1 -1
- package/build/types/analysis/ArgumentToParameterMatchResult.d.ts +3 -3
- package/build/types/analysis/SemanticContext.d.ts +7 -7
- package/build/types/analysis/Tags.d.ts +18 -6
- package/build/types/analysis/Utils.d.ts +4 -3
- package/build/types/diagnostic/DiagnosticCode.d.ts +2 -2
- package/build/types/emitter/IrToJs.d.ts +1 -1
- package/build/types/emitter/Transformer.d.ts +2 -2
- package/build/types/emitter/ir/Nodes.d.ts +66 -69
- package/build/types/emitter/ir/types.d.ts +2 -2
- package/build/types/tree/NodeKind.d.ts +57 -58
- package/build/types/tree/green/Nodes.d.ts +7 -20
- package/build/types/tree/red/Nodes.d.ts +8 -24
- package/package.json +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
import {
|
2
2
|
Compiler
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-AIY75NR5.js";
|
4
4
|
import {
|
5
5
|
ArtelVersion,
|
6
6
|
Cached,
|
@@ -14,7 +14,7 @@ import {
|
|
14
14
|
__async,
|
15
15
|
performanceMeasurementStageNames,
|
16
16
|
performanceMeasurementStages
|
17
|
-
} from "./chunk-
|
17
|
+
} from "./chunk-IYSH7MAQ.js";
|
18
18
|
|
19
19
|
// source/executor/FileSystemUri.ts
|
20
20
|
import { platform } from "os";
|
@@ -29,6 +29,7 @@ import { ImportedPackageNameTree, PackageNameTreeNode } from './ImportedPackageN
|
|
29
29
|
import * as indexedAccessExpressionMeaning from './IndexedAccessExpressionMeaning.js';
|
30
30
|
import { WithLocalization } from './Localization.js';
|
31
31
|
import { LocalizationContext } from './LocalizationContext.js';
|
32
|
+
import { ModifierFlags } from './ModifierFlags.js';
|
32
33
|
import { NamedTypeSpecifierResolutionResult } from './NamedTypeSpecifierResolver.js';
|
33
34
|
import { GetterDeclaration, MethodTypeDeclaration, PackageVariableAccessorDeclaration, SetterDeclaration, StructuredTypeDeclaration, TypeDereferencedVariableAccessorDeclaration, TypeIndexedAccessorDeclaration, TypeVariableAccessorDeclaration, VariantTypeDeclaration } from './NodeTypeUtils.js';
|
34
35
|
import * as objectExpressionMeaning from './ObjectExpressionMeaning.js';
|
@@ -42,7 +43,6 @@ import * as tags from './Tags.js';
|
|
42
43
|
import { TargetTypeHint } from './TargetTypeHint.js';
|
43
44
|
import * as typeOverloadResolver from './TypeOverloadResolver.js';
|
44
45
|
import { WellKnownDeclarations } from './index.js';
|
45
|
-
import { ModifierFlags } from './ModifierFlags.js';
|
46
46
|
export declare class Analyzer {
|
47
47
|
static readonly enumeratorMethodName = "\u043F\u0435\u0440\u0435\u0431\u043E\u0440";
|
48
48
|
static readonly methodTypeInvokeMethodName = "\u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Diagnostic } from '../diagnostic/Diagnostic.js';
|
2
|
-
import {
|
2
|
+
import { ParameterVariableEntity } from '../entities/index.js';
|
3
3
|
import { Argument, AutotypeCallExpression, CallExpression, IndexedAccessExpression, Tag } from '../tree/index.js';
|
4
4
|
import * as types from '../types/index.js';
|
5
5
|
import { LocalizedName } from './Localization.js';
|
@@ -22,8 +22,8 @@ export declare class MatchResult {
|
|
22
22
|
constructor(parameterByArgument: ReadonlyMap<Argument, MatchResultValueParameter>, unmatchedParameters: readonly MatchResultValueParameter[], diagnostics: readonly Diagnostic[]);
|
23
23
|
}
|
24
24
|
export declare class MatchResultValueParameter {
|
25
|
-
readonly entity:
|
25
|
+
readonly entity: ParameterVariableEntity;
|
26
26
|
readonly type: types.Type;
|
27
27
|
readonly name: LocalizedName;
|
28
|
-
constructor(entity:
|
28
|
+
constructor(entity: ParameterVariableEntity, type: types.Type, name: LocalizedName);
|
29
29
|
}
|
@@ -21,7 +21,7 @@ export interface SemanticContext {
|
|
21
21
|
getContainingSourceFile(): SourceFile;
|
22
22
|
getContainingPackage(): PackageEntity;
|
23
23
|
getLocalizationContext(): LocalizationContext;
|
24
|
-
|
24
|
+
isInTryStatement(): TryStatementClausesInfo | undefined;
|
25
25
|
isInFinallyClause(): boolean;
|
26
26
|
getScopeLookup(): Lookup;
|
27
27
|
getHidingMatcher(): IEntityHidingMatcher;
|
@@ -143,7 +143,7 @@ export declare namespace TypeOrTypeExtension {
|
|
143
143
|
}
|
144
144
|
export {};
|
145
145
|
}
|
146
|
-
export declare class
|
146
|
+
export declare class TryStatementClausesInfo {
|
147
147
|
readonly hasCatchClause: boolean;
|
148
148
|
readonly hasFinallyClause: boolean;
|
149
149
|
constructor(hasCatchClause: boolean, hasFinallyClause: boolean);
|
@@ -157,7 +157,7 @@ declare abstract class SemanticContextWithParent implements SemanticContext {
|
|
157
157
|
getContainingSourceFile(): SourceFile;
|
158
158
|
getContainingPackage(): PackageEntity;
|
159
159
|
getLocalizationContext(): LocalizationContext;
|
160
|
-
|
160
|
+
isInTryStatement(): TryStatementClausesInfo | undefined;
|
161
161
|
isInFinallyClause(): boolean;
|
162
162
|
getScopeLookup(): Lookup;
|
163
163
|
getHidingMatcher(): IEntityHidingMatcher;
|
@@ -173,7 +173,7 @@ export declare class SourceFileSemanticContext implements SemanticContext {
|
|
173
173
|
getContainingTypeOrTypeExtension(): TypeOrTypeExtension | undefined;
|
174
174
|
getContainingSourceFile(): SourceFile;
|
175
175
|
getContainingPackage(): PackageEntity;
|
176
|
-
|
176
|
+
isInTryStatement(): TryStatementClausesInfo | undefined;
|
177
177
|
isInFinallyClause(): boolean;
|
178
178
|
getScopeLookup(): Lookup;
|
179
179
|
getLocalizationContext(): LocalizationContext;
|
@@ -190,7 +190,7 @@ export declare class LastSemanticContextOfType extends SemanticContextWithParent
|
|
190
190
|
constructor(analyzer: Analyzer, node: TypeDeclarationCreatingSemanticContext, parentContext: SemanticContext);
|
191
191
|
getContainingTypeOrTypeExtension(): TypeOrTypeExtension | undefined;
|
192
192
|
getContainingSubprogram(): SubprogramInfo | undefined;
|
193
|
-
|
193
|
+
isInTryStatement(): TryStatementClausesInfo | undefined;
|
194
194
|
isInFinallyClause(): boolean;
|
195
195
|
private getContainingType;
|
196
196
|
}
|
@@ -229,7 +229,7 @@ export declare class LastSemanticContextOfMethod extends SemanticContextWithPare
|
|
229
229
|
private readonly _subprogramInfo;
|
230
230
|
constructor(analyzer: Analyzer, node: MethodDeclaration, parentContext: SemanticContext);
|
231
231
|
getContainingSubprogram(): SubprogramInfo | undefined;
|
232
|
-
|
232
|
+
isInTryStatement(): TryStatementClausesInfo | undefined;
|
233
233
|
isInFinallyClause(): boolean;
|
234
234
|
}
|
235
235
|
export declare class MethodTypeParameterSemanticContext extends SemanticContextWithParent {
|
@@ -317,7 +317,7 @@ export declare class StatementBlockSemanticContext extends SemanticContextWithPa
|
|
317
317
|
private readonly _scopeChain;
|
318
318
|
constructor(analyzer: Analyzer, node: tree.StatementBlock, parentContext: SemanticContext);
|
319
319
|
getScopeChain(): ScopeChain;
|
320
|
-
|
320
|
+
isInTryStatement(): TryStatementClausesInfo | undefined;
|
321
321
|
isInFinallyClause(): boolean;
|
322
322
|
}
|
323
323
|
export type RegularOrBlockMethodLiteral = tree.MethodLiteral | tree.MethodBlockLiteral;
|
@@ -1,12 +1,23 @@
|
|
1
|
-
import {
|
1
|
+
import { ParameterVariableEntity } from '../entities/index.js';
|
2
2
|
import * as types from '../types/index.js';
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
readonly argumentByParameter: ReadonlyMap<
|
3
|
+
import { AccessedMethod } from './AccessedMethod.js';
|
4
|
+
export type Tag = TagType | TagMethod;
|
5
|
+
declare abstract class TagBase {
|
6
|
+
readonly argumentByParameter: ReadonlyMap<ParameterVariableEntity, TagArgument>;
|
7
7
|
private readonly _argumentByName;
|
8
8
|
get argumentByName(): ReadonlyMap<string, TagArgument>;
|
9
|
-
constructor(
|
9
|
+
constructor(argumentByParameter: ReadonlyMap<ParameterVariableEntity, TagArgument>);
|
10
|
+
}
|
11
|
+
export declare class TagType extends TagBase {
|
12
|
+
readonly kind = "type";
|
13
|
+
readonly type: types.Type;
|
14
|
+
readonly constructor_: types.Constructor;
|
15
|
+
constructor(type: types.Type, constructor_: types.Constructor, argumentByParameter: ReadonlyMap<ParameterVariableEntity, TagArgument>);
|
16
|
+
}
|
17
|
+
export declare class TagMethod extends TagBase {
|
18
|
+
readonly kind = "method";
|
19
|
+
readonly method: AccessedMethod;
|
20
|
+
constructor(method: AccessedMethod, argumentByParameter: ReadonlyMap<ParameterVariableEntity, TagArgument>);
|
10
21
|
}
|
11
22
|
export type TagArgument = TagArgument_string | TagArgument_numeric | TagArgument_boolean | TagArgument_invalid;
|
12
23
|
export declare class TagArgument_string {
|
@@ -27,3 +38,4 @@ export declare class TagArgument_boolean {
|
|
27
38
|
export declare class TagArgument_invalid {
|
28
39
|
readonly kind = "invalid";
|
29
40
|
}
|
41
|
+
export {};
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { Entity, PackageEntity, StructuredTypeEntity, TypeParameterEntity, VariableEntity } from '../entities/index.js';
|
1
|
+
import { Entity, MethodEntity, PackageEntity, StructuredTypeEntity, TypeParameterEntity, VariableEntity } from '../entities/index.js';
|
2
2
|
import * as tree from '../tree/index.js';
|
3
3
|
import * as types from '../types/index.js';
|
4
|
-
import { Tag } from './Tags.js';
|
4
|
+
import { Tag, TagMethod, TagType } from './Tags.js';
|
5
5
|
type TextToken = tree.Token<tree.TokenKind.TextLiteral> | tree.Token<tree.TokenKind.TextTemplateHead> | tree.Token<tree.TokenKind.TextTemplatePart> | tree.Token<tree.TokenKind.TextTemplateTail>;
|
6
6
|
export declare function getUnescapedTextFromTextToken(token: TextToken): string;
|
7
7
|
export declare function unwrapParenthesizedExpressions(expression: tree.Expression): tree.Expression;
|
@@ -9,7 +9,8 @@ export declare function getParentSkippingParenthesizedExpressions(expression: tr
|
|
9
9
|
export declare function unaliasType(type: types.Type): types.Type;
|
10
10
|
export declare function unaliasType(type: types.Type | undefined): types.Type | undefined;
|
11
11
|
export declare function getPackageContainingEntity(entity: Entity): PackageEntity;
|
12
|
-
export declare function findTag(tagTypeEntity: StructuredTypeEntity, tags: readonly Tag[]):
|
12
|
+
export declare function findTag(tagTypeEntity: StructuredTypeEntity, tags: readonly Tag[]): TagType | undefined;
|
13
|
+
export declare function findTag(tagMethodEntity: MethodEntity, tags: readonly Tag[]): TagMethod | undefined;
|
13
14
|
export declare function getRequiredTypeParameterCount(typeParameters: readonly TypeParameterEntity[]): number;
|
14
15
|
export declare function flattenPackageMemberDeclarationList(list: tree.PackageMemberDeclarationList): Iterable<Exclude<tree.PackageMemberDeclaration, tree.PackageMemberGroupDeclaration>>;
|
15
16
|
export declare function flattenTypeMemberDeclarationList(list: tree.TypeMemberDeclarationList): Iterable<Exclude<tree.TypeMemberDeclaration, tree.TypeMemberGroupDeclaration>>;
|
@@ -23,7 +23,7 @@ export declare enum DiagnosticCode {
|
|
23
23
|
TranslationExpected = 21,
|
24
24
|
Expected0But1Found = 22,
|
25
25
|
InvalidTextTemplateLiteral = 23,
|
26
|
-
|
26
|
+
RunKeywordCreationKeywordOrModifierListExpected = 24,
|
27
27
|
ModifierListExpected = 25,
|
28
28
|
HidingLevelExpected = 26,
|
29
29
|
ParameterNameCanContainOnlyOneBackQuote = 27,
|
@@ -89,7 +89,7 @@ export declare enum DiagnosticCode {
|
|
89
89
|
YieldStatementCanNotBeUsedInAnonymousMethods = 87,
|
90
90
|
YieldStatementCanNotBeUsedHere = 88,
|
91
91
|
MethodsUsingYieldStatementMustHaveEnumerableAsReturnType = 89,
|
92
|
-
|
92
|
+
YieldStatementCanNotBeUsedInTryStatementThatHasCatchClause = 90,
|
93
93
|
YieldStatementCanNotBeUsedInFinallyClause = 91,
|
94
94
|
SubprogramMustReturnValue = 92,
|
95
95
|
ResultVariableCanNotBeUsedInMethodsUsingYieldStatement = 93,
|
@@ -89,6 +89,7 @@ export declare class IrToJs {
|
|
89
89
|
private convertJsPropertyAccessExpression;
|
90
90
|
private convertStatements;
|
91
91
|
private convertStatement;
|
92
|
+
private convertTryStatement;
|
92
93
|
private convertAssignmentStatement;
|
93
94
|
private convertBreakLoopStatement;
|
94
95
|
private convertContinueLoopStatement;
|
@@ -104,7 +105,6 @@ export declare class IrToJs {
|
|
104
105
|
private convertSwitchStatement;
|
105
106
|
private convertWhileStatement;
|
106
107
|
private convertYieldStatement;
|
107
|
-
private convertTryCatchFinallyStatement;
|
108
108
|
private convertAssignmentOperator;
|
109
109
|
private convertTypeConstructorDeclaration;
|
110
110
|
private convertTypeMethodDeclaration;
|
@@ -20,6 +20,7 @@ export declare class Transformer {
|
|
20
20
|
transformContinueLoopStatementChildren(_statement: ir.ContinueLoopStatement): void;
|
21
21
|
transformDisposeStatementChildren(statement: ir.DisposeStatement): void;
|
22
22
|
transformRunStatementChildren(statement: ir.RunStatement): void;
|
23
|
+
transformTryStatementChildren(statement: ir.TryStatement): void;
|
23
24
|
transformEmptyStatementChildren(_statement: ir.EmptyStatement): void;
|
24
25
|
transformErrorStatementChildren(statement: ir.ErrorStatement): void;
|
25
26
|
transformExpressionStatementChildren(statement: ir.ExpressionStatement): void;
|
@@ -40,7 +41,6 @@ export declare class Transformer {
|
|
40
41
|
transformCaseClause(caseClause: ir.CaseClause): ir.CaseClause;
|
41
42
|
transformWhileStatementChildren(statement: ir.WhileStatement): void;
|
42
43
|
transformYieldStatementChildren(statement: ir.YieldStatement): void;
|
43
|
-
transformTryCatchFinallyStatementChildren(statement: ir.TryCatchFinallyStatement): void;
|
44
44
|
transformEsModuleImportDirectiveStatementChildren(_statement: ir.EsModuleImportDirectiveStatement): void;
|
45
45
|
transformCjsModuleImportDirectiveStatementChildren(_statement: ir.CjsModuleImportDirectiveStatement): void;
|
46
46
|
transformJsNamespaceDestructuringStatementChildren(_statement: ir.JsNamespaceDestructuringStatement): void;
|
@@ -165,6 +165,7 @@ export interface TransformationConfig {
|
|
165
165
|
transformContinueLoopStatement?(statement: ir.ContinueLoopStatement): StatementTransformationResult;
|
166
166
|
transformDisposeStatement?(statement: ir.DisposeStatement): StatementTransformationResult;
|
167
167
|
transformRunStatement?(statement: ir.RunStatement): StatementTransformationResult;
|
168
|
+
transformTryStatement?(statement: ir.TryStatement): StatementTransformationResult;
|
168
169
|
transformEmptyStatement?(statement: ir.EmptyStatement): StatementTransformationResult;
|
169
170
|
transformErrorStatement?(statement: ir.ErrorStatement): StatementTransformationResult;
|
170
171
|
transformExpressionStatement?(statement: ir.ExpressionStatement): StatementTransformationResult;
|
@@ -178,7 +179,6 @@ export interface TransformationConfig {
|
|
178
179
|
transformWhileStatement?(statement: ir.WhileStatement): StatementTransformationResult;
|
179
180
|
transformYieldStatement?(statement: ir.YieldStatement): StatementTransformationResult;
|
180
181
|
transformAssignmentStatement?(statement: ir.AssignmentStatement): StatementTransformationResult;
|
181
|
-
transformTryCatchFinallyStatement?(statement: ir.TryCatchFinallyStatement): StatementTransformationResult;
|
182
182
|
transformEsModuleImportDirectiveStatement?(statement: ir.EsModuleImportDirectiveStatement): StatementTransformationResult;
|
183
183
|
transformCjsModuleImportDirectiveStatement?(statement: ir.CjsModuleImportDirectiveStatement): StatementTransformationResult;
|
184
184
|
transformJsNamespaceDestructuringStatement?(statement: ir.JsNamespaceDestructuringStatement): StatementTransformationResult;
|
@@ -614,13 +614,20 @@ export declare class ReturnStatement {
|
|
614
614
|
}
|
615
615
|
export declare class RunStatement {
|
616
616
|
body: BlockStatement;
|
617
|
-
catchClauses: readonly CatchClause[];
|
618
|
-
finallyClause: FinallyClause | undefined;
|
619
617
|
sourceLocation: SourceLocation | undefined;
|
620
618
|
readonly kind = NodeKind.RunStatement;
|
621
|
-
constructor(body: BlockStatement,
|
619
|
+
constructor(body: BlockStatement, sourceLocation: SourceLocation | undefined);
|
622
620
|
clone(): RunStatement;
|
623
621
|
}
|
622
|
+
export declare class TryStatement {
|
623
|
+
body: BlockStatement;
|
624
|
+
catchClause: CatchClause | undefined;
|
625
|
+
finallyClause: FinallyClause | undefined;
|
626
|
+
sourceLocation: SourceLocation | undefined;
|
627
|
+
readonly kind = NodeKind.TryStatement;
|
628
|
+
constructor(body: BlockStatement, catchClause: CatchClause | undefined, finallyClause: FinallyClause | undefined, sourceLocation: SourceLocation | undefined);
|
629
|
+
clone(): TryStatement;
|
630
|
+
}
|
624
631
|
export declare class Package {
|
625
632
|
leadingStatements: readonly Statement[];
|
626
633
|
declarations: readonly PackageMemberDeclaration[];
|
@@ -690,16 +697,6 @@ export declare class ThisExpression {
|
|
690
697
|
constructor(type: Type, sourceLocation: SourceLocation | undefined);
|
691
698
|
clone(): ThisExpression;
|
692
699
|
}
|
693
|
-
export declare class TryCatchFinallyStatement {
|
694
|
-
body: BlockStatement;
|
695
|
-
errorParameter: VariableEntity | undefined;
|
696
|
-
catchClauseBody: BlockStatement | undefined;
|
697
|
-
finallyClauseBody: BlockStatement | undefined;
|
698
|
-
sourceLocation: SourceLocation | undefined;
|
699
|
-
readonly kind = NodeKind.TryCatchFinallyStatement;
|
700
|
-
constructor(body: BlockStatement, errorParameter: VariableEntity | undefined, catchClauseBody: BlockStatement | undefined, finallyClauseBody: BlockStatement | undefined, sourceLocation: SourceLocation | undefined);
|
701
|
-
clone(): TryCatchFinallyStatement;
|
702
|
-
}
|
703
700
|
export declare class TypeAccessExpression {
|
704
701
|
entity: TypeOrExtensionEntity;
|
705
702
|
sourceLocation: SourceLocation | undefined;
|
@@ -912,62 +909,62 @@ export declare const enum NodeKind {
|
|
912
909
|
ContinueLoopStatement = 12,
|
913
910
|
DisposeStatement = 13,
|
914
911
|
RunStatement = 14,
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
912
|
+
TryStatement = 15,
|
913
|
+
NoneLiteral = 16,
|
914
|
+
EmptyStatement = 17,
|
915
|
+
ErrorStatement = 18,
|
916
|
+
ExpressionStatement = 19,
|
917
|
+
FinallyClause = 20,
|
918
|
+
ForStatement = 21,
|
919
|
+
PackageMethodDeclaration = 22,
|
920
|
+
PackageTypeDeclaration = 23,
|
921
|
+
PackageVariableDeclaration = 24,
|
922
|
+
PackageVariableGetterDeclaration = 25,
|
923
|
+
PackageVariableSetterDeclaration = 26,
|
924
|
+
PackageVariantTypeDeclaration = 27,
|
925
|
+
IfStatement = 28,
|
926
|
+
IndexedAccessExpression = 29,
|
927
|
+
IntegerLiteral = 30,
|
928
|
+
IsExpression = 31,
|
929
|
+
NestedMethodDeclaration = 32,
|
930
|
+
NestedMethodDeclarationStatement = 33,
|
931
|
+
LocalVariableDeclaration = 34,
|
932
|
+
LocalVariableDeclarationStatement = 35,
|
933
|
+
NumericLiteral = 36,
|
934
|
+
CatchClause = 37,
|
935
|
+
MethodLiteral = 38,
|
936
|
+
PrefixUnaryExpression = 39,
|
937
|
+
MeasureLiteral = 40,
|
938
|
+
ReferenceExpression = 41,
|
939
|
+
LoopStatement = 42,
|
940
|
+
ReturnStatement = 43,
|
941
|
+
Package = 44,
|
942
|
+
TextLiteral = 45,
|
943
|
+
TextTemplateLiteral = 46,
|
944
|
+
TypeConstructorDeclaration = 47,
|
945
|
+
TypeDestructorDeclaration = 48,
|
946
|
+
TypeIndexedGetterDeclaration = 49,
|
947
|
+
TypeIndexedSetterDeclaration = 50,
|
948
|
+
TypeMethodDeclaration = 51,
|
949
|
+
TypeVariableDeclaration = 52,
|
950
|
+
TypeVariableGetterDeclaration = 53,
|
951
|
+
TypeVariableSetterDeclaration = 54,
|
952
|
+
SwitchStatement = 55,
|
953
|
+
TernaryExpression = 56,
|
954
|
+
ThisExpression = 57,
|
955
|
+
ValueParameterDeclaration = 58,
|
956
|
+
VariantDeclaration = 59,
|
957
|
+
WhileStatement = 60,
|
958
|
+
YieldStatement = 61,
|
959
|
+
ArrayLiteral = 62,
|
960
|
+
TypeAccessExpression = 63,
|
961
|
+
VariableAccessExpression = 64,
|
962
|
+
MethodAccessExpression = 65,
|
963
|
+
ImplicitVariantAccessExpression = 66,
|
964
|
+
VariantAccessExpression = 67,
|
965
|
+
TypeVariableAccessExpression = 68,
|
966
|
+
TypeMethodAccessExpression = 69,
|
967
|
+
ConstructorCallExpression = 70,
|
971
968
|
InlineJsExpression = 71,
|
972
969
|
AssignmentExpression = 72,
|
973
970
|
CommaExpression = 73,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as ir from './Nodes.js';
|
2
|
-
export type Node = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssumptionExpression | ir.AssignmentExpression | ir.AssignmentStatement | ir.BaseConstructorCallExpression | ir.BinaryExpression | ir.BlockStatement | ir.BooleanLiteral | ir.BreakLoopStatement | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.NoneLiteral | ir.EmptyStatement | ir.ErrorStatement | ir.ExpressionStatement | ir.FinallyClause | ir.ForStatement | ir.PackageMethodDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.IfStatement | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.TypeMethodAccessExpression | ir.TypeVariableAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.JsIndexedAccessExpression | ir.NestedMethodDeclaration | ir.NestedMethodDeclarationStatement | ir.LocalVariableDeclaration | ir.LocalVariableDeclarationStatement | ir.NumericLiteral | ir.CatchClause | ir.MethodAccessExpression | ir.MethodLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.LoopStatement | ir.Package | ir.ReturnStatement | ir.TextLiteral | ir.TextTemplateLiteral | ir.TypeConstructorDeclaration | ir.TypeDestructorDeclaration | ir.TypeIndexedGetterDeclaration | ir.TypeIndexedSetterDeclaration | ir.TypeMethodDeclaration | ir.TypeVariableDeclaration | ir.ComputedTypeVariableDeclaration | ir.TypeVariableGetterDeclaration | ir.TypeVariableSetterDeclaration | ir.SwitchStatement | ir.TernaryExpression | ir.ThisExpression | ir.
|
2
|
+
export type Node = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssumptionExpression | ir.AssignmentExpression | ir.AssignmentStatement | ir.BaseConstructorCallExpression | ir.BinaryExpression | ir.BlockStatement | ir.BooleanLiteral | ir.BreakLoopStatement | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.NoneLiteral | ir.EmptyStatement | ir.ErrorStatement | ir.ExpressionStatement | ir.FinallyClause | ir.ForStatement | ir.PackageMethodDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.IfStatement | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.TypeMethodAccessExpression | ir.TypeVariableAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.JsIndexedAccessExpression | ir.NestedMethodDeclaration | ir.NestedMethodDeclarationStatement | ir.LocalVariableDeclaration | ir.LocalVariableDeclarationStatement | ir.NumericLiteral | ir.CatchClause | ir.MethodAccessExpression | ir.MethodLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.LoopStatement | ir.Package | ir.ReturnStatement | ir.TextLiteral | ir.TextTemplateLiteral | ir.TypeConstructorDeclaration | ir.TypeDestructorDeclaration | ir.TypeIndexedGetterDeclaration | ir.TypeIndexedSetterDeclaration | ir.TypeMethodDeclaration | ir.TypeVariableDeclaration | ir.ComputedTypeVariableDeclaration | ir.TypeVariableGetterDeclaration | ir.TypeVariableSetterDeclaration | ir.SwitchStatement | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.ValueParameterDeclaration | ir.VariableAccessExpression | ir.VariantDeclaration | ir.WhileStatement | ir.YieldStatement | ir.JsObjectLiteral | ir.NamedJsObjectLiteralProperty | ir.SpreadJsObjectLiteralProperty | ir.JsPropertyAccessExpression | ir.JsFunctionLiteral | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.DereferenceExpression | ir.BaseExpression | ir.OwnConstructorCallExpression | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement | ir.TypeDereferencedVariableGetterDeclaration | ir.TypeDereferencedVariableSetterDeclaration | ir.TextWithEntityName | ir.Argument | ir.Arguments | ir.Decorator;
|
3
3
|
export type Declaration = ir.PackageMethodDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.NestedMethodDeclaration | ir.LocalVariableDeclaration | ir.TypeConstructorDeclaration | ir.TypeDestructorDeclaration | ir.TypeIndexedGetterDeclaration | ir.TypeIndexedSetterDeclaration | ir.TypeMethodDeclaration | ir.TypeVariableDeclaration | ir.TypeVariableGetterDeclaration | ir.TypeVariableSetterDeclaration | ir.ValueParameterDeclaration | ir.VariantDeclaration | ir.TypeDereferencedVariableGetterDeclaration | ir.TypeDereferencedVariableSetterDeclaration;
|
4
|
-
export type Statement = ir.AssignmentStatement | ir.BlockStatement | ir.BreakLoopStatement | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.EmptyStatement | ir.ErrorStatement | ir.ExpressionStatement | ir.ForStatement | ir.IfStatement | ir.NestedMethodDeclarationStatement | ir.LocalVariableDeclarationStatement | ir.LoopStatement | ir.ReturnStatement | ir.SwitchStatement | ir.
|
4
|
+
export type Statement = ir.AssignmentStatement | ir.BlockStatement | ir.BreakLoopStatement | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.EmptyStatement | ir.ErrorStatement | ir.ExpressionStatement | ir.ForStatement | ir.IfStatement | ir.NestedMethodDeclarationStatement | ir.LocalVariableDeclarationStatement | ir.LoopStatement | ir.ReturnStatement | ir.SwitchStatement | ir.WhileStatement | ir.YieldStatement | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement;
|
5
5
|
export type Expression = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssumptionExpression | ir.AssignmentExpression | ir.BinaryExpression | ir.BooleanLiteral | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.NoneLiteral | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.TypeMethodAccessExpression | ir.TypeVariableAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.NumericLiteral | ir.MethodAccessExpression | ir.MethodLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.DereferenceExpression | ir.TextLiteral | ir.TextWithEntityName | ir.TextTemplateLiteral | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.VariableAccessExpression | ir.BaseConstructorCallExpression | ir.JsIndexedAccessExpression | ir.JsObjectLiteral | ir.JsPropertyAccessExpression | ir.JsFunctionLiteral | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.BaseExpression | ir.OwnConstructorCallExpression;
|
6
6
|
export type TypeMemberDeclaration = ir.TypeVariableDeclaration | ir.ComputedTypeVariableDeclaration | ir.TypeMethodDeclaration | ir.TypeConstructorDeclaration | ir.TypeDestructorDeclaration | ir.TypeIndexedGetterDeclaration | ir.TypeIndexedSetterDeclaration | ir.TypeDereferencedVariableGetterDeclaration | ir.TypeDereferencedVariableSetterDeclaration;
|
7
7
|
export type PackageMemberDeclaration = ir.PackageMethodDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration;
|
@@ -96,62 +96,61 @@ export declare enum NodeKind {
|
|
96
96
|
BreakLoopStatement = 94,
|
97
97
|
ContinueLoopStatement = 95,
|
98
98
|
DisposeStatement = 96,
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
TypeAnnotation = 154
|
99
|
+
RunStatement = 97,
|
100
|
+
TryStatement = 98,
|
101
|
+
CatchClause = 99,
|
102
|
+
ErrorVariableDeclaration = 100,
|
103
|
+
FinallyClause = 101,
|
104
|
+
EmptyStatement = 102,
|
105
|
+
ErrorStatement = 103,
|
106
|
+
ExpressionStatement = 104,
|
107
|
+
EnumerationVariableList = 105,
|
108
|
+
ForStatement = 106,
|
109
|
+
IfStatement = 107,
|
110
|
+
ElseIfClauseList = 108,
|
111
|
+
ElseIfClause = 109,
|
112
|
+
InvalidStatement = 110,
|
113
|
+
NestedMethodDeclarationStatement = 111,
|
114
|
+
LocalVariableDeclarationStatement = 112,
|
115
|
+
LoopStatement = 113,
|
116
|
+
ReturnStatement = 114,
|
117
|
+
CaseClauseList = 115,
|
118
|
+
SwitchStatement = 116,
|
119
|
+
MatchExpressionList = 117,
|
120
|
+
SwitchStatementCaseClause = 118,
|
121
|
+
WhileStatement = 119,
|
122
|
+
YieldStatement = 120,
|
123
|
+
TranslationParameterList = 121,
|
124
|
+
TranslationParameterClause = 122,
|
125
|
+
ConstructorTranslation = 123,
|
126
|
+
IndexerTranslationParameterClause = 124,
|
127
|
+
IndexerTranslation = 125,
|
128
|
+
TranslationTypeParameterList = 126,
|
129
|
+
TranslationTypeParameterClause = 127,
|
130
|
+
PackageMethodTranslation = 128,
|
131
|
+
TypeMethodTranslation = 129,
|
132
|
+
MethodTypeTranslation = 130,
|
133
|
+
PackageImportTranslation = 131,
|
134
|
+
QualifiedName = 132,
|
135
|
+
PackageVariableTranslation = 133,
|
136
|
+
TypeVariableOrVariantTranslation = 134,
|
137
|
+
TypeMemberTranslationList = 135,
|
138
|
+
TypeTranslation = 136,
|
139
|
+
TextLiteralTranslation = 137,
|
140
|
+
TextTemplateLiteralTranslation = 138,
|
141
|
+
VariantDeclaration = 139,
|
142
|
+
TypeParameterDeclaration = 140,
|
143
|
+
ParameterDeclaration = 141,
|
144
|
+
Argument = 142,
|
145
|
+
TagList = 143,
|
146
|
+
Tag = 144,
|
147
|
+
ModifierList = 145,
|
148
|
+
Modifier = 146,
|
149
|
+
ParameterClause = 147,
|
150
|
+
ParameterList = 148,
|
151
|
+
TypeArgumentClause = 149,
|
152
|
+
TypeArgumentList = 150,
|
153
|
+
TypeParameterClause = 151,
|
154
|
+
TypeParameterList = 152,
|
155
|
+
TypeAnnotation = 153
|
157
156
|
}
|
@@ -1370,27 +1370,17 @@ export declare class DisposeStatement extends BaseNode {
|
|
1370
1370
|
constructor(disposeKeyword: Keyword<KeywordKind.Dispose>, expression: Expression);
|
1371
1371
|
toRed(rangeStart: number, parent: red.StatementParent): red.DisposeStatement;
|
1372
1372
|
}
|
1373
|
-
export declare class RunStatementClauseList extends BaseNode {
|
1374
|
-
readonly kind = NodeKind.RunStatementClauseList;
|
1375
|
-
readonly children: readonly RunStatementClause[];
|
1376
|
-
get clauses(): readonly RunStatementClause[];
|
1377
|
-
protected get thisAsNode(): Node;
|
1378
|
-
constructor(clauses: readonly RunStatementClause[]);
|
1379
|
-
toRed(rangeStart: number, parent: red.RunStatementClauseListParent): red.RunStatementClauseList;
|
1380
|
-
}
|
1381
1373
|
export declare class RunStatement extends BaseNode {
|
1382
1374
|
readonly kind = NodeKind.RunStatement;
|
1383
1375
|
readonly children: readonly [
|
1384
1376
|
Keyword<KeywordKind.Run>,
|
1385
|
-
StatementBlock
|
1386
|
-
RunStatementClauseList
|
1377
|
+
StatementBlock
|
1387
1378
|
];
|
1388
1379
|
get runKeyword(): Keyword<KeywordKind.Run>;
|
1389
1380
|
get body(): StatementBlock;
|
1390
|
-
get clauseList(): RunStatementClauseList;
|
1391
1381
|
protected get thisAsNode(): Node;
|
1392
|
-
constructor(runKeyword: Keyword<KeywordKind.Run>, body: StatementBlock
|
1393
|
-
toRed(rangeStart: number, parent: red.
|
1382
|
+
constructor(runKeyword: Keyword<KeywordKind.Run>, body: StatementBlock);
|
1383
|
+
toRed(rangeStart: number, parent: red.StatementParent): red.RunStatement;
|
1394
1384
|
}
|
1395
1385
|
export declare class TryStatement extends BaseNode {
|
1396
1386
|
readonly kind = NodeKind.TryStatement;
|
@@ -1398,19 +1388,16 @@ export declare class TryStatement extends BaseNode {
|
|
1398
1388
|
Keyword<KeywordKind.Try>,
|
1399
1389
|
StatementBlock,
|
1400
1390
|
CatchClause | undefined,
|
1401
|
-
|
1402
|
-
StatementBlock | undefined
|
1391
|
+
FinallyClause | undefined
|
1403
1392
|
];
|
1404
1393
|
get tryKeyword(): Keyword<KeywordKind.Try>;
|
1405
1394
|
get body(): StatementBlock;
|
1406
1395
|
get catchClause(): CatchClause | undefined;
|
1407
|
-
get
|
1408
|
-
get finallyBlock(): StatementBlock | undefined;
|
1396
|
+
get finallyClause(): FinallyClause | undefined;
|
1409
1397
|
protected get thisAsNode(): Node;
|
1410
|
-
constructor(tryKeyword: Keyword<KeywordKind.Try>, body: StatementBlock, catchClause: CatchClause | undefined,
|
1398
|
+
constructor(tryKeyword: Keyword<KeywordKind.Try>, body: StatementBlock, catchClause: CatchClause | undefined, finallyClause: FinallyClause | undefined);
|
1411
1399
|
toRed(rangeStart: number, parent: red.TryStatementParent): red.TryStatement;
|
1412
1400
|
}
|
1413
|
-
export type RunStatementClause = CatchClause | FinallyClause;
|
1414
1401
|
export declare class CatchClause extends BaseNode {
|
1415
1402
|
readonly kind = NodeKind.CatchClause;
|
1416
1403
|
readonly children: readonly [
|
@@ -2160,4 +2147,4 @@ export declare class TypeAnnotation extends BaseNode {
|
|
2160
2147
|
constructor(colonToken: Token<TokenKind.Colon>, typeSpecifier: TypeSpecifier);
|
2161
2148
|
toRed(rangeStart: number, parent: red.TypeAnnotationParent): red.TypeAnnotation;
|
2162
2149
|
}
|
2163
|
-
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 |
|
2150
|
+
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 | SwitchStatementCaseClause | 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;
|