@artel/artc 0.6.25224 → 0.6.25225
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 +81 -79
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +995 -1001
- package/build/{chunk-24QZJOMF.js → chunk-TFTCV5R5.js} +5434 -5343
- package/build/{chunk-62KHK23H.js → chunk-UB6LHKS5.js} +3 -3
- package/build/{chunk-Y6DODJCG.js → chunk-Z6TZA6SN.js} +3 -3
- package/build/types/analysis/AccessedFunction.d.ts +53 -0
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +15 -15
- package/build/types/analysis/Analyzer.d.ts +133 -124
- package/build/types/analysis/CallExpressionMeaning.d.ts +10 -10
- package/build/types/analysis/DiagnosticCollector.d.ts +16 -16
- package/build/types/analysis/EntityLocalizationHelper.d.ts +6 -6
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +10 -10
- package/build/types/analysis/LocalizationContext.d.ts +2 -2
- package/build/types/analysis/{PropertyAccessExpressionMeaning.d.ts → MemberAccessExpressionMeaning.d.ts} +20 -20
- package/build/types/analysis/NodeTypeUtils.d.ts +13 -13
- package/build/types/analysis/OperationOverloadResolver.d.ts +1 -1
- package/build/types/analysis/Scope.d.ts +15 -15
- package/build/types/analysis/SemanticContext.d.ts +29 -29
- package/build/types/analysis/SemanticContextBuilder.d.ts +22 -22
- package/build/types/analysis/SourceFileMembers.d.ts +2 -2
- package/build/types/analysis/StatementBlockScopeBuilder.d.ts +12 -12
- package/build/types/analysis/{SubstitutedMethod.d.ts → SubstitutedFunction.d.ts} +14 -14
- package/build/types/analysis/TagMeaning.d.ts +19 -19
- package/build/types/analysis/Tags.d.ts +6 -6
- package/build/types/analysis/Utils.d.ts +3 -3
- package/build/types/analysis/WellKnownDeclarations.d.ts +4 -4
- package/build/types/analysis/control-flow/NarrowableExpression.d.ts +1 -1
- package/build/types/api/Api.d.ts +3 -3
- package/build/types/diagnostic/DiagnosticCode.d.ts +130 -131
- package/build/types/emitter/EmitPhaseName.d.ts +8 -8
- package/build/types/emitter/Emitter.d.ts +4 -4
- package/build/types/emitter/EmitterContext.d.ts +2 -2
- package/build/types/emitter/Entities.d.ts +26 -25
- package/build/types/emitter/EntityMap.d.ts +8 -8
- package/build/types/emitter/IrBuilder.d.ts +18 -18
- package/build/types/emitter/IrToJs.d.ts +9 -9
- package/build/types/emitter/Transformer.d.ts +37 -37
- package/build/types/emitter/ir/AccessedEntities.d.ts +5 -5
- package/build/types/emitter/ir/ComputedAccess.d.ts +5 -5
- package/build/types/emitter/ir/EmitOptions.d.ts +41 -27
- package/build/types/emitter/ir/Nodes.d.ts +140 -139
- package/build/types/emitter/ir/types.d.ts +8 -8
- package/build/types/entities/ConstructorEntity.d.ts +9 -9
- package/build/types/entities/DereferenceOperatorEntity.d.ts +4 -4
- package/build/types/entities/DestructorEntity.d.ts +4 -4
- package/build/types/entities/{MethodEntity.d.ts → FunctionEntity.d.ts} +36 -36
- package/build/types/entities/{MethodTypeEntity.d.ts → FunctionTypeEntity.d.ts} +23 -23
- package/build/types/entities/GetterEntity.d.ts +9 -9
- package/build/types/entities/IndexerEntity.d.ts +4 -4
- package/build/types/entities/SetterEntity.d.ts +9 -9
- package/build/types/entities/TypeEntity.d.ts +3 -3
- package/build/types/entities/TypeEntityMembers.d.ts +3 -3
- package/build/types/entities/TypeParameterEntity.d.ts +2 -2
- package/build/types/entities/VariableEntity.d.ts +32 -32
- package/build/types/entities/index.d.ts +14 -14
- package/build/types/services/CompletionService.d.ts +8 -8
- package/build/types/services/DisplayService.d.ts +62 -62
- package/build/types/services/HoverService.d.ts +1 -1
- package/build/types/services/NodeSemanticInfo.d.ts +17 -17
- package/build/types/services/SemanticTokensService.d.ts +6 -6
- package/build/types/services/SourceFileItemsService.d.ts +11 -11
- package/build/types/services/TypeDefinitionService.d.ts +2 -2
- package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +10 -10
- package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +1 -1
- package/build/types/services/source-generation/EntityToSyntax.d.ts +9 -9
- package/build/types/tree/NodeKind.d.ts +146 -148
- package/build/types/tree/green/Nodes.d.ts +119 -139
- package/build/types/tree/green/SyntaxFactory.d.ts +19 -19
- package/build/types/tree/green/SyntaxToCode.d.ts +20 -22
- package/build/types/tree/red/Nodes.d.ts +165 -189
- package/build/types/ts-interop/Entities.d.ts +28 -28
- package/build/types/ts-interop/TsInteropContext.d.ts +1 -1
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +1 -1
- package/build/types/ts-interop/TsTypeMembersCreator.d.ts +1 -1
- package/build/types/types/{MethodType.d.ts → FunctionType.d.ts} +6 -6
- package/build/types/types/StandardTypes.d.ts +2 -2
- package/build/types/types/Type.d.ts +2 -2
- package/build/types/types/TypeFactory.d.ts +6 -7
- package/build/types/types/TypeMembers.d.ts +8 -8
- package/build/types/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/build/types/analysis/AccessedMethod.d.ts +0 -53
@@ -1,6 +1,6 @@
|
|
1
1
|
import {
|
2
2
|
Compiler
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-Z6TZA6SN.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-TFTCV5R5.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
|
+
2089 /* CanNotFindTsLibDirectoryBaseSearchPaths0 */,
|
220
220
|
[nodeModulesSearchPaths.map((p) => `'${p}'`).join(", ")]
|
221
221
|
), void 0);
|
222
222
|
diagnostics?.addDiagnostic(diagnostic);
|
@@ -10,7 +10,7 @@ import {
|
|
10
10
|
WellKnownDeclarationsLoadError,
|
11
11
|
__async,
|
12
12
|
createTsInteropInputsForCompilation
|
13
|
-
} from "./chunk-
|
13
|
+
} from "./chunk-TFTCV5R5.js";
|
14
14
|
|
15
15
|
// source/executor/Compiler.ts
|
16
16
|
var Compiler = class {
|
@@ -69,7 +69,7 @@ var Compiler = class {
|
|
69
69
|
return __async(this, null, function* () {
|
70
70
|
if (analyzer.compilation.mainPackage === void 0) {
|
71
71
|
_diagnostics?.addDiagnostic(new Diagnostic(DiagnosticData.withCode(
|
72
|
-
|
72
|
+
2091 /* ProgramWithoutMainPackageCanNotBeCompiled */
|
73
73
|
), void 0));
|
74
74
|
return void 0;
|
75
75
|
}
|
@@ -83,7 +83,7 @@ var Compiler = class {
|
|
83
83
|
return __async(this, null, function* () {
|
84
84
|
if (analyzer.compilation.mainPackage === void 0) {
|
85
85
|
_diagnostics?.addDiagnostic(new Diagnostic(DiagnosticData.withCode(
|
86
|
-
|
86
|
+
2091 /* ProgramWithoutMainPackageCanNotBeCompiled */
|
87
87
|
), void 0));
|
88
88
|
return "";
|
89
89
|
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { Name } from '../common/index.js';
|
2
|
+
import { FunctionEntity, ParameterVariableEntity, TypeParameterEntity } from '../entities/index.js';
|
3
|
+
import * as types from '../types/index.js';
|
4
|
+
import { Analyzer } from './Analyzer.js';
|
5
|
+
import { SubstitutedFunction } from './SubstitutedFunction.js';
|
6
|
+
export type AccessedFunction = AccessedFunction_entity | AccessedFunction_typeMember | AccessedFunction_substitutedFunction;
|
7
|
+
export declare class AccessedFunction_entity implements IAccessedFunction {
|
8
|
+
readonly value: FunctionEntity;
|
9
|
+
readonly kind = "entity";
|
10
|
+
constructor(value: FunctionEntity);
|
11
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
12
|
+
getValueParameters(): readonly AccessedFunctionValueParameter[];
|
13
|
+
getReturnType(): types.Type;
|
14
|
+
getEntity(): FunctionEntity;
|
15
|
+
getName(): Name;
|
16
|
+
getSignatureType(analyzer: Analyzer): types.FunctionType;
|
17
|
+
}
|
18
|
+
export declare class AccessedFunction_typeMember implements IAccessedFunction {
|
19
|
+
readonly value: types.Method;
|
20
|
+
readonly kind = "type-member";
|
21
|
+
constructor(value: types.Method);
|
22
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
23
|
+
getValueParameters(): readonly AccessedFunctionValueParameter[];
|
24
|
+
getReturnType(): types.Type;
|
25
|
+
getEntity(): FunctionEntity;
|
26
|
+
getName(): Name;
|
27
|
+
getSignatureType(_analyzer: Analyzer): types.FunctionType;
|
28
|
+
}
|
29
|
+
export declare class AccessedFunction_substitutedFunction implements IAccessedFunction {
|
30
|
+
readonly value: SubstitutedFunction;
|
31
|
+
readonly kind = "substituted-function";
|
32
|
+
constructor(value: SubstitutedFunction);
|
33
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
34
|
+
getValueParameters(): readonly AccessedFunctionValueParameter[];
|
35
|
+
getReturnType(): types.Type;
|
36
|
+
getEntity(): FunctionEntity;
|
37
|
+
getName(): Name;
|
38
|
+
getSignatureType(_analyzer: Analyzer): types.FunctionType;
|
39
|
+
}
|
40
|
+
export declare class AccessedFunctionValueParameter {
|
41
|
+
readonly entity: ParameterVariableEntity;
|
42
|
+
readonly type: types.Type;
|
43
|
+
constructor(entity: ParameterVariableEntity, type: types.Type);
|
44
|
+
}
|
45
|
+
interface IAccessedFunction {
|
46
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
47
|
+
getValueParameters(): readonly AccessedFunctionValueParameter[];
|
48
|
+
getReturnType(): types.Type;
|
49
|
+
getEntity(): FunctionEntity;
|
50
|
+
getName(): Name;
|
51
|
+
getSignatureType(analyzer: Analyzer): types.FunctionType;
|
52
|
+
}
|
53
|
+
export {};
|
@@ -2,8 +2,8 @@ import { Name, PackageLocale } from '../common/index.js';
|
|
2
2
|
import { Diagnostic } from '../diagnostic/Diagnostic.js';
|
3
3
|
import { PackageEntity } from '../entities/PackageEntity.js';
|
4
4
|
import { NamedTypeMemberEntity } from '../entities/TypeEntityMembers.js';
|
5
|
-
import { PackageVariableEntity, ParameterVariableEntity,
|
6
|
-
import { AliasTypeEntity, ConstructorEntity, DestructorEntity, IndexerEntity,
|
5
|
+
import { PackageVariableEntity, ParameterVariableEntity, FieldEntity } from '../entities/VariableEntity.js';
|
6
|
+
import { AliasTypeEntity, ConstructorEntity, DestructorEntity, IndexerEntity, FunctionEntity, FunctionTypeEntity, NamedPackageMemberEntity, OperatorEntity, PackageFunctionEntity, PackageFunctionTypeEntity, PackageTypeEntity, StructuredTypeEntity, MethodEntity, 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';
|
@@ -15,9 +15,9 @@ export declare class AnalyzedTranslationPackage {
|
|
15
15
|
private readonly _translatedPackage;
|
16
16
|
private readonly _members;
|
17
17
|
private readonly _translatedTypeEntityMembers;
|
18
|
-
private readonly
|
18
|
+
private readonly _functionSignatureTranslations;
|
19
19
|
private readonly _operatorSignatureTranslations;
|
20
|
-
private readonly
|
20
|
+
private readonly _functionTypeSignatureTranslations;
|
21
21
|
private readonly _constructorSignatureTranslations;
|
22
22
|
private readonly _indexerSignatureTranslations;
|
23
23
|
private readonly _translatedTypeHeaders;
|
@@ -29,21 +29,21 @@ export declare class AnalyzedTranslationPackage {
|
|
29
29
|
getMembers(): TranslatedPackageMembers;
|
30
30
|
getTypeEntityMembers(typeEntity: PackageTypeEntity): TranslatedTypeEntityMembers | undefined;
|
31
31
|
getPackageVariableTranslationTarget(node: tree.PackageVariableTranslation): GetSingleTranslationTargetResult<PackageVariableEntity>;
|
32
|
-
|
33
|
-
|
32
|
+
getPackageFunctionTranslationTargets(node: tree.PackageFunctionTranslation): GetMultipleTranslationTargetsResult<PackageFunctionEntity>;
|
33
|
+
getFunctionTypeTranslationTarget(node: tree.FunctionTypeTranslation): GetSingleTranslationTargetResult<PackageFunctionTypeEntity>;
|
34
34
|
getTypeTranslationTarget(node: tree.TypeTranslation): GetSingleTranslationTargetResult<PackageTypeEntity>;
|
35
35
|
/**
|
36
36
|
* В случае, когда имя переменной экземпляра совпадает с именем статической переменной, перевод будет иметь две цели.
|
37
37
|
*/
|
38
|
-
|
39
|
-
|
38
|
+
getFieldOrVariantTranslationTargets(node: tree.FieldOrVariantTranslation): GetMultipleTranslationTargetsResult<FieldEntity>;
|
39
|
+
getMethodTranslationTargets(node: tree.MethodTranslation): GetMultipleTranslationTargetsResult<MethodEntity>;
|
40
40
|
getConstructorTranslationTargets(node: tree.ConstructorTranslation): GetMultipleTranslationTargetsResult<ConstructorEntity>;
|
41
41
|
getIndexerTranslationTargets(node: tree.IndexerTranslation): GetMultipleTranslationTargetsResult<IndexerEntity>;
|
42
|
-
|
42
|
+
getFunctionSignature(entity: FunctionEntity): LocalizedSubprogramSignature.Translated | undefined;
|
43
43
|
getOperatorSignature(entity: OperatorEntity): LocalizedSubprogramSignature.Translated | undefined;
|
44
|
-
|
45
|
-
|
46
|
-
|
44
|
+
getPackageFunctionSignature(entity: PackageFunctionEntity): LocalizedSubprogramSignature.Translated | undefined;
|
45
|
+
getMethodSignature(entity: MethodEntity): LocalizedSubprogramSignature.Translated | undefined;
|
46
|
+
getFunctionTypeSignature(entity: FunctionTypeEntity): LocalizedSubprogramSignature.Translated | undefined;
|
47
47
|
getConstructorSignature(entity: ConstructorEntity): LocalizedSubprogramSignature.Translated | undefined;
|
48
48
|
getDestructorSignature(entity: DestructorEntity): LocalizedSubprogramSignature.Translated | undefined;
|
49
49
|
getIndexerSignature(entity: IndexerEntity): LocalizedSubprogramSignature.Translated | undefined;
|
@@ -51,9 +51,9 @@ export declare class AnalyzedTranslationPackage {
|
|
51
51
|
getEntityName(entity: NamedEntity): Name | undefined;
|
52
52
|
private createPackageMembers;
|
53
53
|
private createTypeEntityMembers;
|
54
|
-
private
|
55
|
-
private
|
56
|
-
private
|
54
|
+
private createTranslatedSubprogramSignatureFromPackageFunctionTranslation;
|
55
|
+
private createTranslatedSubprogramSignatureFromMethodTranslation;
|
56
|
+
private createTranslatedSubprogramSignatureFromFunctionTypeTranslation;
|
57
57
|
private createTranslatedSubprogramSignatureFromConstructorTranslation;
|
58
58
|
private createTranslatedSubprogramSignatureFromIndexerTranslation;
|
59
59
|
private createTranslatedSubprogramSignatureForDefaultConstructor;
|