@artel/artc 0.6.25259 → 0.6.25261
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-HE4MTX63.js → chunk-66RH6JKB.js} +14377 -13458
- package/build/{chunk-VQI5PLBW.js → chunk-7OS2G5WZ.js} +1 -1
- package/build/{chunk-GVYF4DV5.js → chunk-UWQKBRAT.js} +11 -11
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Compiler
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7OS2G5WZ.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-66RH6JKB.js";
|
|
18
18
|
|
|
19
19
|
// source/executor/FileSystemUri.ts
|
|
20
20
|
import { platform } from "os";
|
|
@@ -120,11 +120,11 @@ import { lstatSync, readFileSync } from "fs";
|
|
|
120
120
|
import { platform as platform2 } from "os";
|
|
121
121
|
var PhysicalTypeScriptLibrariesProvider = class {
|
|
122
122
|
constructor(standardLibraryUri) {
|
|
123
|
-
this.
|
|
124
|
-
this.
|
|
123
|
+
this.isCaseSensitive_ = new Cached();
|
|
124
|
+
this.standardLibraryUri = standardLibraryUri;
|
|
125
125
|
}
|
|
126
126
|
getStandardLibraryUri() {
|
|
127
|
-
return this.
|
|
127
|
+
return this.standardLibraryUri;
|
|
128
128
|
}
|
|
129
129
|
readFileSync(uri) {
|
|
130
130
|
const path = FileSystemUri.toPath(uri);
|
|
@@ -156,7 +156,7 @@ var PhysicalTypeScriptLibrariesProvider = class {
|
|
|
156
156
|
return result;
|
|
157
157
|
}
|
|
158
158
|
isCaseSensitive() {
|
|
159
|
-
return this.
|
|
159
|
+
return this.isCaseSensitive_.getOrInsertWith(() => {
|
|
160
160
|
const platformName = platform2();
|
|
161
161
|
if (platformName === "win32") {
|
|
162
162
|
return false;
|
|
@@ -189,7 +189,7 @@ var DiagnosticFormatter = class {
|
|
|
189
189
|
// source/executor/NodeCompiler.ts
|
|
190
190
|
var NodeCompiler = class {
|
|
191
191
|
static get fileSystem() {
|
|
192
|
-
return this.
|
|
192
|
+
return this.fileSystem_ ??= new PhysicalFileSystem();
|
|
193
193
|
}
|
|
194
194
|
static findStandardTypeScriptLibrary(nodeModulesSearchPaths, defaultTsLibraryPath) {
|
|
195
195
|
return __async(this, null, function* () {
|
|
@@ -319,11 +319,11 @@ var NodeCompiler = class {
|
|
|
319
319
|
var PrintingDiagnosticAcceptor = class {
|
|
320
320
|
constructor(noWarnings, basePath) {
|
|
321
321
|
this.noWarnings = noWarnings;
|
|
322
|
-
this.
|
|
322
|
+
this.formatter = new NodeDiagnosticFormatter(basePath);
|
|
323
323
|
}
|
|
324
324
|
addDiagnostic(diagnostic) {
|
|
325
325
|
if (diagnostic.data.kind === 0 /* Error */ || diagnostic.data.kind === 1 /* Warning */ && !this.noWarnings) {
|
|
326
|
-
const diagnosticText = this.
|
|
326
|
+
const diagnosticText = this.formatter.format(diagnostic);
|
|
327
327
|
console.log(diagnosticText);
|
|
328
328
|
}
|
|
329
329
|
}
|
|
@@ -331,7 +331,7 @@ var PrintingDiagnosticAcceptor = class {
|
|
|
331
331
|
var NodeDiagnosticFormatter = class {
|
|
332
332
|
constructor(basePath) {
|
|
333
333
|
basePath ??= process2.cwd();
|
|
334
|
-
this.
|
|
334
|
+
this.formatDiagnosticOptions = {
|
|
335
335
|
convertUri(uri) {
|
|
336
336
|
if (uri.scheme === "file") {
|
|
337
337
|
const path = FileSystemUri.toPath(uri);
|
|
@@ -344,7 +344,7 @@ var NodeDiagnosticFormatter = class {
|
|
|
344
344
|
};
|
|
345
345
|
}
|
|
346
346
|
format(diagnostic) {
|
|
347
|
-
return DiagnosticFormatter.format(diagnostic, this.
|
|
347
|
+
return DiagnosticFormatter.format(diagnostic, this.formatDiagnosticOptions);
|
|
348
348
|
}
|
|
349
349
|
};
|
|
350
350
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Name } from '../common/index.js';
|
|
2
|
-
import { FunctionEntity, MethodEntity, PackageOrNestedFunctionEntity,
|
|
2
|
+
import { FunctionEntity, MethodEntity, PackageOrNestedFunctionEntity, ParameterEntity, TypeParameterEntity } from '../entities/index.js';
|
|
3
3
|
import * as types from '../types/index.js';
|
|
4
4
|
import { Analyzer } from './Analyzer.js';
|
|
5
5
|
import { SubstitutedFunction } from './SubstitutedFunction.js';
|
|
@@ -8,12 +8,12 @@ export type NotSubstitutedAccessedFunction = AccessedFunction_entity | AccessedF
|
|
|
8
8
|
export declare class AccessedFunction_entity implements IAccessedFunction {
|
|
9
9
|
readonly value: PackageOrNestedFunctionEntity;
|
|
10
10
|
readonly kind = "entity";
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly
|
|
11
|
+
private readonly parameters;
|
|
12
|
+
private readonly signatureType;
|
|
13
13
|
get debuggerDisplay(): string;
|
|
14
14
|
constructor(value: PackageOrNestedFunctionEntity);
|
|
15
15
|
getTypeParameters(): readonly TypeParameterEntity[];
|
|
16
|
-
|
|
16
|
+
getParameters(): readonly AccessedFunctionParameter[];
|
|
17
17
|
getReturnType(): types.Type;
|
|
18
18
|
getEntity(): PackageOrNestedFunctionEntity;
|
|
19
19
|
getName(): Name;
|
|
@@ -24,11 +24,11 @@ export declare class AccessedFunction_entity implements IAccessedFunction {
|
|
|
24
24
|
export declare class AccessedFunction_typeMember implements IAccessedFunction {
|
|
25
25
|
readonly value: types.Method;
|
|
26
26
|
readonly kind = "type-member";
|
|
27
|
-
private readonly
|
|
27
|
+
private readonly parameters;
|
|
28
28
|
get debuggerDisplay(): string;
|
|
29
29
|
constructor(value: types.Method);
|
|
30
30
|
getTypeParameters(): readonly TypeParameterEntity[];
|
|
31
|
-
|
|
31
|
+
getParameters(): readonly AccessedFunctionParameter[];
|
|
32
32
|
getReturnType(): types.Type;
|
|
33
33
|
getEntity(): MethodEntity;
|
|
34
34
|
getName(): Name;
|
|
@@ -42,21 +42,21 @@ export declare class AccessedFunction_substitutedFunction implements IAccessedFu
|
|
|
42
42
|
get debuggerDisplay(): string;
|
|
43
43
|
constructor(value: SubstitutedFunction);
|
|
44
44
|
getTypeParameters(): readonly TypeParameterEntity[];
|
|
45
|
-
|
|
45
|
+
getParameters(): readonly AccessedFunctionParameter[];
|
|
46
46
|
getReturnType(): types.Type;
|
|
47
47
|
getEntity(): FunctionEntity;
|
|
48
48
|
getName(): Name;
|
|
49
49
|
getSignatureType(analyzer: Analyzer): types.FunctionType;
|
|
50
50
|
getOuterSubstitutions(): types.Substitutions | undefined;
|
|
51
51
|
}
|
|
52
|
-
export declare class
|
|
53
|
-
readonly entity:
|
|
52
|
+
export declare class AccessedFunctionParameter {
|
|
53
|
+
readonly entity: ParameterEntity;
|
|
54
54
|
readonly type: types.Type;
|
|
55
|
-
constructor(entity:
|
|
55
|
+
constructor(entity: ParameterEntity, type: types.Type);
|
|
56
56
|
}
|
|
57
57
|
interface IAccessedFunction {
|
|
58
58
|
getTypeParameters(): readonly TypeParameterEntity[];
|
|
59
|
-
|
|
59
|
+
getParameters(): readonly AccessedFunctionParameter[];
|
|
60
60
|
getReturnType(): types.Type;
|
|
61
61
|
getEntity(): FunctionEntity;
|
|
62
62
|
getName(): Name;
|
|
@@ -2,28 +2,28 @@ import { Name, PackageLocale } from '../common/index.js';
|
|
|
2
2
|
import { Diagnostic } from '../diagnostic/Diagnostic.js';
|
|
3
3
|
import { EntityLocalizationContext } from '../entities/EntityLocalizationContext.js';
|
|
4
4
|
import { PackageEntity } from '../entities/PackageEntity.js';
|
|
5
|
-
import { FieldEntity, PackageVariableEntity,
|
|
5
|
+
import { FieldEntity, PackageVariableEntity, ParameterEntity } from '../entities/VariableEntity.js';
|
|
6
6
|
import { AliasTypeEntity, ConstructorEntity, DestructorEntity, FunctionEntity, FunctionTypeEntity, IndexerEntity, MethodEntity, NamedEntity, NamedPackageMemberEntity, NamedTypeMemberEntity, OperatorEntity, PackageFunctionEntity, PackageFunctionTypeEntity, PackageTypeEntity, StructuredTypeEntity, TypeParameterEntity, VariantTypeEntity } from '../entities/index.js';
|
|
7
7
|
import { PackageName, TranslationPackage } from '../project/index.js';
|
|
8
8
|
import * as tree from '../tree/index.js';
|
|
9
9
|
import { Analyzer } from './Analyzer.js';
|
|
10
|
-
import { Translation } from './
|
|
10
|
+
import { Translation } from './Translation.js';
|
|
11
11
|
export declare class AnalyzedTranslationPackage {
|
|
12
|
-
private readonly
|
|
13
|
-
private readonly
|
|
14
|
-
private readonly
|
|
12
|
+
private readonly analyzer;
|
|
13
|
+
private readonly package_;
|
|
14
|
+
private readonly targetPackage;
|
|
15
15
|
readonly entityLocalizationContext: EntityLocalizationContext;
|
|
16
|
-
private readonly
|
|
17
|
-
private readonly
|
|
18
|
-
private readonly
|
|
19
|
-
private readonly
|
|
20
|
-
private readonly
|
|
21
|
-
private readonly
|
|
22
|
-
private readonly
|
|
23
|
-
private readonly
|
|
24
|
-
private readonly
|
|
25
|
-
private readonly
|
|
26
|
-
constructor(
|
|
16
|
+
private readonly localizedPackageByOriginalReferencedPackage;
|
|
17
|
+
private readonly members;
|
|
18
|
+
private readonly translatedTypeEntityMembers;
|
|
19
|
+
private readonly functionSignatureTranslations;
|
|
20
|
+
private readonly operatorSignatureTranslations;
|
|
21
|
+
private readonly functionTypeSignatureTranslations;
|
|
22
|
+
private readonly constructorSignatureTranslations;
|
|
23
|
+
private readonly indexerSignatureTranslations;
|
|
24
|
+
private readonly translatedTypeHeaders;
|
|
25
|
+
private readonly typeTranslationByEntity;
|
|
26
|
+
constructor(analyzer: Analyzer, package_: TranslationPackage, targetPackage: PackageEntity);
|
|
27
27
|
getTargetPackage(): PackageEntity;
|
|
28
28
|
getPackageInTranslatedLanguage(): PackageEntity;
|
|
29
29
|
getDefinition(): TranslationPackage;
|
|
@@ -67,10 +67,10 @@ export declare class AnalyzedTranslationPackage {
|
|
|
67
67
|
private getTypeEntityTranslationNode;
|
|
68
68
|
}
|
|
69
69
|
export declare class TranslatedPackageMembers {
|
|
70
|
-
private readonly
|
|
71
|
-
private readonly
|
|
70
|
+
private readonly namedMembers;
|
|
71
|
+
private readonly nameByEntity_;
|
|
72
72
|
private get nameByEntity();
|
|
73
|
-
constructor(
|
|
73
|
+
constructor(namedMembers: readonly TranslatedNamedPackageMember[]);
|
|
74
74
|
getNamedMembers(): readonly TranslatedNamedPackageMember[];
|
|
75
75
|
getMemberName(entity: NamedPackageMemberEntity): TranslatedName | undefined;
|
|
76
76
|
}
|
|
@@ -80,11 +80,11 @@ export declare class TranslatedNamedPackageMember {
|
|
|
80
80
|
constructor(value: NamedPackageMemberEntity, name: TranslatedName);
|
|
81
81
|
}
|
|
82
82
|
export declare class TranslatedTypeEntityMembers {
|
|
83
|
-
private readonly
|
|
83
|
+
private readonly namedMembers;
|
|
84
84
|
readonly translationPackage: AnalyzedTranslationPackage;
|
|
85
|
-
private readonly
|
|
85
|
+
private readonly nameByEntity_;
|
|
86
86
|
private get nameByEntity();
|
|
87
|
-
constructor(
|
|
87
|
+
constructor(namedMembers: readonly TranslatedNamedTypeEntityMember[], translationPackage: AnalyzedTranslationPackage);
|
|
88
88
|
getNamedMembers(): readonly TranslatedNamedTypeEntityMember[];
|
|
89
89
|
getMemberName(entity: NamedTypeMemberEntity): TranslatedName | undefined;
|
|
90
90
|
}
|
|
@@ -96,20 +96,20 @@ export declare class TranslatedNamedTypeEntityMember {
|
|
|
96
96
|
export declare class TranslatedSubprogramSignature {
|
|
97
97
|
readonly translation: Translation;
|
|
98
98
|
readonly typeParameters: readonly TranslatedTypeParameter[];
|
|
99
|
-
readonly
|
|
100
|
-
constructor(translation: Translation, typeParameters: readonly TranslatedTypeParameter[],
|
|
99
|
+
readonly parameters: readonly TranslatedParameter[];
|
|
100
|
+
constructor(translation: Translation, typeParameters: readonly TranslatedTypeParameter[], parameters: readonly TranslatedParameter[]);
|
|
101
101
|
getTypeParameterName(entity: TypeParameterEntity): TranslatedName | undefined;
|
|
102
|
-
|
|
102
|
+
getParameterName(entity: ParameterEntity): TranslatedName | undefined;
|
|
103
103
|
}
|
|
104
104
|
export declare class TranslatedTypeParameter {
|
|
105
105
|
readonly value: TypeParameterEntity;
|
|
106
106
|
readonly name: TranslatedName;
|
|
107
107
|
constructor(value: TypeParameterEntity, name: TranslatedName);
|
|
108
108
|
}
|
|
109
|
-
export declare class
|
|
110
|
-
readonly value:
|
|
109
|
+
export declare class TranslatedParameter {
|
|
110
|
+
readonly value: ParameterEntity;
|
|
111
111
|
readonly name: TranslatedName;
|
|
112
|
-
constructor(value:
|
|
112
|
+
constructor(value: ParameterEntity, name: TranslatedName);
|
|
113
113
|
}
|
|
114
114
|
export declare class TranslatedTypeHeader {
|
|
115
115
|
readonly translation: Translation;
|