@artel/artc 0.6.25242 → 0.6.25243
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 +58 -54
- package/build/{chunk-CS2AK7Z7.js → chunk-7D775S4V.js} +453 -108
- package/build/{chunk-BQ6QF4YU.js → chunk-7MCQTANE.js} +2 -2
- package/build/{chunk-TECXIZJ5.js → chunk-EU5AITNE.js} +1 -1
- package/build/types/analysis/Analyzer.d.ts +0 -1
- package/build/types/diagnostic/DiagnosticCode.d.ts +6 -1
- package/build/types/tree/NodeKind.d.ts +19 -15
- package/build/types/tree/green/Nodes.d.ts +58 -12
- package/build/types/tree/red/Nodes.d.ts +65 -13
- package/package.json +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
import {
|
2
2
|
Compiler
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-EU5AITNE.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-7D775S4V.js";
|
18
18
|
|
19
19
|
// source/executor/FileSystemUri.ts
|
20
20
|
import { platform } from "os";
|
@@ -261,7 +261,6 @@ export declare class Analyzer {
|
|
261
261
|
createPackageMemberHiding(node: tree.PackageMemberDeclaration, modifierFlags: ModifierFlags): e.EntityHidingLevel | undefined;
|
262
262
|
createTypeMemberHiding(node: tree.TypeMemberDeclaration, modifierFlags: ModifierFlags): e.EntityHidingLevel | undefined;
|
263
263
|
getDeclarationsUsageCount(sourceFile: tree.SourceFile, cancellationToken: CancellationToken | undefined): Promise<DeclarationsUsageCountResult>;
|
264
|
-
isFunctionResultNone(node: tree.FunctionBlock): boolean;
|
265
264
|
createBackingPackageVariables(declaredMembers: readonly (e.NamedPackageMemberEntity | e.PackageAliasEntity)[], pkg: e.PackageEntity): e.PackageVariableEntity[];
|
266
265
|
createBackingFields(declaredMembers: readonly NamedTypeMemberEntity[], type: e.TypeEntity): e.FieldEntity[];
|
267
266
|
createNodeDiagnostic(code: DiagnosticCode, node: tree.Node, formatArguments?: readonly string[], kind?: DiagnosticKind, flags?: DiagnosticFlags): Diagnostic;
|
@@ -193,7 +193,12 @@ export declare enum DiagnosticCode {
|
|
193
193
|
CannotAccessAbstractMemberOfBaseType = 354,
|
194
194
|
TheFollowingBaseTypeMembersConflictAndMustBeOverridden0 = 355,
|
195
195
|
TheFollowingBaseTypeMembersConflictBecauseTheyHaveTheSameOriginalName0AndMustBeOverridden1 = 356,
|
196
|
-
|
196
|
+
EitherIdentifiersOrIntegerIndexesAreAllowedAsParametersOfTextTemplateLiteral = 357,
|
197
|
+
OnlyIndex0IsAllowedHereAsParameterOfTextTemplateLiteral = 358,
|
198
|
+
OnlyIntegerLiteralInRangeFromZeroToNIsAllowedHereAsParameterOfTextTemplateLiteral = 359,
|
199
|
+
OnlyIdentifierIsAllowedHereAsParameterOfTextTemplateLiteral = 360,
|
200
|
+
TranslationFunctionIsNotAllowedWhenIndexesAreUsedAsParametersInSourceTextTemplate = 361,
|
201
|
+
UnknownParameterOfTextTemplateTranslation = 362,
|
197
202
|
CannotFindTsLibDirectoryBaseSearchPaths0 = 401,
|
198
203
|
SourceFile0IsNotPartOfThePackageAndWontBeLoaded = 402,
|
199
204
|
ProgramWithoutMainPackageCannotBeCompiled = 403,
|
@@ -141,19 +141,23 @@ export declare enum NodeKind {
|
|
141
141
|
TypeTranslation = 139,
|
142
142
|
TextLiteralTranslation = 140,
|
143
143
|
TextTemplateLiteralTranslation = 141,
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
144
|
+
TranslationTextTemplate = 142,
|
145
|
+
TranslationTextTemplateSpanList = 143,
|
146
|
+
TranslationTextTemplateSpan = 144,
|
147
|
+
TranslationTextTemplateParameter = 145,
|
148
|
+
VariantDeclaration = 146,
|
149
|
+
TypeParameterDeclaration = 147,
|
150
|
+
ParameterDeclaration = 148,
|
151
|
+
Argument = 149,
|
152
|
+
TagList = 150,
|
153
|
+
Tag = 151,
|
154
|
+
ModifierList = 152,
|
155
|
+
Modifier = 153,
|
156
|
+
ParameterClause = 154,
|
157
|
+
ParameterList = 155,
|
158
|
+
TypeArgumentClause = 156,
|
159
|
+
TypeArgumentList = 157,
|
160
|
+
TypeParameterClause = 158,
|
161
|
+
TypeParameterList = 159,
|
162
|
+
TypeAnnotation = 160
|
159
163
|
}
|
@@ -28,10 +28,11 @@ export declare class PackageMemberDeclarationList extends BaseNode {
|
|
28
28
|
constructor(elements: readonly PackageMemberDeclarationListElement[]);
|
29
29
|
toRed(rangeStart: number, parent: red.PackageMemberDeclarationListParent): red.PackageMemberDeclarationList;
|
30
30
|
}
|
31
|
-
export type Identifier = Token<TokenKind.Identifier>;
|
32
31
|
export type Comma = Token<TokenKind.Comma>;
|
33
32
|
export type Semicolon = Token<TokenKind.Semicolon>;
|
33
|
+
export type Identifier = Token<TokenKind.Identifier>;
|
34
34
|
export type IdentifierListElement = Identifier | Comma;
|
35
|
+
export type TextLiteral = Token<TokenKind.TextLiteral>;
|
35
36
|
export declare class Keyword<TKind extends KeywordKind = KeywordKind> extends BaseNode {
|
36
37
|
readonly keywordKind: TKind;
|
37
38
|
readonly isMissing: boolean;
|
@@ -1177,7 +1178,7 @@ export declare class TextTemplateLiteral extends BaseNode {
|
|
1177
1178
|
get spanList(): TextTemplateSpanList;
|
1178
1179
|
protected get thisAsNode(): Node;
|
1179
1180
|
constructor(head: TextTemplateHead, spanList: TextTemplateSpanList);
|
1180
|
-
toRed(rangeStart: number, parent: red.
|
1181
|
+
toRed(rangeStart: number, parent: red.ExpressionParent): red.TextTemplateLiteral;
|
1181
1182
|
}
|
1182
1183
|
export declare class TextTemplateSpanList extends BaseNode {
|
1183
1184
|
readonly kind = NodeKind.TextTemplateSpanList;
|
@@ -1958,32 +1959,77 @@ export type TypeMemberTranslation = FieldOrVariantTranslation | MethodTranslatio
|
|
1958
1959
|
export declare class TextLiteralTranslation extends BaseNode {
|
1959
1960
|
readonly kind = NodeKind.TextLiteralTranslation;
|
1960
1961
|
readonly children: readonly [
|
1961
|
-
|
1962
|
+
TextLiteral,
|
1962
1963
|
Token<TokenKind.MinusGreaterThan>,
|
1963
|
-
|
1964
|
+
TextLiteral
|
1964
1965
|
];
|
1965
|
-
get sourceText():
|
1966
|
+
get sourceText(): TextLiteral;
|
1966
1967
|
get minusGreaterThanToken(): Token<TokenKind.MinusGreaterThan>;
|
1967
|
-
get translatedText():
|
1968
|
+
get translatedText(): TextLiteral;
|
1968
1969
|
protected get thisAsNode(): Node;
|
1969
|
-
constructor(sourceText:
|
1970
|
+
constructor(sourceText: TextLiteral, minusGreaterThanToken: Token<TokenKind.MinusGreaterThan>, translatedText: TextLiteral);
|
1970
1971
|
toRed(rangeStart: number, parent: red.TextLiteralTranslationParent): red.TextLiteralTranslation;
|
1971
1972
|
}
|
1972
|
-
export type TranslatedTextOrTranslationFunction = TextTemplateLiteral | FunctionLiteral | FunctionBlockLiteral | InvalidExpression;
|
1973
|
+
export type TranslatedTextOrTranslationFunction = TextLiteral | TextTemplateLiteral | FunctionLiteral | FunctionBlockLiteral | InvalidExpression;
|
1973
1974
|
export declare class TextTemplateLiteralTranslation extends BaseNode {
|
1974
1975
|
readonly kind = NodeKind.TextTemplateLiteralTranslation;
|
1975
1976
|
readonly children: readonly [
|
1976
|
-
|
1977
|
+
TranslationTextTemplate,
|
1977
1978
|
Token<TokenKind.MinusGreaterThan>,
|
1978
1979
|
TranslatedTextOrTranslationFunction
|
1979
1980
|
];
|
1980
|
-
get sourceText():
|
1981
|
+
get sourceText(): TranslationTextTemplate;
|
1981
1982
|
get minusGreaterThanToken(): Token<TokenKind.MinusGreaterThan>;
|
1982
1983
|
get translatedTextOrTranslationFunction(): TranslatedTextOrTranslationFunction;
|
1983
1984
|
protected get thisAsNode(): Node;
|
1984
|
-
constructor(sourceText:
|
1985
|
+
constructor(sourceText: TranslationTextTemplate, minusGreaterThanToken: Token<TokenKind.MinusGreaterThan>, translatedTextOrTranslationFunction: TranslatedTextOrTranslationFunction);
|
1985
1986
|
toRed(rangeStart: number, parent: red.TextTemplateLiteralTranslationParent): red.TextTemplateLiteralTranslation;
|
1986
1987
|
}
|
1988
|
+
export declare class TranslationTextTemplate extends BaseNode {
|
1989
|
+
readonly kind = NodeKind.TranslationTextTemplate;
|
1990
|
+
readonly children: readonly [
|
1991
|
+
TextTemplateHead,
|
1992
|
+
TranslationTextTemplateSpanList
|
1993
|
+
];
|
1994
|
+
get head(): TextTemplateHead;
|
1995
|
+
get spanList(): TranslationTextTemplateSpanList;
|
1996
|
+
protected get thisAsNode(): Node;
|
1997
|
+
constructor(head: TextTemplateHead, spanList: TranslationTextTemplateSpanList);
|
1998
|
+
toRed(rangeStart: number, parent: red.TranslationTextTemplateParent): red.TranslationTextTemplate;
|
1999
|
+
}
|
2000
|
+
export declare class TranslationTextTemplateSpanList extends BaseNode {
|
2001
|
+
readonly kind = NodeKind.TranslationTextTemplateSpanList;
|
2002
|
+
readonly children: readonly TranslationTextTemplateSpan[];
|
2003
|
+
get spans(): readonly TranslationTextTemplateSpan[];
|
2004
|
+
protected get thisAsNode(): Node;
|
2005
|
+
constructor(spans: readonly TranslationTextTemplateSpan[]);
|
2006
|
+
toRed(rangeStart: number, parent: red.TranslationTextTemplateSpanListParent): red.TranslationTextTemplateSpanList;
|
2007
|
+
}
|
2008
|
+
export type IntegerLiteral = Token<TokenKind.IntegerLiteral>;
|
2009
|
+
export declare class TranslationTextTemplateSpan extends BaseNode {
|
2010
|
+
readonly kind = NodeKind.TranslationTextTemplateSpan;
|
2011
|
+
readonly children: readonly [
|
2012
|
+
TranslationTextTemplateParameter | IntegerLiteral,
|
2013
|
+
TextTemplatePart | TextTemplateTail
|
2014
|
+
];
|
2015
|
+
get parameter(): TranslationTextTemplateParameter | IntegerLiteral;
|
2016
|
+
get text(): TextTemplatePart | TextTemplateTail;
|
2017
|
+
protected get thisAsNode(): Node;
|
2018
|
+
constructor(parameter: TranslationTextTemplateParameter | IntegerLiteral, text: TextTemplatePart | TextTemplateTail);
|
2019
|
+
toRed(rangeStart: number, parent: red.TranslationTextTemplateSpanParent): red.TranslationTextTemplateSpan;
|
2020
|
+
}
|
2021
|
+
export declare class TranslationTextTemplateParameter extends BaseNode {
|
2022
|
+
readonly kind = NodeKind.TranslationTextTemplateParameter;
|
2023
|
+
readonly children: readonly [
|
2024
|
+
Identifier,
|
2025
|
+
TypeAnnotation | undefined
|
2026
|
+
];
|
2027
|
+
get name(): Identifier;
|
2028
|
+
get typeAnnotation(): TypeAnnotation | undefined;
|
2029
|
+
protected get thisAsNode(): Node;
|
2030
|
+
constructor(name: Identifier, typeAnnotation: TypeAnnotation | undefined);
|
2031
|
+
toRed(rangeStart: number, parent: red.TranslationTextTemplateParameterParent): red.TranslationTextTemplateParameter;
|
2032
|
+
}
|
1987
2033
|
export declare class VariantDeclaration extends BaseNode {
|
1988
2034
|
readonly kind = NodeKind.VariantDeclaration;
|
1989
2035
|
readonly children: readonly [
|
@@ -2188,4 +2234,4 @@ export declare class TypeAnnotation extends BaseNode {
|
|
2188
2234
|
constructor(colonToken: Token<TokenKind.Colon>, typeSpecifier: TypeSpecifier);
|
2189
2235
|
toRed(rangeStart: number, parent: red.TypeAnnotationParent): red.TypeAnnotation;
|
2190
2236
|
}
|
2191
|
-
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 | TextLiteralTranslation | TextTemplateLiteralTranslation | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation | Token;
|
2237
|
+
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 | TextLiteralTranslation | TextTemplateLiteralTranslation | TranslationTextTemplate | TranslationTextTemplateSpanList | TranslationTextTemplateSpan | TranslationTextTemplateParameter | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation | Token;
|
@@ -32,11 +32,12 @@ export declare class PackageMemberDeclarationList extends BaseNode {
|
|
32
32
|
constructor(green: green.PackageMemberDeclarationList, rangeStart: number, parent: PackageMemberDeclarationListParent);
|
33
33
|
private createChildren;
|
34
34
|
}
|
35
|
-
export type IdentifierParent = PackageImport | PackageName | PackageAliasTypeDeclaration | PackageFunctionDeclaration | PackageFunctionTypeDeclaration | PackageStructuredTypeDeclaration | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | MethodDeclaration | OperatorDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ErrorVariableDeclaration | MemberAccessExpression | IdentifierExpression | TranslationParameterList | TranslationTypeParameterList | PackageFunctionTranslation | MethodTranslation | FunctionTypeTranslation | QualifiedName | PackageVariableTranslation | FieldOrVariantTranslation | TypeTranslation | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | Keyword;
|
36
|
-
export type Identifier = Token<TokenKind.Identifier>;
|
37
35
|
export type Comma = Token<TokenKind.Comma>;
|
38
36
|
export type Semicolon = Token<TokenKind.Semicolon>;
|
37
|
+
export type IdentifierParent = PackageImport | PackageName | PackageAliasTypeDeclaration | PackageFunctionDeclaration | PackageFunctionTypeDeclaration | PackageStructuredTypeDeclaration | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | MethodDeclaration | OperatorDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ErrorVariableDeclaration | MemberAccessExpression | IdentifierExpression | TranslationParameterList | TranslationTypeParameterList | PackageFunctionTranslation | MethodTranslation | FunctionTypeTranslation | QualifiedName | PackageVariableTranslation | FieldOrVariantTranslation | TypeTranslation | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | Keyword;
|
38
|
+
export type Identifier = Token<TokenKind.Identifier>;
|
39
39
|
export type IdentifierListElement = Identifier | Comma;
|
40
|
+
export type TextLiteral = Token<TokenKind.TextLiteral>;
|
40
41
|
export type KeywordParent = Node;
|
41
42
|
export declare class Keyword<TKind extends KeywordKind = KeywordKind> extends BaseNode {
|
42
43
|
readonly kind = NodeKind.Keyword;
|
@@ -1115,17 +1116,16 @@ export declare class DereferenceExpression extends BaseNode {
|
|
1115
1116
|
constructor(green: green.DereferenceExpression, rangeStart: number, parent: ExpressionParent);
|
1116
1117
|
private createChildren;
|
1117
1118
|
}
|
1118
|
-
export type TextTemplateLiteralParent = ExpressionParent | TextTemplateLiteralTranslation;
|
1119
1119
|
export declare class TextTemplateLiteral extends BaseNode {
|
1120
1120
|
readonly kind = NodeKind.TextTemplateLiteral;
|
1121
1121
|
readonly green: green.TextTemplateLiteral;
|
1122
|
-
readonly parent:
|
1122
|
+
readonly parent: ExpressionParent;
|
1123
1123
|
private _children;
|
1124
1124
|
get children(): readonly [TextTemplateHead, TextTemplateSpanList];
|
1125
1125
|
get head(): TextTemplateHead;
|
1126
1126
|
get spanList(): TextTemplateSpanList;
|
1127
1127
|
protected get thisAsNode(): Node;
|
1128
|
-
constructor(green: green.TextTemplateLiteral, rangeStart: number, parent:
|
1128
|
+
constructor(green: green.TextTemplateLiteral, rangeStart: number, parent: ExpressionParent);
|
1129
1129
|
private createChildren;
|
1130
1130
|
}
|
1131
1131
|
export type TextTemplateSpanListParent = TextTemplateLiteral;
|
@@ -1945,29 +1945,81 @@ export declare class TextLiteralTranslation extends BaseNode {
|
|
1945
1945
|
readonly green: green.TextLiteralTranslation;
|
1946
1946
|
readonly parent: TextLiteralTranslationParent;
|
1947
1947
|
private _children;
|
1948
|
-
get children(): readonly [
|
1949
|
-
get sourceText():
|
1948
|
+
get children(): readonly [TextLiteral, Token<green.TokenKind.MinusGreaterThan>, TextLiteral];
|
1949
|
+
get sourceText(): TextLiteral;
|
1950
1950
|
get minusGreaterThanToken(): Token<TokenKind.MinusGreaterThan>;
|
1951
|
-
get translatedText():
|
1951
|
+
get translatedText(): TextLiteral;
|
1952
1952
|
protected get thisAsNode(): Node;
|
1953
1953
|
constructor(green: green.TextLiteralTranslation, rangeStart: number, parent: TextLiteralTranslationParent);
|
1954
1954
|
private createChildren;
|
1955
1955
|
}
|
1956
1956
|
export type TextTemplateLiteralTranslationParent = TopLevelTranslationList;
|
1957
|
-
export type TranslatedTextOrTranslationFunction = TextTemplateLiteral | FunctionLiteral | FunctionBlockLiteral | InvalidExpression;
|
1957
|
+
export type TranslatedTextOrTranslationFunction = TextLiteral | TextTemplateLiteral | FunctionLiteral | FunctionBlockLiteral | InvalidExpression;
|
1958
1958
|
export declare class TextTemplateLiteralTranslation extends BaseNode {
|
1959
1959
|
readonly kind = NodeKind.TextTemplateLiteralTranslation;
|
1960
1960
|
readonly green: green.TextTemplateLiteralTranslation;
|
1961
1961
|
readonly parent: TextTemplateLiteralTranslationParent;
|
1962
1962
|
private _children;
|
1963
|
-
get children(): readonly [
|
1964
|
-
get sourceText():
|
1963
|
+
get children(): readonly [TranslationTextTemplate, Token<green.TokenKind.MinusGreaterThan>, TranslatedTextOrTranslationFunction];
|
1964
|
+
get sourceText(): TranslationTextTemplate;
|
1965
1965
|
get minusGreaterThanToken(): Token<TokenKind.MinusGreaterThan>;
|
1966
1966
|
get translatedTextOrTranslationFunction(): TranslatedTextOrTranslationFunction;
|
1967
1967
|
protected get thisAsNode(): Node;
|
1968
1968
|
constructor(green: green.TextTemplateLiteralTranslation, rangeStart: number, parent: TextTemplateLiteralTranslationParent);
|
1969
1969
|
private createChildren;
|
1970
1970
|
}
|
1971
|
+
export type TranslationTextTemplateParent = TextTemplateLiteralTranslation;
|
1972
|
+
export declare class TranslationTextTemplate extends BaseNode {
|
1973
|
+
readonly kind = NodeKind.TranslationTextTemplate;
|
1974
|
+
readonly green: green.TranslationTextTemplate;
|
1975
|
+
readonly parent: TranslationTextTemplateParent;
|
1976
|
+
private _children;
|
1977
|
+
get children(): readonly [TextTemplateHead, TranslationTextTemplateSpanList];
|
1978
|
+
get head(): TextTemplateHead;
|
1979
|
+
get spanList(): TranslationTextTemplateSpanList;
|
1980
|
+
protected get thisAsNode(): Node;
|
1981
|
+
constructor(green: green.TranslationTextTemplate, rangeStart: number, parent: TranslationTextTemplateParent);
|
1982
|
+
private createChildren;
|
1983
|
+
}
|
1984
|
+
export type TranslationTextTemplateSpanListParent = TranslationTextTemplate;
|
1985
|
+
export declare class TranslationTextTemplateSpanList extends BaseNode {
|
1986
|
+
readonly kind = NodeKind.TranslationTextTemplateSpanList;
|
1987
|
+
readonly green: green.TranslationTextTemplateSpanList;
|
1988
|
+
readonly parent: TranslationTextTemplateSpanListParent;
|
1989
|
+
private _children;
|
1990
|
+
get children(): readonly TranslationTextTemplateSpan[];
|
1991
|
+
get spans(): readonly TranslationTextTemplateSpan[];
|
1992
|
+
protected get thisAsNode(): Node;
|
1993
|
+
constructor(green: green.TranslationTextTemplateSpanList, rangeStart: number, parent: TranslationTextTemplateSpanListParent);
|
1994
|
+
private createChildren;
|
1995
|
+
}
|
1996
|
+
export type IntegerLiteral = Token<TokenKind.IntegerLiteral>;
|
1997
|
+
export type TranslationTextTemplateSpanParent = TranslationTextTemplateSpanList;
|
1998
|
+
export declare class TranslationTextTemplateSpan extends BaseNode {
|
1999
|
+
readonly kind = NodeKind.TranslationTextTemplateSpan;
|
2000
|
+
readonly green: green.TranslationTextTemplateSpan;
|
2001
|
+
readonly parent: TranslationTextTemplateSpanParent;
|
2002
|
+
private _children;
|
2003
|
+
get children(): readonly [TranslationTextTemplateParameter | IntegerLiteral, TextTemplatePart | TextTemplateTail];
|
2004
|
+
get parameter(): TranslationTextTemplateParameter | IntegerLiteral;
|
2005
|
+
get text(): TextTemplatePart | TextTemplateTail;
|
2006
|
+
protected get thisAsNode(): Node;
|
2007
|
+
constructor(green: green.TranslationTextTemplateSpan, rangeStart: number, parent: TranslationTextTemplateSpanParent);
|
2008
|
+
private createChildren;
|
2009
|
+
}
|
2010
|
+
export type TranslationTextTemplateParameterParent = TranslationTextTemplateSpan;
|
2011
|
+
export declare class TranslationTextTemplateParameter extends BaseNode {
|
2012
|
+
readonly kind = NodeKind.TranslationTextTemplateParameter;
|
2013
|
+
readonly green: green.TranslationTextTemplateParameter;
|
2014
|
+
readonly parent: TranslationTextTemplateParameterParent;
|
2015
|
+
private _children;
|
2016
|
+
get children(): readonly [Identifier, TypeAnnotation | undefined];
|
2017
|
+
get name(): Identifier;
|
2018
|
+
get typeAnnotation(): TypeAnnotation | undefined;
|
2019
|
+
protected get thisAsNode(): Node;
|
2020
|
+
constructor(green: green.TranslationTextTemplateParameter, rangeStart: number, parent: TranslationTextTemplateParameterParent);
|
2021
|
+
private createChildren;
|
2022
|
+
}
|
1971
2023
|
export declare class VariantDeclaration extends BaseNode {
|
1972
2024
|
readonly kind = NodeKind.VariantDeclaration;
|
1973
2025
|
readonly green: green.VariantDeclaration;
|
@@ -2172,7 +2224,7 @@ export declare class TypeParameterList extends BaseNode {
|
|
2172
2224
|
constructor(green: green.TypeParameterList, rangeStart: number, parent: TypeParameterListParent);
|
2173
2225
|
private createChildren;
|
2174
2226
|
}
|
2175
|
-
export type TypeAnnotationParent = PackageFunctionDeclaration | FunctionTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration | FunctionLiteral | ParameterDeclaration | IndexedElementGetterDeclaration | IndexedElementSetterDeclaration | DereferencedVariableGetterDeclaration | DereferencedVariableSetterDeclaration | MethodDeclaration | OperatorDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | ErrorVariableDeclaration;
|
2227
|
+
export type TypeAnnotationParent = PackageFunctionDeclaration | FunctionTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration | FunctionLiteral | ParameterDeclaration | IndexedElementGetterDeclaration | IndexedElementSetterDeclaration | DereferencedVariableGetterDeclaration | DereferencedVariableSetterDeclaration | MethodDeclaration | OperatorDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | ErrorVariableDeclaration | TranslationTextTemplateParameter;
|
2176
2228
|
export declare class TypeAnnotation extends BaseNode {
|
2177
2229
|
readonly kind = NodeKind.TypeAnnotation;
|
2178
2230
|
readonly green: green.TypeAnnotation;
|
@@ -2185,4 +2237,4 @@ export declare class TypeAnnotation extends BaseNode {
|
|
2185
2237
|
constructor(green: green.TypeAnnotation, rangeStart: number, parent: TypeAnnotationParent);
|
2186
2238
|
private createChildren;
|
2187
2239
|
}
|
2188
|
-
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 | TextLiteralTranslation | TextTemplateLiteralTranslation | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation | Token;
|
2240
|
+
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 | TextLiteralTranslation | TextTemplateLiteralTranslation | TranslationTextTemplate | TranslationTextTemplateSpanList | TranslationTextTemplateSpan | TranslationTextTemplateParameter | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation | Token;
|