@artel/artc 0.6.25249 → 0.6.25250
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 +2 -2
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +40 -24
- package/build/{chunk-G4UMALLG.js → chunk-DJEEXP7U.js} +621 -419
- package/build/{chunk-CBYKP5SE.js → chunk-VYUD26HA.js} +2 -2
- package/build/{chunk-6OPBY3SK.js → chunk-ZZKHAAAX.js} +1 -1
- package/build/types/analysis/Analyzer.d.ts +11 -10
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -1
- package/build/types/analysis/TypeNarrower.d.ts +1 -1
- package/build/types/analysis/WellKnownDeclarations.d.ts +3 -3
- package/build/types/analysis/semantic-context/SemanticContextBuilder.d.ts +1 -1
- package/build/types/analysis/semantic-context/TranslationTextTemplateSemanticContext.d.ts +2 -2
- package/build/types/diagnostic/DiagnosticCode.d.ts +1 -1
- package/build/types/emitter/EmitterContext.d.ts +2 -2
- package/build/types/emitter/Entities.d.ts +1 -0
- package/build/types/emitter/EntityMap.d.ts +1 -0
- package/build/types/emitter/IrBuilder.d.ts +4 -1
- package/build/types/emitter/IrToJs.d.ts +1 -1
- package/build/types/emitter/Transformer.d.ts +4 -2
- package/build/types/emitter/ir/Nodes.d.ts +26 -5
- package/build/types/emitter/ir/types.d.ts +4 -4
- package/build/types/entities/VariableEntity.d.ts +2 -2
- package/build/types/services/DisplayService.d.ts +3 -3
- package/build/types/tree/KeywordKind.d.ts +1 -1
- package/build/types/tree/NodeKind.d.ts +5 -5
- package/build/types/tree/green/Nodes.d.ts +28 -28
- package/build/types/tree/green/SyntaxFactory.d.ts +1 -1
- package/build/types/tree/red/Nodes.d.ts +42 -42
- package/build/types/ts-interop/Entities.d.ts +0 -1
- package/build/types/ts-interop/TsInteropContext.d.ts +1 -1
- package/build/types/types/ParameterType.d.ts +3 -3
- package/build/types/types/StandardTypes.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Compiler
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZZKHAAAX.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-DJEEXP7U.js";
|
|
18
18
|
|
|
19
19
|
// source/executor/FileSystemUri.ts
|
|
20
20
|
import { platform } from "os";
|
|
@@ -115,6 +115,7 @@ export declare class Analyzer {
|
|
|
115
115
|
constructor(compilation: project.Compilation, tsInteropInputs: TsInteropInputs);
|
|
116
116
|
getProjectSourceFile(node: tree.SourceFile): project.SourceFile;
|
|
117
117
|
checkExpressionCanBeUsedInForLoop(node: tree.Expression): WithDiagnostics<ExpressionCanBeUsedInForLoopCheckResult>;
|
|
118
|
+
isEnumeratorMethodSignature(entity: e.MethodEntity): boolean;
|
|
118
119
|
ifTypeEnumerableThenItemType(type: types.Type): types.Type | undefined;
|
|
119
120
|
ifTypeEnumeratorThenItemType(type: types.Type): types.Type | undefined;
|
|
120
121
|
isTypeArrayOrReadonlyArray(type: types.Type): {
|
|
@@ -179,7 +180,7 @@ export declare class Analyzer {
|
|
|
179
180
|
*/
|
|
180
181
|
isExpressionOptionalChainingSyntactically(node: tree.Expression): boolean;
|
|
181
182
|
isExpressionValidOutermostOptionalChaining(node: tree.Expression): boolean;
|
|
182
|
-
|
|
183
|
+
includeNullToTypeIfExpressionValidOutermostOptionalChaining(type: types.Type, node: tree.Expression): types.Type;
|
|
183
184
|
checkIdentifierNameIsReserved(name: string, locale: PackageLocale): ReservedIdentifierKind | undefined;
|
|
184
185
|
getReservedIdentifierName(reservedIdentifierKind: ReservedIdentifierKind, locale: PackageLocale): string;
|
|
185
186
|
createNameFromIdentifier(node: tree.Identifier): Name;
|
|
@@ -214,14 +215,14 @@ export declare class Analyzer {
|
|
|
214
215
|
createFunctionTypeInvokeMethod(entity: e.FunctionTypeEntity): e.MethodEntity;
|
|
215
216
|
/**
|
|
216
217
|
* Преобразует тип таким образом, чтобы он не мог содержать значение `пусто`.
|
|
217
|
-
* После преобразования метод `
|
|
218
|
+
* После преобразования метод `canTypeBeNull` вернёт `true` для полученного типа.
|
|
218
219
|
* @example
|
|
219
220
|
* - Число -> Число
|
|
220
221
|
* - Число | Пусто -> Число
|
|
221
|
-
* - Т: Объект? -> Т: Объект? (с флагом
|
|
222
|
+
* - Т: Объект? -> Т: Объект? (с флагом isNullExcluded === true)
|
|
222
223
|
* - Т: Объект -> Т: Объект (без изменения)
|
|
223
224
|
*/
|
|
224
|
-
|
|
225
|
+
excludeNullFromType(type: types.Type): types.Type;
|
|
225
226
|
/**
|
|
226
227
|
* Отвечает на вопрос "Может ли переменная данного типа иметь значение `пусто`?".
|
|
227
228
|
* @example Для следующих типов метод вернёт:
|
|
@@ -230,8 +231,8 @@ export declare class Analyzer {
|
|
|
230
231
|
* - Т: Объект? -> да
|
|
231
232
|
* - Т: Объект -> нет
|
|
232
233
|
*/
|
|
233
|
-
|
|
234
|
-
|
|
234
|
+
canTypeBeNull(type: types.Type): boolean;
|
|
235
|
+
canTypeParameterBeNull(type: types.ParameterType): boolean;
|
|
235
236
|
/**
|
|
236
237
|
* Делает тип `Пусто` совместимым с данным типом.
|
|
237
238
|
*
|
|
@@ -240,10 +241,10 @@ export declare class Analyzer {
|
|
|
240
241
|
* @example
|
|
241
242
|
* - Число -> Число | Пусто
|
|
242
243
|
* - Число | Пусто -> Число | Пусто
|
|
243
|
-
* - Т: Объект? -> (Т: Объект?) | Пусто (см. метод
|
|
244
|
+
* - Т: Объект? -> (Т: Объект?) | Пусто (см. метод isNullAssignableToType)
|
|
244
245
|
* - Т: Объект -> (Т: Объект) | Пусто
|
|
245
246
|
*/
|
|
246
|
-
|
|
247
|
+
includeNullToType(type: types.Type, locale: PackageLocale): types.Type;
|
|
247
248
|
/**
|
|
248
249
|
* Отвечает на вопрос "Совместим ли тип `Пусто` с данным типом?" (Можно ли присвоить `пусто` в переменную с данным типом?).
|
|
249
250
|
* @example Для следующих типов метод вернёт:
|
|
@@ -251,7 +252,7 @@ export declare class Analyzer {
|
|
|
251
252
|
* - Число | Пусто -> да
|
|
252
253
|
* - Т: Объект? -> нет, поскольку в качестве конкретного типа, заменяющего параметр, может быть использован тип, исключающий `пусто`.
|
|
253
254
|
*/
|
|
254
|
-
|
|
255
|
+
isNullAssignableToType(type: types.Type): boolean;
|
|
255
256
|
excludeTypeFromUnion(initialType: types.Type, excludedType: types.Type): types.Type;
|
|
256
257
|
isValueParameterVariadic(entity: e.VariableEntity): boolean;
|
|
257
258
|
getDefaultTypeParameterConstraint(locale: PackageLocale): types.Type;
|
|
@@ -485,7 +486,7 @@ declare class Entity {
|
|
|
485
486
|
ofTypeExtensionDeclaration(node: tree.TypeExtensionDeclaration): e.TypeExtensionEntity;
|
|
486
487
|
ofPackageImport(node: tree.PackageImport): e.PackageAliasEntity;
|
|
487
488
|
ofTypeWithMembersDeclaration(node: TypeWithMembersDeclaration): e.TypeEntityWithMembers;
|
|
488
|
-
ofTranslationTextTemplateParameterDeclaration(node: tree.
|
|
489
|
+
ofTranslationTextTemplateParameterDeclaration(node: tree.TextTemplateParameterDeclaration): e.TranslationTextTemplateParameterDeclarationEntity;
|
|
489
490
|
private getContainingPackageLoadedFromDts;
|
|
490
491
|
private createComputedFieldEntities;
|
|
491
492
|
private createDereferenceOperatorEntities;
|
|
@@ -12,7 +12,7 @@ export declare class NodeTypeUtils {
|
|
|
12
12
|
static isFunctionDeclaration(node: tree.Node): node is FunctionDeclaration;
|
|
13
13
|
static isVariableDeclaration(node: tree.Node): node is VariableDeclaration;
|
|
14
14
|
static isVariantTypeDeclaration(node: tree.Node): node is VariantTypeDeclaration;
|
|
15
|
-
static
|
|
15
|
+
static isNullLiteral(node: tree.Node): boolean;
|
|
16
16
|
static isSubprogramDeclarationOrLiteral(node: tree.Node): node is SubprogramDeclarationOrLiteral;
|
|
17
17
|
}
|
|
18
18
|
export type PackageTypeDeclaration = tree.PackageAliasTypeDeclaration | tree.PackageFunctionTypeDeclaration | tree.PackageStructuredTypeDeclaration | tree.PackageVariantTypeDeclaration;
|
|
@@ -19,7 +19,7 @@ export declare class TypeNarrower {
|
|
|
19
19
|
private getTypeAtSplit;
|
|
20
20
|
private getTypeAtLoop;
|
|
21
21
|
private getTypeAtAssignmentWithImplicitConversion;
|
|
22
|
-
private
|
|
22
|
+
private getTypeAtComparisonWithNull;
|
|
23
23
|
private getTypeAtIsExpression;
|
|
24
24
|
private getTypeAtAssignmentOrDeclaration;
|
|
25
25
|
private addTypeIfUnique;
|
|
@@ -15,7 +15,7 @@ export interface WellKnownDeclarations {
|
|
|
15
15
|
readonly textTemplate: StructuredTypeEntity;
|
|
16
16
|
readonly char: StructuredTypeEntity;
|
|
17
17
|
readonly yesNo: StructuredTypeEntity;
|
|
18
|
-
readonly
|
|
18
|
+
readonly nullEntity: StructuredTypeEntity;
|
|
19
19
|
readonly enumerable: StructuredTypeEntity;
|
|
20
20
|
readonly enumerator: StructuredTypeEntity;
|
|
21
21
|
readonly enumeratorMethod: MethodEntity;
|
|
@@ -48,7 +48,7 @@ export declare class LocalizedWellKnownDeclarations implements WellKnownDeclarat
|
|
|
48
48
|
private _textTemplate;
|
|
49
49
|
private _char;
|
|
50
50
|
private _yesNo;
|
|
51
|
-
private
|
|
51
|
+
private _null;
|
|
52
52
|
private _enumerable;
|
|
53
53
|
private _enumerator;
|
|
54
54
|
private _enumeratorMethod;
|
|
@@ -78,7 +78,7 @@ export declare class LocalizedWellKnownDeclarations implements WellKnownDeclarat
|
|
|
78
78
|
get textTemplate(): StructuredTypeEntity;
|
|
79
79
|
get char(): StructuredTypeEntity;
|
|
80
80
|
get yesNo(): StructuredTypeEntity;
|
|
81
|
-
get
|
|
81
|
+
get nullEntity(): StructuredTypeEntity;
|
|
82
82
|
get enumerable(): StructuredTypeEntity;
|
|
83
83
|
get enumerator(): StructuredTypeEntity;
|
|
84
84
|
get enumeratorMethod(): MethodEntity;
|
|
@@ -68,7 +68,7 @@ export declare class SemanticContextBuilder {
|
|
|
68
68
|
ofSubprogram(node: SubprogramDeclarationOrLiteral): OutermostSemanticContextOfSubprogram;
|
|
69
69
|
containingTypeMember(node: tree.TypeMemberDeclaration): SemanticContextContainingTypeMember;
|
|
70
70
|
containingPackageMember(node: tree.PackageMemberDeclaration): SourceFileSemanticContext;
|
|
71
|
-
ofTranslationTextTemplate(node: tree.
|
|
71
|
+
ofTranslationTextTemplate(node: tree.TextTemplateDeclaration): TranslationTextTemplateSemanticContext;
|
|
72
72
|
private containingInternal;
|
|
73
73
|
private ofChildOfFunctionDeclaration;
|
|
74
74
|
private ofChildOfTypeDeclarationWithMemberBlock;
|
|
@@ -4,10 +4,10 @@ import { SemanticContext } from './SemanticContext.js';
|
|
|
4
4
|
import { MemberOfSemanticContextValidatingNameConflicts, MemberOfSemanticContextValidatingNameConflictsForTypeLookup, SemanticContextValidatingNameConflictsBase } from './SemanticContextValidatingNameConflicts.js';
|
|
5
5
|
export declare class TranslationTextTemplateSemanticContext extends SemanticContextValidatingNameConflictsBase {
|
|
6
6
|
readonly kind = "translation-text-template";
|
|
7
|
-
readonly node: tree.
|
|
7
|
+
readonly node: tree.TextTemplateDeclaration;
|
|
8
8
|
readonly outer: SemanticContext;
|
|
9
9
|
protected readonly asContext: SemanticContext;
|
|
10
|
-
constructor(analyzer: Analyzer, node: tree.
|
|
10
|
+
constructor(analyzer: Analyzer, node: tree.TextTemplateDeclaration, outer: SemanticContext);
|
|
11
11
|
protected createMemberEntities(): readonly MemberOfSemanticContextValidatingNameConflicts[];
|
|
12
12
|
protected createMemberEntitiesForTypeLookup(): readonly MemberOfSemanticContextValidatingNameConflictsForTypeLookup[];
|
|
13
13
|
}
|
|
@@ -123,7 +123,7 @@ export declare enum DiagnosticCode {
|
|
|
123
123
|
TagNotFound = 284,
|
|
124
124
|
TypeOrFunctionNameExpected = 285,
|
|
125
125
|
PackageNameOrAliasExpected = 286,
|
|
126
|
-
|
|
126
|
+
ExpressionCanBeNull = 287,
|
|
127
127
|
TargetVariableExpressionInTheAssignmentStatementCannotContainQuestionOperator = 288,
|
|
128
128
|
UnreachableCode = 289,
|
|
129
129
|
RecursionOccurredWhileCalculatingTheTypeOfTheExpression = 290,
|
|
@@ -34,7 +34,7 @@ declare class TypeUtils {
|
|
|
34
34
|
declare class StandardTypes {
|
|
35
35
|
private readonly _analyzer;
|
|
36
36
|
private readonly _entityMap;
|
|
37
|
-
private
|
|
37
|
+
private _null;
|
|
38
38
|
private _yesNo;
|
|
39
39
|
private _refObject;
|
|
40
40
|
private _plainObject;
|
|
@@ -46,7 +46,7 @@ declare class StandardTypes {
|
|
|
46
46
|
private _func;
|
|
47
47
|
private _textTemplate;
|
|
48
48
|
private _reference;
|
|
49
|
-
get
|
|
49
|
+
get nullType(): Type;
|
|
50
50
|
get yesNo(): Type;
|
|
51
51
|
get refObject(): Type;
|
|
52
52
|
get plainObject(): Type;
|
|
@@ -33,6 +33,7 @@ export declare class FunctionEntityDetails implements TypeMemberEntityDetails {
|
|
|
33
33
|
isAbstract: boolean;
|
|
34
34
|
isStatic: boolean;
|
|
35
35
|
originalFunctionEntityKind: FunctionEntityKind;
|
|
36
|
+
isJavaScriptIteratorMethod: boolean;
|
|
36
37
|
}
|
|
37
38
|
export interface ComputedNameInfo {
|
|
38
39
|
/**
|
|
@@ -33,6 +33,7 @@ export declare class EntityMap {
|
|
|
33
33
|
getTypeOrExtensionEntity(entity: analyzerEntities.TypeEntity | analyzerEntities.TypeExtensionEntity): emitterEntities.TypeOrExtensionEntity;
|
|
34
34
|
getPackageEntity(entity: analyzerEntities.PackageEntity): emitterEntities.PackageEntity;
|
|
35
35
|
getType(type: analyzerTypes.Type): emitterEntities.Type;
|
|
36
|
+
enumerateAllPackageEntities(): Iterable<emitterEntities.PackageEntity>;
|
|
36
37
|
private getPackageEntityInternal;
|
|
37
38
|
private createTypeMembers;
|
|
38
39
|
private getContainingPackageAndAccumulateIfMember;
|
|
@@ -79,12 +79,12 @@ export declare class IrBuilder {
|
|
|
79
79
|
private buildAssumptionExpression;
|
|
80
80
|
private buildAsExpression;
|
|
81
81
|
private buildBinaryExpression;
|
|
82
|
-
private buildFunctionBlockLiteral;
|
|
83
82
|
private buildCallExpression;
|
|
84
83
|
private buildAutotypeCallExpression;
|
|
85
84
|
private buildIndexedAccessExpression;
|
|
86
85
|
private buildIsExpression;
|
|
87
86
|
private buildFunctionLiteral;
|
|
87
|
+
private buildFunctionBlockLiteral;
|
|
88
88
|
private buildParenthesizedExpression;
|
|
89
89
|
private buildPrefixUnaryExpression;
|
|
90
90
|
private buildMemberAccessExpression;
|
|
@@ -114,6 +114,9 @@ export declare class IrBuilder {
|
|
|
114
114
|
private createAccessedFunctionFromOperator;
|
|
115
115
|
private expressionIsCallee;
|
|
116
116
|
private generateLoopLabel;
|
|
117
|
+
private buildTextTranslationDeclarationList;
|
|
118
|
+
private buildTextTranslationDeclaration;
|
|
119
|
+
private createTextTemplateDeclaration;
|
|
117
120
|
private getSourceLocation;
|
|
118
121
|
}
|
|
119
122
|
export interface IrBuilderParams {
|
|
@@ -54,7 +54,7 @@ export declare class IrToJs {
|
|
|
54
54
|
private convertBinaryExpression;
|
|
55
55
|
private convertCallExpression;
|
|
56
56
|
private convertCharLiteral;
|
|
57
|
-
private
|
|
57
|
+
private convertNullLiteral;
|
|
58
58
|
private convertIndexedAccessExpression;
|
|
59
59
|
private convertIntegerLiteral;
|
|
60
60
|
private convertNumericLiteral;
|
|
@@ -75,7 +75,7 @@ export declare class Transformer {
|
|
|
75
75
|
transformCallExpressionChildren(expression: ir.CallExpression): void;
|
|
76
76
|
transformArguments(args: ir.Arguments): ir.Arguments;
|
|
77
77
|
transformCharLiteralChildren(_expression: ir.CharLiteral): void;
|
|
78
|
-
|
|
78
|
+
transformNullLiteralChildren(_expression: ir.NullLiteral): void;
|
|
79
79
|
transformIndexedAccessExpressionChildren(expression: ir.IndexedAccessExpression): void;
|
|
80
80
|
transformIntegerLiteralChildren(_expression: ir.IntegerLiteral): void;
|
|
81
81
|
transformIsExpressionChildren(expression: ir.IsExpression): void;
|
|
@@ -115,6 +115,7 @@ export declare class Transformer {
|
|
|
115
115
|
transformFunctionJsObjectLiteralProperty(property: ir.FunctionJsObjectLiteralProperty): ir.FunctionJsObjectLiteralProperty;
|
|
116
116
|
transformSpreadJsObjectLiteralProperty(property: ir.SpreadJsObjectLiteralProperty): ir.SpreadJsObjectLiteralProperty;
|
|
117
117
|
transformDecorator(node: ir.Decorator): ir.Decorator;
|
|
118
|
+
transformTextTranslationDeclarationChildren(declaration: ir.TextTranslationDeclaration): void;
|
|
118
119
|
private transformStatementsAndAddHoistedLocalVariables;
|
|
119
120
|
private createLocalVariableDeclarations;
|
|
120
121
|
private transformArrayWithErrorBoundary;
|
|
@@ -145,7 +146,7 @@ export interface TransformationConfig {
|
|
|
145
146
|
transformIntegerLiteral?(expression: ir.IntegerLiteral): ExpressionTransformationResult;
|
|
146
147
|
transformNumericLiteral?(expression: ir.NumericLiteral): ExpressionTransformationResult;
|
|
147
148
|
transformMeasureLiteral?(expression: ir.MeasureLiteral): ExpressionTransformationResult;
|
|
148
|
-
|
|
149
|
+
transformNullLiteral?(expression: ir.NullLiteral): ExpressionTransformationResult;
|
|
149
150
|
transformThisExpression?(expression: ir.ThisExpression): ExpressionTransformationResult;
|
|
150
151
|
transformBaseExpression?(expression: ir.BaseExpression): ExpressionTransformationResult;
|
|
151
152
|
transformConstructorCallExpression?(expression: ir.ConstructorCallExpression): ExpressionTransformationResult;
|
|
@@ -214,6 +215,7 @@ export interface TransformationConfig {
|
|
|
214
215
|
transformFunctionJsObjectLiteralProperty?(clause: ir.FunctionJsObjectLiteralProperty): NodeTransformationResult<ir.FunctionJsObjectLiteralProperty>;
|
|
215
216
|
transformSpreadJsObjectLiteralProperty?(clause: ir.SpreadJsObjectLiteralProperty): NodeTransformationResult<ir.SpreadJsObjectLiteralProperty>;
|
|
216
217
|
transformDecorator?(node: ir.Decorator): NodeTransformationResult<ir.Decorator>;
|
|
218
|
+
transformTextTranslationDeclaration?(declaration: ir.TextTranslationDeclaration): PackageMemberDeclarationTransformationResult;
|
|
217
219
|
}
|
|
218
220
|
export declare const enum TransformationContinuationAction {
|
|
219
221
|
Continue = 0,
|
|
@@ -503,11 +503,11 @@ export declare class NestedFunctionDeclarationStatement {
|
|
|
503
503
|
constructor(declaration: NestedFunctionDeclaration, sourceLocation: SourceLocation | undefined);
|
|
504
504
|
clone(): NestedFunctionDeclarationStatement;
|
|
505
505
|
}
|
|
506
|
-
export declare class
|
|
506
|
+
export declare class NullLiteral {
|
|
507
507
|
sourceLocation: SourceLocation | undefined;
|
|
508
|
-
readonly kind = NodeKind.
|
|
508
|
+
readonly kind = NodeKind.NullLiteral;
|
|
509
509
|
constructor(sourceLocation: SourceLocation | undefined);
|
|
510
|
-
clone():
|
|
510
|
+
clone(): NullLiteral;
|
|
511
511
|
}
|
|
512
512
|
export declare class NumericLiteral {
|
|
513
513
|
value: number;
|
|
@@ -916,6 +916,24 @@ export declare class YieldStatement {
|
|
|
916
916
|
constructor(expression: Expression, sourceLocation: SourceLocation | undefined);
|
|
917
917
|
clone(): YieldStatement;
|
|
918
918
|
}
|
|
919
|
+
export declare class TextTranslationDeclaration {
|
|
920
|
+
key: string;
|
|
921
|
+
sourceTextTemplate: TextTemplateDeclaration | undefined;
|
|
922
|
+
translatedText: string | undefined;
|
|
923
|
+
translationFunction: FunctionLiteral | undefined;
|
|
924
|
+
sourceLocation: SourceLocation | undefined;
|
|
925
|
+
readonly kind = NodeKind.TextTranslationDeclaration;
|
|
926
|
+
constructor(key: string, sourceTextTemplate: TextTemplateDeclaration | undefined, translatedText: string | undefined, translationFunction: FunctionLiteral | undefined, sourceLocation: SourceLocation | undefined);
|
|
927
|
+
clone(): TextTranslationDeclaration;
|
|
928
|
+
}
|
|
929
|
+
export declare class TextTemplateDeclaration {
|
|
930
|
+
fragments: readonly string[];
|
|
931
|
+
parameters: readonly VariableEntity[];
|
|
932
|
+
sourceLocation: SourceLocation | undefined;
|
|
933
|
+
readonly kind = NodeKind.TextTemplateDeclaration;
|
|
934
|
+
constructor(fragments: readonly string[], parameters: readonly VariableEntity[], sourceLocation: SourceLocation | undefined);
|
|
935
|
+
clone(): TextTemplateDeclaration;
|
|
936
|
+
}
|
|
919
937
|
export declare const enum NodeKind {
|
|
920
938
|
AsExpression = 0,
|
|
921
939
|
AssertionExpression = 1,
|
|
@@ -933,7 +951,7 @@ export declare const enum NodeKind {
|
|
|
933
951
|
DisposeStatement = 13,
|
|
934
952
|
RunStatement = 14,
|
|
935
953
|
TryStatement = 15,
|
|
936
|
-
|
|
954
|
+
NullLiteral = 16,
|
|
937
955
|
EmptyStatement = 17,
|
|
938
956
|
ErrorStatement = 18,
|
|
939
957
|
ImportantStatement = 19,
|
|
@@ -1015,7 +1033,10 @@ export declare const enum NodeKind {
|
|
|
1015
1033
|
ComputedFieldDeclaration = 95,
|
|
1016
1034
|
TextWithEntityName = 96,
|
|
1017
1035
|
Arguments = 97,
|
|
1018
|
-
Decorator = 98
|
|
1036
|
+
Decorator = 98,
|
|
1037
|
+
TextTranslationDeclaration = 99,
|
|
1038
|
+
TextTemplateDeclaration = 100,
|
|
1039
|
+
TranslationTextTemplateParameterDeclaration = 101
|
|
1019
1040
|
}
|
|
1020
1041
|
export declare const enum AssignmentOperatorKind {
|
|
1021
1042
|
Equals = 0,
|
|
@@ -1,10 +1,10 @@
|
|
|
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.TryStatement | ir.
|
|
3
|
-
export type Declaration = ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.NestedFunctionDeclaration | ir.LocalVariableDeclaration | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.ValueParameterDeclaration | ir.VariantDeclaration | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration;
|
|
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.NullLiteral | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.FinallyClause | ir.ForStatement | ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.IfStatement | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.JsIndexedAccessExpression | ir.NestedFunctionDeclaration | ir.NestedFunctionDeclarationStatement | ir.LocalVariableDeclaration | ir.LocalVariableDeclarationStatement | ir.NumericLiteral | ir.CatchClause | ir.FunctionAccessExpression | ir.FunctionLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.LoopStatement | ir.Package | ir.ReturnStatement | ir.TextLiteral | ir.TextTemplateLiteral | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.ComputedFieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.SwitchStatement | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.ValueParameterDeclaration | ir.VariableAccessExpression | ir.VariantDeclaration | ir.WhileStatement | ir.YieldStatement | ir.JsObjectLiteral | ir.ValueJsObjectLiteralProperty | ir.FunctionJsObjectLiteralProperty | 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.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration | ir.TextWithEntityName | ir.Argument | ir.Arguments | ir.Decorator | ir.TextTranslationDeclaration | ir.TextTemplateDeclaration;
|
|
3
|
+
export type Declaration = ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.NestedFunctionDeclaration | ir.LocalVariableDeclaration | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.ValueParameterDeclaration | ir.VariantDeclaration | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration | ir.TextTranslationDeclaration | ir.TextTemplateDeclaration;
|
|
4
4
|
export type Statement = ir.AssignmentStatement | ir.BlockStatement | ir.BreakLoopStatement | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.ForStatement | ir.IfStatement | ir.NestedFunctionDeclarationStatement | ir.LocalVariableDeclarationStatement | ir.LoopStatement | ir.ReturnStatement | ir.SwitchStatement | ir.WhileStatement | ir.YieldStatement | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement;
|
|
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.
|
|
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.NullLiteral | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.NumericLiteral | ir.FunctionAccessExpression | ir.FunctionLiteral | 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.FieldDeclaration | ir.ComputedFieldDeclaration | ir.MethodDeclaration | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration;
|
|
7
|
-
export type PackageMemberDeclaration = ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration;
|
|
7
|
+
export type PackageMemberDeclaration = ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.TextTranslationDeclaration;
|
|
8
8
|
export type LocalDeclaration = ir.LocalVariableDeclaration | ir.NestedFunctionDeclaration;
|
|
9
9
|
export type LValueExpression = ir.VariableAccessExpression | ir.FieldAccessExpression | ir.IndexedAccessExpression | ir.JsIndexedAccessExpression | ir.JsPropertyAccessExpression | ir.ThisExpression | ir.DereferenceExpression;
|
|
10
10
|
export declare function isLValueExpression(node: Expression): node is LValueExpression;
|
|
@@ -90,7 +90,7 @@ export type VariableEntityDefinition = {
|
|
|
90
90
|
export type SourceVariableEntityDefinition = SingleSourceVariableEntityDefinition | MultiSourceVariableEntityDefinition;
|
|
91
91
|
export type SingleSourceVariableEntityDefinition = {
|
|
92
92
|
kind: 'single';
|
|
93
|
-
node: tree.PackageVariableDeclaration | tree.FieldDeclaration | tree.LocalVariableDeclaration | tree.EnumerationVariableDeclaration | tree.ErrorVariableDeclaration | tree.ParameterDeclaration | tree.VariantDeclaration | tree.
|
|
93
|
+
node: tree.PackageVariableDeclaration | tree.FieldDeclaration | tree.LocalVariableDeclaration | tree.EnumerationVariableDeclaration | tree.ErrorVariableDeclaration | tree.ParameterDeclaration | tree.VariantDeclaration | tree.TextTemplateParameterDeclaration;
|
|
94
94
|
};
|
|
95
95
|
export type MultiSourceVariableEntityDefinition = {
|
|
96
96
|
kind: 'multi';
|
|
@@ -513,7 +513,7 @@ export declare class TranslationTextTemplateParameterDeclarationEntity implement
|
|
|
513
513
|
private readonly _node;
|
|
514
514
|
readonly kind = EntityKind.Variable;
|
|
515
515
|
readonly subkind = "text-template-parameter";
|
|
516
|
-
constructor(_analyzer: Analyzer, _node: tree.
|
|
516
|
+
constructor(_analyzer: Analyzer, _node: tree.TextTemplateParameterDeclaration);
|
|
517
517
|
getName(): Name;
|
|
518
518
|
getContainer(): PackageEntity;
|
|
519
519
|
getType(): types.Type;
|
|
@@ -634,19 +634,19 @@ export declare class ParameterTypeUsage_type implements IParameterTypeUsage {
|
|
|
634
634
|
readonly kind = "parameter";
|
|
635
635
|
constructor(type: types.ParameterType);
|
|
636
636
|
getEntity(): e.NamedTypeEntity;
|
|
637
|
-
|
|
637
|
+
isNullExcluded(): boolean;
|
|
638
638
|
}
|
|
639
639
|
export declare class ParameterTypeUsage_entity implements IParameterTypeUsage {
|
|
640
640
|
readonly entity: e.TypeParameterEntity;
|
|
641
641
|
readonly kind = "parameter";
|
|
642
642
|
constructor(entity: e.TypeParameterEntity);
|
|
643
643
|
getEntity(): e.NamedTypeEntity;
|
|
644
|
-
|
|
644
|
+
isNullExcluded(): boolean;
|
|
645
645
|
}
|
|
646
646
|
interface IParameterTypeUsage {
|
|
647
647
|
readonly kind: 'parameter';
|
|
648
648
|
getEntity(): e.NamedTypeEntity;
|
|
649
|
-
|
|
649
|
+
isNullExcluded(): boolean;
|
|
650
650
|
}
|
|
651
651
|
type UnionOrIntersectionTypeUsage = UnionOrIntersectionTypeUsage_type;
|
|
652
652
|
declare class UnionOrIntersectionTypeUsage_type {
|
|
@@ -139,11 +139,11 @@ export declare enum NodeKind {
|
|
|
139
139
|
FieldOrVariantTranslation = 137,
|
|
140
140
|
TypeMemberTranslationList = 138,
|
|
141
141
|
TypeTranslation = 139,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
142
|
+
TextTranslationDeclaration = 140,
|
|
143
|
+
TextTemplateDeclaration = 141,
|
|
144
|
+
TextTemplateDeclarationSpanList = 142,
|
|
145
|
+
TextTemplateDeclarationSpan = 143,
|
|
146
|
+
TextTemplateParameterDeclaration = 144,
|
|
147
147
|
VariantDeclaration = 145,
|
|
148
148
|
TypeParameterDeclaration = 146,
|
|
149
149
|
ParameterDeclaration = 147,
|
|
@@ -1224,7 +1224,7 @@ export declare class KeywordExpression extends BaseNode {
|
|
|
1224
1224
|
constructor(keyword: KeywordExpressionKeyword);
|
|
1225
1225
|
toRed(rangeStart: number, parent: red.ExpressionParent): red.KeywordExpression;
|
|
1226
1226
|
}
|
|
1227
|
-
export type KeywordExpressionKeyword = Keyword<KeywordKind.Yes> | Keyword<KeywordKind.No> | Keyword<KeywordKind.
|
|
1227
|
+
export type KeywordExpressionKeyword = Keyword<KeywordKind.Yes> | Keyword<KeywordKind.No> | Keyword<KeywordKind.Null>;
|
|
1228
1228
|
export declare class ObjectExpression extends BaseNode {
|
|
1229
1229
|
readonly kind = NodeKind.ObjectExpression;
|
|
1230
1230
|
readonly children: readonly [
|
|
@@ -1706,7 +1706,7 @@ export declare class TopLevelTranslationList extends BaseNode {
|
|
|
1706
1706
|
constructor(elements: readonly TopLevelTranslationListElement[]);
|
|
1707
1707
|
toRed(rangeStart: number, parent: red.TopLevelTranslationListParent): red.TopLevelTranslationList;
|
|
1708
1708
|
}
|
|
1709
|
-
export type TopLevelTranslation = PackageImportTranslation | PackageVariableTranslation | PackageFunctionTranslation | TypeTranslation | FunctionTypeTranslation |
|
|
1709
|
+
export type TopLevelTranslation = PackageImportTranslation | PackageVariableTranslation | PackageFunctionTranslation | TypeTranslation | FunctionTypeTranslation | TextTranslationDeclaration;
|
|
1710
1710
|
export declare class TranslationParameterList extends BaseNode {
|
|
1711
1711
|
readonly kind = NodeKind.TranslationParameterList;
|
|
1712
1712
|
readonly children: readonly IdentifierListElement[];
|
|
@@ -1956,10 +1956,10 @@ export declare class TypeTranslation extends BaseNode {
|
|
|
1956
1956
|
toRed(rangeStart: number, parent: red.TypeTranslationParent): red.TypeTranslation;
|
|
1957
1957
|
}
|
|
1958
1958
|
export type TypeMemberTranslation = FieldOrVariantTranslation | MethodTranslation | IndexerTranslation | ConstructorTranslation;
|
|
1959
|
-
export type TranslationSourceText = TextLiteral |
|
|
1959
|
+
export type TranslationSourceText = TextLiteral | TextTemplateDeclaration;
|
|
1960
1960
|
export type TranslatedTextOrTranslationFunction = TextLiteral | TextTemplateLiteral | FunctionLiteral | FunctionBlockLiteral | InvalidExpression;
|
|
1961
|
-
export declare class
|
|
1962
|
-
readonly kind = NodeKind.
|
|
1961
|
+
export declare class TextTranslationDeclaration extends BaseNode {
|
|
1962
|
+
readonly kind = NodeKind.TextTranslationDeclaration;
|
|
1963
1963
|
readonly children: readonly [
|
|
1964
1964
|
TranslationSourceText,
|
|
1965
1965
|
Token<TokenKind.MinusGreaterThan>,
|
|
@@ -1970,42 +1970,42 @@ export declare class TextTranslation extends BaseNode {
|
|
|
1970
1970
|
get translatedTextOrTranslationFunction(): TranslatedTextOrTranslationFunction;
|
|
1971
1971
|
protected get thisAsNode(): Node;
|
|
1972
1972
|
constructor(sourceText: TranslationSourceText, minusGreaterThanToken: Token<TokenKind.MinusGreaterThan>, translatedTextOrTranslationFunction: TranslatedTextOrTranslationFunction);
|
|
1973
|
-
toRed(rangeStart: number, parent: red.
|
|
1973
|
+
toRed(rangeStart: number, parent: red.TextTranslationDeclarationParent): red.TextTranslationDeclaration;
|
|
1974
1974
|
}
|
|
1975
|
-
export declare class
|
|
1976
|
-
readonly kind = NodeKind.
|
|
1975
|
+
export declare class TextTemplateDeclaration extends BaseNode {
|
|
1976
|
+
readonly kind = NodeKind.TextTemplateDeclaration;
|
|
1977
1977
|
readonly children: readonly [
|
|
1978
1978
|
TextTemplateHead,
|
|
1979
|
-
|
|
1979
|
+
TextTemplateDeclarationSpanList
|
|
1980
1980
|
];
|
|
1981
1981
|
get head(): TextTemplateHead;
|
|
1982
|
-
get spanList():
|
|
1982
|
+
get spanList(): TextTemplateDeclarationSpanList;
|
|
1983
1983
|
protected get thisAsNode(): Node;
|
|
1984
|
-
constructor(head: TextTemplateHead, spanList:
|
|
1985
|
-
toRed(rangeStart: number, parent: red.
|
|
1984
|
+
constructor(head: TextTemplateHead, spanList: TextTemplateDeclarationSpanList);
|
|
1985
|
+
toRed(rangeStart: number, parent: red.TextTemplateDeclarationParent): red.TextTemplateDeclaration;
|
|
1986
1986
|
}
|
|
1987
|
-
export declare class
|
|
1988
|
-
readonly kind = NodeKind.
|
|
1989
|
-
readonly children: readonly
|
|
1990
|
-
get spans(): readonly
|
|
1987
|
+
export declare class TextTemplateDeclarationSpanList extends BaseNode {
|
|
1988
|
+
readonly kind = NodeKind.TextTemplateDeclarationSpanList;
|
|
1989
|
+
readonly children: readonly TextTemplateDeclarationSpan[];
|
|
1990
|
+
get spans(): readonly TextTemplateDeclarationSpan[];
|
|
1991
1991
|
protected get thisAsNode(): Node;
|
|
1992
|
-
constructor(spans: readonly
|
|
1993
|
-
toRed(rangeStart: number, parent: red.
|
|
1992
|
+
constructor(spans: readonly TextTemplateDeclarationSpan[]);
|
|
1993
|
+
toRed(rangeStart: number, parent: red.TextTemplateDeclarationSpanListParent): red.TextTemplateDeclarationSpanList;
|
|
1994
1994
|
}
|
|
1995
|
-
export declare class
|
|
1996
|
-
readonly kind = NodeKind.
|
|
1995
|
+
export declare class TextTemplateDeclarationSpan extends BaseNode {
|
|
1996
|
+
readonly kind = NodeKind.TextTemplateDeclarationSpan;
|
|
1997
1997
|
readonly children: readonly [
|
|
1998
|
-
|
|
1998
|
+
TextTemplateParameterDeclaration,
|
|
1999
1999
|
TextTemplatePart | TextTemplateTail
|
|
2000
2000
|
];
|
|
2001
|
-
get parameter():
|
|
2001
|
+
get parameter(): TextTemplateParameterDeclaration;
|
|
2002
2002
|
get text(): TextTemplatePart | TextTemplateTail;
|
|
2003
2003
|
protected get thisAsNode(): Node;
|
|
2004
|
-
constructor(parameter:
|
|
2005
|
-
toRed(rangeStart: number, parent: red.
|
|
2004
|
+
constructor(parameter: TextTemplateParameterDeclaration, text: TextTemplatePart | TextTemplateTail);
|
|
2005
|
+
toRed(rangeStart: number, parent: red.TextTemplateDeclarationSpanParent): red.TextTemplateDeclarationSpan;
|
|
2006
2006
|
}
|
|
2007
|
-
export declare class
|
|
2008
|
-
readonly kind = NodeKind.
|
|
2007
|
+
export declare class TextTemplateParameterDeclaration extends BaseNode {
|
|
2008
|
+
readonly kind = NodeKind.TextTemplateParameterDeclaration;
|
|
2009
2009
|
readonly children: readonly [
|
|
2010
2010
|
Identifier,
|
|
2011
2011
|
TypeAnnotation | undefined
|
|
@@ -2014,7 +2014,7 @@ export declare class TranslationTextTemplateParameterDeclaration extends BaseNod
|
|
|
2014
2014
|
get typeAnnotation(): TypeAnnotation | undefined;
|
|
2015
2015
|
protected get thisAsNode(): Node;
|
|
2016
2016
|
constructor(name: Identifier, typeAnnotation: TypeAnnotation | undefined);
|
|
2017
|
-
toRed(rangeStart: number, parent: red.
|
|
2017
|
+
toRed(rangeStart: number, parent: red.TextTemplateParameterDeclarationParent): red.TextTemplateParameterDeclaration;
|
|
2018
2018
|
}
|
|
2019
2019
|
export declare class VariantDeclaration extends BaseNode {
|
|
2020
2020
|
readonly kind = NodeKind.VariantDeclaration;
|
|
@@ -2220,4 +2220,4 @@ export declare class TypeAnnotation extends BaseNode {
|
|
|
2220
2220
|
constructor(colonToken: Token<TokenKind.Colon>, typeSpecifier: TypeSpecifier);
|
|
2221
2221
|
toRed(rangeStart: number, parent: red.TypeAnnotationParent): red.TypeAnnotation;
|
|
2222
2222
|
}
|
|
2223
|
-
export type Node = SourceFile | PackageMemberDeclarationList | Keyword | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackageName | NamedTypeSpecifier | UnionTypeSpecifier | IntersectionTypeSpecifier | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | InvalidTypeSpecifier | AnonymousFunctionTypeDeclaration | AnonymousStructuredTypeDeclaration | AnonymousVariantTypeDeclaration | PackageAliasTypeDeclaration | AliasTypeDeclarationBody | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageFunctionDeclaration | PackageFunctionTypeDeclaration | FunctionTypeDeclarationBody | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageStructuredTypeDeclaration | StructuredTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | VariantTypeDeclarationBody | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | InvalidPackageMemberDeclaration | TypeMemberGroupDeclaration | ConstructorDeclaration | DestructorDeclaration | IndexedElementGetterDeclaration | IndexedElementSetterDeclaration | IndexParameterClause | DereferencedVariableGetterDeclaration | DereferencedVariableSetterDeclaration | MethodDeclaration | OperatorDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | InvalidTypeMemberDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | FunctionLiteral | FunctionBlockLiteral | ArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | AssignmentStatement | StatementList | StatementBlock | FunctionBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatement | TryStatement | CatchClause | ErrorVariableDeclaration | FinallyClause | EmptyStatement | ErrorStatement | ImportantStatement | ExpressionStatement | EnumerationVariableList | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | ElseClause | InvalidStatement | NestedFunctionDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList | CaseClause | WhileStatement | YieldStatement | TranslationsDeclaration | TopLevelTranslationList | TranslationParameterList | TranslationParameterClause | ConstructorTranslation | IndexParameterTranslationClause | IndexerTranslation | TranslationTypeParameterList | TranslationTypeParameterClause | PackageFunctionTranslation | MethodTranslation | FunctionTypeTranslation | PackageImportTranslation | QualifiedName | PackageVariableTranslation | FieldOrVariantTranslation | TypeMemberTranslationList | TypeTranslation |
|
|
2223
|
+
export type Node = SourceFile | PackageMemberDeclarationList | Keyword | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackageName | NamedTypeSpecifier | UnionTypeSpecifier | IntersectionTypeSpecifier | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | InvalidTypeSpecifier | AnonymousFunctionTypeDeclaration | AnonymousStructuredTypeDeclaration | AnonymousVariantTypeDeclaration | PackageAliasTypeDeclaration | AliasTypeDeclarationBody | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageFunctionDeclaration | PackageFunctionTypeDeclaration | FunctionTypeDeclarationBody | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageStructuredTypeDeclaration | StructuredTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | VariantTypeDeclarationBody | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | InvalidPackageMemberDeclaration | TypeMemberGroupDeclaration | ConstructorDeclaration | DestructorDeclaration | IndexedElementGetterDeclaration | IndexedElementSetterDeclaration | IndexParameterClause | DereferencedVariableGetterDeclaration | DereferencedVariableSetterDeclaration | MethodDeclaration | OperatorDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | InvalidTypeMemberDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | FunctionLiteral | FunctionBlockLiteral | ArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | AssignmentStatement | StatementList | StatementBlock | FunctionBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatement | TryStatement | CatchClause | ErrorVariableDeclaration | FinallyClause | EmptyStatement | ErrorStatement | ImportantStatement | ExpressionStatement | EnumerationVariableList | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | ElseClause | InvalidStatement | NestedFunctionDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList | CaseClause | WhileStatement | YieldStatement | TranslationsDeclaration | TopLevelTranslationList | TranslationParameterList | TranslationParameterClause | ConstructorTranslation | IndexParameterTranslationClause | IndexerTranslation | TranslationTypeParameterList | TranslationTypeParameterClause | PackageFunctionTranslation | MethodTranslation | FunctionTypeTranslation | PackageImportTranslation | QualifiedName | PackageVariableTranslation | FieldOrVariantTranslation | TypeMemberTranslationList | TypeTranslation | TextTranslationDeclaration | TextTemplateDeclaration | TextTemplateDeclarationSpanList | TextTemplateDeclarationSpan | TextTemplateParameterDeclaration | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation | Token;
|
|
@@ -46,7 +46,7 @@ export declare class SyntaxFactory {
|
|
|
46
46
|
static statementBlock(statements: readonly tree.Statement[]): tree.StatementBlock;
|
|
47
47
|
static functionExpressionBlock(expression: tree.Expression): tree.FunctionBlock;
|
|
48
48
|
static functionStatementBlock(statements: readonly tree.Statement[]): tree.FunctionBlock;
|
|
49
|
-
static
|
|
49
|
+
static nullLiteral(): tree.KeywordExpression;
|
|
50
50
|
static integerLiteral(value: number | string): tree.TokenExpression;
|
|
51
51
|
static translationsDeclaration(translations: readonly tree.TopLevelTranslation[]): tree.TranslationsDeclaration;
|
|
52
52
|
static packageVariableTranslation(sourceName: string, translatedName: string): tree.PackageVariableTranslation;
|