@artel/artc 0.6.25271 → 0.6.25273
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 +4 -2
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +188 -238
- package/build/{chunk-LD2OIYWC.js → chunk-7EXJHYWX.js} +17928 -17171
- package/build/{chunk-MMSDQCD5.js → chunk-GOQZ6DP3.js} +1 -1
- package/build/{chunk-NLPXNTAI.js → chunk-W3SQYLD5.js} +2 -2
- package/build/types/analysis/AnalyzedTextTranslationPackage.d.ts +3 -3
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +2 -4
- package/build/types/analysis/Analyzer.d.ts +14 -4
- package/build/types/analysis/DiagnosticCollector.d.ts +7 -0
- package/build/types/analysis/ImportedPackageNameTree.d.ts +1 -1
- package/build/types/analysis/ReturnTypeInferrer.d.ts +2 -2
- package/build/types/analysis/SourcePackageMembersCreator.d.ts +1 -1
- package/build/types/analysis/TextIdentity.d.ts +9 -0
- package/build/types/analysis/TypeMemberConflictsValidator.d.ts +1 -1
- package/build/types/analysis/control-flow/NarrowableReference.d.ts +1 -1
- package/build/types/analysis/semantic-context/SemanticContextBasedEntityHidingMatcher.d.ts +1 -1
- package/build/types/analysis/semantic-context/SpecialLocalDeclarationsBuilder.d.ts +1 -1
- package/build/types/common/Constants.d.ts +1 -1
- package/build/types/common/PackageDialect.d.ts +2 -3
- package/build/types/common/Query.d.ts +4 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +98 -92
- package/build/types/emitter/EmitterContext.d.ts +50 -4
- package/build/types/emitter/IrBuilder.d.ts +0 -1
- package/build/types/emitter/IrToJs.d.ts +4 -0
- package/build/types/emitter/Transformer.d.ts +35 -15
- package/build/types/emitter/ir/types.d.ts +1 -1
- package/build/types/entities/BaseAspectTypes.d.ts +26 -1
- package/build/types/entities/BaseEntityHidingMatcher.d.ts +1 -1
- package/build/types/entities/BaseObjectType.d.ts +20 -1
- package/build/types/entities/Entity.d.ts +104 -0
- package/build/types/entities/EntityHiding.d.ts +1 -1
- package/build/types/entities/TypeEntityMembers.d.ts +5 -5
- package/build/types/entities/index.d.ts +5 -123
- package/build/types/entities/{AliasedType.d.ts → interfaces/AliasTypeEntity.d.ts} +44 -13
- package/build/types/entities/interfaces/ConstructorEntity.d.ts +44 -0
- package/build/types/entities/interfaces/DereferenceOperatorEntity.d.ts +30 -0
- package/build/types/entities/interfaces/DestructorEntity.d.ts +20 -0
- package/build/types/entities/interfaces/FunctionEntity.d.ts +56 -0
- package/build/types/entities/interfaces/FunctionTypeEntity.d.ts +52 -0
- package/build/types/entities/interfaces/GetterEntity.d.ts +26 -0
- package/build/types/entities/interfaces/IndexerEntity.d.ts +33 -0
- package/build/types/entities/interfaces/OperatorEntity.d.ts +27 -0
- package/build/types/entities/interfaces/PackageAliasEntity.d.ts +21 -0
- package/build/types/entities/{PackageEntity.d.ts → interfaces/PackageEntity.d.ts} +8 -35
- package/build/types/entities/interfaces/SetterEntity.d.ts +24 -0
- package/build/types/entities/interfaces/StructuredTypeEntity.d.ts +62 -0
- package/build/types/entities/interfaces/TextTranslationEntity.d.ts +18 -0
- package/build/types/entities/interfaces/TypeExtensionEntity.d.ts +22 -0
- package/build/types/entities/{TypeParameterEntity.d.ts → interfaces/TypeParameterEntity.d.ts} +6 -60
- package/build/types/entities/interfaces/VariableEntity.d.ts +102 -0
- package/build/types/entities/interfaces/VariantTypeEntity.d.ts +47 -0
- package/build/types/entities/interfaces/index.d.ts +18 -0
- package/build/types/entities/intrinsic/IntrinsicConstructorEntity.d.ts +56 -0
- package/build/types/entities/intrinsic/IntrinsicFunctionEntity.d.ts +77 -0
- package/build/types/entities/intrinsic/IntrinsicFunctionTypeEntity.d.ts +17 -0
- package/build/types/entities/intrinsic/IntrinsicGetterEntity.d.ts +25 -0
- package/build/types/entities/intrinsic/IntrinsicStructuredTypeEntity.d.ts +17 -0
- package/build/types/entities/intrinsic/IntrinsicTypeParameterEntity.d.ts +32 -0
- package/build/types/entities/intrinsic/IntrinsicVariableEntity.d.ts +123 -0
- package/build/types/entities/intrinsic/index.d.ts +7 -0
- package/build/types/entities/source/SourceAliasTypeEntity.d.ts +36 -0
- package/build/types/entities/source/SourceConstructorEntity.d.ts +30 -0
- package/build/types/entities/source/SourceDereferenceOperatorEntity.d.ts +37 -0
- package/build/types/entities/source/SourceDestructorEntity.d.ts +28 -0
- package/build/types/entities/source/SourceFunctionEntity.d.ts +101 -0
- package/build/types/entities/source/SourceFunctionTypeEntity.d.ts +77 -0
- package/build/types/entities/{GetterEntity.d.ts → source/SourceGetterEntity.d.ts} +7 -48
- package/build/types/entities/source/SourceIndexerEntity.d.ts +39 -0
- package/build/types/entities/source/SourceOperatorEntity.d.ts +38 -0
- package/build/types/entities/source/SourcePackageAliasEntity.d.ts +24 -0
- package/build/types/entities/source/SourcePackageEntity.d.ts +34 -0
- package/build/types/entities/{SetterEntity.d.ts → source/SourceSetterEntity.d.ts} +6 -27
- package/build/types/entities/source/SourceStructuredTypeEntity.d.ts +114 -0
- package/build/types/entities/source/SourceTextTranslationEntity.d.ts +30 -0
- package/build/types/entities/source/SourceTypeExtensionEntity.d.ts +28 -0
- package/build/types/entities/source/SourceTypeParameterEntity.d.ts +34 -0
- package/build/types/entities/{VariableEntity.d.ts → source/SourceVariableEntity.d.ts} +8 -220
- package/build/types/entities/source/SourceVariantTypeEntity.d.ts +69 -0
- package/build/types/entities/source/index.d.ts +18 -0
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +4 -5
- package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +1 -1
- package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +5 -5
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +5 -5
- package/build/types/entities/translated/TranslatedGetterEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedSetterEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +5 -6
- package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedVariableEntity.d.ts +5 -5
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +4 -4
- package/build/types/entities/translated/index.d.ts +16 -0
- package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +0 -1
- package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +0 -1
- package/build/types/services/source-generation/EntityToSyntax.d.ts +1 -1
- package/build/types/tree/NodeKind.d.ts +58 -60
- package/build/types/tree/Nodes.d.ts +4 -30
- package/build/types/tree/SyntaxToCode.d.ts +0 -1
- package/build/types/ts-interop/Entities.d.ts +2 -4
- package/build/types/ts-interop/TsInteropContext.d.ts +1 -2
- package/package.json +1 -1
- package/build/types/entities/AliasTypeEntity.d.ts +0 -61
- package/build/types/entities/ConstructorEntity.d.ts +0 -118
- package/build/types/entities/DereferenceOperatorEntity.d.ts +0 -62
- package/build/types/entities/DestructorEntity.d.ts +0 -44
- package/build/types/entities/FunctionEntity.d.ts +0 -221
- package/build/types/entities/FunctionTypeEntity.d.ts +0 -131
- package/build/types/entities/IndexerEntity.d.ts +0 -67
- package/build/types/entities/OperatorEntity.d.ts +0 -60
- package/build/types/entities/PackageAliasEntity.d.ts +0 -41
- package/build/types/entities/StructuredTypeEntity.d.ts +0 -226
- package/build/types/entities/TextTranslationEntity.d.ts +0 -45
- package/build/types/entities/TypeExtensionEntity.d.ts +0 -45
- package/build/types/entities/VariantTypeEntity.d.ts +0 -108
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Compiler
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GOQZ6DP3.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-7EXJHYWX.js";
|
|
18
18
|
|
|
19
19
|
// source/executor/FileSystemUri.ts
|
|
20
20
|
import { platform } from "os";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PackageLocale } from '../common/index.js';
|
|
2
|
-
import { PackageEntity } from '../entities/
|
|
3
|
-
import { TextTranslationEntity, TextTranslationEntityKey } from '../entities/TextTranslationEntity.js';
|
|
2
|
+
import { PackageEntity, TextTranslationEntity } from '../entities/index.js';
|
|
4
3
|
import { PackageName, TextTranslationPackage } from '../project/index.js';
|
|
5
4
|
import { Analyzer } from './Analyzer.js';
|
|
5
|
+
import { TextKey } from './TextIdentity.js';
|
|
6
6
|
export declare class AnalyzedTextTranslationPackage {
|
|
7
7
|
private readonly analyzer;
|
|
8
8
|
private readonly package_;
|
|
@@ -14,7 +14,7 @@ export declare class AnalyzedTextTranslationPackage {
|
|
|
14
14
|
getDefinition(): TextTranslationPackage;
|
|
15
15
|
getTargetPackageName(): PackageName;
|
|
16
16
|
getTranslationLocale(): PackageLocale;
|
|
17
|
-
getEntitiesByTextKey(textKey:
|
|
17
|
+
getEntitiesByTextKey(textKey: TextKey): readonly TextTranslationEntity[] | undefined;
|
|
18
18
|
private createEntitiesByTextKey;
|
|
19
19
|
private enumerableTextTranslationDeclarations;
|
|
20
20
|
private enumerableTranslationsDeclarations;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { Name, PackageLocale } from '../common/index.js';
|
|
2
2
|
import { Diagnostic } from '../diagnostic/Diagnostic.js';
|
|
3
3
|
import { EntityLocalizationContext } from '../entities/EntityLocalizationContext.js';
|
|
4
|
-
import { PackageEntity } from '../entities/
|
|
5
|
-
import { FieldEntity, PackageVariableEntity, ParameterEntity } from '../entities/VariableEntity.js';
|
|
6
|
-
import { AliasTypeEntity, ConstructorEntity, DestructorEntity, FunctionEntity, FunctionTypeEntity, IndexerEntity, MethodEntity, NamedEntity, NamedPackageMemberEntity, NamedTypeMemberEntity, OperatorEntity, PackageFunctionEntity, PackageFunctionTypeEntity, PackageTypeEntity, StructuredTypeEntity, TypeParameterEntity, VariantTypeEntity } from '../entities/index.js';
|
|
4
|
+
import { AliasTypeEntity, ConstructorEntity, DestructorEntity, FieldEntity, FunctionEntity, FunctionTypeEntity, IndexerEntity, MethodEntity, NamedEntity, NamedPackageMemberEntity, NamedTypeMemberEntity, OperatorEntity, PackageEntity, PackageFunctionEntity, PackageFunctionTypeEntity, PackageTypeEntity, PackageVariableEntity, ParameterEntity, StructuredTypeEntity, TypeParameterEntity, VariantTypeEntity } from '../entities/index.js';
|
|
7
5
|
import { PackageName, TranslationPackage } from '../project/index.js';
|
|
8
6
|
import * as tree from '../tree/index.js';
|
|
9
7
|
import { Analyzer } from './Analyzer.js';
|
|
@@ -25,7 +23,7 @@ export declare class AnalyzedTranslationPackage {
|
|
|
25
23
|
private readonly typeTranslationByEntity;
|
|
26
24
|
constructor(analyzer: Analyzer, package_: TranslationPackage, targetPackage: PackageEntity);
|
|
27
25
|
getTargetPackage(): PackageEntity;
|
|
28
|
-
|
|
26
|
+
getTranslatedTargetPackage(): PackageEntity;
|
|
29
27
|
getDefinition(): TranslationPackage;
|
|
30
28
|
getTranslatedName(): PackageName;
|
|
31
29
|
getTranslationLocale(): PackageLocale;
|
|
@@ -13,8 +13,8 @@ import { TsInteropContext, TsProgramState } from '../ts-interop/TsInteropContext
|
|
|
13
13
|
import * as types from '../types/index.js';
|
|
14
14
|
import { TypeFactory } from '../types/index.js';
|
|
15
15
|
import { AccessedFunction } from './AccessedFunction.js';
|
|
16
|
-
import { AnalyzedTranslationPackage } from './AnalyzedTranslationPackage.js';
|
|
17
16
|
import { AnalyzedTextTranslationPackage } from './AnalyzedTextTranslationPackage.js';
|
|
17
|
+
import { AnalyzedTranslationPackage } from './AnalyzedTranslationPackage.js';
|
|
18
18
|
import { ArgumentToParameterMatchResult, MatchResultParameter } from './ArgumentToParameterMatchResult.js';
|
|
19
19
|
import * as autotypeCallExpressionMeaning from './AutotypeCallExpressionMeaning.js';
|
|
20
20
|
import * as baseExpressionMeaning from './BaseExpressionMeaning.js';
|
|
@@ -32,8 +32,8 @@ import { DereferencedVariableAccessorDeclaration, FieldAccessorDeclaration, Func
|
|
|
32
32
|
import * as objectExpressionMeaning from './ObjectExpressionMeaning.js';
|
|
33
33
|
import { OwnAndBaseConstructorCallsCheckResult } from './OwnAndBaseConstructorCallsChecker.js';
|
|
34
34
|
import { SourceFileMembers } from './SourceFileMembers.js';
|
|
35
|
-
import * as tagMeaning from './TagMeaning.js';
|
|
36
35
|
import * as tags from './Tag.js';
|
|
36
|
+
import * as tagMeaning from './TagMeaning.js';
|
|
37
37
|
import { TypeMemberImplementationCheckResult } from './TypeMemberImplementationChecker.js';
|
|
38
38
|
import * as controlFlow from './control-flow/index.js';
|
|
39
39
|
import { WellKnownDeclarations } from './index.js';
|
|
@@ -117,6 +117,7 @@ export declare class Analyzer {
|
|
|
117
117
|
constructor(compilation: project.Compilation, tsInteropInputs: TsInteropInputs);
|
|
118
118
|
getProjectSourceFile(node: tree.SourceFile): project.SourceFile;
|
|
119
119
|
checkExpressionCanBeUsedInForLoop(node: tree.Expression): WithDiagnostics<ExpressionCanBeUsedInForLoopCheckResult>;
|
|
120
|
+
expressionCanBeReferenced(node: tree.Expression): boolean;
|
|
120
121
|
isEnumeratorMethodSignature(entity: e.MethodEntity): boolean;
|
|
121
122
|
ifTypeEnumerableThenElementType(type: types.Type): types.Type | undefined;
|
|
122
123
|
ifTypeEnumeratorThenElementType(type: types.Type): types.Type | undefined;
|
|
@@ -263,7 +264,7 @@ export declare class Analyzer {
|
|
|
263
264
|
findAnalyzedTranslationPackageForLocale(entity: e.PackageEntity, locale: PackageLocale): AnalyzedTranslationPackage | undefined;
|
|
264
265
|
getLocalizedPackageWithLocale(originalPackageEntity: e.PackageEntity, locale: PackageLocale): e.PackageEntity | undefined;
|
|
265
266
|
enumerateAnalyzedTranslationPackages(): Query<AnalyzedTranslationPackage>;
|
|
266
|
-
enumerateAnalyzedTextTranslationPackages():
|
|
267
|
+
enumerateAnalyzedTextTranslationPackages(): Query<AnalyzedTextTranslationPackage>;
|
|
267
268
|
getLinkedMultiPlatformPackagesByPlatform(entity: e.PackageEntity): ReadonlyMap<PlatformKind, LinkedMultiPlatformPackage> | undefined;
|
|
268
269
|
getLinkedMultiPlatformPackage(entity: e.PackageEntity, platform: PlatformKind): LinkedMultiPlatformPackage | undefined;
|
|
269
270
|
getTextTranslationPackagesMap(): ReadonlyMap<e.PackageEntity, ReadonlyMap<PackageLocale, AnalyzedTextTranslationPackage>>;
|
|
@@ -875,9 +876,18 @@ export declare class DeclaredTypeMemberEntities {
|
|
|
875
876
|
}
|
|
876
877
|
export declare class ExpressionAnalysisOptions {
|
|
877
878
|
readonly targetType: types.Type | undefined;
|
|
879
|
+
/**
|
|
880
|
+
* Определяет, можно ли кэшировать результат анализа выражений, если результат зависит от целевого типа. Результат
|
|
881
|
+
* анализа, который не зависит от целевого типа, можно кэшировать всегда.
|
|
882
|
+
*/
|
|
878
883
|
readonly allowCaching: boolean;
|
|
879
884
|
readonly isResolvingOverload: boolean;
|
|
880
|
-
constructor(targetType: types.Type | undefined,
|
|
885
|
+
constructor(targetType: types.Type | undefined,
|
|
886
|
+
/**
|
|
887
|
+
* Определяет, можно ли кэшировать результат анализа выражений, если результат зависит от целевого типа. Результат
|
|
888
|
+
* анализа, который не зависит от целевого типа, можно кэшировать всегда.
|
|
889
|
+
*/
|
|
890
|
+
allowCaching: boolean, isResolvingOverload: boolean);
|
|
881
891
|
static withTargetType(options: ExpressionAnalysisOptions | undefined, targetType: types.Type | undefined): ExpressionAnalysisOptions;
|
|
882
892
|
withTargetType(targetType: types.Type | undefined): ExpressionAnalysisOptions;
|
|
883
893
|
withAllowCaching(allowCaching: boolean): ExpressionAnalysisOptions;
|
|
@@ -9,6 +9,7 @@ export declare class DiagnosticCollector {
|
|
|
9
9
|
private readonly diagnosticArgumentFactory;
|
|
10
10
|
private readonly translationPackage_;
|
|
11
11
|
private readonly textTranslationPackage_;
|
|
12
|
+
private readonly primaryTextTranslationPackage_;
|
|
12
13
|
private readonly diagnostics;
|
|
13
14
|
private readonly diagnosticAcceptor;
|
|
14
15
|
private namedDeclarationsUsageMap;
|
|
@@ -16,6 +17,7 @@ export declare class DiagnosticCollector {
|
|
|
16
17
|
private readonly standardTypes_;
|
|
17
18
|
private get translationPackage();
|
|
18
19
|
private get textTranslationPackage();
|
|
20
|
+
private get primaryTextTranslationPackage();
|
|
19
21
|
private get isInterfacePackageFile();
|
|
20
22
|
private get standardTypes();
|
|
21
23
|
constructor(analyzer: Analyzer, sourceFile: project.SourceFile);
|
|
@@ -34,6 +36,9 @@ export declare class DiagnosticCollector {
|
|
|
34
36
|
private collectNotTranslatedTypeMembers;
|
|
35
37
|
private isNotTranslatedEntity;
|
|
36
38
|
private createNotTranslatedEntitiesDiagnostic;
|
|
39
|
+
private addNotTranslatedTextsDiagnostics;
|
|
40
|
+
private collectNotTranslatedTexts;
|
|
41
|
+
private createNotTranslatedTextsDiagnostic;
|
|
37
42
|
private checkAllDefaultConstructorArgumentsAreNamed;
|
|
38
43
|
private checkPackageVariableDeclaration;
|
|
39
44
|
private checkPackageFunctionDeclaration;
|
|
@@ -73,6 +78,7 @@ export declare class DiagnosticCollector {
|
|
|
73
78
|
private checkOptionalChainingIsUsedOnTheLeftSideOfAssignment;
|
|
74
79
|
private checkGenericSpecializationExpression;
|
|
75
80
|
private checkTypeArgumentTypesAreAssignableToConstraints;
|
|
81
|
+
private checkParameterList;
|
|
76
82
|
private checkParameterDeclaration;
|
|
77
83
|
private checkIfVariableIsUnused;
|
|
78
84
|
private checkIfNestedFunctionIsUnused;
|
|
@@ -81,6 +87,7 @@ export declare class DiagnosticCollector {
|
|
|
81
87
|
private checkTypeMemberCorrectlyOverridesBaseMember;
|
|
82
88
|
private isReceiverBaseAutoVariableAccess;
|
|
83
89
|
private overridingMemberHasCorrectHiding;
|
|
90
|
+
private checkTextTranslationDeclaration;
|
|
84
91
|
private attachNodeLocationAndAddDiagnostics;
|
|
85
92
|
private addDiagnostic;
|
|
86
93
|
private addDiagnostics;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Name } from '../common/index.js';
|
|
2
|
-
import { PackageEntity } from '../entities/
|
|
2
|
+
import { PackageEntity } from '../entities/index.js';
|
|
3
3
|
import { PackageImportInfo } from './Analyzer.js';
|
|
4
4
|
export declare class ImportedPackageNameTree {
|
|
5
5
|
private readonly rootNodes_;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LocalVariableEntity } from '../entities/index.js';
|
|
2
2
|
import * as tree from '../tree/index.js';
|
|
3
|
-
import { LocalVariableEntity } from '../entities/VariableEntity.js';
|
|
4
3
|
import * as types from '../types/index.js';
|
|
4
|
+
import { Analyzer } from './Analyzer.js';
|
|
5
5
|
export declare class ReturnTypeInferrer {
|
|
6
6
|
private readonly analyzer;
|
|
7
7
|
private readonly block;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
|
2
|
-
import { PackageVariableEntity } from '../entities/
|
|
2
|
+
import { PackageVariableEntity } from '../entities/index.js';
|
|
3
3
|
import * as tree from '../tree/index.js';
|
|
4
4
|
import { Analyzer } from './Analyzer.js';
|
|
5
5
|
export declare class SourcePackageMembersCreator {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as tree from '../tree/index.js';
|
|
2
|
+
export type TextKey = string | number;
|
|
3
|
+
export declare class TextIdentity {
|
|
4
|
+
static keyFromTextFragments(fragments: readonly string[]): TextKey;
|
|
5
|
+
static keyFromTextToken(token: tree.Token<tree.TokenKind.TextLiteral>): TextKey;
|
|
6
|
+
static keyFromLocalizableTextLiteral(node: tree.LocalizableTextLiteral): TextKey;
|
|
7
|
+
static keyFromLocalizableTextTemplateLiteral(node: tree.LocalizableTextTemplateLiteral): TextKey;
|
|
8
|
+
static keyFromTextTranslationSource(node: tree.TextTranslationSource): TextKey;
|
|
9
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
|
2
|
-
import { TypeEntityMembers } from '../entities/
|
|
2
|
+
import { TypeEntityMembers } from '../entities/index.js';
|
|
3
3
|
import { Analyzer } from './Analyzer.js';
|
|
4
4
|
export declare class TypeMemberConflictsValidator {
|
|
5
5
|
private readonly analyzer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldEntity, LocalVariableEntity, PackageVariableEntity, ParameterEntity } from '../../entities/
|
|
1
|
+
import { FieldEntity, LocalVariableEntity, PackageVariableEntity, ParameterEntity } from '../../entities/index.js';
|
|
2
2
|
import * as tree from '../../tree/index.js';
|
|
3
3
|
import { Analyzer } from '../Analyzer.js';
|
|
4
4
|
import { NarrowableReferenceExpression } from '../control-flow/NarrowableExpression.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseEntityHidingMatcher } from '../../entities/BaseEntityHidingMatcher.js';
|
|
2
|
-
import { PackageEntity } from '../../entities/
|
|
2
|
+
import { PackageEntity } from '../../entities/index.js';
|
|
3
3
|
import { TypeEntity } from '../../entities/TypeEntity.js';
|
|
4
4
|
import { SourceFile } from '../../project/SourceFile.js';
|
|
5
5
|
import { SemanticContext } from './SemanticContext.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LocalVariableEntity } from '../../entities/
|
|
1
|
+
import { LocalVariableEntity } from '../../entities/index.js';
|
|
2
2
|
import * as tree from '../../tree/index.js';
|
|
3
3
|
import { Analyzer } from '../Analyzer.js';
|
|
4
4
|
type SpecialLocalDeclarationEntity = LocalVariableEntity;
|
|
@@ -14,6 +14,6 @@ export declare const InMemoryPackageScheme = "artel-in-memory";
|
|
|
14
14
|
export declare const GeneratedSourceFileScheme = "artel-gen";
|
|
15
15
|
export declare const DefaultTsLibDeclarationsFileName = "lib.es2023.d.ts";
|
|
16
16
|
export declare const DefaultLocale = PackageLocale.Ru;
|
|
17
|
-
export declare const DefaultDialect = PackageDialect.
|
|
17
|
+
export declare const DefaultDialect = PackageDialect.ArtelA;
|
|
18
18
|
export declare const DefaultNamesOfDirectoriesToIgnore: string[];
|
|
19
19
|
export declare const NodeModulesDirectoryName = "node_modules";
|
|
@@ -4,6 +4,9 @@ export declare abstract class Query<T> implements Iterable<T> {
|
|
|
4
4
|
static fromNullable<T>(source: Iterable<T> | undefined): Query<T>;
|
|
5
5
|
static empty<T>(): Query<T>;
|
|
6
6
|
static ofSuccessors<T>(first: T, next: (t: T) => T | undefined): Query<T>;
|
|
7
|
+
static first<T>(source: Iterable<T>): T | undefined;
|
|
8
|
+
static first<T, K extends T>(source: Iterable<T>, fn: (t: T) => t is K): K | undefined;
|
|
9
|
+
static first<T>(source: Iterable<T>, fn: (t: T) => boolean): T | undefined;
|
|
7
10
|
static map<T, K>(source: Iterable<T>, fn: (t: T, i: number) => K): Query<K>;
|
|
8
11
|
static toMap<T, K, V>(source: Iterable<T>, keySelector: (t: T) => K, valueSelector: (t: T) => V): Map<K, V>;
|
|
9
12
|
static toMap<T>(source: Iterable<T>): T extends readonly [infer K, infer V] ? Map<K, V> : never;
|
|
@@ -53,6 +56,7 @@ export declare abstract class Query<T> implements Iterable<T> {
|
|
|
53
56
|
unique(keySelector?: (t: T) => any): Query<T>;
|
|
54
57
|
uniqueWithComparator(comparator: (t1: T, t2: T) => boolean): Query<T>;
|
|
55
58
|
uniqueToSet(): Set<T>;
|
|
59
|
+
uniqueToArray(): Array<T>;
|
|
56
60
|
maxByValue(valueSelector: (t: T) => number): T | undefined;
|
|
57
61
|
minByValue(valueSelector: (t: T) => number): T | undefined;
|
|
58
62
|
single(): T | undefined;
|
|
@@ -118,98 +118,104 @@ export declare enum DiagnosticCode {
|
|
|
118
118
|
DefaultConstructorArgumentsMustBeNamed = 280,
|
|
119
119
|
IncorrectBodyOfBasicAliasTypeMethod = 281,
|
|
120
120
|
TheFollowingDeclarationsAreNotTranslated0 = 282,
|
|
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
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
121
|
+
TheFollowingDeclarationsAreNotTranslated0And1More = 283,
|
|
122
|
+
TheFollowingTextsAreNotTranslated0 = 284,
|
|
123
|
+
TheFollowingTextsAreNotTranslated0And1More = 285,
|
|
124
|
+
OperatorFunction0MustNotHaveParameters = 286,
|
|
125
|
+
OperatorFunction0MustHaveOneParameter = 287,
|
|
126
|
+
OperatorFunction0MustHaveNoMoreThanOneParameter = 288,
|
|
127
|
+
CorrespondingBasicTypeMemberNotFound = 289,
|
|
128
|
+
AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier = 290,
|
|
129
|
+
TagNotFound = 291,
|
|
130
|
+
TypeOrFunctionNameExpected = 292,
|
|
131
|
+
PackageNameOrAliasExpected = 293,
|
|
132
|
+
ExpressionCanBeNull = 294,
|
|
133
|
+
TargetVariableExpressionInTheAssignmentStatementCannotContainQuestionOperator = 295,
|
|
134
|
+
UnreachableCode = 296,
|
|
135
|
+
RecursionOccurredWhileCalculatingTheTypeOfTheExpression = 297,
|
|
136
|
+
RecursionOccurredWhileInferringTheTypeOfTheVariable = 298,
|
|
137
|
+
ScopeAlreadyContainsDeclarationWithTheSameName = 299,
|
|
138
|
+
ScopeAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 300,
|
|
139
|
+
ParameterName0ConflictsWithAutomaticallyGeneratedVariableName = 301,
|
|
140
|
+
PackageAlreadyContainsDeclarationWithTheSameName = 302,
|
|
141
|
+
PackageAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 303,
|
|
142
|
+
PackageAlreadyContainsTypeWithTheSameNameAndSameOrIntersectingTypeParameterCount = 304,
|
|
143
|
+
PackageAliasWithTheSameNameAlreadyExits = 305,
|
|
144
|
+
TypeAlreadyContainsDeclarationWithTheSameName = 306,
|
|
145
|
+
TypeAlreadyContainsMethodWithTheSameNameAndParameterTypes = 307,
|
|
146
|
+
TypeAlreadyContainsConstructorWithTheSameParameterTypes = 308,
|
|
147
|
+
TypeAlreadyContainsOperatorFunctionWithTheSameParameterTypes = 309,
|
|
148
|
+
TypeAlreadyContainsIndexerWithTheSameParameterTypes = 310,
|
|
149
|
+
TypeCanHaveOnlyOneDestructor = 311,
|
|
150
|
+
TypeCanHaveOnlyOneDereferenceOperator = 312,
|
|
151
|
+
VariableIsUsedBeforeItsDeclaration = 313,
|
|
152
|
+
VariableMayNotHasBeenAssignedBeforeUsage = 314,
|
|
153
|
+
NotAllCodePathsReturnAValueAndResultLocalVariableMayNotHasBeenAssigned = 315,
|
|
154
|
+
WriteFunctionHasNoCorrespondingReadFunction = 316,
|
|
155
|
+
TypeCannotHaveMultipleBaseObjectTypes = 317,
|
|
156
|
+
TypeThatIsNotMarkedAsBasicCannotBeUsedAsBaseType = 318,
|
|
157
|
+
PlainObjectTypeCannotBeUsedAsBaseType = 319,
|
|
158
|
+
ThisTypeIsAlreadyListedInBaseTypeList = 320,
|
|
159
|
+
OnlyObjectAndAspectTypesCanBeUsedAsBaseTypes = 321,
|
|
160
|
+
PlainObjectTypeCanHaveOnlyAspectsAsBaseTypes = 322,
|
|
161
|
+
AspectTypeCanHaveOnlyAspectsAsBaseTypes = 323,
|
|
162
|
+
ModifierListAlreadyContains0Modifier = 324,
|
|
163
|
+
ModifierListOfOuterDeclarationGroupAlreadyContains0Modifier = 325,
|
|
164
|
+
_0ModifierIsNotAllowedHere = 326,
|
|
165
|
+
DeclarationCannotBePlacedInGroupHaving0Modifier = 327,
|
|
166
|
+
PackageConstructorDeclarationCannotHaveModifiers = 328,
|
|
167
|
+
PackageEntryPointDeclarationCannotHaveModifiers = 329,
|
|
168
|
+
TranslationsCannotHaveModifiers = 330,
|
|
169
|
+
AbstractModifierCanOnlyBeUsedInAbstractObjectTypes = 331,
|
|
170
|
+
BasicModifierCanOnlyBeUsedInObjectTypesAspectTypesAndTypeAliases = 332,
|
|
171
|
+
OverrideModifierCanOnlyBeUsedInObjectAndAspectTypes = 333,
|
|
172
|
+
_0ModifierCannotBeUsedWith1Modifier = 334,
|
|
173
|
+
VariantDeclarationCannotHaveHiddenModifier = 335,
|
|
174
|
+
BasicModifierCanOnlyBeAppliedToObjectTypes = 336,
|
|
175
|
+
AbstractModifierCanOnlyBeAppliedToObjectTypes = 337,
|
|
176
|
+
NotBasicObjectTypesCannotHaveBasicMembers = 338,
|
|
177
|
+
BasicModifierCannotBeAppliedToAspectTypeFields = 339,
|
|
178
|
+
WriteFunctionMustHaveTheSameModifiersAsReadFunction = 340,
|
|
179
|
+
WriteFunctionMustHaveTheSameOrMoreRestrictiveHidingLevelThenReadFunction = 341,
|
|
180
|
+
DeclarationConflictsWithBaseTypeMember0 = 342,
|
|
181
|
+
DeclarationConflictsWithBaseTypeMember0AddOverrideModifier = 343,
|
|
182
|
+
DeclarationConflictsWithBaseTypeMember0ThisMemberCannotBeOverridden = 344,
|
|
183
|
+
DeclarationConflictsWithBaseTypeMember0ToOverrideTypeMustBeAssignableTo1 = 345,
|
|
184
|
+
DeclarationConflictsWithBaseTypeMember0ToOverrideReturnTypeMustBeAssignableTo1 = 346,
|
|
185
|
+
OverridingMemberMustHaveTheSameHidingLevelAsBaseMember0 = 347,
|
|
186
|
+
OverridingMethodMustBeAsyncBecauseBaseMethod0IsAsync = 348,
|
|
187
|
+
OverridingMethodMustNotBeAsyncBecauseBaseMethod0IsNotAsync = 349,
|
|
188
|
+
OverridingFieldMustNotBeConstOrHaveWriteFunctionToMatchBaseField0 = 350,
|
|
189
|
+
OverridingMemberMustHaveWriteFunctionToMatchBaseMember0 = 351,
|
|
190
|
+
TypeDoesNotImplementMember0 = 352,
|
|
191
|
+
TypeDoesNotImplementMember0ImplicitImplementationTypeMismatch1 = 353,
|
|
192
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsAsync = 354,
|
|
193
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsNotAsync = 355,
|
|
194
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsNotWriteable = 356,
|
|
195
|
+
TypeDoesNotImplementMember0ImplicitImplementation1WriteFunctionIsHidden = 357,
|
|
196
|
+
CannotAccessAbstractMemberOfBaseType = 358,
|
|
197
|
+
TheFollowingBaseTypeMembersConflictAndMustBeOverridden0 = 359,
|
|
198
|
+
TheFollowingBaseTypeMembersConflictBecauseTheyHaveTheSameOriginalName0AndMustBeOverridden1 = 360,
|
|
199
|
+
TheFirstStatementOfConstructorBlockMustBeEitherBaseOrOwnConstructorCall = 361,
|
|
200
|
+
ThisCallCausesOwnConstructorCallCycle = 362,
|
|
201
|
+
OwnConstructorCallMustBeTheFirstStatementOfConstructorBlock = 363,
|
|
202
|
+
BaseConstructorCallMustBeTheFirstStatementOfConstructorBlock = 364,
|
|
203
|
+
Field0HasNoInitializerAndMayNotBeAssignedInConstructor = 365,
|
|
204
|
+
Field0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 366,
|
|
205
|
+
Variable0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 367,
|
|
206
|
+
ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1 = 368,
|
|
207
|
+
ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType = 369,
|
|
208
|
+
CannotInferTypeArguments = 370,
|
|
209
|
+
CanNotInferReturnTypeAddExplicitReturnTypeSpecifier = 371,
|
|
210
|
+
ConstantVariablesBustBeInitialized = 372,
|
|
211
|
+
VariableTypeIsNotSpecified = 373,
|
|
212
|
+
CannotInferTypeOfFunctionLiteralAddTypeSpecifierForParameter = 374,
|
|
213
|
+
TypeParameterDefaultCanReferenceOnlyPreviouslyDeclaredTypeParameters = 375,
|
|
214
|
+
RequiredTypeParametersCannotFollowTypeParametersWithDefaults = 376,
|
|
215
|
+
RequiredParametersCannotFollowOptionalParameters = 377,
|
|
216
|
+
ExpressionCannotBeReferenced = 378,
|
|
217
|
+
TextIsMissingInPrimaryTextTranslationPackage = 379,
|
|
218
|
+
TextTemplateIsMissingInPrimaryTextTranslationPackage = 380,
|
|
213
219
|
CannotFindTsLibDirectoryBaseSearchPaths0 = 401,
|
|
214
220
|
SourceFile0IsNotPartOfThePackageAndWontBeLoaded = 402,
|
|
215
221
|
ProgramWithoutMainPackageCannotBeCompiled = 403,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Analyzer } from '../analysis/Analyzer.js';
|
|
2
|
-
import
|
|
3
|
-
import { Type, TypeMemberEntity, TypeOrExtensionEntity } from './Entities.js';
|
|
2
|
+
import { FunctionEntity, PackageEntity, Type, TypeMemberEntity, TypeOrExtensionEntity, VariableEntity } from './Entities.js';
|
|
4
3
|
import { EntityMap } from './EntityMap.js';
|
|
5
4
|
import * as ir from './ir/index.js';
|
|
6
5
|
export declare class EmitterContext {
|
|
@@ -8,12 +7,11 @@ export declare class EmitterContext {
|
|
|
8
7
|
readonly entityMap: EntityMap;
|
|
9
8
|
readonly type: TypeUtils;
|
|
10
9
|
readonly standardTypes: StandardTypes;
|
|
10
|
+
readonly entityFinder: EntityFinder;
|
|
11
11
|
private readonly integerTypeEntity_;
|
|
12
12
|
private readonly jsObjectType_;
|
|
13
13
|
private readonly jsSymbolType_;
|
|
14
|
-
private readonly originalPlatformJavaScriptPackage_;
|
|
15
14
|
get integerTypeEntity(): TypeOrExtensionEntity;
|
|
16
|
-
get originalPlatformJavaScriptPackage(): analyzerEntities.PackageEntity;
|
|
17
15
|
get jsObjectType(): TypeOrExtensionEntity;
|
|
18
16
|
get jsSymbolType(): TypeOrExtensionEntity;
|
|
19
17
|
constructor(analyzer: Analyzer, entityMap: EntityMap);
|
|
@@ -26,6 +24,29 @@ export declare class EmitterContext {
|
|
|
26
24
|
isAspectTypeEntity(entity: TypeOrExtensionEntity): boolean;
|
|
27
25
|
enumerateAllOverriddenMembers<T extends TypeMemberEntity>(entity: T): Iterable<T>;
|
|
28
26
|
}
|
|
27
|
+
export declare class WellKnownDeclarationKeys {
|
|
28
|
+
static readonly jsObjectType = "Platform.JavaScript.Object";
|
|
29
|
+
static readonly jsSymbolType = "Platform.JavaScript.Symbol";
|
|
30
|
+
static readonly fieldProxyReadMethod = "\u0410\u0440\u0442\u0435\u043B\u044C.\u041F\u043E\u0441\u0440\u0435\u0434\u043D\u0438\u043A\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439\u041E\u0431\u044A\u0435\u043A\u0442\u0430.\u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C";
|
|
31
|
+
static readonly fieldProxyWriteMethod = "\u0410\u0440\u0442\u0435\u043B\u044C.\u041F\u043E\u0441\u0440\u0435\u0434\u043D\u0438\u043A\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439\u041E\u0431\u044A\u0435\u043A\u0442\u0430.\u0437\u0430\u043F\u0438\u0441\u0430\u0442\u044C";
|
|
32
|
+
static readonly referenceConstructor = "\u0410\u0440\u0442\u0435\u043B\u044C.\u0420\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F.\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442.\u0421\u0441\u044B\u043B\u043A\u0430";
|
|
33
|
+
static readonly textTemplateConstructor = "\u0410\u0440\u0442\u0435\u043B\u044C.\u0428\u0430\u0431\u043B\u043E\u043D\u0422\u0435\u043A\u0441\u0442\u0430";
|
|
34
|
+
static readonly textTemplateToTextMethod = "\u0410\u0440\u0442\u0435\u043B\u044C.\u0428\u0430\u0431\u043B\u043E\u043D\u0422\u0435\u043A\u0441\u0442\u0430.\u0432-\u0442\u0435\u043A\u0441\u0442";
|
|
35
|
+
static readonly localizableTextTemplateConstructor = "\u0410\u0440\u0442\u0435\u043B\u044C.\u0428\u0430\u0431\u043B\u043E\u043D\u0422\u0435\u043A\u0441\u0442\u0430\u041F\u0435\u0440\u0435\u0432\u043E\u0434\u0438\u043C\u044B\u0439";
|
|
36
|
+
static readonly localizableTextTemplateToTextMethod = "\u0410\u0440\u0442\u0435\u043B\u044C.\u0428\u0430\u0431\u043B\u043E\u043D\u0422\u0435\u043A\u0441\u0442\u0430\u041F\u0435\u0440\u0435\u0432\u043E\u0434\u0438\u043C\u044B\u0439.\u0432-\u0442\u0435\u043A\u0441\u0442";
|
|
37
|
+
static readonly symbolIteratorField = "\u0432\u0441\u0435\u043E\u0431\u0449\u0435\u0435 Platform.JavaScript.Symbol.iterator";
|
|
38
|
+
static readonly inlineJsFunction = "\u0410\u0440\u0442\u0435\u043B\u044C.\u0412\u0437\u0430\u0438\u043C\u043E\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435.\u043F\u043E\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044C-\u0440\u043E\u0434\u043D\u043E\u0439-\u043A\u043E\u0434";
|
|
39
|
+
static readonly numberIsIntegerFunction = "\u0410\u0440\u0442\u0435\u043B\u044C.\u0420\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F.\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442.\u0447\u0438\u0441\u043B\u043E-\u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F-\u0446\u0435\u043B\u044B\u043C";
|
|
40
|
+
static readonly dictionaryType = "\u0410\u0440\u0442\u0435\u043B\u044C.\u0421\u043B\u043E\u0432\u0430\u0440\u044C";
|
|
41
|
+
static readonly dictionaryConstructor = "\u0410\u0440\u0442\u0435\u043B\u044C.\u0421\u043B\u043E\u0432\u0430\u0440\u044C";
|
|
42
|
+
static readonly dictionaryAddMethod = "\u0410\u0440\u0442\u0435\u043B\u044C.\u0421\u043B\u043E\u0432\u0430\u0440\u044C.\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C";
|
|
43
|
+
static readonly packageType = "\u0410\u0440\u0442\u0435\u043B\u044C.\u041F\u0430\u043A\u0435\u0442";
|
|
44
|
+
static readonly packageConstructor = "\u0410\u0440\u0442\u0435\u043B\u044C.\u041F\u0430\u043A\u0435\u0442";
|
|
45
|
+
static readonly packageThisPackageField = "\u0432\u0441\u0435\u043E\u0431\u0449\u0435\u0435 \u0410\u0440\u0442\u0435\u043B\u044C.\u041F\u0430\u043A\u0435\u0442.\u0441\u0432\u043E\u0439-\u043F\u0430\u043A\u0435\u0442";
|
|
46
|
+
static readonly packageMainPackageField = "\u0432\u0441\u0435\u043E\u0431\u0449\u0435\u0435 \u0410\u0440\u0442\u0435\u043B\u044C.\u041F\u0430\u043A\u0435\u0442.\u0433\u043B\u0430\u0432\u043D\u044B\u0439-\u043F\u0430\u043A\u0435\u0442";
|
|
47
|
+
static readonly errorConstructor = "\u0410\u0440\u0442\u0435\u043B\u044C.\u041E\u0448\u0438\u0431\u043A\u0430";
|
|
48
|
+
static readonly translatorAddTranslationToLocaleMethod = "\u0432\u0441\u0435\u043E\u0431\u0449\u0435\u0435 \u0410\u0440\u0442\u0435\u043B\u044C.\u041F\u0435\u0440\u0435\u0432\u043E\u0434\u0447\u0438\u043A.\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C-\u043F\u0435\u0440\u0435\u0432\u043E\u0434-\u043D\u0430-\u044F\u0437\u044B\u043A";
|
|
49
|
+
}
|
|
29
50
|
declare class TypeUtils {
|
|
30
51
|
private readonly ectx;
|
|
31
52
|
constructor(ectx: EmitterContext);
|
|
@@ -61,4 +82,29 @@ declare class StandardTypes {
|
|
|
61
82
|
get reference(): Type;
|
|
62
83
|
constructor(analyzer: Analyzer, entityMap: EntityMap);
|
|
63
84
|
}
|
|
85
|
+
declare class EntityFinder {
|
|
86
|
+
private readonly ectx;
|
|
87
|
+
private static readonly typeOrExtensionEntityNameRegExp;
|
|
88
|
+
private static readonly staticModifierText;
|
|
89
|
+
private static readonly functionNameAndParametersRegExp;
|
|
90
|
+
constructor(ectx: EmitterContext);
|
|
91
|
+
findPackageEntity(keyText: string): PackageEntity;
|
|
92
|
+
findTypeOrExtensionEntity(keyText: string): TypeOrExtensionEntity;
|
|
93
|
+
findPackageFunctionEntity(keyText: string): FunctionEntity;
|
|
94
|
+
findMethodEntity(keyText: string): FunctionEntity;
|
|
95
|
+
findConstructorEntity(keyText: string): FunctionEntity;
|
|
96
|
+
findFieldEntity(keyText: string): VariableEntity;
|
|
97
|
+
private findOriginalPackageEntityByParsedKey;
|
|
98
|
+
private findOriginalTypeOrExtensionEntityByParsedKey;
|
|
99
|
+
private findOriginalPackageFunctionEntityByParsedKey;
|
|
100
|
+
private findOriginalMethodEntityByParsedKey;
|
|
101
|
+
private findOriginalConstructorEntityByParsedKey;
|
|
102
|
+
private findOriginalFieldEntityByParsedKey;
|
|
103
|
+
private parsePackageEntityKey;
|
|
104
|
+
private parseTypeOrExtensionEntityKey;
|
|
105
|
+
private parsePackageFunctionEntityKey;
|
|
106
|
+
private parseMethodEntityKey;
|
|
107
|
+
private parseConstructorEntityKey;
|
|
108
|
+
private parseFieldEntityKey;
|
|
109
|
+
}
|
|
64
110
|
export {};
|
|
@@ -58,7 +58,6 @@ export declare class IrBuilder {
|
|
|
58
58
|
private buildDisposeStatement;
|
|
59
59
|
private buildRunStatement;
|
|
60
60
|
private buildTryStatement;
|
|
61
|
-
private buildEmptyStatement;
|
|
62
61
|
private buildErrorStatement;
|
|
63
62
|
private buildImportantStatement;
|
|
64
63
|
private buildExpressionStatement;
|
|
@@ -111,6 +111,10 @@ export declare class IrToJs {
|
|
|
111
111
|
private convertFieldDeclaration;
|
|
112
112
|
private convertComputedFieldDeclaration;
|
|
113
113
|
private convertDecorator;
|
|
114
|
+
/**
|
|
115
|
+
* Пытается преобразовать выражение вида `[a, ...[b, c]]` в `[a, b, c]`.
|
|
116
|
+
*/
|
|
117
|
+
private tryFlattenSpreadingExpression;
|
|
114
118
|
private addNodeLocation;
|
|
115
119
|
private getEntityName;
|
|
116
120
|
private convertArrayWithErrorBoundary;
|