@artel/artc 0.6.25210 → 0.6.25212
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 +26 -14
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +774 -526
- package/build/{chunk-3ORG7RXI.js → chunk-DYVLHEXS.js} +11186 -10587
- package/build/{chunk-CAQIZO5K.js → chunk-MRSDFDBD.js} +9 -8
- package/build/{chunk-HRQLSHI7.js → chunk-XGS3PSIF.js} +3 -3
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +3 -1
- package/build/types/analysis/Analyzer.d.ts +33 -16
- package/build/types/analysis/BaseExpressionMeaning.d.ts +8 -2
- package/build/types/analysis/CallExpressionMeaning.d.ts +6 -1
- package/build/types/analysis/DiagnosticCollector.d.ts +1 -0
- package/build/types/analysis/EntityLocalizationHelper.d.ts +3 -1
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +12 -4
- package/build/types/analysis/Lookup.d.ts +6 -2
- package/build/types/analysis/PrefixUnaryOperatorResolver.d.ts +1 -3
- package/build/types/analysis/PropertyAccessExpressionMeaning.d.ts +13 -4
- package/build/types/analysis/Scope.d.ts +17 -3
- package/build/types/analysis/SemanticContext.d.ts +18 -1
- package/build/types/analysis/SemanticContextBuilder.d.ts +2 -0
- package/build/types/analysis/StatementBlockScopeBuilder.d.ts +1 -0
- package/build/types/analysis/TypeMemberLookup.d.ts +3 -3
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +2 -2
- package/build/types/common/Cached.d.ts +1 -0
- package/build/types/common/Debug.d.ts +3 -0
- package/build/types/common/LocalizationHelper.d.ts +5 -2
- package/build/types/common/Logger.d.ts +1 -1
- package/build/types/common/Uri.d.ts +11 -2
- package/build/types/common/index.d.ts +0 -1
- package/build/types/diagnostic/DiagnosticCode.d.ts +126 -115
- package/build/types/emitter/EmitterGeneratedDeclarationKind.d.ts +7 -0
- package/build/types/emitter/Entities.d.ts +1 -0
- package/build/types/emitter/EntityMap.d.ts +1 -2
- package/build/types/emitter/IrBuilder.d.ts +2 -0
- package/build/types/emitter/StatementTransformationResult.d.ts +3 -1
- package/build/types/emitter/Transformer.d.ts +1 -1
- package/build/types/emitter/ir/Nodes.d.ts +38 -34
- package/build/types/entities/EntityHiding.d.ts +2 -2
- package/build/types/entities/OperatorEntity.d.ts +43 -0
- package/build/types/entities/OperatorKind.d.ts +56 -0
- package/build/types/entities/StructuredTypeEntity.d.ts +3 -3
- package/build/types/entities/TypeEntityMembers.d.ts +9 -14
- package/build/types/entities/TypeExtensionEntity.d.ts +0 -1
- package/build/types/entities/VariableEntity.d.ts +3 -13
- package/build/types/entities/index.d.ts +10 -12
- package/build/types/parser/Parser.d.ts +2 -2
- package/build/types/project/FileSystemTree.d.ts +1 -1
- package/build/types/services/CompletionService.d.ts +26 -20
- package/build/types/services/DisplayService.d.ts +47 -55
- package/build/types/services/NodeSemanticInfo.d.ts +6 -11
- package/build/types/services/SemanticTokensService.d.ts +4 -3
- package/build/types/tree/KeywordKind.d.ts +25 -29
- package/build/types/tree/NodeKind.d.ts +89 -92
- package/build/types/tree/OperatorKind.d.ts +40 -0
- package/build/types/tree/green/Nodes.d.ts +52 -85
- package/build/types/tree/green/SyntaxToCode.d.ts +1 -0
- package/build/types/tree/green/Token.d.ts +7 -5
- package/build/types/tree/green/index.d.ts +1 -0
- package/build/types/tree/index.d.ts +0 -3
- package/build/types/tree/red/Nodes.d.ts +44 -78
- package/build/types/tree/red/Token.d.ts +3 -2
- package/build/types/tree/red/index.d.ts +4 -0
- package/build/types/ts-interop/Entities.d.ts +0 -4
- package/build/types/types/TypeMembers.d.ts +20 -29
- package/package.json +6 -6
- package/build/types/analysis/BuiltInOperators.d.ts +0 -14
- package/build/types/common/UriTree.d.ts +0 -41
- package/build/types/emitter/IntrinsicEntities.d.ts +0 -118
- package/build/types/entities/BinaryOperatorEntity.d.ts +0 -51
- package/build/types/entities/UnaryOperatorEntity.d.ts +0 -36
- /package/build/types/emitter/{error-boundary.d.ts → ErrorBoundary.d.ts} +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Query } from '../../common/index.js';
|
2
2
|
import { ParserDiagnostic } from '../../parser/ParserDiagnostic.js';
|
3
3
|
import * as green from '../green/index.js';
|
4
|
-
import { KeywordKind, NodeKind, TokenKind } from '../index.js';
|
4
|
+
import { KeywordKind, NodeKind, OperatorKind, TokenKind } from '../index.js';
|
5
5
|
import { BaseNode } from './BaseNode.js';
|
6
6
|
import { Token } from './Token.js';
|
7
7
|
export declare class SourceFile extends BaseNode {
|
@@ -32,7 +32,7 @@ export declare class PackageMemberDeclarationList extends BaseNode {
|
|
32
32
|
constructor(green: green.PackageMemberDeclarationList, rangeStart: number, parent: PackageMemberDeclarationListParent);
|
33
33
|
private createChildren;
|
34
34
|
}
|
35
|
-
export type IdentifierParent = PackageImport | PackagePath | PackageAliasTypeDeclaration | PackageMethodDeclaration | PackageMethodTypeDeclaration | PackageStructuredTypeDeclaration | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | TypeMethodDeclaration | TypeVariableDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | NestedMethodDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ErrorVariableDeclaration | PropertyAccessExpression | IdentifierExpression | TranslationParameterList | TranslationTypeParameterList | PackageMethodTranslation | TypeMethodTranslation | MethodTypeTranslation | QualifiedName | PackageVariableTranslation | TypeVariableOrVariantTranslation | TypeTranslation | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | SetterParameterDeclaration | CallArgument | Keyword;
|
35
|
+
export type IdentifierParent = PackageImport | PackagePath | PackageAliasTypeDeclaration | PackageMethodDeclaration | PackageMethodTypeDeclaration | PackageStructuredTypeDeclaration | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | TypeMethodDeclaration | OperatorDeclaration | TypeVariableDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | NestedMethodDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ErrorVariableDeclaration | PropertyAccessExpression | IdentifierExpression | TranslationParameterList | TranslationTypeParameterList | PackageMethodTranslation | TypeMethodTranslation | MethodTypeTranslation | QualifiedName | PackageVariableTranslation | TypeVariableOrVariantTranslation | TypeTranslation | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | SetterParameterDeclaration | CallArgument | Keyword;
|
36
36
|
export type Identifier = Token<TokenKind.Identifier>;
|
37
37
|
export type Comma = Token<TokenKind.Comma>;
|
38
38
|
export type Semicolon = Token<TokenKind.Semicolon>;
|
@@ -362,10 +362,10 @@ export declare class PackageMethodDeclaration extends BaseNode {
|
|
362
362
|
readonly green: green.PackageMethodDeclaration;
|
363
363
|
readonly parent: PackageMemberDeclarationParent;
|
364
364
|
private _children;
|
365
|
-
get children(): readonly [TagList, ModifierList, Keyword<green.KeywordKind.
|
365
|
+
get children(): readonly [TagList, ModifierList, Keyword<green.KeywordKind.Function>, Identifier, TypeParameterClause | undefined, ParameterClause, TypeAnnotation | undefined, StatementBlock | undefined];
|
366
366
|
get tagList(): TagList;
|
367
367
|
get modifierList(): ModifierList;
|
368
|
-
get
|
368
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
369
369
|
get name(): Identifier;
|
370
370
|
get typeParameterClause(): TypeParameterClause | undefined;
|
371
371
|
get parameterClause(): ParameterClause;
|
@@ -398,9 +398,9 @@ export declare class MethodTypeDeclarationBody extends BaseNode {
|
|
398
398
|
readonly green: green.MethodTypeDeclarationBody;
|
399
399
|
readonly parent: MethodTypeDeclarationBodyParent;
|
400
400
|
private _children;
|
401
|
-
get children(): readonly [Keyword<green.KeywordKind.Async> | undefined, Keyword<green.KeywordKind.
|
401
|
+
get children(): readonly [Keyword<green.KeywordKind.Async> | undefined, Keyword<green.KeywordKind.Function>, ParameterClause, TypeAnnotation | undefined];
|
402
402
|
get asyncKeyword(): Keyword<KeywordKind.Async> | undefined;
|
403
|
-
get
|
403
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
404
404
|
get parameterClause(): ParameterClause;
|
405
405
|
get returnTypeAnnotation(): TypeAnnotation | undefined;
|
406
406
|
protected get thisAsNode(): Node;
|
@@ -616,7 +616,7 @@ export declare class InvalidPackageMemberDeclaration extends BaseNode {
|
|
616
616
|
constructor(green: green.InvalidPackageMemberDeclaration, rangeStart: number, parent: InvalidPackageMemberDeclarationParent);
|
617
617
|
private createChildren;
|
618
618
|
}
|
619
|
-
export type TypeMemberDeclaration = TypeVariableDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | VariantDeclaration | TypeMethodDeclaration | TypeConstructorDeclaration | TypeDestructorDeclaration | TypeIndexedGetterDeclaration | TypeIndexedSetterDeclaration | TypeDereferencedVariableGetterDeclaration | TypeDereferencedVariableSetterDeclaration | TypeMemberGroupDeclaration | InvalidTypeMemberDeclaration;
|
619
|
+
export type TypeMemberDeclaration = TypeVariableDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | VariantDeclaration | TypeMethodDeclaration | OperatorDeclaration | TypeConstructorDeclaration | TypeDestructorDeclaration | TypeIndexedGetterDeclaration | TypeIndexedSetterDeclaration | TypeDereferencedVariableGetterDeclaration | TypeDereferencedVariableSetterDeclaration | TypeMemberGroupDeclaration | InvalidTypeMemberDeclaration;
|
620
620
|
export type TypeMemberDeclarationParent = TypeMemberDeclarationList;
|
621
621
|
export declare class TypeMemberGroupDeclaration extends BaseNode {
|
622
622
|
readonly kind = NodeKind.TypeMemberGroupDeclaration;
|
@@ -744,10 +744,10 @@ export declare class TypeMethodDeclaration extends BaseNode {
|
|
744
744
|
readonly green: green.TypeMethodDeclaration;
|
745
745
|
readonly parent: TypeMemberDeclarationParent;
|
746
746
|
private _children;
|
747
|
-
get children(): readonly [TagList, ModifierList, Keyword<green.KeywordKind.
|
747
|
+
get children(): readonly [TagList, ModifierList, Keyword<green.KeywordKind.Function>, Identifier, TypeParameterClause | undefined, ParameterClause, TypeAnnotation | undefined, StatementBlock | undefined];
|
748
748
|
get tagList(): TagList;
|
749
749
|
get modifierList(): ModifierList;
|
750
|
-
get
|
750
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
751
751
|
get name(): Identifier;
|
752
752
|
get typeParameterClause(): TypeParameterClause | undefined;
|
753
753
|
get parameterClause(): ParameterClause;
|
@@ -757,6 +757,24 @@ export declare class TypeMethodDeclaration extends BaseNode {
|
|
757
757
|
constructor(green: green.TypeMethodDeclaration, rangeStart: number, parent: TypeMemberDeclarationParent);
|
758
758
|
private createChildren;
|
759
759
|
}
|
760
|
+
export declare class OperatorDeclaration extends BaseNode {
|
761
|
+
readonly kind = NodeKind.OperatorDeclaration;
|
762
|
+
readonly green: green.OperatorDeclaration;
|
763
|
+
readonly parent: TypeMemberDeclarationParent;
|
764
|
+
private _children;
|
765
|
+
get children(): readonly [TagList, ModifierList, Keyword<green.KeywordKind.Function>, Identifier, ParameterClause, TypeAnnotation | undefined, StatementBlock | undefined];
|
766
|
+
get tagList(): TagList;
|
767
|
+
get modifierList(): ModifierList;
|
768
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
769
|
+
get name(): Identifier;
|
770
|
+
get parameterClause(): ParameterClause;
|
771
|
+
get returnTypeAnnotation(): TypeAnnotation | undefined;
|
772
|
+
get body(): StatementBlock | undefined;
|
773
|
+
get operatorKind(): OperatorKind;
|
774
|
+
protected get thisAsNode(): Node;
|
775
|
+
constructor(green: green.OperatorDeclaration, rangeStart: number, parent: TypeMemberDeclarationParent);
|
776
|
+
private createChildren;
|
777
|
+
}
|
760
778
|
export declare class TypeVariableDeclaration extends BaseNode {
|
761
779
|
readonly kind = NodeKind.TypeVariableDeclaration;
|
762
780
|
readonly green: green.TypeVariableDeclaration;
|
@@ -823,9 +841,9 @@ export declare class NestedMethodDeclaration extends BaseNode {
|
|
823
841
|
readonly green: green.NestedMethodDeclaration;
|
824
842
|
readonly parent: NestedMethodDeclarationParent;
|
825
843
|
private _children;
|
826
|
-
get children(): readonly [Keyword<green.KeywordKind.Async> | undefined, Keyword<green.KeywordKind.
|
844
|
+
get children(): readonly [Keyword<green.KeywordKind.Async> | undefined, Keyword<green.KeywordKind.Function>, Identifier, TypeParameterClause | undefined, ParameterClause, TypeAnnotation | undefined, StatementBlock];
|
827
845
|
get asyncKeyword(): Keyword<KeywordKind.Async> | undefined;
|
828
|
-
get
|
846
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
829
847
|
get name(): Identifier;
|
830
848
|
get typeParameterClause(): TypeParameterClause | undefined;
|
831
849
|
get parameterClause(): ParameterClause;
|
@@ -863,8 +881,8 @@ export declare class EnumerationVariableDeclaration extends BaseNode {
|
|
863
881
|
constructor(green: green.EnumerationVariableDeclaration, rangeStart: number, parent: EnumerationVariableDeclarationParent);
|
864
882
|
private createChildren;
|
865
883
|
}
|
866
|
-
export type Expression = ArrayLiteral | AsExpression | AssertionExpression | AssumptionExpression | BinaryExpression | MethodBlockLiteral | CallExpression | IdentifierExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression |
|
867
|
-
export type ExpressionParent = ArrayLiteralElementList | AsExpression | AssertionExpression | AssumptionExpression | AssignmentStatement | BinaryExpression | CallArgument | CallExpression | DisposeStatement | ErrorStatement | ExpressionStatement | ForStatement | PackageVariableDeclaration | IfStatement | IndexedAccessArgumentList | IndexedAccessExpression | IsExpression | LocalVariableDeclaration | MatchExpressionList |
|
884
|
+
export type Expression = ArrayLiteral | AsExpression | AssertionExpression | AssumptionExpression | BinaryExpression | MethodBlockLiteral | CallExpression | IdentifierExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | NotExpression | MethodLiteral | ParenthesizedExpression | WhenTernaryExpression | PrefixUnaryExpression | PropertyAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | GenericSpecializationExpression | DefaultMatchExpression | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression;
|
885
|
+
export type ExpressionParent = ArrayLiteralElementList | AsExpression | AssertionExpression | AssumptionExpression | AssignmentStatement | BinaryExpression | CallArgument | CallExpression | DisposeStatement | ErrorStatement | ExpressionStatement | ForStatement | PackageVariableDeclaration | IfStatement | IndexedAccessArgumentList | IndexedAccessExpression | IsExpression | LocalVariableDeclaration | MatchExpressionList | NotExpression | ParameterDeclaration | ParenthesizedExpression | WhenTernaryExpression | PrefixUnaryExpression | PropertyAccessExpression | ReferenceExpression | DereferenceExpression | LoopStatement | ReturnStatement | TextTemplateSpan | TypeVariableDeclaration | SwitchStatement | VariantDeclaration | WhileStatement | YieldStatement | GenericSpecializationExpression | ElseIfClause | TextTemplateLiteralTranslation;
|
868
886
|
export declare class ArrayLiteral extends BaseNode {
|
869
887
|
readonly kind = NodeKind.ArrayLiteral;
|
870
888
|
readonly green: green.ArrayLiteral;
|
@@ -942,7 +960,7 @@ export declare class BinaryExpression extends BaseNode {
|
|
942
960
|
constructor(green: green.BinaryExpression, rangeStart: number, parent: ExpressionParent);
|
943
961
|
private createChildren;
|
944
962
|
}
|
945
|
-
export type BinaryExpressionOperator = Token<TokenKind.Plus> | Token<TokenKind.Minus> | Token<TokenKind.Asterisk> | Token<TokenKind.Slash> | Token<TokenKind.Backslash> | Token<TokenKind.BackslashBackslash> | Token<TokenKind.EqualsEquals> | Token<TokenKind.ExclamationEquals> | Token<TokenKind.LessThan> | Token<TokenKind.GreaterThan> | Token<TokenKind.LessThanEquals> | Token<TokenKind.GreaterThanEquals> | Token<TokenKind.QuestionQuestion> | Keyword<KeywordKind.Or> | Keyword<KeywordKind.And> | Keyword<KeywordKind.Xor>;
|
963
|
+
export type BinaryExpressionOperator = Token<TokenKind.Plus> | Token<TokenKind.Minus> | Token<TokenKind.Asterisk> | Token<TokenKind.Slash> | Token<TokenKind.Backslash> | Token<TokenKind.BackslashBackslash> | Token<TokenKind.EqualsEquals> | Token<TokenKind.ExclamationEquals> | Token<TokenKind.LessThan> | Token<TokenKind.GreaterThan> | Token<TokenKind.LessThanEquals> | Token<TokenKind.GreaterThanEquals> | Token<TokenKind.QuestionQuestion> | Keyword<KeywordKind.Or> | Keyword<KeywordKind.And> | Keyword<KeywordKind.Xor> | Token<TokenKind.Ampersand> | Token<TokenKind.Bar> | Token<TokenKind.BarBar>;
|
946
964
|
export declare class MethodBlockLiteral extends BaseNode {
|
947
965
|
readonly kind = NodeKind.MethodBlockLiteral;
|
948
966
|
readonly green: green.MethodBlockLiteral;
|
@@ -1045,20 +1063,6 @@ export declare class IsExpression extends BaseNode {
|
|
1045
1063
|
constructor(green: green.IsExpression, rangeStart: number, parent: ExpressionParent);
|
1046
1064
|
private createChildren;
|
1047
1065
|
}
|
1048
|
-
export declare class UnobservableExpression extends BaseNode {
|
1049
|
-
readonly kind = NodeKind.UnobservableExpression;
|
1050
|
-
readonly green: green.UnobservableExpression;
|
1051
|
-
readonly parent: ExpressionParent;
|
1052
|
-
private _children;
|
1053
|
-
get children(): readonly [Keyword<green.KeywordKind.Unobservable>, Token<green.TokenKind.OpenParenthesis>, Expression, Token<green.TokenKind.CloseParenthesis>];
|
1054
|
-
get unobservableKeyword(): Keyword<KeywordKind.Unobservable>;
|
1055
|
-
get openParenthesisToken(): Token<TokenKind.OpenParenthesis>;
|
1056
|
-
get expression(): Expression;
|
1057
|
-
get closeParenthesisToken(): Token<TokenKind.CloseParenthesis>;
|
1058
|
-
protected get thisAsNode(): Node;
|
1059
|
-
constructor(green: green.UnobservableExpression, rangeStart: number, parent: ExpressionParent);
|
1060
|
-
private createChildren;
|
1061
|
-
}
|
1062
1066
|
export declare class NotExpression extends BaseNode {
|
1063
1067
|
readonly kind = NodeKind.NotExpression;
|
1064
1068
|
readonly green: green.NotExpression;
|
@@ -1078,9 +1082,9 @@ export declare class MethodLiteral extends BaseNode {
|
|
1078
1082
|
readonly green: green.MethodLiteral;
|
1079
1083
|
readonly parent: ExpressionParent;
|
1080
1084
|
private _children;
|
1081
|
-
get children(): readonly [Keyword<green.KeywordKind.Async> | undefined, Keyword<green.KeywordKind.
|
1085
|
+
get children(): readonly [Keyword<green.KeywordKind.Async> | undefined, Keyword<green.KeywordKind.Function>, ParameterClause, TypeAnnotation | undefined, StatementBlock];
|
1082
1086
|
get asyncKeyword(): Keyword<KeywordKind.Async> | undefined;
|
1083
|
-
get
|
1087
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
1084
1088
|
get parameterClause(): ParameterClause;
|
1085
1089
|
get returnTypeAnnotation(): TypeAnnotation | undefined;
|
1086
1090
|
get body(): StatementBlock;
|
@@ -1266,20 +1270,6 @@ export declare class IdentifierExpression extends BaseNode {
|
|
1266
1270
|
constructor(green: green.IdentifierExpression, rangeStart: number, parent: ExpressionParent);
|
1267
1271
|
private createChildren;
|
1268
1272
|
}
|
1269
|
-
export declare class TransactionalExpression extends BaseNode {
|
1270
|
-
readonly kind = NodeKind.TransactionalExpression;
|
1271
|
-
readonly green: green.TransactionalExpression;
|
1272
|
-
readonly parent: ExpressionParent;
|
1273
|
-
private _children;
|
1274
|
-
get children(): readonly [Keyword<green.KeywordKind.Transactional>, Token<green.TokenKind.OpenParenthesis>, Expression, Token<green.TokenKind.CloseParenthesis>];
|
1275
|
-
get transactionalKeyword(): Keyword<KeywordKind.Transactional>;
|
1276
|
-
get openParenthesisToken(): Token<TokenKind.OpenParenthesis>;
|
1277
|
-
get expression(): Expression;
|
1278
|
-
get closeParenthesisToken(): Token<TokenKind.CloseParenthesis>;
|
1279
|
-
protected get thisAsNode(): Node;
|
1280
|
-
constructor(green: green.TransactionalExpression, rangeStart: number, parent: ExpressionParent);
|
1281
|
-
private createChildren;
|
1282
|
-
}
|
1283
1273
|
export declare class GenericSpecializationExpression extends BaseNode {
|
1284
1274
|
readonly kind = NodeKind.GenericSpecializationExpression;
|
1285
1275
|
readonly green: green.GenericSpecializationExpression;
|
@@ -1303,7 +1293,7 @@ export declare class DefaultMatchExpression extends BaseNode {
|
|
1303
1293
|
constructor(green: green.DefaultMatchExpression, rangeStart: number, parent: ExpressionParent);
|
1304
1294
|
private createChildren;
|
1305
1295
|
}
|
1306
|
-
export type Statement = RunStatement | EmptyStatement | IfStatement | ForStatement | WhileStatement | LoopStatement | ReturnStatement | ErrorStatement | LocalVariableDeclarationStatement | AssignmentStatement | YieldStatement | InvalidStatement | ExpressionStatement | SwitchStatement | BreakLoopStatement | ContinueLoopStatement | NestedMethodDeclarationStatement |
|
1296
|
+
export type Statement = RunStatement | EmptyStatement | IfStatement | ForStatement | WhileStatement | LoopStatement | ReturnStatement | ErrorStatement | LocalVariableDeclarationStatement | AssignmentStatement | YieldStatement | InvalidStatement | ExpressionStatement | SwitchStatement | BreakLoopStatement | ContinueLoopStatement | NestedMethodDeclarationStatement | DisposeStatement;
|
1307
1297
|
export type StatementParent = StatementList;
|
1308
1298
|
export declare class AssignmentStatement extends BaseNode {
|
1309
1299
|
readonly kind = NodeKind.AssignmentStatement;
|
@@ -1333,7 +1323,7 @@ export declare class StatementList extends BaseNode {
|
|
1333
1323
|
constructor(green: green.StatementList, rangeStart: number, parent: StatementListParent);
|
1334
1324
|
private createChildren;
|
1335
1325
|
}
|
1336
|
-
export type StatementBlockParent = PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageMethodDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | TypeIndexedGetterDeclaration | TypeIndexedSetterDeclaration | TypeDereferencedVariableGetterDeclaration | TypeDereferencedVariableSetterDeclaration | TypeMethodDeclaration | NestedMethodDeclaration | MethodLiteral | MethodBlockLiteral | PackageConstructorDeclaration | PackageEntryPointDeclaration | TypeConstructorDeclaration | TypeDestructorDeclaration | IfStatement | ElseIfClause | RunStatement | OnErrorClause | FinallyClause | ForStatement | LoopStatement | SwitchStatementCaseClause | WhileStatement
|
1326
|
+
export type StatementBlockParent = PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageMethodDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | TypeIndexedGetterDeclaration | TypeIndexedSetterDeclaration | TypeDereferencedVariableGetterDeclaration | TypeDereferencedVariableSetterDeclaration | TypeMethodDeclaration | OperatorDeclaration | NestedMethodDeclaration | MethodLiteral | MethodBlockLiteral | PackageConstructorDeclaration | PackageEntryPointDeclaration | TypeConstructorDeclaration | TypeDestructorDeclaration | IfStatement | ElseIfClause | RunStatement | OnErrorClause | FinallyClause | ForStatement | LoopStatement | SwitchStatementCaseClause | WhileStatement;
|
1337
1327
|
export declare class StatementBlock extends BaseNode {
|
1338
1328
|
readonly kind = NodeKind.StatementBlock;
|
1339
1329
|
readonly green: green.StatementBlock;
|
@@ -1586,18 +1576,6 @@ export declare class LocalVariableDeclarationStatement extends BaseNode {
|
|
1586
1576
|
constructor(green: green.LocalVariableDeclarationStatement, rangeStart: number, parent: StatementParent);
|
1587
1577
|
private createChildren;
|
1588
1578
|
}
|
1589
|
-
export declare class UnobservableStatement extends BaseNode {
|
1590
|
-
readonly kind = NodeKind.UnobservableStatement;
|
1591
|
-
readonly green: green.UnobservableStatement;
|
1592
|
-
readonly parent: StatementParent;
|
1593
|
-
private _children;
|
1594
|
-
get children(): readonly [Keyword<green.KeywordKind.Unobservable>, StatementBlock];
|
1595
|
-
get unobservableKeyword(): Keyword<KeywordKind.Unobservable>;
|
1596
|
-
get body(): StatementBlock;
|
1597
|
-
protected get thisAsNode(): Node;
|
1598
|
-
constructor(green: green.UnobservableStatement, rangeStart: number, parent: StatementParent);
|
1599
|
-
private createChildren;
|
1600
|
-
}
|
1601
1579
|
export declare class LoopStatement extends BaseNode {
|
1602
1580
|
readonly kind = NodeKind.LoopStatement;
|
1603
1581
|
readonly green: green.LoopStatement;
|
@@ -1678,18 +1656,6 @@ export declare class SwitchStatementCaseClause extends BaseNode {
|
|
1678
1656
|
constructor(green: green.SwitchStatementCaseClause, rangeStart: number, parent: SwitchStatementCaseClauseParent);
|
1679
1657
|
private createChildren;
|
1680
1658
|
}
|
1681
|
-
export declare class TransactionalStatement extends BaseNode {
|
1682
|
-
readonly kind = NodeKind.TransactionalStatement;
|
1683
|
-
readonly green: green.TransactionalStatement;
|
1684
|
-
readonly parent: StatementParent;
|
1685
|
-
private _children;
|
1686
|
-
get children(): readonly [Keyword<green.KeywordKind.Transactional>, StatementBlock];
|
1687
|
-
get transactionalKeyword(): Keyword<KeywordKind.Transactional>;
|
1688
|
-
get body(): StatementBlock;
|
1689
|
-
protected get thisAsNode(): Node;
|
1690
|
-
constructor(green: green.TransactionalStatement, rangeStart: number, parent: StatementParent);
|
1691
|
-
private createChildren;
|
1692
|
-
}
|
1693
1659
|
export declare class WhileStatement extends BaseNode {
|
1694
1660
|
readonly kind = NodeKind.WhileStatement;
|
1695
1661
|
readonly green: green.WhileStatement;
|
@@ -1819,8 +1785,8 @@ export declare class PackageMethodTranslation extends BaseNode {
|
|
1819
1785
|
readonly green: green.PackageMethodTranslation;
|
1820
1786
|
readonly parent: PackageMethodTranslationParent;
|
1821
1787
|
private _children;
|
1822
|
-
get children(): readonly [Keyword<green.KeywordKind.
|
1823
|
-
get
|
1788
|
+
get children(): readonly [Keyword<green.KeywordKind.Function>, Identifier, TranslationTypeParameterClause | undefined, TranslationParameterClause, Token<green.TokenKind.MinusGreaterThan>, Identifier, TranslationTypeParameterClause | undefined, TranslationParameterClause];
|
1789
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
1824
1790
|
get sourceName(): Identifier;
|
1825
1791
|
get sourceTypeParameterClause(): TranslationTypeParameterClause | undefined;
|
1826
1792
|
get sourceParameterClause(): TranslationParameterClause;
|
@@ -1838,8 +1804,8 @@ export declare class TypeMethodTranslation extends BaseNode {
|
|
1838
1804
|
readonly green: green.TypeMethodTranslation;
|
1839
1805
|
readonly parent: TypeMethodTranslationParent;
|
1840
1806
|
private _children;
|
1841
|
-
get children(): readonly [Keyword<green.KeywordKind.
|
1842
|
-
get
|
1807
|
+
get children(): readonly [Keyword<green.KeywordKind.Function>, Identifier, TranslationTypeParameterClause | undefined, TranslationParameterClause, Token<green.TokenKind.MinusGreaterThan>, Identifier, TranslationTypeParameterClause | undefined, TranslationParameterClause];
|
1808
|
+
get functionKeyword(): Keyword<KeywordKind.Function>;
|
1843
1809
|
get sourceName(): Identifier;
|
1844
1810
|
get sourceTypeParameterClause(): TranslationTypeParameterClause | undefined;
|
1845
1811
|
get sourceParameterClause(): TranslationParameterClause;
|
@@ -2108,9 +2074,9 @@ export declare class Modifier extends BaseNode {
|
|
2108
2074
|
private createChildren;
|
2109
2075
|
}
|
2110
2076
|
export type ModifierKeyword = Keyword<ModifierKeywordKind>;
|
2111
|
-
export type ModifierKeywordKind = KeywordKind.
|
2077
|
+
export type ModifierKeywordKind = KeywordKind.Hidden | KeywordKind.Basic | KeywordKind.Static | KeywordKind.Redefinable | KeywordKind.Abstract | KeywordKind.Redefined | KeywordKind.Async | KeywordKind.Const;
|
2112
2078
|
export type ModifierLevelKeyword = Keyword<KeywordKind.InType> | Keyword<KeywordKind.InHierarchy> | Keyword<KeywordKind.InFile> | Keyword<KeywordKind.InPackage>;
|
2113
|
-
export type ParameterClauseParent = PackageMethodDeclaration | NestedMethodDeclaration | MethodLiteral | TypeConstructorDeclaration | TypeDestructorDeclaration | TypeMethodDeclaration | MethodTypeDeclarationBody;
|
2079
|
+
export type ParameterClauseParent = PackageMethodDeclaration | NestedMethodDeclaration | MethodLiteral | TypeConstructorDeclaration | TypeDestructorDeclaration | TypeMethodDeclaration | OperatorDeclaration | MethodTypeDeclarationBody;
|
2114
2080
|
export declare class ParameterClause extends BaseNode {
|
2115
2081
|
readonly kind = NodeKind.ParameterClause;
|
2116
2082
|
readonly green: green.ParameterClause;
|
@@ -2221,7 +2187,7 @@ export declare class TypeParameterList extends BaseNode {
|
|
2221
2187
|
constructor(green: green.TypeParameterList, rangeStart: number, parent: TypeParameterListParent);
|
2222
2188
|
private createChildren;
|
2223
2189
|
}
|
2224
|
-
export type TypeAnnotationParent = PackageMethodDeclaration | MethodTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | NestedMethodDeclaration | LocalVariableDeclaration | MethodLiteral | ParameterDeclaration | TypeIndexedGetterDeclaration | TypeIndexedSetterDeclaration | TypeDereferencedVariableGetterDeclaration | TypeDereferencedVariableSetterDeclaration | TypeMethodDeclaration | TypeVariableDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | ErrorVariableDeclaration | SetterParameterDeclaration;
|
2190
|
+
export type TypeAnnotationParent = PackageMethodDeclaration | MethodTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | NestedMethodDeclaration | LocalVariableDeclaration | MethodLiteral | ParameterDeclaration | TypeIndexedGetterDeclaration | TypeIndexedSetterDeclaration | TypeDereferencedVariableGetterDeclaration | TypeDereferencedVariableSetterDeclaration | TypeMethodDeclaration | OperatorDeclaration | TypeVariableDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | ErrorVariableDeclaration | SetterParameterDeclaration;
|
2225
2191
|
export declare class TypeAnnotation extends BaseNode {
|
2226
2192
|
readonly kind = NodeKind.TypeAnnotation;
|
2227
2193
|
readonly green: green.TypeAnnotation;
|
@@ -2234,4 +2200,4 @@ export declare class TypeAnnotation extends BaseNode {
|
|
2234
2200
|
constructor(green: green.TypeAnnotation, rangeStart: number, parent: TypeAnnotationParent);
|
2235
2201
|
private createChildren;
|
2236
2202
|
}
|
2237
|
-
export type Node = SourceFile | PackageMemberDeclarationList | Keyword | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackagePath | NamedTypeSpecifier | UnionTypeSpecifier | UnionTypeSpecifierTypeList | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | InvalidTypeSpecifier | AnonymousMethodTypeDeclaration | AnonymousStructuredTypeDeclaration | AnonymousVariantTypeDeclaration | TopLevelTranslationList | TranslationsDeclaration | PackageAliasTypeDeclaration | AliasTypeDeclarationBody | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageMethodDeclaration | PackageMethodTypeDeclaration | MethodTypeDeclarationBody | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageStructuredTypeDeclaration | StructuredTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | VariantTypeDeclarationBody | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | InvalidPackageMemberDeclaration | TypeMemberGroupDeclaration | TypeConstructorDeclaration | TypeDestructorDeclaration | TypeIndexedGetterDeclaration | TypeIndexedSetterDeclaration | TypeIndexerParameterClause | TypeDereferencedVariableGetterDeclaration | TypeDereferencedVariableSetterDeclaration | TypeMethodDeclaration | TypeVariableDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | InvalidTypeMemberDeclaration | NestedMethodDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | MethodBlockLiteral | CallArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessArgumentList | IndexedAccessExpression | InvalidExpression | IsExpression |
|
2203
|
+
export type Node = SourceFile | PackageMemberDeclarationList | Keyword | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackagePath | NamedTypeSpecifier | UnionTypeSpecifier | UnionTypeSpecifierTypeList | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | InvalidTypeSpecifier | AnonymousMethodTypeDeclaration | AnonymousStructuredTypeDeclaration | AnonymousVariantTypeDeclaration | TopLevelTranslationList | TranslationsDeclaration | PackageAliasTypeDeclaration | AliasTypeDeclarationBody | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageMethodDeclaration | PackageMethodTypeDeclaration | MethodTypeDeclarationBody | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageStructuredTypeDeclaration | StructuredTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | VariantTypeDeclarationBody | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | InvalidPackageMemberDeclaration | TypeMemberGroupDeclaration | TypeConstructorDeclaration | TypeDestructorDeclaration | TypeIndexedGetterDeclaration | TypeIndexedSetterDeclaration | TypeIndexerParameterClause | TypeDereferencedVariableGetterDeclaration | TypeDereferencedVariableSetterDeclaration | TypeMethodDeclaration | OperatorDeclaration | TypeVariableDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | InvalidTypeMemberDeclaration | NestedMethodDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | MethodBlockLiteral | CallArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessArgumentList | IndexedAccessExpression | InvalidExpression | IsExpression | NotExpression | MethodLiteral | ParenthesizedExpression | WhenTernaryExpression | PrefixUnaryExpression | PropertyAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | AssignmentStatement | StatementList | StatementBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatementClauseList | RunStatement | OnErrorClause | ErrorVariableDeclaration | FinallyClause | EmptyStatement | ErrorStatement | ExpressionStatement | EnumerationVariableList | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | InvalidStatement | NestedMethodDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList | SwitchStatementCaseClause | WhileStatement | YieldStatement | TranslationParameterList | TranslationParameterClause | ConstructorTranslation | IndexerTranslationParameterClause | IndexerTranslation | TranslationTypeParameterList | TranslationTypeParameterClause | PackageMethodTranslation | TypeMethodTranslation | MethodTypeTranslation | PackageImportTranslation | QualifiedName | PackageVariableTranslation | TypeVariableOrVariantTranslation | TypeMemberTranslationList | TypeTranslation | TextLiteralTranslation | TextTemplateLiteralTranslation | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | CallArgument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | SetterParameterClause | SetterParameterDeclaration | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation | Token;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { Node, NodeKind, TokenFlags } from './index.js';
|
2
|
-
import { TokenKind, TriviaKind } from '../index.js';
|
3
1
|
import { Range } from '../../common/index.js';
|
4
2
|
import * as green from '../green/index.js';
|
3
|
+
import { TokenKind, TriviaKind } from '../index.js';
|
5
4
|
import { BaseNode } from './BaseNode.js';
|
5
|
+
import { Node, NodeKind, OperatorKind, TokenFlags } from './index.js';
|
6
6
|
export type TokenParent = Node;
|
7
7
|
export declare class Token<TKind extends TokenKind = TokenKind> extends BaseNode {
|
8
8
|
readonly kind = NodeKind.Token;
|
@@ -13,6 +13,7 @@ export declare class Token<TKind extends TokenKind = TokenKind> extends BaseNode
|
|
13
13
|
get value(): string;
|
14
14
|
get flags(): TokenFlags;
|
15
15
|
get isMissing(): boolean;
|
16
|
+
get ifOperatorNameThenKind(): OperatorKind | undefined;
|
16
17
|
get rangeWithoutTrivia(): Range;
|
17
18
|
protected get thisAsNode(): Node;
|
18
19
|
constructor(green: green.Token<TKind>, rangeStart: number, parent: TokenParent);
|
@@ -1,5 +1,9 @@
|
|
1
1
|
export { TokenFlags } from '../green/index.js';
|
2
|
+
export * from '../KeywordKind.js';
|
2
3
|
export * from '../NodeKind.js';
|
4
|
+
export * from '../OperatorKind.js';
|
5
|
+
export * from '../TokenKind.js';
|
6
|
+
export * from '../TriviaKind.js';
|
3
7
|
export * from './NodePath.js';
|
4
8
|
export * from './Nodes.js';
|
5
9
|
export * from './Token.js';
|
@@ -299,8 +299,6 @@ export declare class TsPropertyEntity implements TypeVariableEntity {
|
|
299
299
|
isRedefinable(): boolean;
|
300
300
|
isRedefined(): boolean;
|
301
301
|
isAbstract(): boolean;
|
302
|
-
isConsistent(): boolean;
|
303
|
-
isObservable(): boolean;
|
304
302
|
}
|
305
303
|
export declare class TsAccessorEntity implements TypeVariableEntity {
|
306
304
|
private readonly _tsctx;
|
@@ -328,8 +326,6 @@ export declare class TsAccessorEntity implements TypeVariableEntity {
|
|
328
326
|
isRedefinable(): boolean;
|
329
327
|
isRedefined(): boolean;
|
330
328
|
isAbstract(): boolean;
|
331
|
-
isConsistent(): boolean;
|
332
|
-
isObservable(): boolean;
|
333
329
|
}
|
334
330
|
export declare class TsGetAccessorEntity implements GetterEntity {
|
335
331
|
private readonly _tsctx;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { Analyzer } from '../analysis/index.js';
|
2
2
|
import { Name } from '../common/index.js';
|
3
|
-
import {
|
3
|
+
import { ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, EntityHidingLevel, IndexerEntity, OperatorEntity, OperatorKind, ParameterVariableEntity, TypeMethodEntity, TypeParameterEntity, TypeVariableEntity } from '../entities/index.js';
|
4
4
|
import { MethodType } from './MethodType.js';
|
5
5
|
import { Substitutions } from './Substitutions.js';
|
6
6
|
import { Type } from './Type.js';
|
7
|
-
export type TypeMember = Variable | Method | Constructor | Destructor | Indexer | DereferenceOperator
|
7
|
+
export type TypeMember = Variable | Method | Operator | Constructor | Destructor | Indexer | DereferenceOperator;
|
8
8
|
export type NamedTypeMember = Variable | Method;
|
9
9
|
export declare class Method implements ITypeMember {
|
10
10
|
private readonly _analyzer;
|
@@ -52,6 +52,24 @@ export declare class Variable implements ITypeMember {
|
|
52
52
|
isStatic(): boolean;
|
53
53
|
applySubstitutions(substitutions: Substitutions): Variable;
|
54
54
|
}
|
55
|
+
export declare class Operator implements ITypeMember {
|
56
|
+
private readonly _analyzer;
|
57
|
+
private readonly _entity;
|
58
|
+
private readonly _substitutions;
|
59
|
+
readonly kind = "operator";
|
60
|
+
private readonly _valueParameters;
|
61
|
+
private readonly _signatureEntity;
|
62
|
+
constructor(_analyzer: Analyzer, _entity: OperatorEntity, _substitutions: Substitutions);
|
63
|
+
getOperatorKind(): OperatorKind;
|
64
|
+
getValueParameters(): readonly ValueParameter[];
|
65
|
+
getReturnType(): Type;
|
66
|
+
getEntity(): OperatorEntity;
|
67
|
+
getSubstitutions(): Substitutions;
|
68
|
+
getSignatureType(): MethodType;
|
69
|
+
isHidden(): EntityHidingLevel | undefined;
|
70
|
+
isStatic(): boolean;
|
71
|
+
applySubstitutions(substitutions: Substitutions): Operator;
|
72
|
+
}
|
55
73
|
export declare class Constructor implements ITypeMember {
|
56
74
|
private readonly _entity;
|
57
75
|
private readonly _substitutions;
|
@@ -101,33 +119,6 @@ export declare class DereferenceOperator implements ITypeMember {
|
|
101
119
|
isHidden(): EntityHidingLevel | undefined;
|
102
120
|
applySubstitutions(substitutions: Substitutions): DereferenceOperator;
|
103
121
|
}
|
104
|
-
export declare class BinaryOperator implements ITypeMember {
|
105
|
-
private readonly _entity;
|
106
|
-
private readonly _substitutions;
|
107
|
-
readonly kind = "binary-operator";
|
108
|
-
constructor(_entity: BinaryOperatorEntity, _substitutions: Substitutions);
|
109
|
-
getEntity(): BinaryOperatorEntity;
|
110
|
-
getSubstitutions(): Substitutions;
|
111
|
-
getOperatorKind(): BinaryOperatorKind;
|
112
|
-
getLeftOperandType(): Type;
|
113
|
-
getRightOperandType(): Type;
|
114
|
-
getResultType(): Type;
|
115
|
-
applySubstitutions(substitutions: Substitutions): BinaryOperator;
|
116
|
-
isHidden(): EntityHidingLevel | undefined;
|
117
|
-
}
|
118
|
-
export declare class UnaryOperator implements ITypeMember {
|
119
|
-
private readonly _entity;
|
120
|
-
private readonly _substitutions;
|
121
|
-
readonly kind = "unary-operator";
|
122
|
-
constructor(_entity: UnaryOperatorEntity, _substitutions: Substitutions);
|
123
|
-
getEntity(): UnaryOperatorEntity;
|
124
|
-
getSubstitutions(): Substitutions;
|
125
|
-
getOperatorKind(): UnaryOperatorKind;
|
126
|
-
getOperandType(): Type;
|
127
|
-
getResultType(): Type;
|
128
|
-
applySubstitutions(substitutions: Substitutions): UnaryOperator;
|
129
|
-
isHidden(): EntityHidingLevel | undefined;
|
130
|
-
}
|
131
122
|
export interface ITypeMember {
|
132
123
|
isHidden(): EntityHidingLevel | undefined;
|
133
124
|
getSubstitutions(): Substitutions;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@artel/artc",
|
3
|
-
"version": "0.6.
|
3
|
+
"version": "0.6.25212",
|
4
4
|
"description": "Артель Компилятор | Artel Compiler",
|
5
5
|
"author": "Nezaboodka Team <contact@nezaboodka.com>",
|
6
6
|
"license": "LGPL-3.0-or-later",
|
@@ -42,14 +42,14 @@
|
|
42
42
|
"@vscode/l10n": "0.0.18",
|
43
43
|
"jsonc-parser": "3.3.1",
|
44
44
|
"reactronic": "^0.92.25013",
|
45
|
-
"typescript": "5.
|
45
|
+
"typescript": "5.8.2",
|
46
46
|
"vscode-json-languageservice": "5.4.2",
|
47
47
|
"vscode-languageserver": "9.0.1",
|
48
48
|
"vscode-languageserver-textdocument": "1.0.11",
|
49
49
|
"vscode-uri": "3.0.8"
|
50
50
|
},
|
51
51
|
"devDependencies": {
|
52
|
-
"@vscode/l10n-dev": "0.0.
|
52
|
+
"@vscode/l10n-dev": "0.0.35",
|
53
53
|
"ts-json-schema-generator": "2.3.0"
|
54
54
|
},
|
55
55
|
"scripts": {
|
@@ -60,13 +60,13 @@
|
|
60
60
|
"generate-files": "",
|
61
61
|
"generate-files:force": "",
|
62
62
|
"compile": "npm run generate-files && tsc --build .",
|
63
|
-
"bundle:debug": "npm run compile && node ./scripts/bundle.js --debug
|
64
|
-
"bundle:release": "npm run compile && node ./scripts/bundle.js
|
63
|
+
"bundle:debug": "npm run compile && node ./scripts/bundle.js --debug",
|
64
|
+
"bundle:release": "npm run compile && node ./scripts/bundle.js",
|
65
65
|
"prepare-for-publish": "npm run bundle:release && node ./scripts/copy-compiler-dts.js",
|
66
66
|
"export-l10n-text": "npx @vscode/l10n-dev export -o l10n source",
|
67
67
|
"copy-global-storage": "node ../vscode-extension/scripts/copy-global-storage.js projects/compiler/СистемныеПакеты",
|
68
68
|
"install-global": "npm run prepare-for-publish && npm i -g .",
|
69
|
-
"generate-tree": "npm run bundle:debug && node build/Cli.js build ../tree-generator/ ../tree-generator/build --workspace ../.. --standard-packages ../СтандартныеПакеты && node ../tree-generator/build/launch.mjs ../compiler/source/tree",
|
69
|
+
"generate-tree": "npm run bundle:debug && node build/Cli.js build ../tree-generator/ ../tree-generator/build --workspace ../.. --standard-packages ../СтандартныеПакеты --no-warnings && node ../tree-generator/build/launch.mjs ../compiler/source/tree",
|
70
70
|
"generate-configuration-json-schemas": "node ./scripts/generateConfigurationJsonSchemas.mjs",
|
71
71
|
"create-minimal-required-standard-package-contents-json": "esbuild ./scripts/createMinimalStandardPackageContentsJson.ts --bundle --outfile=../../build/scripts/createMinimalStandardPackageContentsJson.mjs --format=esm --platform=node --packages=external --supported:async-await=false && node ../../build/scripts/createMinimalStandardPackageContentsJson.mjs"
|
72
72
|
}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { BinaryOperatorEntity, TypeEntity, UnaryOperatorEntity } from '../entities/index.js';
|
2
|
-
import { Analyzer } from './index.js';
|
3
|
-
export declare class BuiltInOperators {
|
4
|
-
private readonly _analyzer;
|
5
|
-
private readonly _unaryOperators;
|
6
|
-
private readonly _binaryOperators;
|
7
|
-
private get unaryOperators();
|
8
|
-
private get binaryOperators();
|
9
|
-
constructor(_analyzer: Analyzer);
|
10
|
-
getUnaryOperators(entity: TypeEntity): readonly UnaryOperatorEntity[];
|
11
|
-
getBinaryOperators(entity: TypeEntity): readonly BinaryOperatorEntity[];
|
12
|
-
private createBuiltInUnaryOperators;
|
13
|
-
private createBuiltInBinaryOperators;
|
14
|
-
}
|
@@ -1,41 +0,0 @@
|
|
1
|
-
import { Uri } from './Uri.js';
|
2
|
-
export declare class UriTree<T> {
|
3
|
-
private readonly _roots;
|
4
|
-
add(uri: Uri, data: T): void;
|
5
|
-
/**
|
6
|
-
* @returns элемент если он существовал, иначе `undefined`.
|
7
|
-
*/
|
8
|
-
delete(uri: Uri): T | undefined;
|
9
|
-
getItem(uri: Uri): T | undefined;
|
10
|
-
enumerateRoots(): Iterable<{
|
11
|
-
uri: Uri;
|
12
|
-
value: T;
|
13
|
-
}>;
|
14
|
-
enumerateChildren(uri: Uri): Iterable<{
|
15
|
-
uri: Uri;
|
16
|
-
value: T;
|
17
|
-
}>;
|
18
|
-
traverse(uri: Uri, f: (node: Node<T>) => void): readonly string[];
|
19
|
-
forEachItem(f: (item: T) => void): void;
|
20
|
-
enumerateItems(rootUri?: Uri): Iterable<{
|
21
|
-
uri: Uri;
|
22
|
-
value: T;
|
23
|
-
}>;
|
24
|
-
private getNode;
|
25
|
-
private getOrCreateRootNode;
|
26
|
-
private getRootNode;
|
27
|
-
}
|
28
|
-
declare class Node<T> {
|
29
|
-
readonly uri: Uri;
|
30
|
-
private _data;
|
31
|
-
private readonly _children;
|
32
|
-
constructor(uri: Uri, _data: T | undefined);
|
33
|
-
get item(): T | undefined;
|
34
|
-
getChild(segment: string): Node<T> | undefined;
|
35
|
-
getOrAddChild(segment: string, factory: () => Node<T>): Node<T>;
|
36
|
-
addChild(segment: string, node: Node<T>): void;
|
37
|
-
deleteChild(segment: string): void;
|
38
|
-
setData(data: T): void;
|
39
|
-
getChildren(): Iterable<Node<T>>;
|
40
|
-
}
|
41
|
-
export {};
|