@artel/artc 0.6.25281 → 0.6.25283
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 +18 -16
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +1182 -979
- package/build/{chunk-TIWNEKIS.js → chunk-2Q4QKW7T.js} +9266 -8683
- package/build/{chunk-7OXU5662.js → chunk-7RAZAZE6.js} +3 -3
- package/build/{chunk-NVHCHE3R.js → chunk-MJ2ZVHII.js} +3 -3
- package/build/types/analysis/AccessedFunction.d.ts +4 -0
- package/build/types/analysis/Analyzer.d.ts +68 -109
- 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/ResolvedImplementationPackage.d.ts +48 -0
- 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/FieldWithInitializerSemanticContext.d.ts +4 -5
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +4 -4
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +4 -5
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +11 -7
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +4 -5
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +8 -8
- 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/HelperPhrases.d.ts +2 -1
- package/build/types/common/LocalizationHelper.d.ts +6 -4
- package/build/types/common/index.d.ts +3 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +248 -238
- package/build/types/diagnostic/DiagnosticData.d.ts +2 -2
- package/build/types/emitter/EntityMap.d.ts +1 -1
- 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 +17 -8
- package/build/types/emitter/ir/types.d.ts +2 -2
- package/build/types/entities/Entity.d.ts +0 -12
- package/build/types/entities/EntityLocalizationContext.d.ts +1 -2
- package/build/types/entities/IEntity.d.ts +2 -1
- package/build/types/entities/OperatorKind.d.ts +6 -3
- package/build/types/entities/{PackageMembers.d.ts → PackageEntityMembers.d.ts} +1 -1
- package/build/types/entities/TypeEntity.d.ts +4 -4
- package/build/types/entities/index.d.ts +1 -1
- package/build/types/entities/interfaces/AliasTypeEntity.d.ts +3 -8
- package/build/types/entities/interfaces/ConstructorEntity.d.ts +0 -4
- package/build/types/entities/interfaces/DereferenceOperatorEntity.d.ts +0 -4
- package/build/types/entities/interfaces/DestructorEntity.d.ts +0 -4
- package/build/types/entities/interfaces/FunctionEntity.d.ts +1 -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 +0 -4
- package/build/types/entities/interfaces/OperatorEntity.d.ts +0 -4
- package/build/types/entities/interfaces/PackageAliasEntity.d.ts +0 -5
- package/build/types/entities/interfaces/PackageEntity.d.ts +2 -11
- 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 +0 -2
- package/build/types/entities/interfaces/VariableEntity.d.ts +2 -12
- package/build/types/entities/interfaces/VariantTypeEntity.d.ts +1 -8
- 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/source/SourceAliasTypeEntity.d.ts +1 -2
- package/build/types/entities/source/SourceFunctionTypeEntity.d.ts +1 -3
- package/build/types/entities/source/SourcePackageEntity.d.ts +1 -2
- 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 +2 -2
- package/build/types/entities/source/SourceVariantTypeEntity.d.ts +1 -3
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +1 -3
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +1 -5
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +2 -3
- 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/TranslatedVariantTypeEntity.d.ts +1 -5
- package/build/types/parser/KeywordDictionary.d.ts +10 -2
- package/build/types/parser/TokenKind.d.ts +46 -44
- package/build/types/services/CustomRequests.d.ts +24 -4
- package/build/types/services/DisplayService.d.ts +10 -3
- package/build/types/services/LanguageServer.d.ts +4 -3
- package/build/types/services/ScriptEditingService.d.ts +25 -0
- package/build/types/services/SourceFileItemsService.d.ts +1 -1
- package/build/types/services/Types.d.ts +6 -0
- package/build/types/services/source-generation/EntityToSyntax.d.ts +12 -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 +3 -1
- package/build/types/tree/NodeKind.d.ts +1 -1
- package/build/types/tree/Nodes.d.ts +10 -24
- 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 +31 -29
- package/build/types/tree/SyntaxToCode.d.ts +4 -1
- package/build/types/tree/TokenFlags.d.ts +15 -0
- package/build/types/tree/TokenKind.d.ts +63 -51
- 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 +1 -11
- package/build/types/ts-interop/TsInteropContext.d.ts +1 -2
- package/build/types/types/AliasType.d.ts +1 -2
- package/build/types/types/FunctionType.d.ts +2 -3
- package/build/types/types/IntersectionType.d.ts +1 -2
- package/build/types/types/ParameterType.d.ts +1 -2
- package/build/types/types/StructuredType.d.ts +1 -2
- package/build/types/types/SubstitutionStubType.d.ts +21 -0
- package/build/types/types/Substitutions.d.ts +1 -1
- package/build/types/types/Type.d.ts +5 -7
- package/build/types/types/TypeFactory.d.ts +2 -1
- package/build/types/types/TypeMembers.d.ts +8 -8
- package/build/types/types/UnionType.d.ts +1 -2
- package/build/types/types/UnresolvedType.d.ts +0 -1
- package/build/types/types/VariantType.d.ts +1 -2
- package/build/types/types/index.d.ts +2 -1
- package/package.json +1 -1
- package/build/types/analysis/SourceFileMembers.d.ts +0 -29
- 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 -57
- /package/build/types/services/{ProjectItemsService.d.ts → WorkspaceItemsService.d.ts} +0 -0
|
@@ -11,11 +11,10 @@ export declare class UnionType implements IType {
|
|
|
11
11
|
get unaliasedFlattenedTypes(): readonly Type[];
|
|
12
12
|
get debuggerDisplay(): string;
|
|
13
13
|
constructor(analyzer: Analyzer, originalTypes: readonly Type[]);
|
|
14
|
-
equals(other: Type): boolean;
|
|
14
|
+
equals(other: Type, considerLocale?: boolean): boolean;
|
|
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
|
}
|
|
@@ -12,9 +12,8 @@ export declare class VariantType implements IType {
|
|
|
12
12
|
getSubstitutions(): Substitutions;
|
|
13
13
|
applySubstitutions(substitutions: Substitutions): Type;
|
|
14
14
|
getEntity(): VariantTypeEntity;
|
|
15
|
-
equals(other: Type): boolean;
|
|
15
|
+
equals(other: Type, considerLocale?: boolean): boolean;
|
|
16
16
|
getUnderlyingType(): Type;
|
|
17
17
|
getBaseType(): Type | undefined;
|
|
18
|
-
getBaseObjectTypeOrAliasedType(): Type | undefined;
|
|
19
18
|
toString(): string;
|
|
20
19
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
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
5
|
export * from './StandardTypes.js';
|
|
6
6
|
export * from './StructuredType.js';
|
|
7
7
|
export * from './Substitutions.js';
|
|
8
|
+
export * from './SubstitutionStubType.js';
|
|
8
9
|
export * from './Type.js';
|
|
9
10
|
export * from './TypeFactory.js';
|
|
10
11
|
export * from './TypeMembers.js';
|
package/package.json
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Name } from '../common/index.js';
|
|
2
|
-
import { DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
|
3
|
-
import { PackageAliasEntity, PackageFunctionEntity, PackageTypeEntity, PackageVariableEntity, TextTranslationEntity, TypeExtensionEntity } from '../entities/index.js';
|
|
4
|
-
import { Analyzer } from './Analyzer.js';
|
|
5
|
-
import { TextKey } from './TextIdentity.js';
|
|
6
|
-
export declare class SourceFileMembers {
|
|
7
|
-
private static readonly emptyNamedMembers;
|
|
8
|
-
private static readonly emptyPackageAliases;
|
|
9
|
-
private static readonly emptyTextTranslations;
|
|
10
|
-
private readonly analyzer;
|
|
11
|
-
private readonly namedMembers;
|
|
12
|
-
private readonly typeExtensions;
|
|
13
|
-
private readonly textTranslations;
|
|
14
|
-
private readonly declarationsByName_;
|
|
15
|
-
private readonly textTranslationsByTextKey_;
|
|
16
|
-
get declarationsByName(): ReadonlyMap<string, readonly NamedSourceFileMemberEntity[]>;
|
|
17
|
-
get textTranslationsByTextKey(): ReadonlyMap<TextKey, readonly TextTranslationEntity[]>;
|
|
18
|
-
constructor(analyzer: Analyzer, namedMembers: readonly NamedSourceFileMemberEntity[], typeExtensions: readonly TypeExtensionEntity[], textTranslations: readonly TextTranslationEntity[]);
|
|
19
|
-
getNamedDeclarations(): readonly NamedSourceFileMemberEntity[];
|
|
20
|
-
getNamedDeclarationsByName(name: Name): readonly NamedSourceFileMemberEntity[];
|
|
21
|
-
getPackageAliases(): readonly PackageAliasEntity[];
|
|
22
|
-
getPackageAliasesByName(name: Name): readonly PackageAliasEntity[];
|
|
23
|
-
getTypeExtensions(): readonly TypeExtensionEntity[];
|
|
24
|
-
getTextTranslations(): readonly TextTranslationEntity[];
|
|
25
|
-
getTextTranslationsByTextKey(key: TextKey): readonly TextTranslationEntity[];
|
|
26
|
-
validateNameConflicts(diagnostics: DiagnosticAcceptor): void;
|
|
27
|
-
private getDiagnosticLocation;
|
|
28
|
-
}
|
|
29
|
-
export type NamedSourceFileMemberEntity = PackageTypeEntity | PackageVariableEntity | PackageFunctionEntity | PackageAliasEntity;
|
|
@@ -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,57 +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
|
-
StartsWithTilde = 128,// Переводимый текст: ~"текст", ~"текст{
|
|
18
|
-
EndsWithTilde = 256,// Переводимый текст: "текст"~, }текст"~
|
|
19
|
-
LocalizableText = 384
|
|
20
|
-
}
|
|
21
|
-
export declare class Token<TKind extends TokenKind = TokenKind> extends BaseNode {
|
|
22
|
-
readonly kind = NodeKind.Token;
|
|
23
|
-
readonly tokenKind: TKind;
|
|
24
|
-
readonly value: string;
|
|
25
|
-
readonly leadingTrivia: readonly Trivia[];
|
|
26
|
-
readonly trailingTrivia: readonly Trivia[];
|
|
27
|
-
readonly flags: TokenFlags;
|
|
28
|
-
readonly operatorKind: OperatorKind | undefined;
|
|
29
|
-
get children(): readonly [];
|
|
30
|
-
get parent(): Node;
|
|
31
|
-
get isMissing(): boolean;
|
|
32
|
-
protected get thisAsNode(): Node;
|
|
33
|
-
constructor(tokenKind: TKind, value: string, leadingTrivia: readonly Trivia[], trailingTrivia: readonly Trivia[], flags: TokenFlags, operatorKind: OperatorKind | undefined, rangeWithTrivia: Range | undefined);
|
|
34
|
-
get rangeWithoutTrivia(): Range;
|
|
35
|
-
getTextWithTrivia(): string;
|
|
36
|
-
hasTrailingLineBreak(): boolean;
|
|
37
|
-
getTriviaAt(position: number): TokenTrivia | undefined;
|
|
38
|
-
selectLeadingTrivia(condition: (trivia: Trivia, rangeStart: number, rangeEnd: number) => boolean): TokenTrivia[];
|
|
39
|
-
selectTrailingTrivia(condition: (trivia: Trivia, rangeStart: number, rangeEnd: number) => boolean): TokenTrivia[];
|
|
40
|
-
protected getLengthWithTrivia(): number;
|
|
41
|
-
}
|
|
42
|
-
export declare class Trivia {
|
|
43
|
-
readonly kind: TriviaKind;
|
|
44
|
-
readonly value: string;
|
|
45
|
-
get rangeLength(): number;
|
|
46
|
-
constructor(kind: TriviaKind, value: string);
|
|
47
|
-
}
|
|
48
|
-
export declare class TokenTrivia {
|
|
49
|
-
readonly trivia: Trivia;
|
|
50
|
-
readonly token: Token<TokenKind>;
|
|
51
|
-
readonly isTrailing: boolean;
|
|
52
|
-
readonly index: number;
|
|
53
|
-
readonly range: Range;
|
|
54
|
-
get kind(): TriviaKind;
|
|
55
|
-
get value(): string;
|
|
56
|
-
constructor(token: Token<TokenKind>, trivia: Trivia, isTrailing: boolean, index: number, range: Range);
|
|
57
|
-
}
|
|
File without changes
|