@artel/artc 0.6.25259 → 0.6.25260
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 +28 -20
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +1266 -1217
- package/build/{chunk-GVYF4DV5.js → chunk-7FERF2MU.js} +11 -11
- package/build/{chunk-HE4MTX63.js → chunk-RIIOVQBM.js} +14371 -13456
- package/build/{chunk-VQI5PLBW.js → chunk-ZNXSVPQT.js} +1 -1
- package/build/types/analysis/AccessedFunction.d.ts +11 -11
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +28 -28
- package/build/types/analysis/Analyzer.d.ts +184 -168
- package/build/types/analysis/ArgumentToParameterMatchResult.d.ts +9 -9
- package/build/types/analysis/ArgumentsToParametersMatcher.d.ts +8 -8
- package/build/types/analysis/AssignmentChecker.d.ts +4 -4
- package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +8 -6
- package/build/types/analysis/BaseExpressionMeaning.d.ts +5 -5
- package/build/types/analysis/BaseMemberConflictsValidator.d.ts +7 -7
- package/build/types/analysis/CallExpressionMeaning.d.ts +4 -6
- package/build/types/analysis/ConstructorCallResolver.d.ts +1 -1
- package/build/types/analysis/DeclarationsUsageCounter.d.ts +5 -5
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +4 -4
- package/build/types/analysis/DiagnosticArgumentFactory.d.ts +2 -2
- package/build/types/analysis/DiagnosticCollector.d.ts +11 -9
- package/build/types/analysis/DisplayableEntity.d.ts +30 -30
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +7 -7
- package/build/types/analysis/ImportedPackageNameTree.d.ts +1 -1
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +4 -4
- package/build/types/analysis/InstanceFieldsInitializationValidator.d.ts +6 -6
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +7 -7
- package/build/types/analysis/ModifierValidator.d.ts +3 -3
- package/build/types/analysis/NamedTypeResolver.d.ts +3 -3
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +3 -3
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -1
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +2 -2
- package/build/types/analysis/OverloadResolver.d.ts +13 -13
- package/build/types/analysis/OwnAndBaseConstructorCallsChecker.d.ts +5 -5
- package/build/types/analysis/PackageAndStaticVariablesInitializationValidator.d.ts +5 -5
- package/build/types/analysis/PackageMemberLookup.d.ts +2 -2
- package/build/types/analysis/PackageMemberNameConflictsValidator.d.ts +7 -7
- package/build/types/analysis/ReturnTypeInferrer.d.ts +4 -4
- package/build/types/analysis/SourceFileMembers.d.ts +6 -6
- package/build/types/analysis/SourcePackageDependencyGraph.d.ts +3 -3
- package/build/types/analysis/SubstitutedFunction.d.ts +8 -8
- package/build/types/analysis/TagMeaning.d.ts +4 -4
- package/build/types/analysis/Tags.d.ts +8 -7
- package/build/types/analysis/{Localization.d.ts → Translation.d.ts} +1 -23
- package/build/types/analysis/TypeArgumentInferrer.d.ts +9 -9
- package/build/types/analysis/TypeInferrer.d.ts +4 -4
- package/build/types/analysis/TypeMemberConflictsValidator.d.ts +4 -4
- package/build/types/analysis/TypeMemberImplementationChecker.d.ts +3 -3
- package/build/types/analysis/TypeMemberLookup.d.ts +7 -7
- package/build/types/analysis/TypeNarrower.d.ts +7 -7
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +6 -6
- package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +3 -3
- package/build/types/analysis/Utils.d.ts +1 -2
- package/build/types/analysis/WellKnownDeclarations.d.ts +32 -32
- package/build/types/analysis/control-flow/GraphBuilder.d.ts +11 -11
- package/build/types/analysis/control-flow/NarrowableReference.d.ts +10 -10
- package/build/types/analysis/semantic-context/Declarations.d.ts +0 -24
- package/build/types/analysis/semantic-context/FieldWithInitializerSemanticContext.d.ts +2 -2
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +23 -22
- package/build/types/analysis/semantic-context/SemanticContextBasedEntityHidingMatcher.d.ts +4 -4
- package/build/types/analysis/semantic-context/SemanticContextBuilder.d.ts +25 -25
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +9 -9
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +8 -8
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +27 -27
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +9 -9
- package/build/types/api/Api.d.ts +2 -2
- package/build/types/common/Cached.d.ts +3 -3
- package/build/types/common/CancellationToken.d.ts +2 -2
- package/build/types/common/Delayed.d.ts +2 -2
- package/build/types/common/Displayable.d.ts +3 -3
- package/build/types/common/HelperPhrases.d.ts +2 -1
- package/build/types/common/Interner.d.ts +1 -1
- package/build/types/common/Lazy.d.ts +3 -3
- package/build/types/common/Option.d.ts +2 -2
- package/build/types/common/PerformanceMeasurement.d.ts +2 -2
- package/build/types/common/Query.d.ts +15 -0
- package/build/types/common/ThrottledCancellationToken.d.ts +6 -6
- package/build/types/common/TreeQuery.d.ts +2 -5
- package/build/types/diagnostic/DiagnosticCode.d.ts +142 -139
- package/build/types/diagnostic/DiagnosticData.d.ts +3 -3
- package/build/types/diagnostic/RangeDiagnostic.d.ts +3 -3
- package/build/types/emitter/DebugStack.d.ts +2 -2
- package/build/types/emitter/Emitter.d.ts +5 -5
- package/build/types/emitter/EmitterContext.d.ts +21 -21
- package/build/types/emitter/EntityMap.d.ts +8 -8
- package/build/types/emitter/GeneralLowering.d.ts +2 -2
- package/build/types/emitter/IrBuilder.d.ts +10 -10
- package/build/types/emitter/IrToJs.d.ts +5 -5
- package/build/types/emitter/Transformer.d.ts +5 -5
- package/build/types/emitter/ir/EmitOptions.d.ts +27 -13
- package/build/types/emitter/ir/Nodes.d.ts +28 -27
- package/build/types/emitter/ir/types.d.ts +2 -2
- package/build/types/entities/AliasTypeEntity.d.ts +15 -12
- package/build/types/entities/AliasedType.d.ts +2 -2
- package/build/types/entities/BaseAspectTypes.d.ts +31 -0
- package/build/types/entities/BaseEntityHidingMatcher.d.ts +1 -1
- package/build/types/entities/BaseObjectType.d.ts +31 -0
- package/build/types/entities/ConstructorEntity.d.ts +51 -38
- package/build/types/entities/DereferenceOperatorEntity.d.ts +19 -13
- package/build/types/entities/DestructorEntity.d.ts +21 -14
- package/build/types/entities/EntityHidingMatcherWithinTypeEntity.d.ts +2 -2
- package/build/types/entities/EntityLocalizationContext.d.ts +10 -10
- package/build/types/entities/FunctionEntity.d.ts +86 -70
- package/build/types/entities/FunctionTypeEntity.d.ts +37 -31
- package/build/types/entities/GetterEntity.d.ts +51 -30
- package/build/types/entities/IEntity.d.ts +12 -0
- package/build/types/entities/IndexerEntity.d.ts +24 -24
- package/build/types/entities/LocalizableTextEntity.d.ts +26 -21
- package/build/types/entities/OperatorEntity.d.ts +23 -16
- package/build/types/entities/PackageAliasEntity.d.ts +15 -9
- package/build/types/entities/PackageEntity.d.ts +15 -10
- package/build/types/entities/PackageMembers.d.ts +5 -5
- package/build/types/entities/SetterEntity.d.ts +50 -29
- package/build/types/entities/StructuredTypeEntity.d.ts +76 -115
- package/build/types/entities/TypeEntity.d.ts +2 -1
- package/build/types/entities/TypeEntityMembers.d.ts +11 -11
- package/build/types/entities/TypeExtensionEntity.d.ts +13 -8
- package/build/types/entities/TypeParameterEntity.d.ts +28 -21
- package/build/types/entities/VariableEntity.d.ts +236 -179
- package/build/types/entities/VariantTypeEntity.d.ts +28 -22
- package/build/types/entities/index.d.ts +5 -1
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +18 -16
- package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +15 -11
- package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +16 -12
- package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +15 -11
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +32 -27
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +33 -29
- package/build/types/entities/translated/TranslatedGetterEntity.d.ts +12 -8
- package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +19 -15
- package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +18 -14
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +10 -7
- package/build/types/entities/translated/TranslatedSetterEntity.d.ts +11 -7
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +41 -39
- package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +12 -9
- package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +19 -16
- package/build/types/entities/translated/TranslatedVariableEntity.d.ts +44 -36
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +28 -24
- package/build/types/executor/NodeCompiler.d.ts +3 -3
- package/build/types/executor/PhysicalTypeScriptLibrariesProvider.d.ts +2 -2
- package/build/types/parser/Parser.d.ts +1 -1
- package/build/types/parser/TriviaInterner.d.ts +3 -3
- package/build/types/project/Compilation.d.ts +3 -3
- package/build/types/project/CompilationLoader.d.ts +5 -5
- package/build/types/project/FileSystemTree.d.ts +6 -6
- package/build/types/project/SourceFile.d.ts +2 -2
- package/build/types/project/SourcePackage.d.ts +1 -1
- package/build/types/project/TextFile.d.ts +1 -1
- package/build/types/project/configuration/ConfigurationConverter.d.ts +1 -1
- package/build/types/project/configuration/ConfigurationFileParser.d.ts +1 -1
- package/build/types/services/AssignFieldService.d.ts +10 -0
- package/build/types/services/CodeActionsService.d.ts +1 -1
- package/build/types/services/CompletionService.d.ts +8 -8
- package/build/types/services/CustomCommand.d.ts +13 -7
- package/build/types/services/DefinitionService.d.ts +1 -1
- package/build/types/services/DisplayService.d.ts +76 -80
- package/build/types/services/DocumentHighlightsService.d.ts +1 -1
- package/build/types/services/HoverService.d.ts +3 -3
- package/build/types/services/LanguageServer.d.ts +32 -32
- package/build/types/services/NodeSemanticInfo.d.ts +9 -9
- package/build/types/services/ProjectItemsService.d.ts +1 -1
- package/build/types/services/RenameService.d.ts +1 -1
- package/build/types/services/SemanticTokensService.d.ts +1 -1
- package/build/types/services/SourceFileItemsService.d.ts +1 -1
- package/build/types/services/TranslationService.d.ts +1 -1
- package/build/types/services/signature-help/{ValueParametersSignatureHelpProvider.d.ts → ParametersSignatureHelpProvider.d.ts} +6 -6
- package/build/types/services/signature-help/{SignatureWithValueParameters.d.ts → SignatureWithParameters.d.ts} +34 -34
- package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +4 -4
- package/build/types/services/source-generation/EntityToSyntax.d.ts +4 -4
- package/build/types/services/source-generation/SourceGenerationService.d.ts +5 -5
- package/build/types/services/workspace/CompilationController.d.ts +22 -22
- package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +13 -13
- package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +4 -4
- package/build/types/services/workspace/Workspace.d.ts +7 -7
- package/build/types/services/workspace/WorkspaceFiles.d.ts +1 -1
- package/build/types/tree/BaseNode.d.ts +12 -3
- package/build/types/tree/NodeKind.d.ts +56 -57
- package/build/types/tree/Nodes.d.ts +18 -20
- package/build/types/tree/SyntaxToCode.d.ts +11 -11
- package/build/types/ts-interop/Entities.d.ts +326 -263
- package/build/types/ts-interop/TsInteropContext.d.ts +16 -14
- package/build/types/ts-interop/TsPackageContents.d.ts +16 -16
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +10 -10
- package/build/types/ts-interop/TsProgramLoader.d.ts +7 -7
- package/build/types/ts-interop/TsTypeMembersCreator.d.ts +9 -9
- package/build/types/types/AliasType.d.ts +6 -5
- package/build/types/types/FunctionType.d.ts +8 -7
- package/build/types/types/IntersectionType.d.ts +3 -2
- package/build/types/types/ParameterType.d.ts +5 -4
- package/build/types/types/StandardTypes.d.ts +21 -21
- package/build/types/types/StructuredType.d.ts +9 -10
- package/build/types/types/Substitutions.d.ts +1 -1
- package/build/types/types/Type.d.ts +1 -0
- package/build/types/types/TypeMembers.d.ts +42 -42
- package/build/types/types/UnionType.d.ts +3 -2
- package/build/types/types/UnresolvedType.d.ts +3 -2
- package/build/types/types/VariantType.d.ts +5 -4
- package/package.json +1 -1
- package/build/types/entities/TypeMemberContainer.d.ts +0 -23
- package/build/types/services/AddPropertyAssignmentService.d.ts +0 -8
|
@@ -57,7 +57,7 @@ export declare enum NodeKind {
|
|
|
57
57
|
MissingTypeMemberDeclaration = 55,
|
|
58
58
|
NestedFunctionDeclaration = 56,
|
|
59
59
|
LocalVariableDeclaration = 57,
|
|
60
|
-
|
|
60
|
+
ForStatementVariableDeclaration = 58,
|
|
61
61
|
ArrayLiteral = 59,
|
|
62
62
|
ArrayLiteralElementList = 60,
|
|
63
63
|
AssertionExpression = 61,
|
|
@@ -107,60 +107,59 @@ export declare enum NodeKind {
|
|
|
107
107
|
ErrorStatement = 105,
|
|
108
108
|
ImportantStatement = 106,
|
|
109
109
|
ExpressionStatement = 107,
|
|
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
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
TypeAnnotation = 163
|
|
110
|
+
ForStatement = 108,
|
|
111
|
+
IfStatement = 109,
|
|
112
|
+
ElseIfClauseList = 110,
|
|
113
|
+
ElseIfClause = 111,
|
|
114
|
+
ElseClause = 112,
|
|
115
|
+
MissingStatement = 113,
|
|
116
|
+
NestedFunctionDeclarationStatement = 114,
|
|
117
|
+
LocalVariableDeclarationStatement = 115,
|
|
118
|
+
LoopStatement = 116,
|
|
119
|
+
ReturnStatement = 117,
|
|
120
|
+
CaseClauseList = 118,
|
|
121
|
+
SwitchStatement = 119,
|
|
122
|
+
MatchExpressionList = 120,
|
|
123
|
+
CaseClause = 121,
|
|
124
|
+
WhileStatement = 122,
|
|
125
|
+
YieldStatement = 123,
|
|
126
|
+
TranslationsDeclaration = 124,
|
|
127
|
+
TopLevelTranslationList = 125,
|
|
128
|
+
TranslationParameterList = 126,
|
|
129
|
+
TranslationParameterClause = 127,
|
|
130
|
+
ConstructorTranslation = 128,
|
|
131
|
+
IndexParameterTranslationClause = 129,
|
|
132
|
+
IndexerTranslation = 130,
|
|
133
|
+
TranslationTypeParameterList = 131,
|
|
134
|
+
TranslationTypeParameterClause = 132,
|
|
135
|
+
PackageFunctionTranslationDeclaration = 133,
|
|
136
|
+
MethodTranslation = 134,
|
|
137
|
+
FunctionTypeTranslationDeclaration = 135,
|
|
138
|
+
PackageImportTranslationDeclaration = 136,
|
|
139
|
+
QualifiedName = 137,
|
|
140
|
+
PackageVariableTranslationDeclaration = 138,
|
|
141
|
+
FieldOrVariantTranslation = 139,
|
|
142
|
+
TypeMemberTranslationList = 140,
|
|
143
|
+
TypeTranslationDeclaration = 141,
|
|
144
|
+
TextTranslationDeclaration = 142,
|
|
145
|
+
TranslationTextLiteral = 143,
|
|
146
|
+
TranslationTextTemplate = 144,
|
|
147
|
+
TranslationTextTemplateSpanList = 145,
|
|
148
|
+
TranslationTextTemplateSpan = 146,
|
|
149
|
+
TranslationTextTemplateParameter = 147,
|
|
150
|
+
VariantDeclaration = 148,
|
|
151
|
+
TypeParameterDeclaration = 149,
|
|
152
|
+
ParameterDeclaration = 150,
|
|
153
|
+
Argument = 151,
|
|
154
|
+
TagList = 152,
|
|
155
|
+
Tag = 153,
|
|
156
|
+
ModifierList = 154,
|
|
157
|
+
Modifier = 155,
|
|
158
|
+
ParameterClause = 156,
|
|
159
|
+
ParameterList = 157,
|
|
160
|
+
TypeArgumentClause = 158,
|
|
161
|
+
TypeArgumentList = 159,
|
|
162
|
+
TypeParameterClause = 160,
|
|
163
|
+
TypeParameterList = 161,
|
|
164
|
+
TypeAnnotation = 162
|
|
166
165
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Query, Range } from '../common/index.js';
|
|
1
|
+
import { PackageDialect, PackageLocale, Query, Range } from '../common/index.js';
|
|
2
2
|
import { ParserDiagnostic } from '../parser/ParserDiagnostic.js';
|
|
3
3
|
import { BaseNode } from './BaseNode.js';
|
|
4
4
|
import { KeywordKind } from './KeywordKind.js';
|
|
@@ -9,7 +9,7 @@ import { TokenKind } from './TokenKind.js';
|
|
|
9
9
|
export type Comma = Token<TokenKind.Comma>;
|
|
10
10
|
export type Semicolon = Token<TokenKind.Semicolon>;
|
|
11
11
|
export type Identifier = Token<TokenKind.Identifier>;
|
|
12
|
-
export type IdentifierParent = PackageImport | PackageName | PackageAliasTypeDeclaration | PackageFunctionDeclaration | PackageFunctionTypeDeclaration | PackageStructuredTypeDeclaration | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | MethodDeclaration | OperatorDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration |
|
|
12
|
+
export type IdentifierParent = PackageImport | PackageName | PackageAliasTypeDeclaration | PackageFunctionDeclaration | PackageFunctionTypeDeclaration | PackageStructuredTypeDeclaration | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | MethodDeclaration | OperatorDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration | ForStatementVariableDeclaration | ErrorVariableDeclaration | MemberAccessExpression | IdentifierExpression | TranslationParameterList | TranslationTypeParameterList | PackageFunctionTranslationDeclaration | MethodTranslation | FunctionTypeTranslationDeclaration | QualifiedName | PackageVariableTranslationDeclaration | FieldOrVariantTranslation | TypeTranslationDeclaration | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | Keyword;
|
|
13
13
|
export type IdentifierListElement = Identifier | Comma;
|
|
14
14
|
export declare class Keyword<TKind extends KeywordKind = KeywordKind> extends BaseNode {
|
|
15
15
|
readonly kind = NodeKind.Keyword;
|
|
@@ -29,13 +29,17 @@ export declare class SourceFile extends BaseNode {
|
|
|
29
29
|
Token<TokenKind.EndOfFile>
|
|
30
30
|
];
|
|
31
31
|
readonly diagnostics: readonly ParserDiagnostic[];
|
|
32
|
+
private readonly locale_;
|
|
33
|
+
private readonly dialect_;
|
|
34
|
+
get locale(): PackageLocale;
|
|
35
|
+
get dialect(): PackageDialect;
|
|
32
36
|
get parent(): undefined;
|
|
33
37
|
get packageImportDirectiveList(): PackageImportDirectiveList;
|
|
34
38
|
get declarationList(): PackageMemberDeclarationList;
|
|
35
39
|
get endOfFileToken(): Token<TokenKind.EndOfFile>;
|
|
36
40
|
getSourceCode(): string;
|
|
37
41
|
protected get thisAsNode(): Node;
|
|
38
|
-
constructor(packageImportDirectiveList: PackageImportDirectiveList, declarationList: PackageMemberDeclarationList, endOfFileToken: Token<TokenKind.EndOfFile>, diagnostics: readonly ParserDiagnostic[], rangeWithTrivia: Range | undefined);
|
|
42
|
+
constructor(packageImportDirectiveList: PackageImportDirectiveList, declarationList: PackageMemberDeclarationList, endOfFileToken: Token<TokenKind.EndOfFile>, locale: PackageLocale, dialect: PackageDialect, diagnostics: readonly ParserDiagnostic[], rangeWithTrivia: Range | undefined);
|
|
39
43
|
}
|
|
40
44
|
export type PackageMemberDeclarationListElement = PackageMemberDeclaration | Semicolon;
|
|
41
45
|
export type PackageMemberDeclarationListParent = SourceFile | PackageMemberGroupDeclaration;
|
|
@@ -903,12 +907,12 @@ export declare class LocalVariableDeclaration extends BaseNode {
|
|
|
903
907
|
protected get thisAsNode(): Node;
|
|
904
908
|
constructor(letOrConstKeyword: Keyword<KeywordKind.Let> | Keyword<KeywordKind.Const>, name: Identifier, typeAnnotation: TypeAnnotation | undefined, equalsToken: Token<TokenKind.Equals> | undefined, initializer: Expression | undefined, rangeWithTrivia: Range | undefined);
|
|
905
909
|
}
|
|
906
|
-
export declare class
|
|
907
|
-
readonly kind = NodeKind.
|
|
910
|
+
export declare class ForStatementVariableDeclaration extends BaseNode {
|
|
911
|
+
readonly kind = NodeKind.ForStatementVariableDeclaration;
|
|
908
912
|
readonly children: readonly [
|
|
909
913
|
Identifier
|
|
910
914
|
];
|
|
911
|
-
get parent():
|
|
915
|
+
get parent(): ForStatement;
|
|
912
916
|
get name(): Identifier;
|
|
913
917
|
protected get thisAsNode(): Node;
|
|
914
918
|
constructor(name: Identifier, rangeWithTrivia: Range | undefined);
|
|
@@ -1535,33 +1539,27 @@ export declare class ExpressionStatement extends BaseNode {
|
|
|
1535
1539
|
protected get thisAsNode(): Node;
|
|
1536
1540
|
constructor(expression: Expression, rangeWithTrivia: Range | undefined);
|
|
1537
1541
|
}
|
|
1538
|
-
export type EnumerationVariableListElement = EnumerationVariableDeclaration | Comma;
|
|
1539
|
-
export declare class EnumerationVariableList extends BaseNode {
|
|
1540
|
-
readonly kind = NodeKind.EnumerationVariableList;
|
|
1541
|
-
readonly children: readonly EnumerationVariableListElement[];
|
|
1542
|
-
get parent(): ForStatement;
|
|
1543
|
-
get elements(): readonly EnumerationVariableListElement[];
|
|
1544
|
-
get enumerationVariables(): Query<EnumerationVariableDeclaration>;
|
|
1545
|
-
protected get thisAsNode(): Node;
|
|
1546
|
-
constructor(elements: readonly EnumerationVariableListElement[], rangeWithTrivia: Range | undefined);
|
|
1547
|
-
}
|
|
1548
1542
|
export declare class ForStatement extends BaseNode {
|
|
1549
1543
|
readonly kind = NodeKind.ForStatement;
|
|
1550
1544
|
readonly children: readonly [
|
|
1551
1545
|
Keyword<KeywordKind.For>,
|
|
1552
|
-
|
|
1546
|
+
ForStatementVariableDeclaration,
|
|
1547
|
+
Comma | undefined,
|
|
1548
|
+
ForStatementVariableDeclaration | undefined,
|
|
1553
1549
|
Keyword<KeywordKind.From>,
|
|
1554
1550
|
Expression,
|
|
1555
1551
|
StatementBlock
|
|
1556
1552
|
];
|
|
1557
1553
|
get parent(): StatementList;
|
|
1558
1554
|
get forKeyword(): Keyword<KeywordKind.For>;
|
|
1559
|
-
get
|
|
1555
|
+
get elementVariableDeclaration(): ForStatementVariableDeclaration;
|
|
1556
|
+
get comma(): Comma | undefined;
|
|
1557
|
+
get indexVariableDeclaration(): ForStatementVariableDeclaration | undefined;
|
|
1560
1558
|
get fromKeyword(): Keyword<KeywordKind.From>;
|
|
1561
1559
|
get enumeratedExpression(): Expression;
|
|
1562
1560
|
get block(): StatementBlock;
|
|
1563
1561
|
protected get thisAsNode(): Node;
|
|
1564
|
-
constructor(forKeyword: Keyword<KeywordKind.For>,
|
|
1562
|
+
constructor(forKeyword: Keyword<KeywordKind.For>, elementVariableDeclaration: ForStatementVariableDeclaration, comma: Comma | undefined, indexVariableDeclaration: ForStatementVariableDeclaration | undefined, fromKeyword: Keyword<KeywordKind.From>, enumeratedExpression: Expression, block: StatementBlock, rangeWithTrivia: Range | undefined);
|
|
1565
1563
|
}
|
|
1566
1564
|
export declare class IfStatement extends BaseNode {
|
|
1567
1565
|
readonly kind = NodeKind.IfStatement;
|
|
@@ -2313,4 +2311,4 @@ export declare class TypeAnnotation extends BaseNode {
|
|
|
2313
2311
|
protected get thisAsNode(): Node;
|
|
2314
2312
|
constructor(colonToken: Token<TokenKind.Colon>, typeSpecifier: TypeSpecifier, rangeWithTrivia: Range | undefined);
|
|
2315
2313
|
}
|
|
2316
|
-
export type Node = Token | Keyword | SourceFile | PackageMemberDeclarationList | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackageName | NamedTypeSpecifier | UnionTypeSpecifier | IntersectionTypeSpecifier | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | MissingTypeSpecifier | AnonymousFunctionTypeDeclaration | AnonymousStructuredTypeDeclaration | AnonymousVariantTypeDeclaration | PackageAliasTypeDeclaration | AliasTypeDeclarationBody | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageFunctionDeclaration | PackageFunctionTypeDeclaration | FunctionTypeDeclarationBody | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageStructuredTypeDeclaration | StructuredTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | VariantTypeDeclarationBody | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | MissingPackageMemberDeclaration | TypeMemberGroupDeclaration | ConstructorDeclaration | DestructorDeclaration | IndexedElementGetterDeclaration | IndexedElementSetterDeclaration | IndexParameterClause | DereferencedVariableGetterDeclaration | DereferencedVariableSetterDeclaration | MethodDeclaration | OperatorDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | MissingTypeMemberDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration |
|
|
2314
|
+
export type Node = Token | Keyword | SourceFile | PackageMemberDeclarationList | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackageName | NamedTypeSpecifier | UnionTypeSpecifier | IntersectionTypeSpecifier | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | MissingTypeSpecifier | AnonymousFunctionTypeDeclaration | AnonymousStructuredTypeDeclaration | AnonymousVariantTypeDeclaration | PackageAliasTypeDeclaration | AliasTypeDeclarationBody | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageFunctionDeclaration | PackageFunctionTypeDeclaration | FunctionTypeDeclarationBody | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageStructuredTypeDeclaration | StructuredTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | VariantTypeDeclarationBody | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | MissingPackageMemberDeclaration | TypeMemberGroupDeclaration | ConstructorDeclaration | DestructorDeclaration | IndexedElementGetterDeclaration | IndexedElementSetterDeclaration | IndexParameterClause | DereferencedVariableGetterDeclaration | DereferencedVariableSetterDeclaration | MethodDeclaration | OperatorDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | MissingTypeMemberDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration | ForStatementVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | FunctionLiteral | FunctionBlockLiteral | ArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessExpression | MissingExpression | IsExpression | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | LocalizableTextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | TextLiteral | LocalizableTextLiteral | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | AssignmentStatement | StatementList | StatementBlock | FunctionBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatement | TryStatement | CatchClause | ErrorVariableDeclaration | FinallyClause | EmptyStatement | ErrorStatement | ImportantStatement | ExpressionStatement | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | ElseClause | MissingStatement | NestedFunctionDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList | CaseClause | WhileStatement | YieldStatement | TranslationsDeclaration | TopLevelTranslationList | TranslationParameterList | TranslationParameterClause | ConstructorTranslation | IndexParameterTranslationClause | IndexerTranslation | TranslationTypeParameterList | TranslationTypeParameterClause | PackageFunctionTranslationDeclaration | MethodTranslation | FunctionTypeTranslationDeclaration | PackageImportTranslationDeclaration | QualifiedName | PackageVariableTranslationDeclaration | FieldOrVariantTranslation | TypeMemberTranslationList | TypeTranslationDeclaration | TextTranslationDeclaration | TranslationTextLiteral | TranslationTextTemplate | TranslationTextTemplateSpanList | TranslationTextTemplateSpan | TranslationTextTemplateParameter | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { PackageDialect, PackageLocale } from '../common/index.js';
|
|
2
2
|
import * as tree from './index.js';
|
|
3
3
|
export declare class SyntaxToCode {
|
|
4
|
-
private static
|
|
5
|
-
private readonly
|
|
6
|
-
private readonly
|
|
7
|
-
private readonly
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
10
|
-
private readonly
|
|
11
|
-
private
|
|
12
|
-
private
|
|
13
|
-
private
|
|
14
|
-
private
|
|
4
|
+
private static writeFunctions_;
|
|
5
|
+
private readonly node;
|
|
6
|
+
private readonly newLine;
|
|
7
|
+
private readonly indentationStep;
|
|
8
|
+
private readonly keywordsLocale;
|
|
9
|
+
private readonly keywordsDialect;
|
|
10
|
+
private readonly singleWordKeywordValues;
|
|
11
|
+
private code;
|
|
12
|
+
private indentation;
|
|
13
|
+
private isIndentationWritten;
|
|
14
|
+
private isSingleLineMode;
|
|
15
15
|
private static get writeFunctions();
|
|
16
16
|
constructor(node: tree.Node, options?: SyntaxToCodeOptions);
|
|
17
17
|
convert(): string;
|