@artel/artc 0.6.25280 → 0.6.25282
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 +16 -10
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +315 -219
- package/build/{chunk-YIFO3FBO.js → chunk-3DN3M64Y.js} +3 -3
- package/build/{chunk-W3UL6UED.js → chunk-DURHSZYF.js} +5 -4
- package/build/{chunk-LLI2DYRX.js → chunk-VVFLEWSA.js} +3236 -3331
- package/build/types/analysis/AccessedFunction.d.ts +4 -0
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +3 -3
- package/build/types/analysis/Analyzer.d.ts +35 -48
- package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +5 -5
- package/build/types/analysis/BaseExpressionMeaning.d.ts +8 -18
- package/build/types/analysis/CallExpressionMeaning.d.ts +4 -9
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +3 -4
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +8 -16
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +4 -8
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +8 -16
- package/build/types/analysis/NamedTypeResolver.d.ts +4 -4
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +4 -4
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -1
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +4 -9
- package/build/types/analysis/{PackageMemberNameConflictsValidator.d.ts → PackageMemberConflictsValidator.d.ts} +8 -4
- package/build/types/analysis/ResolvedTextTranslationPackage.d.ts +9 -0
- package/build/types/analysis/SourceFileAnalyzer.d.ts +1 -0
- package/build/types/analysis/SourcePackageDependencyGraph.d.ts +4 -0
- package/build/types/analysis/SubstitutedFunction.d.ts +3 -0
- package/build/types/analysis/TagMeaning.d.ts +4 -4
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +4 -3
- package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +4 -3
- package/build/types/analysis/Utils.d.ts +1 -0
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +1 -1
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +8 -4
- package/build/types/api/Api.d.ts +4 -5
- package/build/types/common/ArrayUtils.d.ts +3 -1
- package/build/types/common/Displayable.d.ts +4 -4
- package/build/types/common/FormatString.d.ts +1 -1
- package/build/types/common/index.d.ts +3 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +238 -238
- package/build/types/diagnostic/DiagnosticData.d.ts +2 -2
- package/build/types/emitter/IrBuilder.d.ts +3 -1
- package/build/types/emitter/IrFactory.d.ts +2 -2
- package/build/types/emitter/Transformer.d.ts +3 -3
- package/build/types/emitter/ir/Nodes.d.ts +6 -6
- package/build/types/emitter/ir/types.d.ts +2 -2
- package/build/types/entities/Entity.d.ts +1 -1
- package/build/types/entities/EntityLocalizationContext.d.ts +2 -1
- package/build/types/entities/PackageEntityMembers.d.ts +22 -0
- package/build/types/entities/index.d.ts +1 -1
- package/build/types/entities/interfaces/PackageEntity.d.ts +1 -2
- package/build/types/entities/interfaces/TextTranslationEntity.d.ts +2 -1
- package/build/types/entities/interfaces/VariableEntity.d.ts +1 -1
- package/build/types/entities/source/SourcePackageEntity.d.ts +1 -2
- package/build/types/entities/source/SourceTextTranslationEntity.d.ts +2 -1
- package/build/types/entities/source/SourceTypeExtensionEntity.d.ts +4 -0
- package/build/types/entities/source/SourceVariableEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +2 -3
- package/build/types/project/PackageContent.d.ts +1 -1
- package/build/types/project/SourcePackage.d.ts +3 -1
- package/build/types/project/configuration/ConfigurationConverter.d.ts +1 -1
- package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +4 -4
- package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +4 -4
- package/build/types/services/AddBlockToScriptService.d.ts +17 -0
- package/build/types/services/CustomRequests.d.ts +11 -2
- package/build/types/services/DisplayService.d.ts +1 -2
- package/build/types/services/EvaluatableExpressionService.d.ts +1 -1
- package/build/types/services/LanguageServer.d.ts +3 -1
- package/build/types/services/SourceFileItemsService.d.ts +1 -1
- package/build/types/tree/NodeKind.d.ts +1 -1
- package/build/types/tree/Nodes.d.ts +6 -6
- package/build/types/tree/SyntaxFactory.d.ts +1 -1
- package/build/types/tree/SyntaxToCode.d.ts +1 -1
- package/build/types/tree/Token.d.ts +4 -3
- package/build/types/tree/TokenKind.d.ts +58 -60
- package/build/types/types/AliasType.d.ts +1 -1
- package/build/types/types/FunctionType.d.ts +2 -2
- package/build/types/types/IntersectionType.d.ts +1 -1
- package/build/types/types/ParameterType.d.ts +1 -1
- package/build/types/types/Substitutions.d.ts +1 -1
- package/build/types/types/Type.d.ts +1 -4
- package/build/types/types/TypeMembers.d.ts +8 -8
- package/build/types/types/UnionType.d.ts +1 -1
- package/build/types/types/VariantType.d.ts +1 -1
- package/package.json +1 -1
- package/build/types/analysis/AnalyzedTextTranslationPackage.d.ts +0 -20
- package/build/types/analysis/SourceFileMembers.d.ts +0 -22
- package/build/types/entities/PackageMembers.d.ts +0 -15
|
@@ -59,7 +59,7 @@ export declare namespace TypeWithMembersOrExtensionEntity {
|
|
|
59
59
|
export declare function isTypeWithMembersOrExtensionEntity(entity: Entity): entity is TypeWithMembersOrExtensionEntity;
|
|
60
60
|
export declare function isTypeEntity(entity: Entity): entity is TypeEntity;
|
|
61
61
|
export declare function isNamedTypeEntity(entity: TypeEntity): entity is NamedTypeEntity;
|
|
62
|
-
export type PackageMemberEntity = PackageVariableEntity | PackageFunctionEntity | PackageTypeEntity | TypeExtensionEntity;
|
|
62
|
+
export type PackageMemberEntity = PackageVariableEntity | PackageFunctionEntity | PackageTypeEntity | TypeExtensionEntity | TextTranslationEntity;
|
|
63
63
|
export declare function isPackageMemberEntity(entity: Entity): entity is PackageMemberEntity;
|
|
64
64
|
export type NamedPackageMemberEntity = PackageVariableEntity | PackageFunctionEntity | PackageTypeEntity;
|
|
65
65
|
export declare function isNamedPackageMemberEntity(entity: Entity): entity is NamedPackageMemberEntity;
|
|
@@ -37,7 +37,7 @@ export declare class EntityLocalizationContext {
|
|
|
37
37
|
getLocalizedPackageTypeEntity(entity: PackageTypeEntity): PackageTypeEntity;
|
|
38
38
|
getLocalizedTypeEntity(entity: TypeEntity): TypeEntity;
|
|
39
39
|
getLocalizedTypeWithMembersOrExtensionEntity(entity: TypeWithMembersOrExtensionEntity): TypeWithMembersOrExtensionEntity;
|
|
40
|
-
getLocalizedPackageMemberEntity(entity:
|
|
40
|
+
getLocalizedPackageMemberEntity(entity: LocalizablePackageMemberEntity): LocalizablePackageMemberEntity;
|
|
41
41
|
getLocalizedTypeMemberEntity(entity: TypeMemberEntity): TypeMemberEntity;
|
|
42
42
|
getLocalizedEntity(entity: LocalizableEntity): LocalizableEntity;
|
|
43
43
|
getLocalizedEntityForPossiblyNotLocalizableEntity(entity: Entity): Entity;
|
|
@@ -52,3 +52,4 @@ export declare class EntityLocalizationContext {
|
|
|
52
52
|
}
|
|
53
53
|
export type LocalizableEntity = PackageEntity | PackageVariableEntity | FieldEntity | ParameterEntity | PackageVariantTypeEntity | AnonymousVariantTypeEntity | GetterEntity | SetterEntity | PackageFunctionEntity | MethodEntity | TypeParameterEntity | OperatorEntity | IndexerEntity | DereferenceOperatorEntity | ConstructorEntity | DestructorEntity | PackageFunctionTypeEntity | AnonymousFunctionTypeEntity | PackageStructuredTypeEntity | AnonymousStructuredTypeEntity | AliasTypeEntity | TypeExtensionEntity;
|
|
54
54
|
export declare function isLocalizableEntity(entity: Entity): entity is LocalizableEntity;
|
|
55
|
+
export type LocalizablePackageMemberEntity = PackageMemberEntity & LocalizableEntity;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TextKey } from '../analysis/TextIdentity.js';
|
|
2
|
+
import { Name } from '../common/index.js';
|
|
3
|
+
import { NamedPackageMemberEntity, TextTranslationEntity, TypeEntity, TypeExtensionEntity } from './index.js';
|
|
4
|
+
export declare class PackageEntityMembers {
|
|
5
|
+
private readonly namedMembers;
|
|
6
|
+
private readonly typeExtensions;
|
|
7
|
+
private readonly textTranslations;
|
|
8
|
+
private static readonly emptyNamedMembers;
|
|
9
|
+
private static readonly emptyTextTranslations;
|
|
10
|
+
private readonly membersByNameKey_;
|
|
11
|
+
private readonly textTranslationsByTextKey_;
|
|
12
|
+
private get membersByNameKey();
|
|
13
|
+
get textTranslationsByTextKey(): ReadonlyMap<TextKey, readonly TextTranslationEntity[]>;
|
|
14
|
+
constructor(namedMembers: readonly NamedPackageMemberEntity[], typeExtensions: readonly TypeExtensionEntity[], textTranslations: readonly TextTranslationEntity[]);
|
|
15
|
+
getNamedMembers(): readonly NamedPackageMemberEntity[];
|
|
16
|
+
getNamedMembersByName(name: Name): readonly NamedPackageMemberEntity[];
|
|
17
|
+
getTypeExtensions(): readonly TypeExtensionEntity[];
|
|
18
|
+
getTypeExtensionsByType(type: TypeEntity): readonly TypeExtensionEntity[];
|
|
19
|
+
getTextTranslations(): readonly TextTranslationEntity[];
|
|
20
|
+
getTextTranslationsByTextKey(key: TextKey): readonly TextTranslationEntity[];
|
|
21
|
+
getNamedMembersAndTypeExtensions(): Iterable<NamedPackageMemberEntity | TypeExtensionEntity>;
|
|
22
|
+
}
|
|
@@ -9,7 +9,7 @@ export * from './EntityNaming.js';
|
|
|
9
9
|
export * from './interfaces/index.js';
|
|
10
10
|
export * from './intrinsic/index.js';
|
|
11
11
|
export * from './OperatorKind.js';
|
|
12
|
-
export * from './
|
|
12
|
+
export * from './PackageEntityMembers.js';
|
|
13
13
|
export * from './source/index.js';
|
|
14
14
|
export * from './SubstitutionApplicationMode.js';
|
|
15
15
|
export * from './TypeEntity.js';
|
|
@@ -4,8 +4,7 @@ import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
|
4
4
|
import type { JavaScriptImplementationConfig, SourcePackage } from '../../project/index.js';
|
|
5
5
|
import { PackageName, PlatformKind } from '../../project/index.js';
|
|
6
6
|
import { IEntity } from '../IEntity.js';
|
|
7
|
-
import { DefinitionKind, EntityKind } from '../index.js';
|
|
8
|
-
import { PackageEntityMembers } from '../PackageMembers.js';
|
|
7
|
+
import { DefinitionKind, EntityKind, PackageEntityMembers } from '../index.js';
|
|
9
8
|
export interface PackageEntity extends IEntity {
|
|
10
9
|
readonly kind: EntityKind.Package;
|
|
11
10
|
getName(): PackageName;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TextKey } from '../../analysis/TextIdentity.js';
|
|
2
2
|
import * as tree from '../../tree/index.js';
|
|
3
3
|
import { IEntity } from '../IEntity.js';
|
|
4
|
-
import { DefinitionKind, EntityKind, ParameterEntity } from '../index.js';
|
|
4
|
+
import { DefinitionKind, EntityHidingLevel, EntityKind, ParameterEntity } from '../index.js';
|
|
5
5
|
export interface TextTranslationEntity extends IEntity {
|
|
6
6
|
readonly kind: EntityKind.TextTranslation;
|
|
7
7
|
isTextTemplate(): boolean;
|
|
@@ -11,6 +11,7 @@ export interface TextTranslationEntity extends IEntity {
|
|
|
11
11
|
getComment(): string | undefined;
|
|
12
12
|
getParameters(): readonly ParameterEntity[];
|
|
13
13
|
getDefinition(): TextTranslationEntityDefinition;
|
|
14
|
+
isHidden(): EntityHidingLevel | undefined;
|
|
14
15
|
}
|
|
15
16
|
export type TextTranslationEntityDefinition = {
|
|
16
17
|
kind: DefinitionKind.Source;
|
|
@@ -71,7 +71,7 @@ export type VariableEntityDefinition = {
|
|
|
71
71
|
export type SourceVariableEntityDefinition = SingleSourceVariableEntityDefinition | MultiSourceVariableEntityDefinition;
|
|
72
72
|
export type SingleSourceVariableEntityDefinition = {
|
|
73
73
|
kind: 'single';
|
|
74
|
-
node: tree.PackageVariableDeclaration | tree.FieldDeclaration | tree.LocalVariableDeclaration | tree.ForStatementVariableDeclaration | tree.ErrorVariableDeclaration | tree.ParameterDeclaration | tree.
|
|
74
|
+
node: tree.PackageVariableDeclaration | tree.FieldDeclaration | tree.LocalVariableDeclaration | tree.ForStatementVariableDeclaration | tree.ErrorVariableDeclaration | tree.ParameterDeclaration | tree.VariantValueDeclaration | tree.TranslationTextTemplateParameter;
|
|
75
75
|
};
|
|
76
76
|
export type MultiSourceVariableEntityDefinition = {
|
|
77
77
|
kind: 'multi';
|
|
@@ -4,8 +4,7 @@ import { Translation } from '../../analysis/Translation.js';
|
|
|
4
4
|
import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
5
5
|
import type { SourcePackage } from '../../project/index.js';
|
|
6
6
|
import { PackageName, PlatformKind } from '../../project/index.js';
|
|
7
|
-
import { EntityKind, InterfacePackageEntityInfo, PackageEntity, PackageEntityDefinition, TextTranslationPackageEntityInfo } from '../index.js';
|
|
8
|
-
import { PackageEntityMembers } from '../PackageMembers.js';
|
|
7
|
+
import { EntityKind, InterfacePackageEntityInfo, PackageEntity, PackageEntityDefinition, PackageEntityMembers, TextTranslationPackageEntityInfo } from '../index.js';
|
|
9
8
|
export declare class SourcePackageEntity implements PackageEntity {
|
|
10
9
|
private readonly analyzer;
|
|
11
10
|
private readonly package_;
|
|
@@ -4,7 +4,7 @@ import { TextKey } from '../../analysis/TextIdentity.js';
|
|
|
4
4
|
import { Translation } from '../../analysis/Translation.js';
|
|
5
5
|
import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
6
6
|
import * as tree from '../../tree/index.js';
|
|
7
|
-
import { EntityKind, PackageEntity, ParameterEntity, TextTranslationEntity, TextTranslationEntityDefinition } from '../index.js';
|
|
7
|
+
import { EntityHidingLevel, EntityKind, PackageEntity, ParameterEntity, TextTranslationEntity, TextTranslationEntityDefinition } from '../index.js';
|
|
8
8
|
export declare class TextTranslationDeclarationEntity implements TextTranslationEntity {
|
|
9
9
|
private readonly analyzer;
|
|
10
10
|
private readonly node;
|
|
@@ -27,4 +27,5 @@ export declare class TextTranslationDeclarationEntity implements TextTranslation
|
|
|
27
27
|
getTranslation(): Translation | undefined;
|
|
28
28
|
getLocale(): PackageLocale;
|
|
29
29
|
getDialect(): PackageDialect;
|
|
30
|
+
isHidden(): EntityHidingLevel | undefined;
|
|
30
31
|
}
|
|
@@ -11,7 +11,9 @@ export declare class SourceTypeExtensionEntity implements TypeExtensionEntity {
|
|
|
11
11
|
private readonly node;
|
|
12
12
|
private readonly members;
|
|
13
13
|
private readonly hiding;
|
|
14
|
+
private readonly extendedType;
|
|
14
15
|
private modifierFlags_;
|
|
16
|
+
private hasReportedAllDiagnostics;
|
|
15
17
|
private get modifierFlags();
|
|
16
18
|
constructor(analyzer: Analyzer, node: TypeExtensionDeclaration);
|
|
17
19
|
getMembers(): TypeEntityMembers;
|
|
@@ -25,4 +27,6 @@ export declare class SourceTypeExtensionEntity implements TypeExtensionEntity {
|
|
|
25
27
|
getLocale(): PackageLocale;
|
|
26
28
|
getDialect(): PackageDialect;
|
|
27
29
|
getOriginalEntity(): TypeExtensionEntity;
|
|
30
|
+
ensureAllDiagnosticsReported(): void;
|
|
31
|
+
private resolveExtendedType;
|
|
28
32
|
}
|
|
@@ -134,7 +134,7 @@ export declare class ComputedFieldDeclarationEntity implements FieldEntity {
|
|
|
134
134
|
getOriginalEntity(): FieldEntity;
|
|
135
135
|
ensureAllDiagnosticsReported(): void;
|
|
136
136
|
}
|
|
137
|
-
export declare class
|
|
137
|
+
export declare class VariantValueDeclarationEntity implements FieldEntity {
|
|
138
138
|
readonly kind = EntityKind.Variable;
|
|
139
139
|
readonly subkind = "field";
|
|
140
140
|
private readonly analyzer;
|
|
@@ -143,7 +143,7 @@ export declare class VariantDeclarationEntity implements FieldEntity {
|
|
|
143
143
|
private readonly name;
|
|
144
144
|
private readonly type;
|
|
145
145
|
private containingEntity;
|
|
146
|
-
constructor(analyzer: Analyzer, node: tree.
|
|
146
|
+
constructor(analyzer: Analyzer, node: tree.VariantValueDeclaration);
|
|
147
147
|
getName(): Name;
|
|
148
148
|
getType(): types.Type;
|
|
149
149
|
getDefinition(): VariableEntityDefinition;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { AnalyzedTranslationPackage } from '../../analysis/AnalyzedTranslationPackage.js';
|
|
2
2
|
import { Tag } from '../../analysis/Tag.js';
|
|
3
3
|
import { Translation } from '../../analysis/Translation.js';
|
|
4
|
-
import { PackageDialect } from '../../common/
|
|
5
|
-
import { PackageLocale } from '../../common/PackageLocale.js';
|
|
4
|
+
import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
6
5
|
import { PackageName, PlatformKind } from '../../project/SourcePackage.js';
|
|
7
6
|
import { EntityKind } from '../index.js';
|
|
8
7
|
import type { PackageEntity, TextTranslationPackageEntityInfo } from '../interfaces/PackageEntity.js';
|
|
9
8
|
import { InterfacePackageEntityInfo, PackageEntityDefinition } from '../interfaces/PackageEntity.js';
|
|
10
|
-
import { PackageEntityMembers } from '../
|
|
9
|
+
import { PackageEntityMembers } from '../PackageEntityMembers.js';
|
|
11
10
|
export declare class TranslatedPackageEntity implements PackageEntity {
|
|
12
11
|
readonly kind = EntityKind.Package;
|
|
13
12
|
private readonly originalEntity;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as configEn from './configuration/types/PackageConfigurationEn.js';
|
|
2
2
|
import * as configRu from './configuration/types/PackageConfigurationRu.js';
|
|
3
|
-
export type PackageOrTranslationsConfiguration = configEn.Package | configEn.
|
|
3
|
+
export type PackageOrTranslationsConfiguration = configEn.Package | configEn.NameTranslations | configEn.TextTranslations | configRu.Пакет | configRu.ПереводыИмён | configRu.ПереводыТекстов;
|
|
4
4
|
export type PackageConfigurationLocale = 'en' | 'ru';
|
|
5
5
|
export interface PackageContent {
|
|
6
6
|
configuration: PackageOrTranslationsConfiguration;
|
|
@@ -2,6 +2,7 @@ import { Name, PackageDialect, PackageLocale, ReadonlyNonEmptyArray, Uri } from
|
|
|
2
2
|
import { Compilation } from './Compilation.js';
|
|
3
3
|
import { SourceFile } from './SourceFile.js';
|
|
4
4
|
export type SourcePackage = ProgramPackage | TranslationPackage | TextTranslationPackage;
|
|
5
|
+
export type ProgramOrTextTranslationPackage = ProgramPackage | TextTranslationPackage;
|
|
5
6
|
declare abstract class SourcePackageBase {
|
|
6
7
|
readonly uri: Uri;
|
|
7
8
|
readonly name: PackageName;
|
|
@@ -61,10 +62,11 @@ export declare class TextTranslationPackageConfiguration {
|
|
|
61
62
|
readonly locale: PackageLocale;
|
|
62
63
|
readonly dialect: PackageDialect;
|
|
63
64
|
readonly version?: string | undefined;
|
|
65
|
+
readonly targetPlatform: TargetPlatformConfig;
|
|
64
66
|
readonly packageImportLocales: readonly PackageImportLocaleConfig[];
|
|
65
67
|
readonly automaticallyImportedPackages?: readonly PackageName[] | undefined;
|
|
66
68
|
readonly name: PackageName;
|
|
67
|
-
constructor(targetPackageName: PackageName, translationLocale: string, isPrimaryTranslation: boolean | undefined, locale: PackageLocale, dialect?: PackageDialect, version?: string | undefined, packageImportLocales?: readonly PackageImportLocaleConfig[], automaticallyImportedPackages?: readonly PackageName[] | undefined);
|
|
69
|
+
constructor(targetPackageName: PackageName, translationLocale: string, isPrimaryTranslation: boolean | undefined, locale: PackageLocale, dialect?: PackageDialect, version?: string | undefined, targetPlatform?: TargetPlatformConfig, packageImportLocales?: readonly PackageImportLocaleConfig[], automaticallyImportedPackages?: readonly PackageName[] | undefined);
|
|
68
70
|
}
|
|
69
71
|
export declare class ProgramPackageConfiguration {
|
|
70
72
|
readonly name: PackageName;
|
|
@@ -8,7 +8,7 @@ export declare class ConfigurationConverter {
|
|
|
8
8
|
static convert(configurations: readonly origin.Configuration[], packageOrGroupUri?: Uri, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): ConvertedConfiguration;
|
|
9
9
|
static convertPackageConfiguration(configuration: origin.Package, packageOrGroupUri?: Uri, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): ProgramPackageConfiguration;
|
|
10
10
|
static convertPackageGroupConfiguration(configuration: origin.PackageGroup): PackageGroupConfiguration;
|
|
11
|
-
static
|
|
11
|
+
static convertNameTranslationsConfiguration(configuration: origin.NameTranslations, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): TranslationPackageConfiguration;
|
|
12
12
|
static convertTextTranslationsConfiguration(configuration: origin.TextTranslations, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): TextTranslationPackageConfiguration;
|
|
13
13
|
private static convertTargetPlatform;
|
|
14
14
|
private static convertRequiredPackages;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type ConfigurationArray = Configuration[];
|
|
2
|
-
export type Configuration = Package | PackageGroup |
|
|
2
|
+
export type Configuration = Package | PackageGroup | NameTranslations | TextTranslations;
|
|
3
3
|
export interface Package {
|
|
4
4
|
type: 'Package';
|
|
5
5
|
name: string;
|
|
@@ -16,8 +16,8 @@ export interface Package {
|
|
|
16
16
|
export interface PackageGroup {
|
|
17
17
|
type: 'PackageGroup';
|
|
18
18
|
}
|
|
19
|
-
export interface
|
|
20
|
-
type: '
|
|
19
|
+
export interface NameTranslations {
|
|
20
|
+
type: 'NameTranslations';
|
|
21
21
|
originalPackageName: string;
|
|
22
22
|
translatedPackageName: string;
|
|
23
23
|
translationLanguage: Language;
|
|
@@ -26,7 +26,7 @@ export interface Translations {
|
|
|
26
26
|
}
|
|
27
27
|
export interface TextTranslations {
|
|
28
28
|
type: 'TextTranslations';
|
|
29
|
-
|
|
29
|
+
targetPackageName: string;
|
|
30
30
|
translationLanguage: string;
|
|
31
31
|
isPrimaryTranslation?: boolean;
|
|
32
32
|
language?: Language;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type МассивКонфигураций = Конфигурация[];
|
|
2
|
-
export type Конфигурация = Пакет | ГруппаПакетов |
|
|
2
|
+
export type Конфигурация = Пакет | ГруппаПакетов | ПереводыИмён | ПереводыТекстов;
|
|
3
3
|
export interface Пакет {
|
|
4
4
|
тип: 'Пакет';
|
|
5
5
|
имя: string;
|
|
@@ -16,8 +16,8 @@ export interface Пакет {
|
|
|
16
16
|
export interface ГруппаПакетов {
|
|
17
17
|
тип: 'ГруппаПакетов';
|
|
18
18
|
}
|
|
19
|
-
export interface
|
|
20
|
-
тип: '
|
|
19
|
+
export interface ПереводыИмён {
|
|
20
|
+
тип: 'ПереводыИмён';
|
|
21
21
|
имяПакетаИсходное: string;
|
|
22
22
|
имяПакетаПереведённое: string;
|
|
23
23
|
языкПеревода: Язык;
|
|
@@ -26,7 +26,7 @@ export interface Переводы {
|
|
|
26
26
|
}
|
|
27
27
|
export interface ПереводыТекстов {
|
|
28
28
|
тип: 'ПереводыТекстов';
|
|
29
|
-
|
|
29
|
+
имяПереводимогоПакета: string;
|
|
30
30
|
языкПеревода: string;
|
|
31
31
|
этоПервичныйПеревод?: ДаНет;
|
|
32
32
|
язык?: Язык;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SubprogramDeclarationOrLiteral } from '../analysis/NodeTypeUtils.js';
|
|
2
|
+
import { SourceFile } from '../project/index.js';
|
|
3
|
+
import { SourceFileEdit } from './Types.js';
|
|
4
|
+
export declare class AddBlockToScriptService {
|
|
5
|
+
private static readonly indentationStep;
|
|
6
|
+
private static readonly elementParameterName;
|
|
7
|
+
createEditAddingBlock(sourceFile: SourceFile, subprogramDeclaration: SubprogramDeclarationOrLiteral, addedBlockInfo: AddedScriptBlockInfo): SourceFileEdit | undefined;
|
|
8
|
+
private createScriptBlockText;
|
|
9
|
+
private detectNewLine;
|
|
10
|
+
}
|
|
11
|
+
export interface AddedScriptBlockInfo {
|
|
12
|
+
readonly name: string;
|
|
13
|
+
readonly key: string;
|
|
14
|
+
readonly elementProperties: {
|
|
15
|
+
readonly [T in string]: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -12,7 +12,8 @@ export declare const customRequests: {
|
|
|
12
12
|
deleteSourceFile: CustomRequestType<DeleteSourceFileParams, void>;
|
|
13
13
|
getNodeRange: CustomRequestType<GetNodeRangeParams, ls.Range | null>;
|
|
14
14
|
assignField: CustomRequestType<AssignFieldParams, void>;
|
|
15
|
-
|
|
15
|
+
addBlockToScript: CustomRequestType<AddBlockToScriptParams, void>;
|
|
16
|
+
deleteBlocksFromScript: CustomRequestType<DeleteBlocksFromScriptParams, void>;
|
|
16
17
|
};
|
|
17
18
|
export type GetLocalesAvailableForTranslationParams = {
|
|
18
19
|
textDocument: ls.TextDocumentIdentifier;
|
|
@@ -89,7 +90,15 @@ export type AssignFieldParams = {
|
|
|
89
90
|
*/
|
|
90
91
|
lastAssignmentNodeUri?: SyntaxNodeUri;
|
|
91
92
|
};
|
|
92
|
-
export type
|
|
93
|
+
export type AddBlockToScriptParams = {
|
|
93
94
|
functionNodeUri: SyntaxNodeUri;
|
|
95
|
+
name: string;
|
|
96
|
+
key: string;
|
|
97
|
+
elementProperties: {
|
|
98
|
+
[T in string]: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
export type DeleteBlocksFromScriptParams = {
|
|
102
|
+
functionNodeUris: SyntaxNodeUri[];
|
|
94
103
|
};
|
|
95
104
|
export {};
|
|
@@ -2,8 +2,7 @@ import { AccessedFunction } from '../analysis/AccessedFunction.js';
|
|
|
2
2
|
import { PackageNameTreeNode } from '../analysis/ImportedPackageNameTree.js';
|
|
3
3
|
import { SubstitutedFunction } from '../analysis/SubstitutedFunction.js';
|
|
4
4
|
import { Analyzer } from '../analysis/index.js';
|
|
5
|
-
import { HelperPhraseKind } from '../common/
|
|
6
|
-
import { Name, PackageDialect, PackageLocale } from '../common/index.js';
|
|
5
|
+
import { HelperPhraseKind, Name, PackageDialect, PackageLocale } from '../common/index.js';
|
|
7
6
|
import * as e from '../entities/index.js';
|
|
8
7
|
import { NamedEntity, StructuredTypeKind } from '../entities/index.js';
|
|
9
8
|
import { SourceFile } from '../project/index.js';
|
|
@@ -33,6 +33,7 @@ export declare class LanguageServer {
|
|
|
33
33
|
private readonly fileSystemTreeDisplayService;
|
|
34
34
|
private readonly selectionRangeService;
|
|
35
35
|
private readonly assignFieldService;
|
|
36
|
+
private readonly addBlockToScriptService;
|
|
36
37
|
private readonly deleteBlockFromScriptService;
|
|
37
38
|
private readonly codeActionsService;
|
|
38
39
|
constructor(config: LanguageServerConfig);
|
|
@@ -61,7 +62,8 @@ export declare class LanguageServer {
|
|
|
61
62
|
private convertSourceFileItemKind;
|
|
62
63
|
private convertDiagnostic;
|
|
63
64
|
private onAssignField;
|
|
64
|
-
private
|
|
65
|
+
private onAddBlockToScript;
|
|
66
|
+
private onDeleteBlocksFromScript;
|
|
65
67
|
private convertSourceFileEdit;
|
|
66
68
|
private convertSourceFileEditsToWorkspaceEdit;
|
|
67
69
|
private onGetNodeRange;
|
|
@@ -146,7 +146,7 @@ export declare enum NodeKind {
|
|
|
146
146
|
TranslationTextTemplateSpanList = 144,
|
|
147
147
|
TranslationTextTemplateSpan = 145,
|
|
148
148
|
TranslationTextTemplateParameter = 146,
|
|
149
|
-
|
|
149
|
+
VariantValueDeclaration = 147,
|
|
150
150
|
TypeParameterDeclaration = 148,
|
|
151
151
|
ParameterDeclaration = 149,
|
|
152
152
|
Argument = 150,
|
|
@@ -608,7 +608,7 @@ export declare class MissingPackageMemberDeclaration extends BaseNode {
|
|
|
608
608
|
protected get thisAsNode(): Node;
|
|
609
609
|
constructor(tagList: TagList, modifierList: ModifierList, rangeWithTrivia: Range | undefined);
|
|
610
610
|
}
|
|
611
|
-
export type TypeMemberDeclaration = FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration |
|
|
611
|
+
export type TypeMemberDeclaration = FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | VariantValueDeclaration | MethodDeclaration | OperatorDeclaration | ConstructorDeclaration | DestructorDeclaration | IndexedElementGetterDeclaration | IndexedElementSetterDeclaration | DereferencedVariableGetterDeclaration | DereferencedVariableSetterDeclaration | TypeMemberGroupDeclaration | MissingTypeMemberDeclaration;
|
|
612
612
|
export declare class TypeMemberGroupDeclaration extends BaseNode {
|
|
613
613
|
readonly kind = NodeKind.TypeMemberGroupDeclaration;
|
|
614
614
|
readonly children: readonly [
|
|
@@ -918,7 +918,7 @@ export declare class ForStatementVariableDeclaration extends BaseNode {
|
|
|
918
918
|
constructor(name: Identifier, rangeWithTrivia: Range | undefined);
|
|
919
919
|
}
|
|
920
920
|
export type Expression = ArrayLiteral | AsExpression | AssertionExpression | AssumptionExpression | BinaryExpression | FunctionLiteral | FunctionBlockLiteral | CallExpression | IdentifierExpression | AutotypeCallExpression | IndexedAccessExpression | MissingExpression | IsExpression | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextLiteral | LocalizableTextLiteral | TextTemplateLiteral | LocalizableTextTemplateLiteral | GenericSpecializationExpression | DefaultMatchExpression | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression;
|
|
921
|
-
export type ExpressionParent = ArrayLiteralElementList | AsExpression | AssertionExpression | AssumptionExpression | AssignmentStatement | BinaryExpression | Argument | CallExpression | DisposeStatement | ErrorStatement | ImportantStatement | ExpressionStatement | ForStatement | PackageVariableDeclaration | IfStatement | IndexedAccessExpression | IsExpression | LocalVariableDeclaration | MatchExpressionList | ParameterDeclaration | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | LoopStatement | ReturnStatement | TextTemplateSpan | FieldDeclaration | SwitchStatement |
|
|
921
|
+
export type ExpressionParent = ArrayLiteralElementList | AsExpression | AssertionExpression | AssumptionExpression | AssignmentStatement | BinaryExpression | Argument | CallExpression | DisposeStatement | ErrorStatement | ImportantStatement | ExpressionStatement | ForStatement | PackageVariableDeclaration | IfStatement | IndexedAccessExpression | IsExpression | LocalVariableDeclaration | MatchExpressionList | ParameterDeclaration | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | LoopStatement | ReturnStatement | TextTemplateSpan | FieldDeclaration | SwitchStatement | VariantValueDeclaration | WhileStatement | YieldStatement | GenericSpecializationExpression | ElseIfClause | TextTranslationDeclaration | FunctionBlock;
|
|
922
922
|
export type ExpressionListElement = Expression | Comma;
|
|
923
923
|
export declare class ArrayLiteral extends BaseNode {
|
|
924
924
|
readonly kind = NodeKind.ArrayLiteral;
|
|
@@ -1257,7 +1257,7 @@ export declare class TokenExpression extends BaseNode {
|
|
|
1257
1257
|
protected get thisAsNode(): Node;
|
|
1258
1258
|
constructor(token: TokenExpressionToken, rangeWithTrivia: Range | undefined);
|
|
1259
1259
|
}
|
|
1260
|
-
export type TokenExpressionToken = Token<TokenKind.
|
|
1260
|
+
export type TokenExpressionToken = Token<TokenKind.IntegerLiteral> | Token<TokenKind.RealLiteral> | Token<TokenKind.MeasureLiteral>;
|
|
1261
1261
|
export declare class TextLiteral extends BaseNode {
|
|
1262
1262
|
readonly kind = NodeKind.TextLiteral;
|
|
1263
1263
|
readonly children: readonly [
|
|
@@ -2094,8 +2094,8 @@ export declare class TranslationTextTemplateParameter extends BaseNode {
|
|
|
2094
2094
|
protected get thisAsNode(): Node;
|
|
2095
2095
|
constructor(name: Identifier, typeAnnotation: TypeAnnotation | undefined, rangeWithTrivia: Range | undefined);
|
|
2096
2096
|
}
|
|
2097
|
-
export declare class
|
|
2098
|
-
readonly kind = NodeKind.
|
|
2097
|
+
export declare class VariantValueDeclaration extends BaseNode {
|
|
2098
|
+
readonly kind = NodeKind.VariantValueDeclaration;
|
|
2099
2099
|
readonly children: readonly [
|
|
2100
2100
|
TagList,
|
|
2101
2101
|
ModifierList,
|
|
@@ -2308,7 +2308,7 @@ export declare class TypeAnnotation extends BaseNode {
|
|
|
2308
2308
|
protected get thisAsNode(): Node;
|
|
2309
2309
|
constructor(colonToken: Token<TokenKind.Colon>, typeSpecifier: TypeSpecifier, rangeWithTrivia: Range | undefined);
|
|
2310
2310
|
}
|
|
2311
|
-
export type Node = Token | Keyword | SourceFile | PackageMemberDeclarationList | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackageName | NamedTypeSpecifier | UnionTypeSpecifier | IntersectionTypeSpecifier | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | MissingTypeSpecifier | AnonymousFunctionTypeDeclaration | AnonymousStructuredTypeDeclaration | AnonymousVariantTypeDeclaration | PackageAliasTypeDeclaration | AliasTypeDeclarationBody | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageFunctionDeclaration | PackageFunctionTypeDeclaration | FunctionTypeDeclarationBody | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageStructuredTypeDeclaration | StructuredTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | VariantTypeDeclarationBody | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | MissingPackageMemberDeclaration | TypeMemberGroupDeclaration | ConstructorDeclaration | DestructorDeclaration | IndexedElementGetterDeclaration | IndexedElementSetterDeclaration | IndexParameterClause | DereferencedVariableGetterDeclaration | DereferencedVariableSetterDeclaration | MethodDeclaration | OperatorDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | MissingTypeMemberDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration | ForStatementVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | FunctionLiteral | FunctionBlockLiteral | ArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessExpression | MissingExpression | IsExpression | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | LocalizableTextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | TextLiteral | LocalizableTextLiteral | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | AssignmentStatement | StatementList | StatementBlock | FunctionBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatement | TryStatement | CatchClause | ErrorVariableDeclaration | FinallyClause | ErrorStatement | ImportantStatement | ExpressionStatement | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | ElseClause | MissingStatement | NestedFunctionDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList | CaseClause | WhileStatement | YieldStatement | TranslationsDeclaration | TopLevelTranslationList | TranslationParameterList | TranslationParameterClause | ConstructorTranslation | IndexParameterTranslationClause | IndexerTranslation | TranslationTypeParameterList | TranslationTypeParameterClause | PackageFunctionTranslationDeclaration | MethodTranslation | FunctionTypeTranslationDeclaration | QualifiedName | PackageVariableTranslationDeclaration | FieldOrVariantTranslation | TypeMemberTranslationList | TypeTranslationDeclaration | TextTranslationDeclaration | TextTranslationFunctionDeclaration | TranslationTextLiteral | TranslationTextTemplate | TranslationTextTemplateSpanList | TranslationTextTemplateSpan | TranslationTextTemplateParameter |
|
|
2311
|
+
export type Node = Token | Keyword | SourceFile | PackageMemberDeclarationList | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackageName | NamedTypeSpecifier | UnionTypeSpecifier | IntersectionTypeSpecifier | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | MissingTypeSpecifier | AnonymousFunctionTypeDeclaration | AnonymousStructuredTypeDeclaration | AnonymousVariantTypeDeclaration | PackageAliasTypeDeclaration | AliasTypeDeclarationBody | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageFunctionDeclaration | PackageFunctionTypeDeclaration | FunctionTypeDeclarationBody | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageStructuredTypeDeclaration | StructuredTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | VariantTypeDeclarationBody | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | MissingPackageMemberDeclaration | TypeMemberGroupDeclaration | ConstructorDeclaration | DestructorDeclaration | IndexedElementGetterDeclaration | IndexedElementSetterDeclaration | IndexParameterClause | DereferencedVariableGetterDeclaration | DereferencedVariableSetterDeclaration | MethodDeclaration | OperatorDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | MissingTypeMemberDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration | ForStatementVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | FunctionLiteral | FunctionBlockLiteral | ArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessExpression | MissingExpression | IsExpression | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | LocalizableTextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | TextLiteral | LocalizableTextLiteral | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | AssignmentStatement | StatementList | StatementBlock | FunctionBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatement | TryStatement | CatchClause | ErrorVariableDeclaration | FinallyClause | ErrorStatement | ImportantStatement | ExpressionStatement | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | ElseClause | MissingStatement | NestedFunctionDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList | CaseClause | WhileStatement | YieldStatement | TranslationsDeclaration | TopLevelTranslationList | TranslationParameterList | TranslationParameterClause | ConstructorTranslation | IndexParameterTranslationClause | IndexerTranslation | TranslationTypeParameterList | TranslationTypeParameterClause | PackageFunctionTranslationDeclaration | MethodTranslation | FunctionTypeTranslationDeclaration | QualifiedName | PackageVariableTranslationDeclaration | FieldOrVariantTranslation | TypeMemberTranslationList | TypeTranslationDeclaration | TextTranslationDeclaration | TextTranslationFunctionDeclaration | TranslationTextLiteral | TranslationTextTemplate | TranslationTextTemplateSpanList | TranslationTextTemplateSpan | TranslationTextTemplateParameter | VariantValueDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation;
|
|
2312
2312
|
type NodesWithChild<Child, Nodes = Node> = Nodes extends {
|
|
2313
2313
|
children: readonly (infer C)[];
|
|
2314
2314
|
} ? Child extends C ? Nodes : never : never;
|
|
@@ -26,7 +26,7 @@ export declare class SyntaxFactory {
|
|
|
26
26
|
static indexedElementSetterDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], parameters: readonly tree.ParameterDeclaration[], body: tree.FunctionBlock | undefined): tree.IndexedElementSetterDeclaration;
|
|
27
27
|
static typeMemberGroupDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], members: readonly tree.TypeMemberDeclaration[]): tree.TypeMemberGroupDeclaration;
|
|
28
28
|
static typeMemberDeclarationBlock(members: readonly tree.TypeMemberDeclaration[]): tree.TypeMemberDeclarationBlock;
|
|
29
|
-
static
|
|
29
|
+
static variantValueDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], name: string, value?: tree.Expression): tree.VariantValueDeclaration;
|
|
30
30
|
static parameterClause(parameters: readonly tree.ParameterDeclaration[]): tree.ParameterClause;
|
|
31
31
|
static indexParameterClause(indexParameters: readonly tree.ParameterDeclaration[]): tree.IndexParameterClause;
|
|
32
32
|
static namedTypeSpecifier(name: string | readonly string[], typeArguments?: readonly tree.TypeSpecifier[]): tree.NamedTypeSpecifier;
|
|
@@ -48,7 +48,7 @@ export declare class SyntaxToCode {
|
|
|
48
48
|
private writeIndexedElementSetterDeclaration;
|
|
49
49
|
private writeDereferencedVariableGetterDeclaration;
|
|
50
50
|
private writeDereferencedVariableSetterDeclaration;
|
|
51
|
-
private
|
|
51
|
+
private writeVariantValueDeclaration;
|
|
52
52
|
private writeTypeMemberGroupDeclaration;
|
|
53
53
|
private writeTypeParameterClause;
|
|
54
54
|
private writeTypeParameterDeclaration;
|
|
@@ -14,9 +14,10 @@ export declare const enum TokenFlags {
|
|
|
14
14
|
HasBackQuotes = 16,// Имя с любым количеством апострофов: имя`, имя```
|
|
15
15
|
ConflictResolvingParameterName = 32,// Имя с одним апострофом: имя`, выполнить`
|
|
16
16
|
BackingVariableName = 64,// Имя с двумя апострофами: имя``, выполнить``
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
SingleCharText = 128,// Текст из одного символа: "а", "\/", "ю000А"
|
|
18
|
+
StartsWithTilde = 256,// Переводимый текст: ~"текст", ~"текст{
|
|
19
|
+
EndsWithTilde = 512,// Переводимый текст: "текст"~, }текст"~
|
|
20
|
+
LocalizableText = 768
|
|
20
21
|
}
|
|
21
22
|
export declare class Token<TKind extends TokenKind = TokenKind> extends BaseNode {
|
|
22
23
|
readonly kind = NodeKind.Token;
|
|
@@ -4,65 +4,64 @@ export declare enum TokenKind {
|
|
|
4
4
|
IntegerLiteral = 2,
|
|
5
5
|
RealLiteral = 3,
|
|
6
6
|
MeasureLiteral = 4,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
BackslashBackslash = 63
|
|
7
|
+
TextLiteral = 5,
|
|
8
|
+
TextTemplateHead = 6,
|
|
9
|
+
TextTemplatePart = 7,
|
|
10
|
+
TextTemplateTail = 8,
|
|
11
|
+
Identifier = 9,
|
|
12
|
+
Ampersand = 10,
|
|
13
|
+
AmpersandAmpersand = 11,
|
|
14
|
+
AmpersandEquals = 12,
|
|
15
|
+
Asterisk = 13,
|
|
16
|
+
AsteriskAsterisk = 14,
|
|
17
|
+
AsteriskEquals = 15,
|
|
18
|
+
BackQuote = 16,
|
|
19
|
+
Bar = 17,
|
|
20
|
+
BarBar = 18,
|
|
21
|
+
Caret = 19,
|
|
22
|
+
CloseBrace = 20,
|
|
23
|
+
CloseParenthesis = 21,
|
|
24
|
+
CloseSquareBracket = 22,
|
|
25
|
+
Colon = 23,
|
|
26
|
+
Comma = 24,
|
|
27
|
+
CommercialAt = 25,
|
|
28
|
+
Dot = 26,
|
|
29
|
+
DoublePeriod = 27,
|
|
30
|
+
Ellipsis = 28,
|
|
31
|
+
EqualsEquals = 29,
|
|
32
|
+
EqualsGreaterThan = 30,
|
|
33
|
+
Exclamation = 31,
|
|
34
|
+
ExclamationEquals = 32,
|
|
35
|
+
GreaterThan = 33,
|
|
36
|
+
GreaterThanOrEqual = 34,
|
|
37
|
+
HashSign = 35,
|
|
38
|
+
LessThan = 36,
|
|
39
|
+
LessThanOrEqual = 37,
|
|
40
|
+
LessThanMinus = 38,
|
|
41
|
+
Minus = 39,
|
|
42
|
+
MinusMinus = 40,
|
|
43
|
+
MinusEquals = 41,
|
|
44
|
+
MinusGreaterThan = 42,
|
|
45
|
+
OpenBrace = 43,
|
|
46
|
+
OpenParenthesis = 44,
|
|
47
|
+
OpenSquareBracket = 45,
|
|
48
|
+
Plus = 46,
|
|
49
|
+
PlusPlus = 47,
|
|
50
|
+
PlusEquals = 48,
|
|
51
|
+
Question = 49,
|
|
52
|
+
QuestionQuestion = 50,
|
|
53
|
+
Semicolon = 51,
|
|
54
|
+
Slash = 52,
|
|
55
|
+
SlashEquals = 53,
|
|
56
|
+
Tilde = 54,
|
|
57
|
+
TildeTilde = 55,
|
|
58
|
+
Underscore = 56,
|
|
59
|
+
Equals = 57,
|
|
60
|
+
Percent = 58,
|
|
61
|
+
PercentPercent = 59,
|
|
62
|
+
Backslash = 60,
|
|
63
|
+
BackslashEquals = 61,
|
|
64
|
+
BackslashBackslash = 62
|
|
66
65
|
}
|
|
67
66
|
export declare const tokenKindValues: {
|
|
68
67
|
0: string;
|
|
@@ -128,5 +127,4 @@ export declare const tokenKindValues: {
|
|
|
128
127
|
60: string;
|
|
129
128
|
61: string;
|
|
130
129
|
62: string;
|
|
131
|
-
63: string;
|
|
132
130
|
};
|
|
@@ -14,7 +14,7 @@ export declare class AliasType implements IType {
|
|
|
14
14
|
getTypeParameters(): readonly TypeParameterEntity[];
|
|
15
15
|
getSubstitutions(): Substitutions;
|
|
16
16
|
applySubstitutions(substitutions: Substitutions): Type;
|
|
17
|
-
equals(other: Type): boolean;
|
|
17
|
+
equals(other: Type, considerLocale?: boolean): boolean;
|
|
18
18
|
getEntity(): AliasTypeEntity;
|
|
19
19
|
getBaseObjectTypeOrAliasedType(): Type | undefined;
|
|
20
20
|
toString(): string;
|