@artel/artc 0.6.25274 → 0.6.25276
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 +22 -26
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +282 -143
- package/build/{chunk-6JA436J2.js → chunk-LX6LUKPR.js} +22342 -22105
- package/build/{chunk-GDE2NNW7.js → chunk-MT6TPXET.js} +1 -1
- package/build/{chunk-DXF6BY5D.js → chunk-OS2SFHBZ.js} +2 -2
- package/build/types/analysis/AnalyzedTextTranslationPackage.d.ts +1 -2
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +49 -125
- package/build/types/analysis/Analyzer.d.ts +9 -2
- package/build/types/analysis/DiagnosticCollector.d.ts +0 -8
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +3 -1
- package/build/types/analysis/semantic-context/SemanticContextBasedEntityHidingMatcher.d.ts +1 -2
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +5 -1
- package/build/types/common/Name.d.ts +3 -1
- package/build/types/common/Query.d.ts +3 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +184 -173
- package/build/types/emitter/Emitter.d.ts +0 -1
- package/build/types/emitter/EmitterContext.d.ts +1 -0
- package/build/types/emitter/Entities.d.ts +3 -1
- package/build/types/emitter/IrFactory.d.ts +1 -1
- package/build/types/entities/Entity.d.ts +16 -9
- package/build/types/entities/EntityLocalizationContext.d.ts +11 -10
- package/build/types/entities/PackageMembers.d.ts +2 -1
- package/build/types/entities/index.d.ts +4 -0
- package/build/types/entities/interfaces/AliasTypeEntity.d.ts +1 -0
- package/build/types/entities/interfaces/FunctionTypeEntity.d.ts +1 -0
- package/build/types/entities/interfaces/PackageEntity.d.ts +4 -2
- package/build/types/entities/interfaces/StructuredTypeEntity.d.ts +1 -0
- package/build/types/entities/interfaces/TypeExtensionEntity.d.ts +1 -0
- package/build/types/entities/interfaces/VariantTypeEntity.d.ts +1 -0
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +9 -6
- package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +21 -9
- package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +4 -4
- package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +4 -4
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +10 -8
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +11 -11
- package/build/types/entities/translated/TranslatedGetterEntity.d.ts +5 -5
- package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +5 -3
- package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +5 -3
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +4 -3
- package/build/types/entities/translated/TranslatedSetterEntity.d.ts +5 -5
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +9 -8
- package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +4 -5
- package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +6 -5
- package/build/types/entities/translated/TranslatedVariableEntity.d.ts +10 -11
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +11 -11
- package/build/types/project/SourcePackage.d.ts +6 -3
- package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +2 -1
- package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +2 -1
- package/build/types/services/NodeSemanticInfo.d.ts +6 -0
- package/build/types/tree/Nodes.d.ts +3 -3
- package/build/types/ts-interop/Entities.d.ts +1 -2
- package/build/types/ts-interop/TsInteropContext.d.ts +1 -2
- package/build/types/ts-interop/TsPackageContents.d.ts +1 -2
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +1 -2
- package/package.json +1 -1
|
@@ -1,19 +1,20 @@
|
|
|
1
|
+
import { AnalyzedTranslationPackage } from '../../analysis/AnalyzedTranslationPackage.js';
|
|
1
2
|
import { Tag } from '../../analysis/Tag.js';
|
|
2
3
|
import { Translation } from '../../analysis/Translation.js';
|
|
3
4
|
import { Name, PackageDialect, PackageLocale } from '../../common/index.js';
|
|
5
|
+
import * as tree from '../../tree/index.js';
|
|
4
6
|
import * as types from '../../types/Type.js';
|
|
5
7
|
import { BaseObjectType } from '../BaseObjectType.js';
|
|
6
8
|
import { EntityHidingLevel } from '../EntityHiding.js';
|
|
7
|
-
import { EntityLocalizationContext } from '../EntityLocalizationContext.js';
|
|
8
9
|
import { EntityNaming } from '../EntityNaming.js';
|
|
9
10
|
import { EntityContext, EntityKind } from '../index.js';
|
|
10
11
|
import { PackageEntity } from '../interfaces/PackageEntity.js';
|
|
11
|
-
import { SubstitutionApplicationMode } from '../SubstitutionApplicationMode.js';
|
|
12
|
-
import { TypeEntityKind } from '../TypeEntity.js';
|
|
13
|
-
import { TypeEntityMembers } from '../TypeEntityMembers.js';
|
|
14
12
|
import { TypeParameterEntity } from '../interfaces/TypeParameterEntity.js';
|
|
15
13
|
import type { AnonymousVariantTypeEntity, PackageVariantTypeEntity } from '../interfaces/VariantTypeEntity.js';
|
|
16
14
|
import { VariantTypeEntityDefinition } from '../interfaces/VariantTypeEntity.js';
|
|
15
|
+
import { SubstitutionApplicationMode } from '../SubstitutionApplicationMode.js';
|
|
16
|
+
import { TypeEntityKind } from '../TypeEntity.js';
|
|
17
|
+
import { TypeEntityMembers } from '../TypeEntityMembers.js';
|
|
17
18
|
export declare class TranslatedPackageVariantTypeEntity implements PackageVariantTypeEntity {
|
|
18
19
|
readonly kind = EntityKind.Type;
|
|
19
20
|
readonly typeEntityKind = TypeEntityKind.Variant;
|
|
@@ -21,14 +22,14 @@ export declare class TranslatedPackageVariantTypeEntity implements PackageVarian
|
|
|
21
22
|
private readonly originalEntity;
|
|
22
23
|
private readonly translation;
|
|
23
24
|
private readonly name;
|
|
24
|
-
private readonly
|
|
25
|
-
private readonly
|
|
25
|
+
private readonly translationPackage;
|
|
26
|
+
private readonly node;
|
|
26
27
|
private readonly typeParameters;
|
|
27
28
|
private readonly underlyingType;
|
|
28
29
|
private readonly members;
|
|
29
30
|
private readonly baseObjectType;
|
|
30
31
|
private readonly context;
|
|
31
|
-
constructor(originalEntity: PackageVariantTypeEntity, translation: Translation, name: Name,
|
|
32
|
+
constructor(originalEntity: PackageVariantTypeEntity, translation: Translation, name: Name, translationPackage: AnalyzedTranslationPackage, node: tree.TypeTranslationDeclaration | undefined);
|
|
32
33
|
getName(): Name;
|
|
33
34
|
getContainingPackage(): PackageEntity;
|
|
34
35
|
getTranslation(): Translation | undefined;
|
|
@@ -46,6 +47,7 @@ export declare class TranslatedPackageVariantTypeEntity implements PackageVarian
|
|
|
46
47
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
47
48
|
getBaseObjectType(): BaseObjectType;
|
|
48
49
|
getContext(): EntityContext;
|
|
50
|
+
ensureAllDiagnosticsReported(): void;
|
|
49
51
|
}
|
|
50
52
|
export declare class TranslatedAnonymousVariantTypeEntity implements AnonymousVariantTypeEntity {
|
|
51
53
|
readonly kind = EntityKind.Type;
|
|
@@ -53,14 +55,12 @@ export declare class TranslatedAnonymousVariantTypeEntity implements AnonymousVa
|
|
|
53
55
|
readonly subkind = "anonymous";
|
|
54
56
|
private readonly originalEntity;
|
|
55
57
|
private readonly translation;
|
|
56
|
-
private readonly
|
|
57
|
-
private readonly containingPackage;
|
|
58
|
-
private readonly typeParameters;
|
|
58
|
+
private readonly translationPackage;
|
|
59
59
|
private readonly underlyingType;
|
|
60
60
|
private readonly members;
|
|
61
61
|
private readonly baseObjectType;
|
|
62
62
|
private readonly context;
|
|
63
|
-
constructor(originalEntity: AnonymousVariantTypeEntity, translation: Translation,
|
|
63
|
+
constructor(originalEntity: AnonymousVariantTypeEntity, translation: Translation, translationPackage: AnalyzedTranslationPackage);
|
|
64
64
|
getContainingPackage(): PackageEntity;
|
|
65
65
|
getTranslation(): Translation | undefined;
|
|
66
66
|
getLocale(): PackageLocale;
|
|
@@ -39,7 +39,9 @@ export declare class TextTranslationPackage extends SourcePackageBase {
|
|
|
39
39
|
protected get asPackage(): SourcePackage;
|
|
40
40
|
get locale(): PackageLocale;
|
|
41
41
|
get dialect(): PackageDialect;
|
|
42
|
-
get translationLocale():
|
|
42
|
+
get translationLocale(): string;
|
|
43
|
+
get targetPackageName(): PackageName;
|
|
44
|
+
get isPrimary(): boolean;
|
|
43
45
|
constructor(uri: Uri, configuration: TextTranslationPackageConfiguration, sourceFiles: SourceFile[]);
|
|
44
46
|
}
|
|
45
47
|
export type PackageConfiguration = ProgramPackageConfiguration | TranslationPackageConfiguration | TextTranslationPackageConfiguration;
|
|
@@ -54,14 +56,15 @@ export declare class TranslationPackageConfiguration {
|
|
|
54
56
|
}
|
|
55
57
|
export declare class TextTranslationPackageConfiguration {
|
|
56
58
|
readonly targetPackageName: PackageName;
|
|
57
|
-
readonly translationLocale:
|
|
59
|
+
readonly translationLocale: string;
|
|
60
|
+
readonly isPrimaryTranslation: boolean;
|
|
58
61
|
readonly locale: PackageLocale;
|
|
59
62
|
readonly dialect: PackageDialect;
|
|
60
63
|
readonly version?: string | undefined;
|
|
61
64
|
readonly packageImportLocales: readonly PackageImportLocaleConfig[];
|
|
62
65
|
readonly automaticallyImportedPackages?: readonly PackageName[] | undefined;
|
|
63
66
|
readonly name: PackageName;
|
|
64
|
-
constructor(targetPackageName: PackageName, translationLocale:
|
|
67
|
+
constructor(targetPackageName: PackageName, translationLocale: string, isPrimaryTranslation: boolean | undefined, locale: PackageLocale, dialect?: PackageDialect, version?: string | undefined, packageImportLocales?: readonly PackageImportLocaleConfig[], automaticallyImportedPackages?: readonly PackageName[] | undefined);
|
|
65
68
|
}
|
|
66
69
|
export declare class ProgramPackageConfiguration {
|
|
67
70
|
readonly name: PackageName;
|
|
@@ -27,7 +27,8 @@ export interface Translations {
|
|
|
27
27
|
export interface TextTranslations {
|
|
28
28
|
type: 'TextTranslations';
|
|
29
29
|
originalPackageName: string;
|
|
30
|
-
translationLanguage:
|
|
30
|
+
translationLanguage: string;
|
|
31
|
+
isPrimaryTranslation?: boolean;
|
|
31
32
|
language?: Language;
|
|
32
33
|
dialect?: Dialect;
|
|
33
34
|
version?: string;
|
|
@@ -27,7 +27,8 @@ export interface Переводы {
|
|
|
27
27
|
export interface ПереводыТекстов {
|
|
28
28
|
тип: 'ПереводыТекстов';
|
|
29
29
|
имяПакетаИсходное: string;
|
|
30
|
-
языкПеревода:
|
|
30
|
+
языкПеревода: string;
|
|
31
|
+
этоПервичныйПеревод?: ДаНет;
|
|
31
32
|
язык?: Язык;
|
|
32
33
|
диалект?: Диалект;
|
|
33
34
|
версия?: string;
|
|
@@ -30,8 +30,14 @@ export declare class NodeSemanticInfoService {
|
|
|
30
30
|
static ofAutotypeCallExpression(analyzer: Analyzer, node: tree.AutotypeCallExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
31
31
|
static ofObjectExpression(analyzer: Analyzer, node: tree.ObjectExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
32
32
|
static ofBaseExpression(analyzer: Analyzer, node: tree.BaseExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
33
|
+
static ofConstructorTranslationSourceConstructor(analyzer: Analyzer, node: tree.ConstructorTranslation, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
34
|
+
static ofConstructorTranslationTranslatedConstructor(analyzer: Analyzer, node: tree.ConstructorTranslation, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
35
|
+
static ofIndexerTranslationSourceIndexer(analyzer: Analyzer, node: tree.IndexerTranslation, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
36
|
+
static ofIndexerTranslationTranslatedIndexer(analyzer: Analyzer, node: tree.IndexerTranslation, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
33
37
|
private static ofPackageNameSegmentAccess;
|
|
34
38
|
private static ofConstructorCallWithTypeAccess;
|
|
39
|
+
private static ofTranslationTypeParameterListParameter;
|
|
40
|
+
private static ofTranslationParameterListParameter;
|
|
35
41
|
private static getBetterReferenceTargetsOrPreserve;
|
|
36
42
|
private static getBetterReferenceTarget;
|
|
37
43
|
private static getContainingTranslationPackage;
|
|
@@ -1838,7 +1838,7 @@ export declare class TranslationTypeParameterList extends BaseNode {
|
|
|
1838
1838
|
readonly children: readonly IdentifierListElement[];
|
|
1839
1839
|
get parent(): TranslationTypeParameterClause;
|
|
1840
1840
|
get elements(): readonly IdentifierListElement[];
|
|
1841
|
-
get
|
|
1841
|
+
get typeParameters(): Query<Identifier>;
|
|
1842
1842
|
protected get thisAsNode(): Node;
|
|
1843
1843
|
constructor(elements: readonly IdentifierListElement[], rangeWithTrivia: Range | undefined);
|
|
1844
1844
|
}
|
|
@@ -1852,10 +1852,10 @@ export declare class TranslationTypeParameterClause extends BaseNode {
|
|
|
1852
1852
|
];
|
|
1853
1853
|
get parent(): TranslationTypeParameterClauseParent;
|
|
1854
1854
|
get lessThanToken(): Token<TokenKind.LessThan>;
|
|
1855
|
-
get
|
|
1855
|
+
get typeParameterList(): TranslationTypeParameterList;
|
|
1856
1856
|
get greaterThanToken(): Token<TokenKind.GreaterThan>;
|
|
1857
1857
|
protected get thisAsNode(): Node;
|
|
1858
|
-
constructor(lessThanToken: Token<TokenKind.LessThan>,
|
|
1858
|
+
constructor(lessThanToken: Token<TokenKind.LessThan>, typeParameterList: TranslationTypeParameterList, greaterThanToken: Token<TokenKind.GreaterThan>, rangeWithTrivia: Range | undefined);
|
|
1859
1859
|
}
|
|
1860
1860
|
export declare class PackageFunctionTranslationDeclaration extends BaseNode {
|
|
1861
1861
|
readonly kind = NodeKind.PackageFunctionTranslationDeclaration;
|
|
@@ -2,10 +2,9 @@ import ts from 'typescript';
|
|
|
2
2
|
import { Tag } from '../analysis/Tag.js';
|
|
3
3
|
import { Translation } from '../analysis/Translation.js';
|
|
4
4
|
import { Lazy, Name, PackageDialect, PackageLocale } from '../common/index.js';
|
|
5
|
-
import { PackageEntityMembers } from '../entities/PackageMembers.js';
|
|
6
5
|
import { TypeEntityMembers } from '../entities/TypeEntityMembers.js';
|
|
7
6
|
import type { EntityContainingParameter, EntityContainingTypeParameter, EntityOwningGetter, PackageEntity, TextTranslationPackageEntityInfo, TypeEntityWithMembers, VariantTypeEntity } from '../entities/index.js';
|
|
8
|
-
import { AliasTypeEntity, AliasTypeEntityDefinition, AliasedType, AnonymousFunctionTypeEntity, AnonymousStructuredTypeEntity, BaseAspectTypes, BaseObjectType, ConstructorEntity, ConstructorEntityDefinition, DefaultConstructorEntityInfo, EntityContext, EntityHidingLevel, EntityKind, EntityNaming, EntityOwningSetter, FieldEntity, FunctionEntityDefinition, FunctionTypeEntityDefinition, GetterEntity, GetterEntityDefinition, IndexerEntity, IndexerEntityDefinition, InterfacePackageEntityInfo, MethodEntity, PackageEntityDefinition, PackageFunctionEntity, PackageFunctionTypeEntity, PackageStructuredTypeEntity, PackageVariableEntity, PackageVariantTypeEntity, ParameterEntity, SetterEntity, SetterEntityDefinition, SpecialVariableEntityInfo, StructuredTypeEntityDefinition, StructuredTypeKind, SubstitutionApplicationMode, TypeEntityKind, TypeParameterConstraint, TypeParameterEntity, TypeParameterEntityDefinition, TypeWithMembersOrExtensionEntity, VariableEntityDefinition, VariantTypeEntityDefinition } from '../entities/index.js';
|
|
7
|
+
import { AliasTypeEntity, AliasTypeEntityDefinition, AliasedType, AnonymousFunctionTypeEntity, AnonymousStructuredTypeEntity, BaseAspectTypes, BaseObjectType, ConstructorEntity, ConstructorEntityDefinition, DefaultConstructorEntityInfo, EntityContext, EntityHidingLevel, EntityKind, EntityNaming, EntityOwningSetter, FieldEntity, FunctionEntityDefinition, FunctionTypeEntityDefinition, GetterEntity, GetterEntityDefinition, IndexerEntity, IndexerEntityDefinition, InterfacePackageEntityInfo, MethodEntity, PackageEntityDefinition, PackageEntityMembers, PackageFunctionEntity, PackageFunctionTypeEntity, PackageStructuredTypeEntity, PackageVariableEntity, PackageVariantTypeEntity, ParameterEntity, SetterEntity, SetterEntityDefinition, SpecialVariableEntityInfo, StructuredTypeEntityDefinition, StructuredTypeKind, SubstitutionApplicationMode, TypeEntityKind, TypeParameterConstraint, TypeParameterEntity, TypeParameterEntityDefinition, TypeWithMembersOrExtensionEntity, VariableEntityDefinition, VariantTypeEntityDefinition } from '../entities/index.js';
|
|
9
8
|
import { JavaScriptImplementationConfig, PackageName, PlatformKind, ProgramPackage } from '../project/index.js';
|
|
10
9
|
import * as tree from '../tree/index.js';
|
|
11
10
|
import * as types from '../types/index.js';
|
|
@@ -3,8 +3,7 @@ import { Analyzer, WellKnownDeclarations } from '../analysis/index.js';
|
|
|
3
3
|
import { Tag } from '../analysis/Tag.js';
|
|
4
4
|
import { Translation } from '../analysis/Translation.js';
|
|
5
5
|
import { Name, PackageDialect, PackageLocale } from '../common/index.js';
|
|
6
|
-
import { EntityContext, EntityHidingLevel, EntityKind, InterfacePackageEntityInfo, PackageEntity, PackageEntityDefinition, TextTranslationPackageEntityInfo, TypeEntity, TypeEntityWithMembers } from '../entities/index.js';
|
|
7
|
-
import { PackageEntityMembers } from '../entities/PackageMembers.js';
|
|
6
|
+
import { EntityContext, EntityHidingLevel, EntityKind, InterfacePackageEntityInfo, PackageEntity, PackageEntityDefinition, PackageEntityMembers, TextTranslationPackageEntityInfo, TypeEntity, TypeEntityWithMembers } from '../entities/index.js';
|
|
8
7
|
import { JavaScriptImplementationConfig, PackageName, PlatformKind, ProgramPackage } from '../project/index.js';
|
|
9
8
|
import * as types from '../types/index.js';
|
|
10
9
|
import { SourcePackageLoadedFromDtsEntity, TsPackageEntity } from './Entities.js';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import ts from 'typescript';
|
|
2
|
-
import { PackageEntityMembers } from '../entities/
|
|
3
|
-
import { PackageEntity } from '../entities/index.js';
|
|
2
|
+
import { PackageEntity, PackageEntityMembers } from '../entities/index.js';
|
|
4
3
|
import { ProgramPackage } from '../project/SourcePackage.js';
|
|
5
4
|
import { TsInteropContext } from './TsInteropContext.js';
|
|
6
5
|
import { TsPackageMembersCreationResult } from './TsPackageMembersCreator.js';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import ts from 'typescript';
|
|
2
|
-
import { PackageEntityMembers } from '../entities/
|
|
3
|
-
import { NamedPackageMemberEntity, PackageEntity, TypeEntity } from '../entities/index.js';
|
|
2
|
+
import { NamedPackageMemberEntity, PackageEntity, PackageEntityMembers, TypeEntity } from '../entities/index.js';
|
|
4
3
|
import { SourcePackage } from '../project/index.js';
|
|
5
4
|
import * as tree from '../tree/index.js';
|
|
6
5
|
import { TsInteropContext } from './TsInteropContext.js';
|