@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
|
@@ -71,8 +71,8 @@ export declare class Transformer {
|
|
|
71
71
|
transformDereferencedVariableSetterDeclarationChildren(declaration: ir.DereferencedVariableSetterDeclaration): void;
|
|
72
72
|
transformPackageVariableDeclarationChildren(declaration: ir.PackageVariableDeclaration): void;
|
|
73
73
|
transformPackageVariantTypeDeclarationChildren(declaration: ir.PackageVariantTypeDeclaration): void;
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
transformVariantValueDeclaration(node: ir.VariantValueDeclaration): ir.VariantValueDeclaration;
|
|
75
|
+
transformVariantValueDeclarationChildren(declaration: ir.VariantValueDeclaration): void;
|
|
76
76
|
transformPackageVariableGetterDeclarationChildren(declaration: ir.PackageVariableGetterDeclaration): void;
|
|
77
77
|
transformPackageVariableSetterDeclarationChildren(declaration: ir.PackageVariableSetterDeclaration): void;
|
|
78
78
|
transformExpression(expression: ir.Expression): ir.Expression;
|
|
@@ -225,7 +225,7 @@ export interface TransformationConfig {
|
|
|
225
225
|
transformLocalVariableDeclaration?(declaration: ir.LocalVariableDeclaration): NodeTransformationResult<ir.LocalVariableDeclaration>;
|
|
226
226
|
transformParameterDeclaration?(declaration: ir.ParameterDeclaration): NodeTransformationResult<ir.ParameterDeclaration>;
|
|
227
227
|
transformCaseClause?(declaration: ir.CaseClause): NodeTransformationResult<ir.CaseClause>;
|
|
228
|
-
|
|
228
|
+
transformVariantValueDeclaration?(declaration: ir.VariantValueDeclaration): NodeTransformationResult<ir.VariantValueDeclaration>;
|
|
229
229
|
transformArguments?(declaration: ir.Arguments): NodeTransformationResult<ir.Arguments>;
|
|
230
230
|
transformCatchClause?(clause: ir.CatchClause): NodeTransformationResult<ir.CatchClause>;
|
|
231
231
|
transformFinallyClause?(clause: ir.FinallyClause): NodeTransformationResult<ir.FinallyClause>;
|
|
@@ -73,23 +73,23 @@ export declare class PackageVariantTypeDeclaration {
|
|
|
73
73
|
entity: TypeOrExtensionEntity;
|
|
74
74
|
modifiers: Modifiers;
|
|
75
75
|
underlyingTypeKind: UnderlyingTypeKind;
|
|
76
|
-
variants: readonly
|
|
76
|
+
variants: readonly VariantValueDeclaration[];
|
|
77
77
|
sourceLocation?: SourceLocation | undefined;
|
|
78
78
|
readonly kind = NodeKind.PackageVariantTypeDeclaration;
|
|
79
|
-
constructor(entity: TypeOrExtensionEntity, modifiers: Modifiers, underlyingTypeKind: UnderlyingTypeKind, variants: readonly
|
|
79
|
+
constructor(entity: TypeOrExtensionEntity, modifiers: Modifiers, underlyingTypeKind: UnderlyingTypeKind, variants: readonly VariantValueDeclaration[], sourceLocation?: SourceLocation | undefined);
|
|
80
80
|
clone(): PackageVariantTypeDeclaration;
|
|
81
81
|
}
|
|
82
82
|
export declare const enum UnderlyingTypeKind {
|
|
83
83
|
Numeric = 0,
|
|
84
84
|
NonNumeric = 1
|
|
85
85
|
}
|
|
86
|
-
export declare class
|
|
86
|
+
export declare class VariantValueDeclaration {
|
|
87
87
|
entity: VariableEntity;
|
|
88
88
|
value: Expression | undefined;
|
|
89
89
|
sourceLocation?: SourceLocation | undefined;
|
|
90
|
-
readonly kind = NodeKind.
|
|
90
|
+
readonly kind = NodeKind.VariantValueDeclaration;
|
|
91
91
|
constructor(entity: VariableEntity, value: Expression | undefined, sourceLocation?: SourceLocation | undefined);
|
|
92
|
-
clone():
|
|
92
|
+
clone(): VariantValueDeclaration;
|
|
93
93
|
}
|
|
94
94
|
export declare class Decorator {
|
|
95
95
|
expression: Expression;
|
|
@@ -1033,7 +1033,7 @@ export declare const enum NodeKind {
|
|
|
1033
1033
|
TernaryExpression = 58,
|
|
1034
1034
|
ThisExpression = 59,
|
|
1035
1035
|
ParameterDeclaration = 60,
|
|
1036
|
-
|
|
1036
|
+
VariantValueDeclaration = 61,
|
|
1037
1037
|
WhileStatement = 62,
|
|
1038
1038
|
YieldStatement = 63,
|
|
1039
1039
|
ArrayLiteral = 64,
|
|
@@ -1081,7 +1081,13 @@ export declare const enum AssignmentOperatorKind {
|
|
|
1081
1081
|
SubtractEquals = 2,
|
|
1082
1082
|
MultiplyEquals = 3,
|
|
1083
1083
|
DivideEquals = 4,
|
|
1084
|
-
IntegerDivideEquals = 5
|
|
1084
|
+
IntegerDivideEquals = 5,
|
|
1085
|
+
BitwiseAndEquals = 6,
|
|
1086
|
+
BitwiseOrEquals = 7,
|
|
1087
|
+
BitwiseXorEquals = 8,
|
|
1088
|
+
LeftShiftEquals = 9,
|
|
1089
|
+
SignedRightShiftEquals = 10,
|
|
1090
|
+
UnsignedRightShiftEquals = 11
|
|
1085
1091
|
}
|
|
1086
1092
|
export declare const enum PrefixUnaryExpressionOperatorKind {
|
|
1087
1093
|
Plus = 0,
|
|
@@ -1108,5 +1114,8 @@ export declare const enum BinaryExpressionOperatorKind {
|
|
|
1108
1114
|
Modulo = 15,
|
|
1109
1115
|
BitwiseAnd = 16,
|
|
1110
1116
|
BitwiseOr = 17,
|
|
1111
|
-
BitwiseXor = 18
|
|
1117
|
+
BitwiseXor = 18,
|
|
1118
|
+
LeftShift = 19,
|
|
1119
|
+
SignedRightShift = 20,
|
|
1120
|
+
UnsignedRightShift = 21
|
|
1112
1121
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ir from './Nodes.js';
|
|
2
|
-
export type Node = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssignmentExpression | ir.AssignmentStatement | ir.BaseConstructorCallExpression | ir.BinaryExpression | ir.BlockStatement | ir.BooleanLiteral | ir.BreakLoopStatement | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.NullLiteral | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.FinallyClause | ir.ForStatement | ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.IfStatement | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.JsIndexedAccessExpression | ir.NestedFunctionDeclaration | ir.NestedFunctionDeclarationStatement | ir.LocalVariableDeclaration | ir.LocalVariableDeclarationStatement | ir.NumericLiteral | ir.CatchClause | ir.FunctionAccessExpression | ir.FunctionLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.LoopStatement | ir.Package | ir.ReturnStatement | ir.TextLiteral | ir.LocalizableTextLiteral | ir.TextTemplateLiteral | ir.LocalizableTextTemplateLiteral | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.ComputedFieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.SwitchStatement | ir.CaseClause | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.ParameterDeclaration | ir.VariableAccessExpression | ir.
|
|
3
|
-
export type Declaration = ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.NestedFunctionDeclaration | ir.LocalVariableDeclaration | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.ParameterDeclaration | ir.
|
|
2
|
+
export type Node = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssignmentExpression | ir.AssignmentStatement | ir.BaseConstructorCallExpression | ir.BinaryExpression | ir.BlockStatement | ir.BooleanLiteral | ir.BreakLoopStatement | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.NullLiteral | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.FinallyClause | ir.ForStatement | ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.IfStatement | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.JsIndexedAccessExpression | ir.NestedFunctionDeclaration | ir.NestedFunctionDeclarationStatement | ir.LocalVariableDeclaration | ir.LocalVariableDeclarationStatement | ir.NumericLiteral | ir.CatchClause | ir.FunctionAccessExpression | ir.FunctionLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.LoopStatement | ir.Package | ir.ReturnStatement | ir.TextLiteral | ir.LocalizableTextLiteral | ir.TextTemplateLiteral | ir.LocalizableTextTemplateLiteral | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.ComputedFieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.SwitchStatement | ir.CaseClause | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.ParameterDeclaration | ir.VariableAccessExpression | ir.VariantValueDeclaration | ir.WhileStatement | ir.YieldStatement | ir.JsObjectLiteral | ir.ValueJsObjectLiteralProperty | ir.FunctionJsObjectLiteralProperty | ir.SpreadJsObjectLiteralProperty | ir.JsPropertyAccessExpression | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.DereferenceExpression | ir.BaseExpression | ir.OwnConstructorCallExpression | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration | ir.TextWithEntityName | ir.Argument | ir.Arguments | ir.Decorator | ir.TextTranslationDeclaration | ir.TranslationTextTemplate;
|
|
3
|
+
export type Declaration = ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.NestedFunctionDeclaration | ir.LocalVariableDeclaration | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.ParameterDeclaration | ir.VariantValueDeclaration | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration | ir.TextTranslationDeclaration;
|
|
4
4
|
export type Statement = ir.AssignmentStatement | ir.BlockStatement | ir.BreakLoopStatement | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.ForStatement | ir.IfStatement | ir.NestedFunctionDeclarationStatement | ir.LocalVariableDeclarationStatement | ir.LoopStatement | ir.ReturnStatement | ir.SwitchStatement | ir.WhileStatement | ir.YieldStatement | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement;
|
|
5
5
|
export type Expression = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssignmentExpression | ir.BinaryExpression | ir.BooleanLiteral | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.NullLiteral | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.NumericLiteral | ir.FunctionAccessExpression | ir.FunctionLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.DereferenceExpression | ir.TextLiteral | ir.LocalizableTextLiteral | ir.TextWithEntityName | ir.TextTemplateLiteral | ir.LocalizableTextTemplateLiteral | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.VariableAccessExpression | ir.BaseConstructorCallExpression | ir.JsIndexedAccessExpression | ir.JsObjectLiteral | ir.JsPropertyAccessExpression | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.BaseExpression | ir.OwnConstructorCallExpression;
|
|
6
6
|
export type TypeMemberDeclaration = ir.FieldDeclaration | ir.ComputedFieldDeclaration | ir.MethodDeclaration | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { Analyzer } from '../analysis/Analyzer.js';
|
|
2
|
-
import { SemanticContext } from '../analysis/semantic-context/SemanticContext.js';
|
|
3
|
-
import { PackageDialect, PackageLocale } from '../common/index.js';
|
|
4
2
|
import * as types from '../types/index.js';
|
|
5
|
-
import { IEntityHidingMatcher } from './EntityHiding.js';
|
|
6
3
|
import { AliasTypeEntity } from './interfaces/AliasTypeEntity.js';
|
|
7
4
|
import { ConstructorEntity } from './interfaces/ConstructorEntity.js';
|
|
8
5
|
import { DereferenceOperatorEntity } from './interfaces/DereferenceOperatorEntity.js';
|
|
@@ -99,15 +96,6 @@ export type EntityWithParameters = Exclude<EntityContainingParameter, PackageEnt
|
|
|
99
96
|
export declare function isEntityWithParameters(entity: Entity): entity is EntityWithParameters;
|
|
100
97
|
export type NamedFunctionEntity = PackageFunctionEntity | MethodEntity | NestedFunctionEntity;
|
|
101
98
|
export declare function isNamedFunctionEntity(entity: Entity): entity is NamedFunctionEntity;
|
|
102
|
-
export declare class EntityContext {
|
|
103
|
-
readonly containingPackage: PackageEntity;
|
|
104
|
-
readonly hidingMatcher: IEntityHidingMatcher;
|
|
105
|
-
readonly typeExtensionLookup: SemanticContext | undefined;
|
|
106
|
-
get locale(): PackageLocale;
|
|
107
|
-
get packageDialect(): PackageDialect;
|
|
108
|
-
constructor(containingPackage: PackageEntity, hidingMatcher: IEntityHidingMatcher, typeExtensionLookup: SemanticContext | undefined);
|
|
109
|
-
static fromSemanticContext(semanticContext: SemanticContext): EntityContext;
|
|
110
|
-
}
|
|
111
99
|
export declare function entityToStringDecorator<T extends {
|
|
112
100
|
new (...args: any[]): Entity;
|
|
113
101
|
}>(constructor: T): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnalyzedTranslationPackage } from '../analysis/AnalyzedTranslationPackage.js';
|
|
2
2
|
import { Analyzer } from '../analysis/Analyzer.js';
|
|
3
3
|
import * as types from '../types/index.js';
|
|
4
|
-
import { AliasTypeEntity, AnonymousFunctionTypeEntity, AnonymousStructuredTypeEntity, AnonymousVariantTypeEntity, ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, Entity,
|
|
4
|
+
import { AliasTypeEntity, AnonymousFunctionTypeEntity, AnonymousStructuredTypeEntity, AnonymousVariantTypeEntity, ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, Entity, FieldEntity, FunctionTypeEntity, GetterEntity, IndexerEntity, MethodEntity, NamedTypeMemberEntity, OperatorEntity, PackageEntity, PackageFunctionEntity, PackageFunctionTypeEntity, PackageMemberEntity, PackageStructuredTypeEntity, PackageTypeEntity, PackageVariableEntity, PackageVariantTypeEntity, ParameterEntity, SetterEntity, StructuredTypeEntity, TypeEntity, TypeEntityWithMembers, TypeExtensionEntity, TypeMemberEntity, TypeParameterEntity, TypeWithMembersOrExtensionEntity, VariantTypeEntity } from './index.js';
|
|
5
5
|
export declare class EntityLocalizationContext {
|
|
6
6
|
private readonly analyzer;
|
|
7
7
|
private readonly translationPackage;
|
|
@@ -43,7 +43,6 @@ export declare class EntityLocalizationContext {
|
|
|
43
43
|
getLocalizedEntityForPossiblyNotLocalizableEntity(entity: Entity): Entity;
|
|
44
44
|
createLocalizedType(type: types.Type): types.Type;
|
|
45
45
|
createLocalizedSubstitutions(substitutions: types.Substitutions): types.Substitutions;
|
|
46
|
-
createLocalizedEntityContext(context: EntityContext): EntityContext;
|
|
47
46
|
private getOwnTranslatedEntity;
|
|
48
47
|
private getOwnTranslatedTypeEntity;
|
|
49
48
|
private getOwnTranslatedTypeParameterEntity;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tag } from '../analysis/Tag.js';
|
|
2
2
|
import { Translation } from '../analysis/Translation.js';
|
|
3
3
|
import { PackageDialect, PackageLocale } from '../common/index.js';
|
|
4
|
-
import { EntityKind, PackageEntity } from './index.js';
|
|
4
|
+
import { Entity, EntityKind, PackageEntity } from './index.js';
|
|
5
5
|
export interface IEntity {
|
|
6
6
|
readonly kind: EntityKind;
|
|
7
7
|
getContainingPackage(): PackageEntity;
|
|
@@ -9,4 +9,5 @@ export interface IEntity {
|
|
|
9
9
|
getLocale(): PackageLocale;
|
|
10
10
|
getDialect(): PackageDialect;
|
|
11
11
|
getTags(): readonly Tag[];
|
|
12
|
+
getOriginalEntity(): Entity;
|
|
12
13
|
}
|
|
@@ -18,12 +18,15 @@ export declare enum OperatorKind {
|
|
|
18
18
|
Xor = 15,
|
|
19
19
|
BitwiseAnd = 16,
|
|
20
20
|
BitwiseOr = 17,
|
|
21
|
-
BitwiseXor = 18
|
|
21
|
+
BitwiseXor = 18,
|
|
22
|
+
LeftShift = 19,
|
|
23
|
+
SignedRightShift = 20,
|
|
24
|
+
UnsignedRightShift = 21
|
|
22
25
|
}
|
|
23
26
|
/**
|
|
24
27
|
* Виды операторов, задаваемых токенами (`+`, `-`, `*=` и др.).
|
|
25
28
|
*/
|
|
26
|
-
export type KindOfOperatorDefinedByToken = OperatorKind.UnaryPlus | OperatorKind.UnaryMinus | OperatorKind.Add | OperatorKind.Subtract | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.IntegerDivide | OperatorKind.Modulo | OperatorKind.LessThan | OperatorKind.GreaterThan | OperatorKind.LessThanOrEqual | OperatorKind.GreaterThanOrEqual | OperatorKind.BitwiseAnd | OperatorKind.BitwiseOr | OperatorKind.BitwiseXor;
|
|
29
|
+
export type KindOfOperatorDefinedByToken = OperatorKind.UnaryPlus | OperatorKind.UnaryMinus | OperatorKind.Add | OperatorKind.Subtract | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.IntegerDivide | OperatorKind.Modulo | OperatorKind.LessThan | OperatorKind.GreaterThan | OperatorKind.LessThanOrEqual | OperatorKind.GreaterThanOrEqual | OperatorKind.BitwiseAnd | OperatorKind.BitwiseOr | OperatorKind.BitwiseXor | OperatorKind.LeftShift | OperatorKind.SignedRightShift | OperatorKind.UnsignedRightShift;
|
|
27
30
|
export declare function isOperatorDefinedByToken(kind: OperatorKind): kind is KindOfOperatorDefinedByToken;
|
|
28
31
|
/**
|
|
29
32
|
* Виды операторов, задаваемых ключевыми словами (`и`, `или`, `не` и др.)
|
|
@@ -38,7 +41,7 @@ export declare function isUnaryOperator(kind: OperatorKind): kind is UnaryOperat
|
|
|
38
41
|
/**
|
|
39
42
|
* Виды двухместных операторов. Объявление двухместного оператора должно содержать один параметр.
|
|
40
43
|
*/
|
|
41
|
-
export type BinaryOperatorKind = OperatorKind.Add | OperatorKind.Subtract | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.IntegerDivide | OperatorKind.Modulo | OperatorKind.LessThan | OperatorKind.GreaterThan | OperatorKind.LessThanOrEqual | OperatorKind.GreaterThanOrEqual | OperatorKind.Or | OperatorKind.And | OperatorKind.Xor | OperatorKind.BitwiseAnd | OperatorKind.BitwiseOr | OperatorKind.BitwiseXor;
|
|
44
|
+
export type BinaryOperatorKind = OperatorKind.Add | OperatorKind.Subtract | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.IntegerDivide | OperatorKind.Modulo | OperatorKind.LessThan | OperatorKind.GreaterThan | OperatorKind.LessThanOrEqual | OperatorKind.GreaterThanOrEqual | OperatorKind.Or | OperatorKind.And | OperatorKind.Xor | OperatorKind.BitwiseAnd | OperatorKind.BitwiseOr | OperatorKind.BitwiseXor | OperatorKind.LeftShift | OperatorKind.SignedRightShift | OperatorKind.UnsignedRightShift;
|
|
42
45
|
export declare function isBinaryOperator(kind: OperatorKind): kind is BinaryOperatorKind;
|
|
43
46
|
export type KindOfUnaryOperatorDefinedByToken = UnaryOperatorKind & KindOfOperatorDefinedByToken;
|
|
44
47
|
export type KindOfUnaryOperatorDefinedByKeyword = UnaryOperatorKind & KindOfOperatorDefinedByKeyword;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TextKey } from '../analysis/TextIdentity.js';
|
|
2
2
|
import { Name } from '../common/index.js';
|
|
3
|
-
import { NamedPackageMemberEntity, TextTranslationEntity, TypeEntity, TypeExtensionEntity } from '
|
|
3
|
+
import { NamedPackageMemberEntity, TextTranslationEntity, TypeEntity, TypeExtensionEntity } from './index.js';
|
|
4
4
|
export declare class PackageEntityMembers {
|
|
5
5
|
private readonly namedMembers;
|
|
6
6
|
private readonly typeExtensions;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Tag } from '../analysis/Tag.js';
|
|
2
1
|
import { IEntity } from './IEntity.js';
|
|
3
|
-
import { AliasTypeEntity,
|
|
2
|
+
import { AliasTypeEntity, EntityKind, FunctionTypeEntity, StructuredTypeEntity, TypeParameterEntity, VariantTypeEntity } from './index.js';
|
|
4
3
|
export type TypeEntity = StructuredTypeEntity | FunctionTypeEntity | VariantTypeEntity | AliasTypeEntity | TypeParameterEntity;
|
|
5
4
|
export declare namespace TypeEntity {
|
|
6
5
|
function isAbstract(entity: TypeEntity): boolean;
|
|
6
|
+
function isAbstractOrAliasedAbstract(entity: TypeEntity): boolean;
|
|
7
|
+
function isBasic(entity: TypeEntity): boolean;
|
|
8
|
+
function isBasicOrAliasedBasic(entity: TypeEntity): boolean;
|
|
7
9
|
}
|
|
8
10
|
export interface ITypeEntity extends IEntity {
|
|
9
11
|
readonly kind: EntityKind.Type;
|
|
10
12
|
readonly typeEntityKind: TypeEntityKind;
|
|
11
|
-
getContext(): EntityContext;
|
|
12
|
-
getTags(): readonly Tag[];
|
|
13
13
|
}
|
|
14
14
|
export declare enum TypeEntityKind {
|
|
15
15
|
Function = 0,
|
|
@@ -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';
|
|
@@ -1,28 +1,23 @@
|
|
|
1
|
-
import { Tag } from '../../analysis/Tag.js';
|
|
2
|
-
import { Translation } from '../../analysis/Translation.js';
|
|
3
1
|
import { Analyzer } from '../../analysis/index.js';
|
|
4
2
|
import { Name } from '../../common/index.js';
|
|
5
3
|
import * as tree from '../../tree/index.js';
|
|
6
4
|
import * as types from '../../types/index.js';
|
|
7
5
|
import { TypeEntityMembers } from '../TypeEntityMembers.js';
|
|
8
|
-
import { DefinitionKind, EntityHidingLevel, EntityKind, ITypeEntity,
|
|
6
|
+
import { DefinitionKind, EntityHidingLevel, EntityKind, ITypeEntity, SubstitutionApplicationMode, TypeEntityKind, TypeParameterEntity } from '../index.js';
|
|
9
7
|
export interface AliasTypeEntity extends ITypeEntity {
|
|
10
8
|
readonly kind: EntityKind.Type;
|
|
11
9
|
readonly typeEntityKind: TypeEntityKind.Alias;
|
|
12
10
|
getName(): Name;
|
|
13
|
-
getContainingPackage(): PackageEntity;
|
|
14
11
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
* При каждом вызове метод должен возвращать один и тот же экземпляр класса AliasedType.
|
|
13
|
+
*/
|
|
17
14
|
getAliasedType(): AliasedType;
|
|
18
15
|
getTypeParameters(): readonly TypeParameterEntity[];
|
|
19
16
|
getDefinition(): AliasTypeEntityDefinition;
|
|
20
17
|
getMembers(): TypeEntityMembers;
|
|
21
18
|
getArity(): number;
|
|
22
19
|
isHidden(): EntityHidingLevel | undefined;
|
|
23
|
-
getTags(): readonly Tag[];
|
|
24
20
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
25
|
-
getTranslation(): Translation | undefined;
|
|
26
21
|
getOriginalEntity(): AliasTypeEntity;
|
|
27
22
|
ensureAllDiagnosticsReported?(): void;
|
|
28
23
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { Tag } from '../../analysis/Tag.js';
|
|
2
|
-
import { Translation } from '../../analysis/Translation.js';
|
|
3
1
|
import * as tree from '../../tree/index.js';
|
|
4
2
|
import * as types from '../../types/index.js';
|
|
5
3
|
import { IEntity } from '../IEntity.js';
|
|
@@ -13,8 +11,6 @@ export interface ConstructorEntity extends IEntity {
|
|
|
13
11
|
isDefault(): DefaultConstructorEntityInfo | undefined;
|
|
14
12
|
isHidden(): EntityHidingLevel | undefined;
|
|
15
13
|
markedAbstract(): boolean;
|
|
16
|
-
getTags(): readonly Tag[];
|
|
17
|
-
getTranslation(): Translation | undefined;
|
|
18
14
|
getOriginalEntity(): ConstructorEntity;
|
|
19
15
|
}
|
|
20
16
|
export declare class DefaultConstructorEntityInfo {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { Tag } from '../../analysis/Tag.js';
|
|
2
|
-
import { Translation } from '../../analysis/Translation.js';
|
|
3
1
|
import * as tree from '../../tree/index.js';
|
|
4
2
|
import * as types from '../../types/index.js';
|
|
5
3
|
import { IEntity } from '../IEntity.js';
|
|
@@ -16,9 +14,7 @@ export interface DereferenceOperatorEntity extends IEntity {
|
|
|
16
14
|
isOverride(): boolean;
|
|
17
15
|
markedBasic(): boolean;
|
|
18
16
|
markedAbstract(): boolean;
|
|
19
|
-
getTags(): readonly Tag[];
|
|
20
17
|
getOverriddenMembers(): readonly types.DereferenceOperator[];
|
|
21
|
-
getTranslation(): Translation | undefined;
|
|
22
18
|
getOriginalEntity(): DereferenceOperatorEntity;
|
|
23
19
|
ensureAllDiagnosticsReported?(): void;
|
|
24
20
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { Tag } from '../../analysis/Tag.js';
|
|
2
|
-
import { Translation } from '../../analysis/Translation.js';
|
|
3
1
|
import * as tree from '../../tree/index.js';
|
|
4
2
|
import { IEntity } from '../IEntity.js';
|
|
5
3
|
import { DefinitionKind, EntityHidingLevel, EntityKind, ParameterEntity, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
@@ -10,8 +8,6 @@ export interface DestructorEntity extends IEntity {
|
|
|
10
8
|
getDefinition(): DestructorEntityDefinition;
|
|
11
9
|
isHidden(): EntityHidingLevel | undefined;
|
|
12
10
|
markedAbstract(): boolean;
|
|
13
|
-
getTags(): readonly Tag[];
|
|
14
|
-
getTranslation(): Translation | undefined;
|
|
15
11
|
getOriginalEntity(): DestructorEntity;
|
|
16
12
|
}
|
|
17
13
|
export type DestructorEntityDefinition = {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { Tag } from '../../analysis/Tag.js';
|
|
2
1
|
import { Translation } from '../../analysis/Translation.js';
|
|
3
2
|
import { Name } from '../../common/index.js';
|
|
4
3
|
import * as tree from '../../tree/index.js';
|
|
5
4
|
import * as types from '../../types/index.js';
|
|
6
5
|
import { IEntity } from '../IEntity.js';
|
|
7
|
-
import type { EntityNaming,
|
|
6
|
+
import type { EntityNaming, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
8
7
|
import { DefinitionKind, EntityHidingLevel, EntityKind, ParameterEntity, SubstitutionApplicationMode, TypeParameterEntity } from '../index.js';
|
|
9
8
|
export type FunctionEntity = PackageFunctionEntity | MethodEntity | NestedFunctionEntity | AnonymousFunctionEntity;
|
|
10
9
|
interface IFunctionEntity extends IEntity {
|
|
@@ -16,7 +15,6 @@ interface IFunctionEntity extends IEntity {
|
|
|
16
15
|
getDefinition(): FunctionEntityDefinition;
|
|
17
16
|
isAsync(): boolean;
|
|
18
17
|
isHidden(): EntityHidingLevel | undefined;
|
|
19
|
-
getTags(): readonly Tag[];
|
|
20
18
|
getTypeParametersArity(): number;
|
|
21
19
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
22
20
|
getTranslation(): Translation | undefined;
|
|
@@ -24,8 +22,6 @@ interface IFunctionEntity extends IEntity {
|
|
|
24
22
|
export interface PackageFunctionEntity extends IFunctionEntity {
|
|
25
23
|
readonly subkind: 'package';
|
|
26
24
|
getName(): Name;
|
|
27
|
-
getContainingPackage(): PackageEntity;
|
|
28
|
-
getTranslation(): Translation | undefined;
|
|
29
25
|
getOriginalEntity(): PackageFunctionEntity;
|
|
30
26
|
}
|
|
31
27
|
export interface MethodEntity extends IFunctionEntity {
|
|
@@ -44,18 +40,15 @@ export interface MethodEntity extends IFunctionEntity {
|
|
|
44
40
|
export interface NestedFunctionEntity extends IFunctionEntity {
|
|
45
41
|
readonly subkind: 'nested';
|
|
46
42
|
getName(): Name;
|
|
47
|
-
getContainingPackage(): PackageEntity;
|
|
48
43
|
getOriginalEntity(): NestedFunctionEntity;
|
|
49
44
|
}
|
|
50
45
|
export interface NestedFunctionEntity extends IFunctionEntity {
|
|
51
46
|
readonly subkind: 'nested';
|
|
52
47
|
getName(): Name;
|
|
53
|
-
getContainingPackage(): PackageEntity;
|
|
54
48
|
getOriginalEntity(): NestedFunctionEntity;
|
|
55
49
|
}
|
|
56
50
|
export interface AnonymousFunctionEntity extends IFunctionEntity {
|
|
57
51
|
readonly subkind: 'anonymous';
|
|
58
|
-
getContainingPackage(): PackageEntity;
|
|
59
52
|
getOriginalEntity(): AnonymousFunctionEntity;
|
|
60
53
|
}
|
|
61
54
|
export type FunctionEntityDefinition = {
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Tag } from '../../analysis/Tag.js';
|
|
2
|
-
import { Translation } from '../../analysis/Translation.js';
|
|
3
1
|
import { Name } from '../../common/index.js';
|
|
4
2
|
import * as tree from '../../tree/index.js';
|
|
5
3
|
import * as types from '../../types/index.js';
|
|
6
4
|
import { BaseObjectType } from '../BaseObjectType.js';
|
|
7
5
|
import { EntityNaming } from '../EntityNaming.js';
|
|
8
6
|
import { TypeEntityMembers } from '../TypeEntityMembers.js';
|
|
9
|
-
import type { PackageEntity } from '../index.js';
|
|
10
7
|
import { DefinitionKind, EntityHidingLevel, EntityKind, ITypeEntity, ParameterEntity, SubstitutionApplicationMode, TypeEntityKind, TypeParameterEntity } from '../index.js';
|
|
11
8
|
export type FunctionTypeEntity = PackageFunctionTypeEntity | AnonymousFunctionTypeEntity;
|
|
12
9
|
interface IFunctionTypeEntity extends ITypeEntity {
|
|
@@ -21,7 +18,6 @@ interface IFunctionTypeEntity extends ITypeEntity {
|
|
|
21
18
|
isAsync(): boolean;
|
|
22
19
|
getArity(): number;
|
|
23
20
|
isHidden(): EntityHidingLevel | undefined;
|
|
24
|
-
getTags(): readonly Tag[];
|
|
25
21
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
26
22
|
/**
|
|
27
23
|
* При каждом вызове метод должен возвращать один и тот же экземпляр класса BaseObjectType.
|
|
@@ -32,14 +28,10 @@ interface IFunctionTypeEntity extends ITypeEntity {
|
|
|
32
28
|
export interface PackageFunctionTypeEntity extends IFunctionTypeEntity {
|
|
33
29
|
readonly subkind: 'package';
|
|
34
30
|
getName(): Name;
|
|
35
|
-
getContainingPackage(): PackageEntity;
|
|
36
|
-
getTranslation(): Translation | undefined;
|
|
37
31
|
getOriginalEntity(): PackageFunctionTypeEntity;
|
|
38
32
|
}
|
|
39
33
|
export interface AnonymousFunctionTypeEntity extends IFunctionTypeEntity {
|
|
40
34
|
readonly subkind: 'anonymous';
|
|
41
|
-
getContainingPackage(): PackageEntity;
|
|
42
|
-
getTranslation(): Translation | undefined;
|
|
43
35
|
getOriginalEntity(): AnonymousFunctionTypeEntity;
|
|
44
36
|
}
|
|
45
37
|
export type FunctionTypeEntityDefinition = {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { GetterDeclaration } from '../../analysis/NodeTypeUtils.js';
|
|
2
|
-
import { Tag } from '../../analysis/Tag.js';
|
|
3
|
-
import { Translation } from '../../analysis/Translation.js';
|
|
4
2
|
import * as types from '../../types/index.js';
|
|
5
3
|
import { IEntity } from '../IEntity.js';
|
|
6
4
|
import { DefinitionKind, DereferenceOperatorEntity, EntityHidingLevel, EntityKind, FieldEntity, IndexerEntity, PackageVariableEntity } from '../index.js';
|
|
@@ -11,8 +9,6 @@ export interface GetterEntity extends IEntity {
|
|
|
11
9
|
isModifyingOwningPlainObject(): boolean;
|
|
12
10
|
getOwningEntity(): EntityOwningGetter;
|
|
13
11
|
isHidden(): EntityHidingLevel | undefined;
|
|
14
|
-
getTags(): readonly Tag[];
|
|
15
|
-
getTranslation(): Translation | undefined;
|
|
16
12
|
getOriginalEntity(): GetterEntity;
|
|
17
13
|
}
|
|
18
14
|
export type GetterEntityDefinition = {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { Tag } from '../../analysis/Tag.js';
|
|
2
|
-
import { Translation } from '../../analysis/Translation.js';
|
|
3
1
|
import * as tree from '../../tree/index.js';
|
|
4
2
|
import * as types from '../../types/index.js';
|
|
5
3
|
import { IEntity } from '../IEntity.js';
|
|
@@ -17,9 +15,7 @@ export interface IndexerEntity extends IEntity {
|
|
|
17
15
|
isOverride(): boolean;
|
|
18
16
|
markedBasic(): boolean;
|
|
19
17
|
markedAbstract(): boolean;
|
|
20
|
-
getTags(): readonly Tag[];
|
|
21
18
|
getOverriddenMembers(): readonly types.Indexer[];
|
|
22
|
-
getTranslation(): Translation | undefined;
|
|
23
19
|
getOriginalEntity(): IndexerEntity;
|
|
24
20
|
ensureAllDiagnosticsReported?(): void;
|
|
25
21
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { Tag } from '../../analysis/Tag.js';
|
|
2
|
-
import { Translation } from '../../analysis/Translation.js';
|
|
3
1
|
import * as tree from '../../tree/index.js';
|
|
4
2
|
import * as types from '../../types/index.js';
|
|
5
3
|
import { IEntity } from '../IEntity.js';
|
|
@@ -16,9 +14,7 @@ export interface OperatorEntity extends IEntity {
|
|
|
16
14
|
markedBasic(): boolean;
|
|
17
15
|
markedAbstract(): boolean;
|
|
18
16
|
isHidden(): EntityHidingLevel | undefined;
|
|
19
|
-
getTags(): readonly Tag[];
|
|
20
17
|
getOverriddenMembers(): readonly types.Operator[];
|
|
21
|
-
getTranslation(): Translation | undefined;
|
|
22
18
|
getOriginalEntity(): OperatorEntity;
|
|
23
19
|
}
|
|
24
20
|
export type OperatorEntityDefinition = {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { Tag } from '../../analysis/Tag.js';
|
|
2
|
-
import { Translation } from '../../analysis/Translation.js';
|
|
3
1
|
import { Name } from '../../common/index.js';
|
|
4
2
|
import * as tree from '../../tree/index.js';
|
|
5
3
|
import { IEntity } from '../IEntity.js';
|
|
@@ -10,10 +8,7 @@ export interface PackageAliasEntity extends IEntity {
|
|
|
10
8
|
getDefinition(): PackageAliasEntityDefinition;
|
|
11
9
|
getPackage(): PackageEntity | undefined;
|
|
12
10
|
isHidden(): EntityHidingLevel | undefined;
|
|
13
|
-
getContainingPackage(): PackageEntity;
|
|
14
|
-
getTranslation(): Translation | undefined;
|
|
15
11
|
getOriginalEntity(): PackageAliasEntity;
|
|
16
|
-
getTags(): readonly Tag[];
|
|
17
12
|
}
|
|
18
13
|
export type PackageAliasEntityDefinition = {
|
|
19
14
|
kind: DefinitionKind.Source;
|
|
@@ -1,24 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Translation } from '../../analysis/Translation.js';
|
|
3
|
-
import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
4
|
-
import type { JavaScriptImplementationConfig, SourcePackage } from '../../project/index.js';
|
|
5
|
-
import { PackageName, PlatformKind } from '../../project/index.js';
|
|
1
|
+
import { JavaScriptImplementationConfig, PackageName, PlatformKind, SourcePackage } from '../../project/index.js';
|
|
6
2
|
import { IEntity } from '../IEntity.js';
|
|
7
|
-
import { DefinitionKind, EntityKind } from '../index.js';
|
|
8
|
-
import { PackageEntityMembers } from '../PackageMembers.js';
|
|
3
|
+
import { DefinitionKind, EntityKind, PackageEntityMembers } from '../index.js';
|
|
9
4
|
export interface PackageEntity extends IEntity {
|
|
10
5
|
readonly kind: EntityKind.Package;
|
|
11
6
|
getName(): PackageName;
|
|
12
|
-
getLocale(): PackageLocale;
|
|
13
|
-
getDialect(): PackageDialect;
|
|
14
7
|
getMembers(): PackageEntityMembers;
|
|
15
8
|
getInterfacePackageInfo(): InterfacePackageEntityInfo | undefined;
|
|
16
9
|
getImplementedInterfacePackage(): PackageEntity | undefined;
|
|
17
10
|
getSupportedPlatforms(): readonly PlatformKind[];
|
|
18
11
|
getDefinition(): PackageEntityDefinition;
|
|
19
|
-
getTranslation(): Translation | undefined;
|
|
20
12
|
getOriginalEntity(): PackageEntity;
|
|
21
|
-
getTags(): readonly Tag[];
|
|
22
13
|
getTextTranslationPackageInfo(): TextTranslationPackageEntityInfo | undefined;
|
|
23
14
|
ensureAllDiagnosticsReported?(): void;
|
|
24
15
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { SetterDeclaration } from '../../analysis/NodeTypeUtils.js';
|
|
2
|
-
import { Tag } from '../../analysis/Tag.js';
|
|
3
|
-
import { Translation } from '../../analysis/Translation.js';
|
|
4
2
|
import { IEntity } from '../IEntity.js';
|
|
5
3
|
import { DefinitionKind, DereferenceOperatorEntity, EntityHidingLevel, EntityKind, FieldEntity, IndexerEntity, PackageVariableEntity } from '../index.js';
|
|
6
4
|
export interface SetterEntity extends IEntity {
|
|
@@ -9,8 +7,6 @@ export interface SetterEntity extends IEntity {
|
|
|
9
7
|
isModifyingOwningPlainObject(): boolean;
|
|
10
8
|
getOwningEntity(): EntityOwningSetter;
|
|
11
9
|
isHidden(): EntityHidingLevel | undefined;
|
|
12
|
-
getTags(): readonly Tag[];
|
|
13
|
-
getTranslation(): Translation | undefined;
|
|
14
10
|
getOriginalEntity(): SetterEntity;
|
|
15
11
|
}
|
|
16
12
|
export type SetterEntityDefinition = {
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Tag } from '../../analysis/Tag.js';
|
|
2
|
-
import { Translation } from '../../analysis/Translation.js';
|
|
3
1
|
import { Name } from '../../common/index.js';
|
|
4
2
|
import * as tree from '../../tree/index.js';
|
|
5
3
|
import { BaseAspectTypes } from '../BaseAspectTypes.js';
|
|
6
4
|
import { BaseObjectType } from '../BaseObjectType.js';
|
|
7
5
|
import { EntityNaming } from '../EntityNaming.js';
|
|
8
6
|
import { TypeEntityMembers } from '../TypeEntityMembers.js';
|
|
9
|
-
import type { PackageEntity } from '../index.js';
|
|
10
7
|
import { DefinitionKind, EntityHidingLevel, EntityKind, ITypeEntity, SubstitutionApplicationMode, TypeEntityKind, TypeParameterEntity } from '../index.js';
|
|
11
8
|
export type StructuredTypeEntity = PackageStructuredTypeEntity | AnonymousStructuredTypeEntity;
|
|
12
9
|
interface IStructuredTypeEntity extends ITypeEntity {
|
|
@@ -29,21 +26,16 @@ interface IStructuredTypeEntity extends ITypeEntity {
|
|
|
29
26
|
*/
|
|
30
27
|
getBaseAspectTypes(): BaseAspectTypes;
|
|
31
28
|
isHidden(): EntityHidingLevel | undefined;
|
|
32
|
-
getTags(): readonly Tag[];
|
|
33
29
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
34
30
|
ensureAllDiagnosticsReported?(): void;
|
|
35
31
|
}
|
|
36
32
|
export interface PackageStructuredTypeEntity extends IStructuredTypeEntity {
|
|
37
33
|
readonly subkind: 'package';
|
|
38
34
|
getName(): Name;
|
|
39
|
-
getContainingPackage(): PackageEntity;
|
|
40
|
-
getTranslation(): Translation | undefined;
|
|
41
35
|
getOriginalEntity(): PackageStructuredTypeEntity;
|
|
42
36
|
}
|
|
43
37
|
export interface AnonymousStructuredTypeEntity extends IStructuredTypeEntity {
|
|
44
38
|
readonly subkind: 'anonymous';
|
|
45
|
-
getContainingPackage(): PackageEntity;
|
|
46
|
-
getTranslation(): Translation | undefined;
|
|
47
39
|
getOriginalEntity(): AnonymousStructuredTypeEntity;
|
|
48
40
|
}
|
|
49
41
|
export declare enum StructuredTypeKind {
|
|
@@ -12,6 +12,7 @@ export interface TextTranslationEntity extends IEntity {
|
|
|
12
12
|
getParameters(): readonly ParameterEntity[];
|
|
13
13
|
getDefinition(): TextTranslationEntityDefinition;
|
|
14
14
|
isHidden(): EntityHidingLevel | undefined;
|
|
15
|
+
getOriginalEntity(): TextTranslationEntity;
|
|
15
16
|
}
|
|
16
17
|
export type TextTranslationEntityDefinition = {
|
|
17
18
|
kind: DefinitionKind.Source;
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import { Tag } from '../../analysis/Tag.js';
|
|
2
|
-
import { Translation } from '../../analysis/Translation.js';
|
|
3
1
|
import * as tree from '../../tree/index.js';
|
|
4
2
|
import { IEntity } from '../IEntity.js';
|
|
5
3
|
import { TypeEntityMembers } from '../TypeEntityMembers.js';
|
|
6
|
-
import { DefinitionKind,
|
|
4
|
+
import { DefinitionKind, EntityHidingLevel, EntityKind, NamedTypeEntity } from '../index.js';
|
|
7
5
|
export interface TypeExtensionEntity extends IEntity {
|
|
8
6
|
readonly kind: EntityKind.TypeExtension;
|
|
9
7
|
getMembers(): TypeEntityMembers;
|
|
10
|
-
getContainingPackage(): PackageEntity;
|
|
11
8
|
getExtendedTypeEntity(): NamedTypeEntity | undefined;
|
|
12
9
|
getDefinition(): TypeExtensionEntityDefinition;
|
|
13
10
|
isHidden(): EntityHidingLevel | undefined;
|
|
14
|
-
getTags(): readonly Tag[];
|
|
15
|
-
getContext(): EntityContext;
|
|
16
|
-
getTranslation(): Translation | undefined;
|
|
17
11
|
getOriginalEntity(): TypeExtensionEntity;
|
|
18
12
|
ensureAllDiagnosticsReported?(): void;
|
|
19
13
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Translation } from '../../analysis/Translation.js';
|
|
2
1
|
import { Name } from '../../common/index.js';
|
|
3
2
|
import * as tree from '../../tree/index.js';
|
|
4
3
|
import * as types from '../../types/index.js';
|
|
@@ -17,7 +16,6 @@ export interface TypeParameterEntity extends ITypeEntity {
|
|
|
17
16
|
getTypeParameters(): readonly TypeParameterEntity[];
|
|
18
17
|
getContainingEntity(): EntityContainingTypeParameter;
|
|
19
18
|
isHidden(): EntityHidingLevel | undefined;
|
|
20
|
-
getTranslation(): Translation | undefined;
|
|
21
19
|
getOriginalEntity(): TypeParameterEntity;
|
|
22
20
|
}
|
|
23
21
|
export type TypeParameterEntityDefinition = {
|