@artel/artc 0.6.25264 → 0.6.25265
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 +8 -10
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +317 -337
- package/build/{chunk-WTJNZUBE.js → chunk-7MWYN6O7.js} +2419 -1586
- package/build/{chunk-26UG42AZ.js → chunk-H4KRG6OZ.js} +2 -2
- package/build/{chunk-3V2UPAG3.js → chunk-ZL6MDCED.js} +1 -1
- package/build/types/analysis/AnalyzedTextTranslationPackage.d.ts +21 -0
- package/build/types/analysis/Analyzer.d.ts +15 -9
- package/build/types/analysis/DiagnosticCollector.d.ts +2 -0
- package/build/types/analysis/control-flow/NarrowableReference.d.ts +3 -3
- package/build/types/analysis/semantic-context/SemanticContext.d.ts +2 -3
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +11 -1
- package/build/types/analysis/semantic-context/SemanticContextBuilder.d.ts +10 -10
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +7 -7
- package/build/types/analysis/semantic-context/SpecialLocalDeclarationsBuilder.d.ts +1 -0
- package/build/types/analysis/semantic-context/SubprogramBodyAndParametersSemanticContext.d.ts +34 -12
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +9 -0
- package/build/types/common/Query.d.ts +1 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +1 -0
- package/build/types/emitter/EmitPhaseName.d.ts +3 -0
- package/build/types/emitter/Emitter.d.ts +1 -2
- package/build/types/emitter/Entities.d.ts +5 -0
- package/build/types/emitter/GeneralLowering.d.ts +1 -2
- package/build/types/emitter/IrBuilder.d.ts +1 -1
- package/build/types/emitter/IrFactory.d.ts +12 -0
- package/build/types/emitter/ir/Nodes.d.ts +205 -199
- package/build/types/entities/PackageEntity.d.ts +14 -3
- package/build/types/entities/StructuredTypeEntity.d.ts +1 -0
- package/build/types/entities/TextTranslationEntity.d.ts +45 -0
- package/build/types/entities/VariableEntity.d.ts +7 -16
- package/build/types/entities/index.d.ts +4 -4
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +3 -2
- package/build/types/parser/TokenKind.d.ts +56 -55
- package/build/types/parser/UnescapeText.d.ts +1 -0
- package/build/types/project/SourcePackage.d.ts +7 -3
- package/build/types/project/configuration/ConfigurationConverter.d.ts +3 -0
- package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +3 -0
- package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +3 -0
- package/build/types/services/DisplayService.d.ts +1 -1
- package/build/types/services/NodeSemanticInfo.d.ts +8 -2
- package/build/types/tree/NodeKind.d.ts +21 -20
- package/build/types/tree/Nodes.d.ts +45 -18
- package/build/types/tree/Token.d.ts +4 -1
- package/build/types/ts-interop/Entities.d.ts +5 -3
- package/build/types/ts-interop/TsInteropContext.d.ts +3 -2
- package/package.json +1 -1
- package/build/types/analysis/semantic-context/TranslationTextTemplateSemanticContext.d.ts +0 -13
- package/build/types/entities/LocalizableTextEntity.d.ts +0 -80
|
@@ -13,13 +13,14 @@ export interface PackageEntity extends IEntity {
|
|
|
13
13
|
getLocale(): PackageLocale;
|
|
14
14
|
getDialect(): PackageDialect;
|
|
15
15
|
getMembers(): PackageEntityMembers;
|
|
16
|
-
|
|
16
|
+
getInterfacePackageInfo(): InterfacePackageEntityInfo | undefined;
|
|
17
17
|
getImplementedInterfacePackage(): PackageEntity | undefined;
|
|
18
18
|
getSupportedPlatforms(): readonly PlatformKind[];
|
|
19
19
|
getDefinition(): PackageEntityDefinition;
|
|
20
20
|
getTranslation(): Translation | undefined;
|
|
21
21
|
getOriginalEntity(): PackageEntity;
|
|
22
22
|
getTags(): readonly Tag[];
|
|
23
|
+
getTextTranslationPackageInfo(): TextTranslationPackageEntityInfo | undefined;
|
|
23
24
|
}
|
|
24
25
|
export type PackageEntityDefinition = {
|
|
25
26
|
kind: DefinitionKind.Source;
|
|
@@ -45,19 +46,25 @@ export declare namespace InterfacePackageEntityInfo {
|
|
|
45
46
|
constructor(assemblyName: string);
|
|
46
47
|
}
|
|
47
48
|
}
|
|
49
|
+
export declare class TextTranslationPackageEntityInfo {
|
|
50
|
+
readonly translationLocale: PackageLocale;
|
|
51
|
+
readonly targetPackage: PackageEntity | undefined;
|
|
52
|
+
constructor(translationLocale: PackageLocale, targetPackage: PackageEntity | undefined);
|
|
53
|
+
}
|
|
48
54
|
export declare class SourcePackageEntity implements PackageEntity {
|
|
49
55
|
private readonly analyzer;
|
|
50
56
|
private readonly package_;
|
|
51
57
|
readonly kind = EntityKind.Package;
|
|
52
58
|
private readonly members;
|
|
53
|
-
private readonly
|
|
59
|
+
private readonly interfaceInfo;
|
|
54
60
|
private readonly implementedInterfacePackage;
|
|
61
|
+
private readonly textTranslationInfo;
|
|
55
62
|
constructor(analyzer: Analyzer, package_: SourcePackage);
|
|
56
63
|
getName(): PackageName;
|
|
57
64
|
getLocale(): PackageLocale;
|
|
58
65
|
getDialect(): PackageDialect;
|
|
59
66
|
getMembers(): PackageEntityMembers;
|
|
60
|
-
|
|
67
|
+
getInterfacePackageInfo(): InterfacePackageEntityInfo | undefined;
|
|
61
68
|
getImplementedInterfacePackage(): PackageEntity | undefined;
|
|
62
69
|
getSupportedPlatforms(): readonly PlatformKind[];
|
|
63
70
|
getContainingPackage(): PackageEntity;
|
|
@@ -65,4 +72,8 @@ export declare class SourcePackageEntity implements PackageEntity {
|
|
|
65
72
|
getTranslation(): Translation | undefined;
|
|
66
73
|
getOriginalEntity(): PackageEntity;
|
|
67
74
|
getTags(): readonly Tag[];
|
|
75
|
+
getTextTranslationPackageInfo(): TextTranslationPackageEntityInfo | undefined;
|
|
76
|
+
private createPackageMembers;
|
|
77
|
+
private createInterfacePackageInfo;
|
|
78
|
+
private createTextTranslationInfo;
|
|
68
79
|
}
|
|
@@ -177,6 +177,7 @@ export declare abstract class SourceStructuredTypeDeclarationData {
|
|
|
177
177
|
getBaseObjectType(): BaseObjectType;
|
|
178
178
|
getBaseAspectTypes(): BaseAspectTypes;
|
|
179
179
|
private getBaseTypes;
|
|
180
|
+
private validateBaseTypeListAndCreateBaseTypes;
|
|
180
181
|
}
|
|
181
182
|
export declare class SourcePackageStructuredTypeDeclarationData extends SourceStructuredTypeDeclarationData {
|
|
182
183
|
protected readonly entity: PackageStructuredTypeEntity;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Analyzer } from '../analysis/index.js';
|
|
2
|
+
import { Tag } from '../analysis/Tags.js';
|
|
3
|
+
import { Translation } from '../analysis/Translation.js';
|
|
4
|
+
import { PackageDialect, PackageLocale } from '../common/index.js';
|
|
5
|
+
import * as tree from '../tree/index.js';
|
|
6
|
+
import { IEntity } from './IEntity.js';
|
|
7
|
+
import { DefinitionKind, EntityKind, PackageEntity, ParameterEntity } from './index.js';
|
|
8
|
+
export type TextTranslationEntityKey = string | number;
|
|
9
|
+
export interface TextTranslationEntity extends IEntity {
|
|
10
|
+
readonly kind: EntityKind.TextTranslation;
|
|
11
|
+
isTextTemplate(): boolean;
|
|
12
|
+
getKey(): TextTranslationEntityKey;
|
|
13
|
+
getText(): string;
|
|
14
|
+
getTextFragments(): readonly string[];
|
|
15
|
+
getComment(): string | undefined;
|
|
16
|
+
getParameters(): readonly ParameterEntity[];
|
|
17
|
+
getDefinition(): TextTranslationEntityDefinition;
|
|
18
|
+
}
|
|
19
|
+
export type TextTranslationEntityDefinition = {
|
|
20
|
+
kind: DefinitionKind.Source;
|
|
21
|
+
node: tree.TextTranslationSource;
|
|
22
|
+
};
|
|
23
|
+
export declare class TextTranslationDeclarationEntity implements TextTranslationEntity {
|
|
24
|
+
private readonly analyzer;
|
|
25
|
+
private readonly node;
|
|
26
|
+
readonly kind = EntityKind.TextTranslation;
|
|
27
|
+
private readonly key;
|
|
28
|
+
private readonly text;
|
|
29
|
+
private readonly textFragments;
|
|
30
|
+
private readonly parameters;
|
|
31
|
+
private readonly comment;
|
|
32
|
+
constructor(analyzer: Analyzer, node: tree.TextTranslationSource);
|
|
33
|
+
isTextTemplate(): boolean;
|
|
34
|
+
getKey(): TextTranslationEntityKey;
|
|
35
|
+
getText(): string;
|
|
36
|
+
getTextFragments(): readonly string[];
|
|
37
|
+
getParameters(): readonly ParameterEntity[];
|
|
38
|
+
getComment(): string | undefined;
|
|
39
|
+
getContainingPackage(): PackageEntity;
|
|
40
|
+
getDefinition(): TextTranslationEntityDefinition;
|
|
41
|
+
getTags(): readonly Tag[];
|
|
42
|
+
getTranslation(): Translation | undefined;
|
|
43
|
+
getLocale(): PackageLocale;
|
|
44
|
+
getDialect(): PackageDialect;
|
|
45
|
+
}
|
|
@@ -8,7 +8,7 @@ import * as types from '../types/index.js';
|
|
|
8
8
|
import { IEntity } from './IEntity.js';
|
|
9
9
|
import type { IndexerEntity, PackageEntity, TypeWithMembersOrExtensionEntity } from './index.js';
|
|
10
10
|
import { ConstructorEntity, DefinitionKind, DestructorEntity, EntityHidingLevel, EntityKind, FunctionEntity, FunctionTypeEntity, GetterEntity, OperatorEntity, SetterEntity } from './index.js';
|
|
11
|
-
export type VariableEntity = PackageVariableEntity | FieldEntity | ParameterEntity |
|
|
11
|
+
export type VariableEntity = PackageVariableEntity | FieldEntity | ParameterEntity | LocalVariableEntity;
|
|
12
12
|
export interface PackageVariableEntity extends IVariableEntity {
|
|
13
13
|
readonly subkind: 'package';
|
|
14
14
|
getContainingPackage(): PackageEntity;
|
|
@@ -35,12 +35,6 @@ export interface ParameterEntity extends IVariableEntity {
|
|
|
35
35
|
getTranslation(): Translation | undefined;
|
|
36
36
|
getOriginalEntity(): ParameterEntity;
|
|
37
37
|
}
|
|
38
|
-
export interface TextTemplateParameterEntity extends IVariableEntity {
|
|
39
|
-
readonly subkind: 'text-template-parameter';
|
|
40
|
-
getContainer(): PackageEntity;
|
|
41
|
-
getTranslation(): Translation | undefined;
|
|
42
|
-
getOriginalEntity(): TextTemplateParameterEntity;
|
|
43
|
-
}
|
|
44
38
|
export interface LocalVariableEntity extends IVariableEntity {
|
|
45
39
|
readonly subkind: 'local';
|
|
46
40
|
getLocalVariableKind(): LocalVariableKind;
|
|
@@ -84,7 +78,7 @@ export type MultiSourceVariableEntityDefinition = {
|
|
|
84
78
|
kind: 'multi';
|
|
85
79
|
nodes: ReadonlyArray<tree.PackageVariableGetterDeclaration | tree.PackageVariableSetterDeclaration | tree.FieldGetterDeclaration | tree.FieldSetterDeclaration | tree.ParameterDeclaration>;
|
|
86
80
|
};
|
|
87
|
-
export type SpecialVariableEntityInfo = ResultSpecialVariableEntityInfo | ValueSpecialVariableEntityInfo | BackingSpecialVariableEntityInfo | ImplicitFunctionBlockParameterSpecialVariableEntityInfo
|
|
81
|
+
export type SpecialVariableEntityInfo = ResultSpecialVariableEntityInfo | ValueSpecialVariableEntityInfo | BackingSpecialVariableEntityInfo | ImplicitFunctionBlockParameterSpecialVariableEntityInfo;
|
|
88
82
|
export declare class ResultSpecialVariableEntityInfo {
|
|
89
83
|
readonly subprogramNode: SubprogramDeclarationOrLiteral;
|
|
90
84
|
readonly kind = "result";
|
|
@@ -106,11 +100,6 @@ export declare class ImplicitFunctionBlockParameterSpecialVariableEntityInfo {
|
|
|
106
100
|
readonly kind = "implicit-function-block-parameter";
|
|
107
101
|
constructor(targetTypeParameter: types.Parameter, functionBlockLiteral: tree.FunctionBlockLiteral);
|
|
108
102
|
}
|
|
109
|
-
export declare class TextTemplateFunctionTypeParameterSpecialVariableEntityInfo {
|
|
110
|
-
readonly textTemplateParameter: TextTemplateParameterEntity;
|
|
111
|
-
readonly kind = "text-template-function-type-parameter";
|
|
112
|
-
constructor(textTemplateParameter: TextTemplateParameterEntity);
|
|
113
|
-
}
|
|
114
103
|
export declare class PackageVariableDeclarationEntity implements PackageVariableEntity {
|
|
115
104
|
private readonly analyzer;
|
|
116
105
|
private readonly node;
|
|
@@ -437,6 +426,7 @@ export declare class FunctionLiteralParameterDeclarationEntity implements Parame
|
|
|
437
426
|
readonly subkind = "parameter";
|
|
438
427
|
private readonly parameterIndex;
|
|
439
428
|
private readonly name;
|
|
429
|
+
private readonly type;
|
|
440
430
|
constructor(analyzer: Analyzer, node: tree.ParameterDeclaration, functionLiteral: tree.FunctionLiteral);
|
|
441
431
|
getName(): Name;
|
|
442
432
|
getType(): types.Type;
|
|
@@ -573,13 +563,14 @@ export declare class IntrinsicLocalVariableEntity implements LocalVariableEntity
|
|
|
573
563
|
getDialect(): PackageDialect;
|
|
574
564
|
getOriginalEntity(): LocalVariableEntity;
|
|
575
565
|
}
|
|
576
|
-
export declare class TranslationTextTemplateParameterEntity implements
|
|
566
|
+
export declare class TranslationTextTemplateParameterEntity implements ParameterEntity {
|
|
577
567
|
private readonly analyzer;
|
|
578
568
|
private readonly node;
|
|
579
569
|
readonly kind = EntityKind.Variable;
|
|
580
|
-
readonly subkind = "
|
|
570
|
+
readonly subkind = "parameter";
|
|
581
571
|
private readonly name;
|
|
582
572
|
constructor(analyzer: Analyzer, node: tree.TranslationTextTemplateParameter);
|
|
573
|
+
getContainingEntity(): EntityContainingParameter;
|
|
583
574
|
getName(): Name;
|
|
584
575
|
getContainer(): PackageEntity;
|
|
585
576
|
getContainingPackage(): PackageEntity;
|
|
@@ -596,6 +587,6 @@ export declare class TranslationTextTemplateParameterEntity implements TextTempl
|
|
|
596
587
|
getTranslation(): Translation | undefined;
|
|
597
588
|
getLocale(): PackageLocale;
|
|
598
589
|
getDialect(): PackageDialect;
|
|
599
|
-
getOriginalEntity():
|
|
590
|
+
getOriginalEntity(): ParameterEntity;
|
|
600
591
|
}
|
|
601
592
|
export {};
|
|
@@ -11,7 +11,7 @@ import { FunctionEntity, MethodEntity, NestedFunctionEntity, PackageFunctionEnti
|
|
|
11
11
|
import { FunctionTypeEntity, PackageFunctionTypeEntity } from './FunctionTypeEntity.js';
|
|
12
12
|
import { GetterEntity } from './GetterEntity.js';
|
|
13
13
|
import { IndexerEntity } from './IndexerEntity.js';
|
|
14
|
-
import {
|
|
14
|
+
import { TextTranslationEntity } from './TextTranslationEntity.js';
|
|
15
15
|
import { OperatorEntity } from './OperatorEntity.js';
|
|
16
16
|
import { PackageAliasEntity } from './PackageAliasEntity.js';
|
|
17
17
|
import { PackageEntity } from './PackageEntity.js';
|
|
@@ -35,7 +35,7 @@ export * from './FunctionEntity.js';
|
|
|
35
35
|
export * from './FunctionTypeEntity.js';
|
|
36
36
|
export * from './GetterEntity.js';
|
|
37
37
|
export * from './IndexerEntity.js';
|
|
38
|
-
export * from './
|
|
38
|
+
export * from './TextTranslationEntity.js';
|
|
39
39
|
export * from './OperatorEntity.js';
|
|
40
40
|
export * from './OperatorKind.js';
|
|
41
41
|
export * from './PackageAliasEntity.js';
|
|
@@ -67,9 +67,9 @@ export declare const enum EntityKind {
|
|
|
67
67
|
PackageAlias = 10,
|
|
68
68
|
TypeExtension = 11,
|
|
69
69
|
Package = 12,
|
|
70
|
-
|
|
70
|
+
TextTranslation = 13
|
|
71
71
|
}
|
|
72
|
-
export type Entity = PackageEntity | VariableEntity | VariantTypeEntity | GetterEntity | SetterEntity | FunctionEntity | TypeParameterEntity | OperatorEntity | IndexerEntity | DereferenceOperatorEntity | ConstructorEntity | DestructorEntity | FunctionTypeEntity | StructuredTypeEntity | PackageAliasEntity | AliasTypeEntity | TypeExtensionEntity |
|
|
72
|
+
export type Entity = PackageEntity | VariableEntity | VariantTypeEntity | GetterEntity | SetterEntity | FunctionEntity | TypeParameterEntity | OperatorEntity | IndexerEntity | DereferenceOperatorEntity | ConstructorEntity | DestructorEntity | FunctionTypeEntity | StructuredTypeEntity | PackageAliasEntity | AliasTypeEntity | TypeExtensionEntity | TextTranslationEntity;
|
|
73
73
|
export type PackageTypeEntity = PackageFunctionTypeEntity | PackageStructuredTypeEntity | PackageVariantTypeEntity | AliasTypeEntity;
|
|
74
74
|
export declare function isPackageTypeEntity(entity: TypeEntity): entity is PackageTypeEntity;
|
|
75
75
|
export type NamedTypeEntity = PackageFunctionTypeEntity | PackageStructuredTypeEntity | PackageVariantTypeEntity | AliasTypeEntity | TypeParameterEntity;
|
|
@@ -5,7 +5,7 @@ import { PackageLocale } from '../../common/PackageLocale.js';
|
|
|
5
5
|
import { PackageName, PlatformKind } from '../../project/SourcePackage.js';
|
|
6
6
|
import { EntityLocalizationContext } from '../EntityLocalizationContext.js';
|
|
7
7
|
import { EntityKind } from '../index.js';
|
|
8
|
-
import type { PackageEntity } from '../PackageEntity.js';
|
|
8
|
+
import type { PackageEntity, TextTranslationPackageEntityInfo } from '../PackageEntity.js';
|
|
9
9
|
import { InterfacePackageEntityInfo, PackageEntityDefinition } from '../PackageEntity.js';
|
|
10
10
|
import { PackageEntityMembers } from '../PackageMembers.js';
|
|
11
11
|
export declare class TranslatedPackageEntity implements PackageEntity {
|
|
@@ -20,7 +20,7 @@ export declare class TranslatedPackageEntity implements PackageEntity {
|
|
|
20
20
|
getLocale(): PackageLocale;
|
|
21
21
|
getDialect(): PackageDialect;
|
|
22
22
|
getMembers(): PackageEntityMembers;
|
|
23
|
-
|
|
23
|
+
getInterfacePackageInfo(): InterfacePackageEntityInfo | undefined;
|
|
24
24
|
getImplementedInterfacePackage(): PackageEntity | undefined;
|
|
25
25
|
getSupportedPlatforms(): readonly PlatformKind[];
|
|
26
26
|
getDefinition(): PackageEntityDefinition;
|
|
@@ -28,4 +28,5 @@ export declare class TranslatedPackageEntity implements PackageEntity {
|
|
|
28
28
|
getTranslation(): Translation | undefined;
|
|
29
29
|
getOriginalEntity(): PackageEntity;
|
|
30
30
|
getTags(): readonly Tag[];
|
|
31
|
+
getTextTranslationPackageInfo(): TextTranslationPackageEntityInfo | undefined;
|
|
31
32
|
}
|
|
@@ -15,59 +15,60 @@ export declare enum TokenKind {
|
|
|
15
15
|
TextTemplateTail = 13,
|
|
16
16
|
LocalizableTextLiteral = 14,
|
|
17
17
|
LocalizableTextTemplateHead = 15,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
18
|
+
LocalizableTextTemplateTail = 16,
|
|
19
|
+
Identifier = 17,
|
|
20
|
+
QuotedIdentifier = 18,
|
|
21
|
+
Ampersand = 19,
|
|
22
|
+
AmpersandAmpersand = 20,
|
|
23
|
+
AmpersandEquals = 21,
|
|
24
|
+
Asterisk = 22,
|
|
25
|
+
AsteriskAsterisk = 23,
|
|
26
|
+
AsteriskEquals = 24,
|
|
27
|
+
BackQuote = 25,
|
|
28
|
+
Bar = 26,
|
|
29
|
+
BarBar = 27,
|
|
30
|
+
Caret = 28,
|
|
31
|
+
RightBrace = 29,
|
|
32
|
+
RightParenthesis = 30,
|
|
33
|
+
RightSquareBracket = 31,
|
|
34
|
+
Colon = 32,
|
|
35
|
+
Comma = 33,
|
|
36
|
+
CommercialAt = 34,
|
|
37
|
+
Dot = 35,
|
|
38
|
+
DoublePeriod = 36,
|
|
39
|
+
Ellipsis = 37,
|
|
40
|
+
EqualsEquals = 38,
|
|
41
|
+
EqualsRightAngle = 39,
|
|
42
|
+
Exclamation = 40,
|
|
43
|
+
ExclamationEquals = 41,
|
|
44
|
+
RightAngle = 42,
|
|
45
|
+
RightAngleEquals = 43,
|
|
46
|
+
HashSign = 44,
|
|
47
|
+
LeftAngle = 45,
|
|
48
|
+
LeftAngleEquals = 46,
|
|
49
|
+
LeftAngleMinus = 47,
|
|
50
|
+
Minus = 48,
|
|
51
|
+
MinusMinus = 49,
|
|
52
|
+
MinusEquals = 50,
|
|
53
|
+
MinusRightAngle = 51,
|
|
54
|
+
LeftBrace = 52,
|
|
55
|
+
LeftParenthesis = 53,
|
|
56
|
+
LeftSquareBracket = 54,
|
|
57
|
+
Plus = 55,
|
|
58
|
+
PlusPlus = 56,
|
|
59
|
+
PlusEquals = 57,
|
|
60
|
+
Question = 58,
|
|
61
|
+
QuestionQuestion = 59,
|
|
62
|
+
Semicolon = 60,
|
|
63
|
+
Slash = 61,
|
|
64
|
+
SlashEquals = 62,
|
|
65
|
+
Tilde = 63,
|
|
66
|
+
TildeTilde = 64,
|
|
67
|
+
Underscore = 65,
|
|
68
|
+
Equals = 66,
|
|
69
|
+
Percent = 67,
|
|
70
|
+
PercentPercent = 68,
|
|
71
|
+
BackSlash = 69,
|
|
72
|
+
BackSlashEquals = 70,
|
|
73
|
+
BackSlashBackSlash = 71
|
|
73
74
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare function withoutQuotes(text: string): string;
|
|
2
2
|
export declare function withoutTemplateQuotes(text: string): string;
|
|
3
|
+
export declare function withoutCommentQuotes(text: string): string;
|
|
3
4
|
export declare function unescapeText(text: string, normalizeCRLF?: boolean): string;
|
|
@@ -39,6 +39,7 @@ 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(): PackageLocale;
|
|
42
43
|
constructor(uri: Uri, configuration: TextTranslationPackageConfiguration, sourceFiles: SourceFile[]);
|
|
43
44
|
}
|
|
44
45
|
export type PackageConfiguration = ProgramPackageConfiguration | TranslationPackageConfiguration | TextTranslationPackageConfiguration;
|
|
@@ -48,7 +49,7 @@ export declare class TranslationPackageConfiguration {
|
|
|
48
49
|
readonly translationLocale: PackageLocale;
|
|
49
50
|
readonly locale: PackageLocale;
|
|
50
51
|
readonly dialect: PackageDialect;
|
|
51
|
-
|
|
52
|
+
readonly name: PackageName;
|
|
52
53
|
constructor(targetPackageName: PackageName, translatedName: PackageName, translationLocale: PackageLocale, locale: PackageLocale, dialect?: PackageDialect);
|
|
53
54
|
}
|
|
54
55
|
export declare class TextTranslationPackageConfiguration {
|
|
@@ -56,8 +57,11 @@ export declare class TextTranslationPackageConfiguration {
|
|
|
56
57
|
readonly translationLocale: PackageLocale;
|
|
57
58
|
readonly locale: PackageLocale;
|
|
58
59
|
readonly dialect: PackageDialect;
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
readonly version?: string | undefined;
|
|
61
|
+
readonly packageImportLocales: readonly PackageImportLocaleConfig[];
|
|
62
|
+
readonly automaticallyImportedPackages?: readonly PackageName[] | undefined;
|
|
63
|
+
readonly name: PackageName;
|
|
64
|
+
constructor(targetPackageName: PackageName, translationLocale: PackageLocale, locale: PackageLocale, dialect?: PackageDialect, version?: string | undefined, packageImportLocales?: readonly PackageImportLocaleConfig[], automaticallyImportedPackages?: readonly PackageName[] | undefined);
|
|
61
65
|
}
|
|
62
66
|
export declare class ProgramPackageConfiguration {
|
|
63
67
|
readonly name: PackageName;
|
|
@@ -10,6 +10,9 @@ export declare class ConfigurationConverter {
|
|
|
10
10
|
static convertPackageGroupConfiguration(configuration: origin.PackageGroup): PackageGroupConfiguration;
|
|
11
11
|
static convertTranslationsConfiguration(configuration: origin.Translations, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): TranslationPackageConfiguration;
|
|
12
12
|
static convertTextTranslationsConfiguration(configuration: origin.TextTranslations, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): TextTranslationPackageConfiguration;
|
|
13
|
+
private static convertTargetPlatform;
|
|
14
|
+
private static convertRequiredPackages;
|
|
15
|
+
private static convertPackageImportLanguages;
|
|
13
16
|
private static convertJavaScriptImplementation;
|
|
14
17
|
private static convertLanguage;
|
|
15
18
|
private static convertDialect;
|
|
@@ -30,6 +30,9 @@ export interface TextTranslations {
|
|
|
30
30
|
translationLanguage: Language;
|
|
31
31
|
language?: Language;
|
|
32
32
|
dialect?: Dialect;
|
|
33
|
+
version?: string;
|
|
34
|
+
packageImportLanguages?: PackageImportLanguage[];
|
|
35
|
+
automaticallyImportedPackages?: string[];
|
|
33
36
|
}
|
|
34
37
|
export declare enum Language {
|
|
35
38
|
Russian = "russian",
|
|
@@ -30,6 +30,9 @@ export interface ПереводыТекстов {
|
|
|
30
30
|
языкПеревода: Язык;
|
|
31
31
|
язык?: Язык;
|
|
32
32
|
диалект?: Диалект;
|
|
33
|
+
версия?: string;
|
|
34
|
+
языкиПакетовПриПодключении?: ЯзыкПодключенияПакета[];
|
|
35
|
+
автоматическиПодключаемыеПакеты?: string[];
|
|
33
36
|
}
|
|
34
37
|
export declare enum Язык {
|
|
35
38
|
Русский = "\u0440\u0443\u0441\u0441\u043A\u0438\u0439",
|
|
@@ -45,7 +45,7 @@ export declare class DisplayService {
|
|
|
45
45
|
displayGetterEntity(entity: e.GetterEntity): string;
|
|
46
46
|
displaySetterEntity(entity: e.SetterEntity): string;
|
|
47
47
|
displayTypeExtensionEntity(entity: e.TypeExtensionEntity): string;
|
|
48
|
-
displayLocalizableTextEntity(entity: e.
|
|
48
|
+
displayLocalizableTextEntity(entity: e.TextTranslationEntity): string;
|
|
49
49
|
displayEntity(entity: e.Entity): string;
|
|
50
50
|
displayTypeEntity(entity: e.TypeEntity): string;
|
|
51
51
|
displayTypeMember(member: types.TypeMember): string;
|
|
@@ -2,7 +2,7 @@ import { AccessedFunction } from '../analysis/AccessedFunction.js';
|
|
|
2
2
|
import { MatchResultParameter } from '../analysis/ArgumentToParameterMatchResult.js';
|
|
3
3
|
import { PackageNameTreeNode } from '../analysis/ImportedPackageNameTree.js';
|
|
4
4
|
import { Analyzer } from '../analysis/index.js';
|
|
5
|
-
import { IndexedElementAccessorDeclaration } from '../analysis/NodeTypeUtils.js';
|
|
5
|
+
import { IndexedElementAccessorDeclaration, RegularOrBlockFunctionLiteral } from '../analysis/NodeTypeUtils.js';
|
|
6
6
|
import { Translation } from '../analysis/Translation.js';
|
|
7
7
|
import { AccessKind, ReadonlyNonEmptyArray } from '../common/index.js';
|
|
8
8
|
import { AliasTypeEntity, Entity, FunctionEntity, FunctionTypeEntity, PackageEntity, StructuredTypeEntity, TypeParameterEntity, VariableEntity, VariantTypeEntity } from '../entities/index.js';
|
|
@@ -11,6 +11,7 @@ import * as types from '../types/index.js';
|
|
|
11
11
|
import { TokenOrKeyword } from './TreeUtils.js';
|
|
12
12
|
export declare class NodeSemanticInfoService {
|
|
13
13
|
static ofTokenOrKeyword(analyzer: Analyzer, tokenOrKeyword: TokenOrKeyword, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
14
|
+
static ofRegularOrBlockFunctionLiteral(analyzer: Analyzer, node: RegularOrBlockFunctionLiteral): NodeSemanticInfo | undefined;
|
|
14
15
|
static ofDefaultMatchExpression(analyzer: Analyzer, node: tree.DefaultMatchExpression): NodeSemanticInfo | undefined;
|
|
15
16
|
static ofNonKeywordIdentifier(analyzer: Analyzer, node: tree.Identifier, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
16
17
|
static ofMember(analyzer: Analyzer, node: tree.MemberAccessExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
@@ -41,7 +42,7 @@ export type NodeSemanticInfoServiceOptions = {
|
|
|
41
42
|
readonly preferredTargetOfExplicitConstructorCall: 'type-declaration' | 'constructor-declaration';
|
|
42
43
|
readonly includeBetterReferenceTargets: boolean;
|
|
43
44
|
};
|
|
44
|
-
export type NodeSemanticInfo = DefinitionNodeSemanticInfo | ReferenceNodeSemanticInfo | DefaultSwitchMatchNodeSemanticInfo;
|
|
45
|
+
export type NodeSemanticInfo = DefinitionNodeSemanticInfo | ReferenceNodeSemanticInfo | DefaultSwitchMatchNodeSemanticInfo | RegularOrBlockFunctionLiteralNodeSemanticInfo;
|
|
45
46
|
export declare class DefinitionNodeSemanticInfo {
|
|
46
47
|
readonly entity: Entity;
|
|
47
48
|
readonly kind = "definition";
|
|
@@ -140,4 +141,9 @@ export declare class DefaultSwitchMatchNodeSemanticInfo {
|
|
|
140
141
|
readonly kind = "default-switch-match";
|
|
141
142
|
constructor(type: types.Type);
|
|
142
143
|
}
|
|
144
|
+
export declare class RegularOrBlockFunctionLiteralNodeSemanticInfo {
|
|
145
|
+
readonly type: types.Type;
|
|
146
|
+
readonly kind = "regular-or-block-function-literal";
|
|
147
|
+
constructor(type: types.Type);
|
|
148
|
+
}
|
|
143
149
|
export {};
|
|
@@ -142,24 +142,25 @@ export declare enum NodeKind {
|
|
|
142
142
|
TypeMemberTranslationList = 140,
|
|
143
143
|
TypeTranslationDeclaration = 141,
|
|
144
144
|
TextTranslationDeclaration = 142,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
145
|
+
TextTranslationFunctionDeclaration = 143,
|
|
146
|
+
TranslationTextLiteral = 144,
|
|
147
|
+
TranslationTextTemplate = 145,
|
|
148
|
+
TranslationTextTemplateSpanList = 146,
|
|
149
|
+
TranslationTextTemplateSpan = 147,
|
|
150
|
+
TranslationTextTemplateParameter = 148,
|
|
151
|
+
VariantDeclaration = 149,
|
|
152
|
+
TypeParameterDeclaration = 150,
|
|
153
|
+
ParameterDeclaration = 151,
|
|
154
|
+
Argument = 152,
|
|
155
|
+
TagList = 153,
|
|
156
|
+
Tag = 154,
|
|
157
|
+
ModifierList = 155,
|
|
158
|
+
Modifier = 156,
|
|
159
|
+
ParameterClause = 157,
|
|
160
|
+
ParameterList = 158,
|
|
161
|
+
TypeArgumentClause = 159,
|
|
162
|
+
TypeArgumentList = 160,
|
|
163
|
+
TypeParameterClause = 161,
|
|
164
|
+
TypeParameterList = 162,
|
|
165
|
+
TypeAnnotation = 163
|
|
165
166
|
}
|