@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
|
2
2
|
import * as tree from '../tree/index.js';
|
|
3
3
|
import * as types from '../types/index.js';
|
|
4
4
|
import { Analyzer } from './Analyzer.js';
|
|
@@ -10,19 +10,14 @@ import { Analyzer } from './Analyzer.js';
|
|
|
10
10
|
export declare class Resolver {
|
|
11
11
|
private readonly analyzer;
|
|
12
12
|
private readonly node;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
private readonly diagnostics;
|
|
14
|
+
constructor(analyzer: Analyzer, node: tree.ObjectExpression, diagnostics: DiagnosticAcceptor | undefined);
|
|
15
|
+
resolve(): Meaning;
|
|
15
16
|
private resolveOwnConstructorAccess;
|
|
16
17
|
private resolveContextAccess;
|
|
17
18
|
private invalidContextDiagnostic;
|
|
18
19
|
private findContainingConstructor;
|
|
19
20
|
}
|
|
20
|
-
export declare class ResolutionResult {
|
|
21
|
-
readonly meaning: Meaning;
|
|
22
|
-
readonly diagnostics?: readonly Diagnostic[] | undefined;
|
|
23
|
-
constructor(meaning: Meaning, diagnostics?: readonly Diagnostic[] | undefined);
|
|
24
|
-
static unresolved(diagnostics?: readonly Diagnostic[]): ResolutionResult;
|
|
25
|
-
}
|
|
26
21
|
export type Meaning = Meaning_ownConstructorAccess | Meaning_objectAccess | Meaning_unresolved;
|
|
27
22
|
declare class Meaning_ownConstructorAccess {
|
|
28
23
|
/**
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
import { Diagnostic } from '../diagnostic/Diagnostic.js';
|
|
2
|
-
import { PackageEntityMembers } from '../entities/
|
|
3
|
-
import {
|
|
2
|
+
import { PackageEntityMembers } from '../entities/index.js';
|
|
3
|
+
import { ProgramOrTextTranslationPackage } from '../project/SourcePackage.js';
|
|
4
4
|
import { Analyzer } from './Analyzer.js';
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class PackageMemberConflictsValidator {
|
|
6
6
|
private readonly analyzer;
|
|
7
7
|
private readonly members;
|
|
8
8
|
private readonly diagnostics;
|
|
9
9
|
constructor(analyzer: Analyzer, members: PackageEntityMembers);
|
|
10
10
|
validate(): readonly Diagnostic[];
|
|
11
|
+
private validateNameConflicts;
|
|
12
|
+
private validateTextConflicts;
|
|
11
13
|
private validateFunctionNameConflicts;
|
|
12
14
|
private validateTypeNameConflicts;
|
|
13
15
|
private createAndAddNameConflictDiagnosticsForAllEntities;
|
|
16
|
+
private createAndAddTextConflictDiagnosticsForAllEntities;
|
|
14
17
|
private shouldReportConflictWithMemberBasedOnHiding;
|
|
15
18
|
private reportNameConflictDiagnostic;
|
|
19
|
+
private reportTextConflictDiagnostic;
|
|
16
20
|
private getDiagnosticLocation;
|
|
17
21
|
}
|
|
18
22
|
export declare class SourcePackageMemberConflictsValidator {
|
|
19
23
|
private readonly analyzer;
|
|
20
24
|
private readonly package_;
|
|
21
|
-
constructor(analyzer: Analyzer, package_:
|
|
25
|
+
constructor(analyzer: Analyzer, package_: ProgramOrTextTranslationPackage);
|
|
22
26
|
validate(): readonly Diagnostic[];
|
|
23
27
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PackageEntity } from '../entities/index.js';
|
|
2
|
+
import { TextTranslationPackage } from '../project/index.js';
|
|
3
|
+
export declare class ResolvedTextTranslationPackage {
|
|
4
|
+
readonly sourcePackage: TextTranslationPackage;
|
|
5
|
+
readonly entity: PackageEntity;
|
|
6
|
+
readonly targetPackage: PackageEntity;
|
|
7
|
+
constructor(sourcePackage: TextTranslationPackage, entity: PackageEntity, targetPackage: PackageEntity);
|
|
8
|
+
isPrimary(): boolean;
|
|
9
|
+
}
|
|
@@ -23,6 +23,10 @@ export interface SourcePackageDependencyGraphNode {
|
|
|
23
23
|
* Информация о подключаемых пакетах.
|
|
24
24
|
*/
|
|
25
25
|
readonly links: readonly SourcePackageDependencyGraphLink[];
|
|
26
|
+
/**
|
|
27
|
+
* Пакеты перевода текстов на разные языки, для которых подключаемый пакет является целевым (источником текстов).
|
|
28
|
+
*/
|
|
29
|
+
readonly textTranslationPackages: readonly SourcePackageDependencyGraphNode[];
|
|
26
30
|
}
|
|
27
31
|
export interface SourcePackageDependencyGraphLink {
|
|
28
32
|
/**
|
|
@@ -20,6 +20,7 @@ export declare class SubstitutedFunction_entity implements ISubstitutedFunction
|
|
|
20
20
|
getParameters(): readonly AccessedFunctionParameter[];
|
|
21
21
|
getReturnType(): types.Type;
|
|
22
22
|
isAsync(): boolean;
|
|
23
|
+
equals(other: SubstitutedFunction, considerLocale?: boolean): boolean;
|
|
23
24
|
}
|
|
24
25
|
export declare class SubstitutedFunction_typeMember implements ISubstitutedFunction {
|
|
25
26
|
readonly method: types.Method;
|
|
@@ -37,6 +38,7 @@ export declare class SubstitutedFunction_typeMember implements ISubstitutedFunct
|
|
|
37
38
|
getParameters(): readonly AccessedFunctionParameter[];
|
|
38
39
|
getReturnType(): types.Type;
|
|
39
40
|
isAsync(): boolean;
|
|
41
|
+
equals(other: SubstitutedFunction, considerLocale?: boolean): boolean;
|
|
40
42
|
}
|
|
41
43
|
interface ISubstitutedFunction {
|
|
42
44
|
getEntity(): NamedFunctionEntity;
|
|
@@ -47,5 +49,6 @@ interface ISubstitutedFunction {
|
|
|
47
49
|
getParameters(): readonly AccessedFunctionParameter[];
|
|
48
50
|
getReturnType(): types.Type;
|
|
49
51
|
isAsync(): boolean;
|
|
52
|
+
equals(other: SubstitutedFunction, considerLocale: boolean): boolean;
|
|
50
53
|
}
|
|
51
54
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
|
2
2
|
import { NamedTypeEntity, PackageAliasEntity } from '../entities/index.js';
|
|
3
3
|
import { Tag } from '../tree/index.js';
|
|
4
4
|
import * as types from '../types/index.js';
|
|
@@ -9,9 +9,10 @@ import { EntityOrPackageNameTreeNode } from './Utils.js';
|
|
|
9
9
|
export declare class Resolver {
|
|
10
10
|
private readonly analyzer;
|
|
11
11
|
private readonly node;
|
|
12
|
+
private readonly diagnostics;
|
|
12
13
|
private readonly semanticContext_;
|
|
13
14
|
private get semanticContext();
|
|
14
|
-
constructor(analyzer: Analyzer, node: Tag);
|
|
15
|
+
constructor(analyzer: Analyzer, node: Tag, diagnostics: DiagnosticAcceptor | undefined);
|
|
15
16
|
resolve(): ResolutionResult;
|
|
16
17
|
private resolveNameInScope;
|
|
17
18
|
private resolveNameInPackage;
|
|
@@ -21,9 +22,8 @@ export declare class Resolver {
|
|
|
21
22
|
export declare class ResolutionResult {
|
|
22
23
|
readonly meaning: Meaning;
|
|
23
24
|
readonly resolvedQualifiers: readonly ResolvedQualifier[];
|
|
24
|
-
readonly diagnostics?: readonly Diagnostic[];
|
|
25
25
|
readonly ambiguousDeclarations?: readonly EntityOrPackageNameTreeNode[];
|
|
26
|
-
constructor(meaning: Meaning, resolvedQualifiers: readonly ResolvedQualifier[],
|
|
26
|
+
constructor(meaning: Meaning, resolvedQualifiers: readonly ResolvedQualifier[], ambiguousDeclarations?: readonly EntityOrPackageNameTreeNode[]);
|
|
27
27
|
}
|
|
28
28
|
export type Meaning = Meaning_tagType | Meaning_tagFunction | Meaning_unresolved;
|
|
29
29
|
declare class Meaning_tagType {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
|
2
2
|
import { BinaryOperatorKind } from '../entities/OperatorKind.js';
|
|
3
3
|
import * as tree from '../tree/index.js';
|
|
4
4
|
import * as types from '../types/index.js';
|
|
@@ -26,7 +26,8 @@ export declare class UserDefinableBinaryOperatorResolver {
|
|
|
26
26
|
private readonly right;
|
|
27
27
|
private readonly operatorKind;
|
|
28
28
|
private readonly operatorNodeForDiagnostic;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
private readonly diagnostics;
|
|
30
|
+
constructor(analyzer: Analyzer, left: tree.Expression, right: tree.Expression, operatorKind: BinaryOperatorKind, operatorNodeForDiagnostic: tree.Node, diagnostics: DiagnosticAcceptor | undefined);
|
|
31
|
+
resolve(): types.Operator | undefined;
|
|
31
32
|
private chooseSuitableOperators;
|
|
32
33
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
|
2
2
|
import * as tree from '../tree/index.js';
|
|
3
3
|
import * as types from '../types/index.js';
|
|
4
4
|
import { Analyzer } from './index.js';
|
|
@@ -16,7 +16,8 @@ import { Analyzer } from './index.js';
|
|
|
16
16
|
export declare class UserDefinableUnaryOperatorResolver {
|
|
17
17
|
private readonly analyzer;
|
|
18
18
|
private readonly node;
|
|
19
|
+
private readonly diagnostics;
|
|
19
20
|
private get operatorKind();
|
|
20
|
-
constructor(analyzer: Analyzer, node: tree.PrefixUnaryExpression);
|
|
21
|
-
resolve():
|
|
21
|
+
constructor(analyzer: Analyzer, node: tree.PrefixUnaryExpression, diagnostics: DiagnosticAcceptor | undefined);
|
|
22
|
+
resolve(): types.Operator | undefined;
|
|
22
23
|
}
|
|
@@ -15,6 +15,7 @@ export declare function findTag(tagTypeEntity: TypeEntity, tags: readonly Tag[])
|
|
|
15
15
|
export declare function findTag(tagFunctionEntity: FunctionEntity, tags: readonly Tag[]): TagFunction | undefined;
|
|
16
16
|
export declare function findTag(tagEntity: TypeEntity | FunctionEntity, tags: readonly Tag[]): TagType | TagFunction | undefined;
|
|
17
17
|
export declare function getRequiredTypeParameterCount(typeParameters: readonly TypeParameterEntity[]): number;
|
|
18
|
+
export declare function flattenPackageImportDirectiveList(list: tree.PackageImportDirectiveList): Iterable<tree.PackageImport>;
|
|
18
19
|
export declare function flattenPackageMemberDeclarationList(list: tree.PackageMemberDeclarationList): Iterable<Exclude<tree.PackageMemberDeclaration, tree.PackageMemberGroupDeclaration>>;
|
|
19
20
|
export declare function flattenTypeMemberDeclarationList(list: tree.TypeMemberDeclarationList): Iterable<Exclude<tree.TypeMemberDeclaration, tree.TypeMemberGroupDeclaration>>;
|
|
20
21
|
export declare function isComputedVariableEntity(entity: VariableEntity): boolean;
|
|
@@ -37,7 +37,7 @@ export declare abstract class SemanticContextBase {
|
|
|
37
37
|
getOperators(noInstanceMembers?: boolean): readonly types.Operator[];
|
|
38
38
|
getOperatorsByKind(kind: OperatorKind, noInstanceMembers?: boolean): readonly types.Operator[];
|
|
39
39
|
getTypeExtensionsByType(type: TypeEntity): readonly TypeExtensionEntity[];
|
|
40
|
-
|
|
40
|
+
getTextTranslationEntityByTextKey(key: TextKey): readonly TextTranslationEntity[];
|
|
41
41
|
private semanticContexts;
|
|
42
42
|
private getSourceFileContext;
|
|
43
43
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Name } from '../../common/index.js';
|
|
2
|
+
import { DiagnosticAcceptor } from '../../diagnostic/Diagnostic.js';
|
|
2
3
|
import { IEntityHidingMatcher } from '../../entities/EntityHiding.js';
|
|
3
4
|
import { PackageEntity, TextTranslationEntity, TypeEntity, TypeExtensionEntity } from '../../entities/index.js';
|
|
4
5
|
import { SourceFile } from '../../project/SourceFile.js';
|
|
@@ -15,14 +16,16 @@ export declare class SourceFileSemanticContext extends SemanticContextBase {
|
|
|
15
16
|
protected asContext: SemanticContext;
|
|
16
17
|
private readonly analyzer;
|
|
17
18
|
private readonly sourceFile;
|
|
18
|
-
private readonly sourceFileMembers;
|
|
19
19
|
private readonly containingPackageMemberLookup;
|
|
20
20
|
private readonly importedPackageMemberLookups;
|
|
21
|
+
private readonly packageAliases;
|
|
22
|
+
private readonly packageAliasesByNameKey_;
|
|
21
23
|
private readonly packageNameSegments;
|
|
22
|
-
private readonly
|
|
24
|
+
private readonly packageNameSegmentsByNameKey_;
|
|
23
25
|
private readonly diagnosticArgumentFactory;
|
|
24
26
|
private readonly primaryTextTranslationPackage_;
|
|
25
|
-
private get
|
|
27
|
+
private get packageAliasesByNameKey();
|
|
28
|
+
private get packageNameSegmentsByNameKey();
|
|
26
29
|
private get primaryTextTranslationPackage();
|
|
27
30
|
constructor(analyzer: Analyzer, node: tree.SourceFile);
|
|
28
31
|
getContainingSubprogram(): SubprogramInfo | undefined;
|
|
@@ -37,7 +40,8 @@ export declare class SourceFileSemanticContext extends SemanticContextBase {
|
|
|
37
40
|
getOwnNamedDeclarations(_noInstanceMembers?: boolean, hidingMatcher?: IEntityHidingMatcher): NamedDeclaration[];
|
|
38
41
|
getOwnNamedDeclarationsByName(name: Name, _noInstanceMembers?: boolean, hidingMatcher?: IEntityHidingMatcher): readonly NamedDeclaration[];
|
|
39
42
|
getOwnTypeExtensionsByType(type: TypeEntity, hidingMatcher?: IEntityHidingMatcher): TypeExtensionEntity[];
|
|
40
|
-
|
|
43
|
+
getTextTranslationEntityByTextKey(key: TextKey): readonly TextTranslationEntity[];
|
|
44
|
+
validateNameConflicts(diagnostics: DiagnosticAcceptor): void;
|
|
41
45
|
private convertPackageMemberToNamedDeclaration;
|
|
42
46
|
private convertPackageAliasToTypeOrContainerWithTypes;
|
|
43
47
|
private convertPackageMemberToTypeOrContainerWithTypes;
|
package/build/types/api/Api.d.ts
CHANGED
|
@@ -6,21 +6,20 @@ export type { Meaning as AutotypeCallExpressionMeaning } from '../analysis/Autot
|
|
|
6
6
|
export type { Meaning as BaseExpressionMeaning } from '../analysis/BaseExpressionMeaning.js';
|
|
7
7
|
export type { Meaning as CallExpressionMeaning } from '../analysis/CallExpressionMeaning.js';
|
|
8
8
|
export type { Meaning as DereferenceExpressionMeaning } from '../analysis/DereferenceExpressionMeaning.js';
|
|
9
|
-
export * from '../analysis/SourceFileAnalyzer.js';
|
|
10
9
|
export * from '../analysis/FindModifier.js';
|
|
11
|
-
export type { Meaning as IdentifierExpressionMeaning
|
|
10
|
+
export type { Meaning as IdentifierExpressionMeaning } from '../analysis/IdentifierExpressionMeaning.js';
|
|
12
11
|
export * from '../analysis/ImportedPackageNameTree.js';
|
|
13
12
|
export type { Meaning as IndexedAccessExpressionMeaning } from '../analysis/IndexedAccessExpressionMeaning.js';
|
|
14
|
-
export type { Meaning as MemberAccessExpressionMeaning
|
|
13
|
+
export type { Meaning as MemberAccessExpressionMeaning } from '../analysis/MemberAccessExpressionMeaning.js';
|
|
15
14
|
export * from '../analysis/NodeTypeUtils.js';
|
|
16
15
|
export type { Meaning as ObjectExpressionMeaning } from '../analysis/ObjectExpressionMeaning.js';
|
|
17
16
|
export * from '../analysis/PackageMemberLookup.js';
|
|
18
17
|
export * as semanticContext from '../analysis/semantic-context/index.js';
|
|
19
|
-
export * from '../analysis/
|
|
18
|
+
export * from '../analysis/SourceFileAnalyzer.js';
|
|
20
19
|
export * from '../analysis/SourcePackageDependencyGraph.js';
|
|
21
20
|
export * from '../analysis/SubstitutedFunction.js';
|
|
22
|
-
export type { Meaning as TagMeaning } from '../analysis/TagMeaning.js';
|
|
23
21
|
export * from '../analysis/Tag.js';
|
|
22
|
+
export type { Meaning as TagMeaning } from '../analysis/TagMeaning.js';
|
|
24
23
|
export * from '../analysis/Translation.js';
|
|
25
24
|
export * from '../analysis/TypeMemberLookup.js';
|
|
26
25
|
export * from '../analysis/Utils.js';
|
|
@@ -4,12 +4,14 @@ export declare class ArrayUtils {
|
|
|
4
4
|
*
|
|
5
5
|
* Работает быстрее, чем `array.splice(index, 1)`, и не выделяет память для массива удалённых элементов.
|
|
6
6
|
*/
|
|
7
|
-
static removeElement<T>(array: T[], index: number): void;
|
|
7
|
+
static removeElement<T>(array: T[], index: number, count?: number): void;
|
|
8
8
|
static pushElementIfUniqueComparingWithEquals<T extends WithEqualsMethod<T>>(array: T[] | undefined, element: T): boolean;
|
|
9
9
|
static pushElementsIfUniqueComparingWithEquals<T extends WithEqualsMethod<T>>(array: T[] | undefined, elements: readonly T[]): void;
|
|
10
10
|
static count<T>(array: readonly T[], cb: (v: T) => boolean): number;
|
|
11
11
|
static compareWithEqualsIgnoringOrder<T extends WithEqualsMethod<T>>(array1: readonly T[], array2: readonly T[]): boolean;
|
|
12
12
|
static compareWithComparatorIgnoringOrder<T1, T2>(array1: readonly T1[], array2: readonly T2[], comparator: (e1: T1, e2: T2) => boolean): boolean;
|
|
13
|
+
static compareWithEquals<T extends WithEqualsMethod<T>>(array1: readonly T[], array2: readonly T[]): boolean;
|
|
14
|
+
static compareWithComparator<T1, T2>(array1: readonly T1[], array2: readonly T2[], comparator: (e1: T1, e2: T2) => boolean): boolean;
|
|
13
15
|
}
|
|
14
16
|
export type WithEqualsMethod<T> = {
|
|
15
17
|
equals(t: T): boolean;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export interface Displayable {
|
|
2
2
|
getDisplayText(): string;
|
|
3
3
|
}
|
|
4
|
+
export type DisplayableOrPrimitive = Displayable | string | number | boolean;
|
|
5
|
+
export declare namespace DisplayableOrPrimitive {
|
|
6
|
+
function getDisplayText(value: DisplayableOrPrimitive): string;
|
|
7
|
+
}
|
|
4
8
|
export declare class DisplayableArray implements Displayable {
|
|
5
9
|
private readonly array;
|
|
6
10
|
private readonly separator;
|
|
7
11
|
constructor(array: readonly DisplayableOrPrimitive[], separator: string);
|
|
8
12
|
getDisplayText(): string;
|
|
9
13
|
}
|
|
10
|
-
export type DisplayableOrPrimitive = Displayable | string | number | boolean;
|
|
11
|
-
export declare namespace DisplayableOrPrimitive {
|
|
12
|
-
function getDisplayText(value: DisplayableOrPrimitive): string;
|
|
13
|
-
}
|
|
@@ -3,4 +3,4 @@ import { DisplayableOrPrimitive } from './Displayable.js';
|
|
|
3
3
|
* @example
|
|
4
4
|
* "Сообщение: {0} Экранирование: \{0}", ["Привет!"] -> "Сообщение: Привет! Экранирование: {0}"
|
|
5
5
|
*/
|
|
6
|
-
export declare function formatString(text: string,
|
|
6
|
+
export declare function formatString(text: string, formatArguments?: readonly DisplayableOrPrimitive[]): string;
|
|
@@ -6,9 +6,12 @@ export * from './CancellationToken.js';
|
|
|
6
6
|
export * from './Constants.js';
|
|
7
7
|
export * from './Debug.js';
|
|
8
8
|
export * from './Displayable.js';
|
|
9
|
+
export * from './ErrorHandlingStrategy.js';
|
|
9
10
|
export * from './FormatString.js';
|
|
11
|
+
export * from './HelperPhrases.js';
|
|
10
12
|
export * from './Interner.js';
|
|
11
13
|
export * from './JavaScriptIdentifier.js';
|
|
14
|
+
export * from './L10nConfig.js';
|
|
12
15
|
export * from './Lazy.js';
|
|
13
16
|
export * from './LocalizationHelper.js';
|
|
14
17
|
export * from './Logger.js';
|