@artel/artc 0.6.25281 → 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 +286 -201
- package/build/{chunk-7OXU5662.js → chunk-3DN3M64Y.js} +3 -3
- package/build/{chunk-NVHCHE3R.js → chunk-DURHSZYF.js} +3 -3
- package/build/{chunk-TIWNEKIS.js → chunk-VVFLEWSA.js} +2957 -3104
- package/build/types/analysis/AccessedFunction.d.ts +4 -0
- package/build/types/analysis/Analyzer.d.ts +27 -35
- 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/PackageMemberConflictsValidator.d.ts +1 -1
- package/build/types/analysis/SourceFileAnalyzer.d.ts +1 -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/SourceFileSemanticContext.d.ts +7 -3
- 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/{PackageMembers.d.ts → PackageEntityMembers.d.ts} +1 -1
- package/build/types/entities/index.d.ts +1 -1
- package/build/types/entities/interfaces/PackageEntity.d.ts +1 -2
- 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/SourceVariableEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +2 -3
- 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/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/SourceFileMembers.d.ts +0 -29
|
@@ -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;
|
|
@@ -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;
|
|
@@ -38,6 +41,7 @@ export declare class SourceFileSemanticContext extends SemanticContextBase {
|
|
|
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';
|