@artel/artc 0.6.25282 → 0.6.25284
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 +28 -20
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +1836 -1590
- package/build/{chunk-VVFLEWSA.js → chunk-CGOSDN2E.js} +18023 -15286
- package/build/{chunk-DURHSZYF.js → chunk-OBX375YX.js} +1 -1
- package/build/{chunk-3DN3M64Y.js → chunk-ZV3UW5X6.js} +2 -2
- package/build/types/analysis/AccessibilityCheck.d.ts +20 -0
- package/build/types/analysis/Analyzer.d.ts +53 -78
- package/build/types/analysis/BaseMemberConflictsValidator.d.ts +2 -4
- package/build/types/analysis/ConstructorCallResolver.d.ts +3 -4
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +2 -1
- package/build/types/analysis/ModifierValidator.d.ts +17 -15
- package/build/types/analysis/NodeTypeUtils.d.ts +3 -3
- package/build/types/analysis/PackageMemberLookup.d.ts +11 -4
- package/build/types/analysis/ReachabilityChecker.d.ts +27 -0
- package/build/types/analysis/ReductionSourceMemberFinder.d.ts +20 -0
- package/build/types/analysis/ReservedNameDictionary.d.ts +14 -0
- package/build/types/analysis/ResolvedImplementationPackage.d.ts +48 -0
- package/build/types/analysis/SourceFileAnalyzer.d.ts +3 -0
- package/build/types/analysis/TypeArgumentInferrer.d.ts +1 -0
- package/build/types/analysis/TypeMemberLookup.d.ts +36 -22
- package/build/types/analysis/Utils.d.ts +2 -0
- package/build/types/analysis/WellKnownDeclarations.d.ts +11 -7
- package/build/types/analysis/control-flow/GraphBuilder.d.ts +4 -1
- package/build/types/analysis/semantic-context/FieldWithInitializerSemanticContext.d.ts +6 -5
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +8 -7
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +4 -5
- package/build/types/analysis/semantic-context/SemanticContextWithParent.d.ts +2 -0
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +11 -6
- package/build/types/analysis/semantic-context/SubprogramBodyAndParametersSemanticContext.d.ts +5 -5
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +4 -5
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +18 -15
- package/build/types/api/Api.d.ts +1 -1
- package/build/types/common/HelperPhrases.d.ts +2 -1
- package/build/types/common/LocalizationHelper.d.ts +8 -6
- package/build/types/common/index.d.ts +0 -1
- package/build/types/diagnostic/DiagnosticCode.d.ts +154 -131
- package/build/types/emitter/Entities.d.ts +5 -4
- package/build/types/emitter/EntityMap.d.ts +5 -1
- package/build/types/emitter/IrBuilder.d.ts +1 -0
- package/build/types/emitter/ir/Nodes.d.ts +11 -2
- package/build/types/entities/Entity.d.ts +9 -18
- package/build/types/entities/EntityHiding.d.ts +1 -4
- package/build/types/entities/EntityLocalizationContext.d.ts +3 -3
- package/build/types/entities/IEntity.d.ts +2 -1
- package/build/types/entities/OperatorKind.d.ts +6 -3
- package/build/types/entities/TypeEntity.d.ts +7 -6
- package/build/types/entities/index.d.ts +0 -2
- package/build/types/entities/interfaces/AliasTypeEntity.d.ts +1 -6
- package/build/types/entities/interfaces/ConstructorEntity.d.ts +3 -5
- package/build/types/entities/interfaces/DereferenceOperatorEntity.d.ts +2 -5
- package/build/types/entities/interfaces/DestructorEntity.d.ts +4 -5
- package/build/types/entities/interfaces/FunctionEntity.d.ts +3 -8
- package/build/types/entities/interfaces/FunctionTypeEntity.d.ts +0 -8
- package/build/types/entities/interfaces/GetterEntity.d.ts +0 -4
- package/build/types/entities/interfaces/IndexerEntity.d.ts +2 -5
- package/build/types/entities/interfaces/OperatorEntity.d.ts +3 -5
- package/build/types/entities/interfaces/PackageAliasEntity.d.ts +0 -5
- package/build/types/entities/interfaces/PackageEntity.d.ts +1 -9
- package/build/types/entities/interfaces/ReducedTypeEntity.d.ts +99 -0
- package/build/types/entities/interfaces/SetterEntity.d.ts +0 -4
- package/build/types/entities/interfaces/StructuredTypeEntity.d.ts +0 -8
- package/build/types/entities/interfaces/TextTranslationEntity.d.ts +1 -0
- package/build/types/entities/interfaces/TypeExtensionEntity.d.ts +1 -7
- package/build/types/entities/interfaces/TypeParameterEntity.d.ts +2 -4
- package/build/types/entities/interfaces/VariableEntity.d.ts +2 -11
- package/build/types/entities/interfaces/VariantTypeEntity.d.ts +1 -8
- package/build/types/entities/interfaces/index.d.ts +1 -0
- package/build/types/entities/intrinsic/IntrinsicConstructorEntity.d.ts +3 -1
- package/build/types/entities/intrinsic/IntrinsicFunctionEntity.d.ts +2 -1
- package/build/types/entities/intrinsic/IntrinsicFunctionTypeEntity.d.ts +3 -3
- package/build/types/entities/intrinsic/IntrinsicStructuredTypeEntity.d.ts +3 -3
- package/build/types/entities/intrinsic/IntrinsicTypeParameterEntity.d.ts +2 -4
- package/build/types/entities/intrinsic/IntrinsicVariableEntity.d.ts +2 -1
- package/build/types/entities/source/SourceAliasTypeEntity.d.ts +1 -2
- package/build/types/entities/source/SourceConstructorEntity.d.ts +6 -2
- package/build/types/entities/source/SourceDereferenceOperatorEntity.d.ts +3 -1
- package/build/types/entities/source/SourceDestructorEntity.d.ts +6 -1
- package/build/types/entities/source/SourceFunctionEntity.d.ts +5 -1
- package/build/types/entities/source/SourceFunctionTypeEntity.d.ts +1 -3
- package/build/types/entities/source/SourceIndexerEntity.d.ts +3 -1
- package/build/types/entities/source/SourceOperatorEntity.d.ts +5 -1
- package/build/types/entities/source/SourceReducedTypeEntity.d.ts +44 -0
- package/build/types/entities/source/SourceStructuredTypeEntity.d.ts +1 -3
- package/build/types/entities/source/SourceTextTranslationEntity.d.ts +1 -0
- package/build/types/entities/source/SourceTypeExtensionEntity.d.ts +1 -2
- package/build/types/entities/source/SourceTypeParameterEntity.d.ts +1 -2
- package/build/types/entities/source/SourceVariableEntity.d.ts +7 -1
- package/build/types/entities/source/SourceVariantTypeEntity.d.ts +1 -3
- package/build/types/entities/source/index.d.ts +1 -0
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +1 -3
- package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +9 -4
- package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +3 -1
- package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +4 -1
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +3 -1
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +1 -5
- package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +3 -1
- package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +3 -1
- package/build/types/entities/translated/TranslatedReducedTypeEntity.d.ts +59 -0
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +1 -5
- package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +1 -3
- package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +1 -3
- package/build/types/entities/translated/TranslatedVariableEntity.d.ts +3 -1
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +1 -5
- package/build/types/entities/translated/index.d.ts +1 -0
- package/build/types/parser/KeywordDictionary.d.ts +10 -2
- package/build/types/parser/TokenKind.d.ts +46 -44
- package/build/types/project/SourceFile.d.ts +3 -1
- package/build/types/services/CompletionService.d.ts +5 -4
- package/build/types/services/CustomRequests.d.ts +17 -6
- package/build/types/services/DisplayService.d.ts +78 -3
- package/build/types/services/LanguageServer.d.ts +3 -4
- package/build/types/services/ScriptEditingService.d.ts +25 -0
- package/build/types/services/TranslationService.d.ts +1 -1
- package/build/types/services/Types.d.ts +6 -0
- package/build/types/services/source-generation/EntityToSyntax.d.ts +16 -0
- package/build/types/tree/BaseNode.d.ts +56 -2
- package/build/types/tree/KeywordFlags.d.ts +28 -0
- package/build/types/tree/KeywordKind.d.ts +57 -54
- package/build/types/tree/NodeKind.d.ts +142 -140
- package/build/types/tree/Nodes.d.ts +55 -29
- package/build/types/tree/NodesDebug.d.ts +9 -0
- package/build/types/tree/OperatorKind.d.ts +6 -3
- package/build/types/tree/SyntaxFactory.d.ts +33 -29
- package/build/types/tree/SyntaxToCode.d.ts +4 -0
- package/build/types/tree/TokenFlags.d.ts +15 -0
- package/build/types/tree/TokenKind.d.ts +58 -44
- package/build/types/tree/Utils.d.ts +2 -2
- package/build/types/tree/index.d.ts +2 -1
- package/build/types/ts-interop/Entities.d.ts +11 -12
- package/build/types/ts-interop/TsInteropContext.d.ts +1 -2
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +1 -1
- package/build/types/types/AliasType.d.ts +0 -1
- package/build/types/types/FunctionType.d.ts +0 -1
- package/build/types/types/IntersectionType.d.ts +0 -1
- package/build/types/types/ParameterType.d.ts +0 -1
- package/build/types/types/ReducedType.d.ts +24 -0
- package/build/types/types/StructuredType.d.ts +1 -2
- package/build/types/types/SubstitutionStubType.d.ts +21 -0
- package/build/types/types/Type.d.ts +5 -3
- package/build/types/types/TypeFactory.d.ts +4 -2
- package/build/types/types/UnionType.d.ts +0 -1
- package/build/types/types/UnresolvedType.d.ts +0 -1
- package/build/types/types/VariantType.d.ts +0 -1
- package/build/types/types/index.d.ts +3 -1
- package/package.json +1 -1
- package/build/types/analysis/semantic-context/SemanticContextBasedEntityHidingMatcher.d.ts +0 -14
- package/build/types/entities/BaseEntityHidingMatcher.d.ts +0 -11
- package/build/types/entities/EntityHidingMatcherWithinTypeEntity.d.ts +0 -10
- package/build/types/parser/ReservedIdentifierDictionary.d.ts +0 -11
- package/build/types/services/AddBlockToScriptService.d.ts +0 -17
- package/build/types/services/AssignFieldService.d.ts +0 -10
- package/build/types/services/DeleteBlockFromScriptService.d.ts +0 -6
- package/build/types/tree/Token.d.ts +0 -58
- /package/build/types/services/{ProjectItemsService.d.ts → WorkspaceItemsService.d.ts} +0 -0
|
@@ -15,7 +15,6 @@ export declare class UnionType implements IType {
|
|
|
15
15
|
getSubstitutions(): Substitutions;
|
|
16
16
|
applySubstitutions(substitutions: Substitutions): Type;
|
|
17
17
|
getEntity(): TypeEntity | undefined;
|
|
18
|
-
getBaseObjectTypeOrAliasedType(): Type | undefined;
|
|
19
18
|
toString(): string;
|
|
20
19
|
private unaliasAndFlattenTypes;
|
|
21
20
|
}
|
|
@@ -12,6 +12,5 @@ export declare class UnresolvedType implements IType {
|
|
|
12
12
|
getSubstitutions(): Substitutions;
|
|
13
13
|
applySubstitutions(_substitutions: Substitutions): Type;
|
|
14
14
|
getEntity(): TypeEntity | undefined;
|
|
15
|
-
getBaseObjectTypeOrAliasedType(): Type | undefined;
|
|
16
15
|
toString(): string;
|
|
17
16
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from './AliasType.js';
|
|
2
|
-
export * from './IntersectionType.js';
|
|
3
2
|
export * from './FunctionType.js';
|
|
3
|
+
export * from './IntersectionType.js';
|
|
4
4
|
export * from './ParameterType.js';
|
|
5
|
+
export * from './ReducedType.js';
|
|
5
6
|
export * from './StandardTypes.js';
|
|
6
7
|
export * from './StructuredType.js';
|
|
7
8
|
export * from './Substitutions.js';
|
|
9
|
+
export * from './SubstitutionStubType.js';
|
|
8
10
|
export * from './Type.js';
|
|
9
11
|
export * from './TypeFactory.js';
|
|
10
12
|
export * from './TypeMembers.js';
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseEntityHidingMatcher, PackageEntity } from '../../entities/index.js';
|
|
2
|
-
import { TypeEntity } from '../../entities/TypeEntity.js';
|
|
3
|
-
import { SourceFile } from '../../project/SourceFile.js';
|
|
4
|
-
import { SemanticContext } from './SemanticContext.js';
|
|
5
|
-
export declare class SemanticContextBasedEntityHidingMatcher extends BaseEntityHidingMatcher {
|
|
6
|
-
private readonly semanticContext;
|
|
7
|
-
private readonly typeEntity_;
|
|
8
|
-
private sourceFile_;
|
|
9
|
-
private package_;
|
|
10
|
-
protected get sourceFile(): SourceFile;
|
|
11
|
-
protected get package(): PackageEntity;
|
|
12
|
-
protected get typeEntity(): TypeEntity | undefined;
|
|
13
|
-
constructor(semanticContext: SemanticContext);
|
|
14
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SourceFile } from '../project/SourceFile.js';
|
|
2
|
-
import { EntityHidingLevel, IEntityHidingMatcher } from './EntityHiding.js';
|
|
3
|
-
import { PackageEntity } from './interfaces/PackageEntity.js';
|
|
4
|
-
import { TypeEntity } from './TypeEntity.js';
|
|
5
|
-
export declare abstract class BaseEntityHidingMatcher implements IEntityHidingMatcher {
|
|
6
|
-
protected abstract typeEntity: TypeEntity | undefined;
|
|
7
|
-
protected abstract sourceFile: SourceFile | undefined;
|
|
8
|
-
protected abstract package: PackageEntity;
|
|
9
|
-
matches(hiding: EntityHidingLevel | undefined): boolean;
|
|
10
|
-
private isDerivedFromOrEquals;
|
|
11
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SourceFile } from '../project/SourceFile.js';
|
|
2
|
-
import { BaseEntityHidingMatcher } from './BaseEntityHidingMatcher.js';
|
|
3
|
-
import { PackageEntity, TypeEntity } from './index.js';
|
|
4
|
-
export declare class EntityHidingMatcherWithinTypeEntity extends BaseEntityHidingMatcher {
|
|
5
|
-
private readonly typeEntity_;
|
|
6
|
-
protected sourceFile: SourceFile | undefined;
|
|
7
|
-
protected get typeEntity(): TypeEntity | undefined;
|
|
8
|
-
protected get package(): PackageEntity;
|
|
9
|
-
constructor(typeEntity_: TypeEntity);
|
|
10
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PackageLocale } from '../common/index.js';
|
|
2
|
-
export declare const enum ReservedIdentifierKind {
|
|
3
|
-
Result = 0,
|
|
4
|
-
Value = 1
|
|
5
|
-
}
|
|
6
|
-
export declare const reservedIdentifiersByLocale: {
|
|
7
|
-
[T in PackageLocale]: {
|
|
8
|
-
[T in ReservedIdentifierKind]: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export declare const reservedIdentifiersKindByValue: { [T in PackageLocale]: ReadonlyMap<string, ReservedIdentifierKind>; };
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Analyzer } from '../analysis/Analyzer.js';
|
|
2
|
-
import { SubprogramDeclarationOrLiteral } from '../analysis/NodeTypeUtils.js';
|
|
3
|
-
import { SourceFile } from '../project/index.js';
|
|
4
|
-
import { SourceFileEdit } from './Types.js';
|
|
5
|
-
export declare class AssignFieldService {
|
|
6
|
-
private static readonly receiverVariableName;
|
|
7
|
-
createEditWithAssignment(analyzer: Analyzer, sourceFile: SourceFile, subprogramDeclaration: SubprogramDeclarationOrLiteral, fieldName: string, value: string): SourceFileEdit | undefined;
|
|
8
|
-
private findLastAssignmentToField;
|
|
9
|
-
private detectNewLine;
|
|
10
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SubprogramDeclarationOrLiteral } from '../analysis/NodeTypeUtils.js';
|
|
2
|
-
import { SourceFile } from '../project/index.js';
|
|
3
|
-
import { SourceFileEdit } from './Types.js';
|
|
4
|
-
export declare class DeleteBlockFromScriptService {
|
|
5
|
-
createEditDeletingBlock(sourceFile: SourceFile, subprogramDeclaration: SubprogramDeclarationOrLiteral): SourceFileEdit | undefined;
|
|
6
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { TokenKind } from './TokenKind.js';
|
|
2
|
-
import { NodeKind } from './NodeKind.js';
|
|
3
|
-
import { TriviaKind } from './TriviaKind.js';
|
|
4
|
-
import { OperatorKind } from './OperatorKind.js';
|
|
5
|
-
import { BaseNode } from './BaseNode.js';
|
|
6
|
-
import { Node } from './Nodes.js';
|
|
7
|
-
import { Range } from '../common/Range.js';
|
|
8
|
-
export declare const enum TokenFlags {
|
|
9
|
-
None = 0,// обычная лексема
|
|
10
|
-
Missing = 1,// лексема отсутствует в исходном тексте, но требуется по грамматике.
|
|
11
|
-
QuotedName = 2,// 'имя', 'имя с пробелами', '+'
|
|
12
|
-
RequiresQuotes = 4,// 'имя с пробелами', '+'
|
|
13
|
-
EscapedKeyword = 8,// 'выполнить'
|
|
14
|
-
HasBackQuotes = 16,// Имя с любым количеством апострофов: имя`, имя```
|
|
15
|
-
ConflictResolvingParameterName = 32,// Имя с одним апострофом: имя`, выполнить`
|
|
16
|
-
BackingVariableName = 64,// Имя с двумя апострофами: имя``, выполнить``
|
|
17
|
-
SingleCharText = 128,// Текст из одного символа: "а", "\/", "ю000А"
|
|
18
|
-
StartsWithTilde = 256,// Переводимый текст: ~"текст", ~"текст{
|
|
19
|
-
EndsWithTilde = 512,// Переводимый текст: "текст"~, }текст"~
|
|
20
|
-
LocalizableText = 768
|
|
21
|
-
}
|
|
22
|
-
export declare class Token<TKind extends TokenKind = TokenKind> extends BaseNode {
|
|
23
|
-
readonly kind = NodeKind.Token;
|
|
24
|
-
readonly tokenKind: TKind;
|
|
25
|
-
readonly value: string;
|
|
26
|
-
readonly leadingTrivia: readonly Trivia[];
|
|
27
|
-
readonly trailingTrivia: readonly Trivia[];
|
|
28
|
-
readonly flags: TokenFlags;
|
|
29
|
-
readonly operatorKind: OperatorKind | undefined;
|
|
30
|
-
get children(): readonly [];
|
|
31
|
-
get parent(): Node;
|
|
32
|
-
get isMissing(): boolean;
|
|
33
|
-
protected get thisAsNode(): Node;
|
|
34
|
-
constructor(tokenKind: TKind, value: string, leadingTrivia: readonly Trivia[], trailingTrivia: readonly Trivia[], flags: TokenFlags, operatorKind: OperatorKind | undefined, rangeWithTrivia: Range | undefined);
|
|
35
|
-
get rangeWithoutTrivia(): Range;
|
|
36
|
-
getTextWithTrivia(): string;
|
|
37
|
-
hasTrailingLineBreak(): boolean;
|
|
38
|
-
getTriviaAt(position: number): TokenTrivia | undefined;
|
|
39
|
-
selectLeadingTrivia(condition: (trivia: Trivia, rangeStart: number, rangeEnd: number) => boolean): TokenTrivia[];
|
|
40
|
-
selectTrailingTrivia(condition: (trivia: Trivia, rangeStart: number, rangeEnd: number) => boolean): TokenTrivia[];
|
|
41
|
-
protected getLengthWithTrivia(): number;
|
|
42
|
-
}
|
|
43
|
-
export declare class Trivia {
|
|
44
|
-
readonly kind: TriviaKind;
|
|
45
|
-
readonly value: string;
|
|
46
|
-
get rangeLength(): number;
|
|
47
|
-
constructor(kind: TriviaKind, value: string);
|
|
48
|
-
}
|
|
49
|
-
export declare class TokenTrivia {
|
|
50
|
-
readonly trivia: Trivia;
|
|
51
|
-
readonly token: Token<TokenKind>;
|
|
52
|
-
readonly isTrailing: boolean;
|
|
53
|
-
readonly index: number;
|
|
54
|
-
readonly range: Range;
|
|
55
|
-
get kind(): TriviaKind;
|
|
56
|
-
get value(): string;
|
|
57
|
-
constructor(token: Token<TokenKind>, trivia: Trivia, isTrailing: boolean, index: number, range: Range);
|
|
58
|
-
}
|
|
File without changes
|