@artel/artc 0.6.25216 → 0.6.25218
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 +12 -50
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +1056 -1060
- package/build/{chunk-6RYP5SET.js → chunk-FI6LW2RD.js} +5 -4
- package/build/{chunk-TJG64G2K.js → chunk-SK7ZBC3X.js} +16737 -15766
- package/build/{chunk-O7AXOZXA.js → chunk-TQDMVKTN.js} +13 -5
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +4 -26
- package/build/types/analysis/Analyzer.d.ts +162 -200
- package/build/types/analysis/{CallArgumentToParameterMatchResult.d.ts → ArgumentToParameterMatchResult.d.ts} +6 -7
- package/build/types/analysis/{CallArgumentsToParametersMatcher.d.ts → ArgumentsToParametersMatcher.d.ts} +14 -14
- package/build/types/analysis/ConstructorOverloadResolver.d.ts +1 -1
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +3 -3
- package/build/types/analysis/DiagnosticCollector.d.ts +3 -0
- package/build/types/analysis/FindModifier.d.ts +2 -0
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +14 -12
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +12 -7
- package/build/types/analysis/LocalizationContext.d.ts +4 -5
- package/build/types/analysis/Lookup.d.ts +8 -7
- package/build/types/analysis/ModifierFlags.d.ts +16 -0
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +0 -1
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -0
- package/build/types/analysis/OperationOverloadResolver.d.ts +2 -2
- package/build/types/analysis/OverloadResolver.d.ts +4 -4
- package/build/types/analysis/PackageMemberLookup.d.ts +5 -6
- package/build/types/analysis/PropertyAccessExpressionMeaning.d.ts +18 -16
- package/build/types/analysis/Scope.d.ts +21 -116
- package/build/types/analysis/SemanticContext.d.ts +16 -6
- package/build/types/analysis/SemanticContextBuilder.d.ts +1 -1
- package/build/types/analysis/SourceFileMembers.d.ts +12 -89
- package/build/types/analysis/TagMeaning.d.ts +57 -9
- package/build/types/analysis/Tags.d.ts +2 -2
- package/build/types/analysis/TypeMemberLookup.d.ts +15 -15
- package/build/types/analysis/TypeOverloadResolver.d.ts +1 -1
- package/build/types/analysis/WellKnownDeclarations.d.ts +1 -0
- package/build/types/analysis/index.d.ts +1 -1
- package/build/types/api/Api.d.ts +2 -6
- package/build/types/diagnostic/DiagnosticCode.d.ts +111 -103
- package/build/types/emitter/{EmitterGeneratedDeclarationKind.d.ts → EmitPhaseName.d.ts} +1 -44
- package/build/types/emitter/EmitterContext.d.ts +13 -1
- package/build/types/emitter/Entities.d.ts +58 -16
- package/build/types/emitter/EntityMap.d.ts +1 -3
- package/build/types/emitter/IrBuilder.d.ts +6 -2
- package/build/types/emitter/IrToJs.d.ts +5 -5
- package/build/types/emitter/Transformer.d.ts +20 -13
- package/build/types/emitter/ir/EmitOptions.d.ts +163 -0
- package/build/types/emitter/ir/Nodes.d.ts +213 -185
- package/build/types/emitter/ir/index.d.ts +1 -2
- package/build/types/emitter/ir/types.d.ts +4 -3
- package/build/types/entities/AliasTypeEntity.d.ts +9 -5
- package/build/types/entities/ConstructorEntity.d.ts +2 -0
- package/build/types/entities/DereferenceOperatorEntity.d.ts +9 -0
- package/build/types/entities/DestructorEntity.d.ts +2 -0
- package/build/types/entities/GetterEntity.d.ts +8 -0
- package/build/types/entities/IndexerEntity.d.ts +9 -0
- package/build/types/entities/MethodEntity.d.ts +9 -5
- package/build/types/entities/MethodTypeEntity.d.ts +18 -5
- package/build/types/entities/OperatorEntity.d.ts +5 -3
- package/build/types/entities/PackageEntity.d.ts +3 -3
- package/build/types/entities/PackageMembers.d.ts +4 -90
- package/build/types/entities/SetterEntity.d.ts +8 -0
- package/build/types/entities/StructuredTypeEntity.d.ts +22 -9
- package/build/types/entities/TypeEntity.d.ts +15 -0
- package/build/types/entities/TypeExtensionEntity.d.ts +2 -0
- package/build/types/entities/TypeParameterEntity.d.ts +12 -7
- package/build/types/entities/VariableEntity.d.ts +50 -41
- package/build/types/entities/VariantTypeEntity.d.ts +18 -11
- package/build/types/entities/index.d.ts +17 -25
- package/build/types/executor/Compiler.d.ts +1 -0
- package/build/types/executor/NodeCompiler.d.ts +1 -0
- package/build/types/parser/CharacterCodes.d.ts +8 -0
- package/build/types/parser/ReservedIdentifierDictionary.d.ts +1 -2
- package/build/types/parser/Scanner.d.ts +0 -6
- package/build/types/parser/UnescapeText.d.ts +1 -1
- package/build/types/project/FileSystemTree.d.ts +2 -2
- package/build/types/services/CompletionService.d.ts +4 -1
- package/build/types/services/DisplayService.d.ts +218 -163
- package/build/types/services/NodeSemanticInfo.d.ts +7 -5
- package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +8 -24
- package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +1 -0
- package/build/types/services/source-generation/EntityToSyntax.d.ts +1 -1
- package/build/types/services/source-generation/SourceGenerationService.d.ts +2 -2
- package/build/types/services/workspace/ClientTrackedSourceFiles.d.ts +5 -5
- package/build/types/services/workspace/CompilationController.d.ts +3 -3
- package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +4 -4
- package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +4 -4
- package/build/types/services/workspace/Workspace.d.ts +3 -3
- package/build/types/services/workspace/WorkspaceFiles.d.ts +7 -7
- package/build/types/tree/KeywordKind.d.ts +37 -37
- package/build/types/tree/NodeKind.d.ts +37 -39
- package/build/types/tree/green/Nodes.d.ts +57 -80
- package/build/types/tree/green/SyntaxFactory.d.ts +4 -5
- package/build/types/tree/green/SyntaxToCode.d.ts +1 -2
- package/build/types/tree/red/Nodes.d.ts +65 -93
- package/build/types/ts-interop/Entities.d.ts +77 -34
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +0 -1
- package/build/types/types/MethodType.d.ts +2 -2
- package/build/types/types/TypeMembers.d.ts +9 -0
- package/build/types/types/VariantType.d.ts +2 -2
- package/package.json +2 -2
- package/build/types/analysis/DereferencedVariableAccess.d.ts +0 -14
- package/build/types/analysis/IndexedAccess.d.ts +0 -14
- package/build/types/analysis/VariableAccess.d.ts +0 -14
- package/build/types/analysis/VariantLookup.d.ts +0 -20
- package/build/types/emitter/ir/LoweringOptions.d.ts +0 -34
- package/build/types/emitter/ir/LoweringState.d.ts +0 -25
- package/build/types/entities/VariantEntity.d.ts +0 -31
- package/build/types/entities/Variants.d.ts +0 -10
@@ -1,6 +1,6 @@
|
|
1
1
|
import {
|
2
2
|
Compiler
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-FI6LW2RD.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-SK7ZBC3X.js";
|
18
18
|
|
19
19
|
// source/executor/FileSystemUri.ts
|
20
20
|
import { platform } from "os";
|
@@ -216,7 +216,7 @@ var NodeCompiler = class {
|
|
216
216
|
const standardLibraryUri = yield this.findStandardTypeScriptLibrary(nodeModulesSearchPaths, defaultTsLibraryPath);
|
217
217
|
if (standardLibraryUri === void 0) {
|
218
218
|
const diagnostic = new Diagnostic(DiagnosticData.withCode(
|
219
|
-
|
219
|
+
117 /* CanNotFindTsLibDirectoryBaseSearchPaths0 */,
|
220
220
|
[nodeModulesSearchPaths.map((p) => `'${p}'`).join(", ")]
|
221
221
|
), void 0);
|
222
222
|
diagnostics?.addDiagnostic(diagnostic);
|
@@ -231,7 +231,8 @@ var NodeCompiler = class {
|
|
231
231
|
const loadCompilationOptions = {
|
232
232
|
workspaceUri: options?.workspacePath !== void 0 ? FileSystemUri.pathToUri(options.workspacePath) : void 0,
|
233
233
|
builtInsStandardPackagesUri: options?.builtInsStandardPackagesPath !== void 0 ? FileSystemUri.pathToUri(options.builtInsStandardPackagesPath) : void 0,
|
234
|
-
userStandardPackagesUri: options?.userStandardPackagesPath !== void 0 ? FileSystemUri.pathToUri(options.userStandardPackagesPath) : void 0
|
234
|
+
userStandardPackagesUri: options?.userStandardPackagesPath !== void 0 ? FileSystemUri.pathToUri(options.userStandardPackagesPath) : void 0,
|
235
|
+
enableLogging: options?.enableLogging
|
235
236
|
};
|
236
237
|
return yield Compiler.loadCompilation(
|
237
238
|
projectUri,
|
@@ -391,7 +392,8 @@ var CommandLineCompiler = class {
|
|
391
392
|
loadCompilationOptions: {
|
392
393
|
workspacePath: parsedArguments.workspacePath,
|
393
394
|
userStandardPackagesPath: parsedArguments.standardPackagesPath,
|
394
|
-
builtInsStandardPackagesPath: parsedArguments.builtInStandardPackagesPath
|
395
|
+
builtInsStandardPackagesPath: parsedArguments.builtInStandardPackagesPath,
|
396
|
+
enableLogging: parsedArguments.enableLogging
|
395
397
|
},
|
396
398
|
outputPath: parsedArguments.outputPath,
|
397
399
|
diagnostics,
|
@@ -466,6 +468,7 @@ var ArgumentsParser = class {
|
|
466
468
|
projectPath: void 0,
|
467
469
|
outputPath: void 0,
|
468
470
|
noWarnings: false,
|
471
|
+
enableLogging: false,
|
469
472
|
measurePerformance: false,
|
470
473
|
defaultTsLibraryPath: void 0,
|
471
474
|
workspacePath: void 0,
|
@@ -582,6 +585,11 @@ var ArgumentsParser = class {
|
|
582
585
|
result.noWarnings = true;
|
583
586
|
break;
|
584
587
|
}
|
588
|
+
case "--\u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C-\u0436\u0443\u0440\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044E":
|
589
|
+
case "--enable-logging": {
|
590
|
+
result.enableLogging = true;
|
591
|
+
break;
|
592
|
+
}
|
585
593
|
case "--\u0437\u0430\u043C\u0435\u0440\u0438\u0442\u044C-\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C":
|
586
594
|
case "--measure-performance": {
|
587
595
|
result.measurePerformance = true;
|
@@ -1,11 +1,9 @@
|
|
1
1
|
import { Name, PackageLocale } from '../common/index.js';
|
2
2
|
import { Diagnostic } from '../diagnostic/Diagnostic.js';
|
3
3
|
import { PackageEntity } from '../entities/PackageEntity.js';
|
4
|
-
import { NamedMember, NamedPackageMemberEntity } from '../entities/PackageMembers.js';
|
5
4
|
import { NamedTypeMemberEntity } from '../entities/TypeEntityMembers.js';
|
6
5
|
import { PackageVariableEntity, ParameterVariableEntity, TypeVariableEntity } from '../entities/VariableEntity.js';
|
7
|
-
import {
|
8
|
-
import { AliasTypeEntity, ConstructorEntity, DestructorEntity, IndexerEntity, MethodEntity, MethodTypeEntity, OperatorEntity, PackageMethodEntity, PackageMethodTypeEntity, PackageTypeEntity, PackageVariantTypeEntity, StructuredTypeEntity, TypeMethodEntity, TypeParameterEntity, VariantTypeEntity } from '../entities/index.js';
|
6
|
+
import { AliasTypeEntity, ConstructorEntity, DestructorEntity, IndexerEntity, MethodEntity, MethodTypeEntity, NamedPackageMemberEntity, OperatorEntity, PackageMethodEntity, PackageMethodTypeEntity, PackageTypeEntity, StructuredTypeEntity, TypeMethodEntity, TypeParameterEntity, VariantTypeEntity } from '../entities/index.js';
|
9
7
|
import { PackageName, TranslationPackage } from '../project/index.js';
|
10
8
|
import * as tree from '../tree/index.js';
|
11
9
|
import { Analyzer } from './Analyzer.js';
|
@@ -17,7 +15,6 @@ export declare class AnalyzedTranslationPackage {
|
|
17
15
|
private readonly _translatedPackage;
|
18
16
|
private readonly _members;
|
19
17
|
private readonly _translatedTypeEntityMembers;
|
20
|
-
private readonly _translatedVariants;
|
21
18
|
private readonly _methodSignatureTranslations;
|
22
19
|
private readonly _operatorSignatureTranslations;
|
23
20
|
private readonly _methodTypeSignatureTranslations;
|
@@ -31,7 +28,6 @@ export declare class AnalyzedTranslationPackage {
|
|
31
28
|
getTranslationLocale(): PackageLocale;
|
32
29
|
getMembers(): TranslatedPackageMembers;
|
33
30
|
getTypeEntityMembers(typeEntity: PackageTypeEntity): TranslatedTypeEntityMembers | undefined;
|
34
|
-
getVariants(typeEntity: PackageVariantTypeEntity): TranslatedVariants | undefined;
|
35
31
|
getPackageVariableTranslationTarget(node: tree.PackageVariableTranslation): GetSingleTranslationTargetResult<PackageVariableEntity>;
|
36
32
|
getPackageMethodTranslationTargets(node: tree.PackageMethodTranslation): GetMultipleTranslationTargetsResult<PackageMethodEntity>;
|
37
33
|
getMethodTypeTranslationTarget(node: tree.MethodTypeTranslation): GetSingleTranslationTargetResult<PackageMethodTypeEntity>;
|
@@ -39,7 +35,7 @@ export declare class AnalyzedTranslationPackage {
|
|
39
35
|
/**
|
40
36
|
* В случае, когда имя переменной экземпляра совпадает с именем статической переменной, перевод будет иметь две цели.
|
41
37
|
*/
|
42
|
-
getTypeVariableOrVariantTranslationTargets(node: tree.TypeVariableOrVariantTranslation): GetMultipleTranslationTargetsResult<TypeVariableEntity
|
38
|
+
getTypeVariableOrVariantTranslationTargets(node: tree.TypeVariableOrVariantTranslation): GetMultipleTranslationTargetsResult<TypeVariableEntity>;
|
43
39
|
getTypeMethodTranslationTargets(node: tree.TypeMethodTranslation): GetMultipleTranslationTargetsResult<TypeMethodEntity>;
|
44
40
|
getConstructorTranslationTargets(node: tree.ConstructorTranslation): GetMultipleTranslationTargetsResult<ConstructorEntity>;
|
45
41
|
getIndexerTranslationTargets(node: tree.IndexerTranslation): GetMultipleTranslationTargetsResult<IndexerEntity>;
|
@@ -55,7 +51,6 @@ export declare class AnalyzedTranslationPackage {
|
|
55
51
|
getEntityName(entity: NamedEntity): Name | undefined;
|
56
52
|
private createPackageMembers;
|
57
53
|
private createTypeEntityMembers;
|
58
|
-
private createVariants;
|
59
54
|
private createTranslatedSubprogramSignatureFromPackageMethodTranslation;
|
60
55
|
private createTranslatedSubprogramSignatureFromTypeMethodTranslation;
|
61
56
|
private createTranslatedSubprogramSignatureFromMethodTypeTranslation;
|
@@ -78,9 +73,9 @@ export declare class TranslatedPackageMembers {
|
|
78
73
|
getMemberName(entity: NamedPackageMemberEntity): Name | undefined;
|
79
74
|
}
|
80
75
|
export declare class TranslatedNamedPackageMember {
|
81
|
-
readonly value:
|
76
|
+
readonly value: NamedPackageMemberEntity;
|
82
77
|
readonly name: LocalizedName.Translated;
|
83
|
-
constructor(value:
|
78
|
+
constructor(value: NamedPackageMemberEntity, name: LocalizedName.Translated);
|
84
79
|
}
|
85
80
|
export declare class TranslatedTypeEntityMembers {
|
86
81
|
private readonly _namedMembers;
|
@@ -99,23 +94,6 @@ export declare class TranslatedNamedTypeEntityMember {
|
|
99
94
|
readonly name: LocalizedName.Translated;
|
100
95
|
constructor(value: NamedTypeMemberEntity, name: LocalizedName.Translated);
|
101
96
|
}
|
102
|
-
export declare class TranslatedVariants {
|
103
|
-
private readonly _variants;
|
104
|
-
readonly translationPackage: AnalyzedTranslationPackage;
|
105
|
-
private readonly _variantsByNameKey;
|
106
|
-
private readonly _nameByEntity;
|
107
|
-
private get variantsByNameKey();
|
108
|
-
private get nameByEntity();
|
109
|
-
constructor(_variants: readonly TranslatedVariant[], translationPackage: AnalyzedTranslationPackage);
|
110
|
-
get(): readonly TranslatedVariant[];
|
111
|
-
getByName(name: Name): readonly TranslatedVariant[];
|
112
|
-
getName(entity: VariantEntity): Name | undefined;
|
113
|
-
}
|
114
|
-
export declare class TranslatedVariant {
|
115
|
-
readonly value: VariantEntity;
|
116
|
-
readonly name: LocalizedName.Translated;
|
117
|
-
constructor(value: VariantEntity, name: LocalizedName.Translated);
|
118
|
-
}
|
119
97
|
export type LocalizedSubprogramSignature = LocalizedSubprogramSignature.Original | LocalizedSubprogramSignature.Translated;
|
120
98
|
export declare namespace LocalizedSubprogramSignature {
|
121
99
|
export class Original implements ILocalizedSubprogramSignature {
|