@artel/artc 0.6.25227 → 0.6.25229

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.
Files changed (46) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +4 -2
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +297 -284
  5. package/build/{chunk-74TFH7TE.js → chunk-2FHW6RUS.js} +3 -3
  6. package/build/{chunk-VD6OPILI.js → chunk-4UBNOTKC.js} +3 -3
  7. package/build/{chunk-NOECPQMV.js → chunk-6YPLDA76.js} +2612 -2072
  8. package/build/types/analysis/Analyzer.d.ts +12 -5
  9. package/build/types/analysis/DeclarationsUsageCounter.d.ts +8 -3
  10. package/build/types/analysis/DiagnosticCollector.d.ts +9 -2
  11. package/build/types/analysis/ModifierFlags.d.ts +5 -6
  12. package/build/types/analysis/NodeTypeUtils.d.ts +2 -2
  13. package/build/types/analysis/PackageMemberNameConflictsValidator.d.ts +24 -0
  14. package/build/types/analysis/SourceFileMembers.d.ts +6 -1
  15. package/build/types/analysis/SourcePackageMembersCreator.d.ts +2 -1
  16. package/build/types/analysis/TypeInferrer.d.ts +2 -0
  17. package/build/types/analysis/control-flow/GraphBuilder.d.ts +5 -2
  18. package/build/types/analysis/semantic-context/SemanticContext.d.ts +1 -1
  19. package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +1 -80
  20. package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +1 -1
  21. package/build/types/analysis/semantic-context/SubprogramBodyAndParametersSemanticContext.d.ts +89 -0
  22. package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +0 -8
  23. package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +9 -24
  24. package/build/types/analysis/semantic-context/index.d.ts +1 -0
  25. package/build/types/common/Cached.d.ts +1 -0
  26. package/build/types/diagnostic/DiagnosticCode.d.ts +86 -72
  27. package/build/types/emitter/Entities.d.ts +4 -4
  28. package/build/types/emitter/IrBuilder.d.ts +0 -1
  29. package/build/types/entities/DereferenceOperatorEntity.d.ts +4 -4
  30. package/build/types/entities/FunctionEntity.d.ts +8 -8
  31. package/build/types/entities/IndexerEntity.d.ts +4 -4
  32. package/build/types/entities/OperatorEntity.d.ts +4 -4
  33. package/build/types/entities/VariableEntity.d.ts +25 -12
  34. package/build/types/entities/index.d.ts +4 -0
  35. package/build/types/project/SourcePackage.d.ts +3 -1
  36. package/build/types/project/configuration/ConfigurationConverter.d.ts +1 -1
  37. package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +2 -0
  38. package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +2 -0
  39. package/build/types/tree/KeywordKind.d.ts +21 -22
  40. package/build/types/tree/NodeKind.d.ts +81 -82
  41. package/build/types/tree/green/BaseNode.d.ts +3 -1
  42. package/build/types/tree/green/Nodes.d.ts +3 -21
  43. package/build/types/tree/red/BaseNode.d.ts +2 -1
  44. package/build/types/tree/red/Nodes.d.ts +4 -19
  45. package/build/types/ts-interop/Entities.d.ts +12 -12
  46. package/package.json +1 -1
@@ -75,86 +75,85 @@ export declare enum NodeKind {
75
75
  IsExpression = 73,
76
76
  FunctionLiteral = 74,
77
77
  ParenthesizedExpression = 75,
78
- WhenTernaryExpression = 76,
79
- ConditionalExpression = 77,
80
- PrefixUnaryExpression = 78,
81
- MemberAccessExpression = 79,
82
- ReferenceExpression = 80,
83
- DereferenceExpression = 81,
84
- TextTemplateLiteral = 82,
85
- TextTemplateSpanList = 83,
86
- TextTemplateSpan = 84,
87
- TokenExpression = 85,
88
- KeywordExpression = 86,
89
- ObjectExpression = 87,
90
- BaseExpression = 88,
91
- IdentifierExpression = 89,
92
- GenericSpecializationExpression = 90,
93
- DefaultMatchExpression = 91,
94
- AssignmentStatement = 92,
95
- StatementList = 93,
96
- StatementBlock = 94,
97
- FunctionBlock = 95,
98
- BreakLoopStatement = 96,
99
- ContinueLoopStatement = 97,
100
- DisposeStatement = 98,
101
- RunStatement = 99,
102
- TryStatement = 100,
103
- CatchClause = 101,
104
- ErrorVariableDeclaration = 102,
105
- FinallyClause = 103,
106
- EmptyStatement = 104,
107
- ErrorStatement = 105,
108
- ImportantStatement = 106,
109
- ExpressionStatement = 107,
110
- EnumerationVariableList = 108,
111
- ForStatement = 109,
112
- IfStatement = 110,
113
- ElseIfClauseList = 111,
114
- ElseIfClause = 112,
115
- ElseClause = 113,
116
- InvalidStatement = 114,
117
- NestedFunctionDeclarationStatement = 115,
118
- LocalVariableDeclarationStatement = 116,
119
- LoopStatement = 117,
120
- ReturnStatement = 118,
121
- CaseClauseList = 119,
122
- SwitchStatement = 120,
123
- MatchExpressionList = 121,
124
- CaseClause = 122,
125
- WhileStatement = 123,
126
- YieldStatement = 124,
127
- TranslationParameterList = 125,
128
- TranslationParameterClause = 126,
129
- ConstructorTranslation = 127,
130
- IndexParameterTranslationClause = 128,
131
- IndexerTranslation = 129,
132
- TranslationTypeParameterList = 130,
133
- TranslationTypeParameterClause = 131,
134
- PackageFunctionTranslation = 132,
135
- MethodTranslation = 133,
136
- FunctionTypeTranslation = 134,
137
- PackageImportTranslation = 135,
138
- QualifiedName = 136,
139
- PackageVariableTranslation = 137,
140
- FieldOrVariantTranslation = 138,
141
- TypeMemberTranslationList = 139,
142
- TypeTranslation = 140,
143
- TextLiteralTranslation = 141,
144
- TextTemplateLiteralTranslation = 142,
145
- VariantDeclaration = 143,
146
- TypeParameterDeclaration = 144,
147
- ParameterDeclaration = 145,
148
- Argument = 146,
149
- TagList = 147,
150
- Tag = 148,
151
- ModifierList = 149,
152
- Modifier = 150,
153
- ParameterClause = 151,
154
- ParameterList = 152,
155
- TypeArgumentClause = 153,
156
- TypeArgumentList = 154,
157
- TypeParameterClause = 155,
158
- TypeParameterList = 156,
159
- TypeAnnotation = 157
78
+ ConditionalExpression = 76,
79
+ PrefixUnaryExpression = 77,
80
+ MemberAccessExpression = 78,
81
+ ReferenceExpression = 79,
82
+ DereferenceExpression = 80,
83
+ TextTemplateLiteral = 81,
84
+ TextTemplateSpanList = 82,
85
+ TextTemplateSpan = 83,
86
+ TokenExpression = 84,
87
+ KeywordExpression = 85,
88
+ ObjectExpression = 86,
89
+ BaseExpression = 87,
90
+ IdentifierExpression = 88,
91
+ GenericSpecializationExpression = 89,
92
+ DefaultMatchExpression = 90,
93
+ AssignmentStatement = 91,
94
+ StatementList = 92,
95
+ StatementBlock = 93,
96
+ FunctionBlock = 94,
97
+ BreakLoopStatement = 95,
98
+ ContinueLoopStatement = 96,
99
+ DisposeStatement = 97,
100
+ RunStatement = 98,
101
+ TryStatement = 99,
102
+ CatchClause = 100,
103
+ ErrorVariableDeclaration = 101,
104
+ FinallyClause = 102,
105
+ EmptyStatement = 103,
106
+ ErrorStatement = 104,
107
+ ImportantStatement = 105,
108
+ ExpressionStatement = 106,
109
+ EnumerationVariableList = 107,
110
+ ForStatement = 108,
111
+ IfStatement = 109,
112
+ ElseIfClauseList = 110,
113
+ ElseIfClause = 111,
114
+ ElseClause = 112,
115
+ InvalidStatement = 113,
116
+ NestedFunctionDeclarationStatement = 114,
117
+ LocalVariableDeclarationStatement = 115,
118
+ LoopStatement = 116,
119
+ ReturnStatement = 117,
120
+ CaseClauseList = 118,
121
+ SwitchStatement = 119,
122
+ MatchExpressionList = 120,
123
+ CaseClause = 121,
124
+ WhileStatement = 122,
125
+ YieldStatement = 123,
126
+ TranslationParameterList = 124,
127
+ TranslationParameterClause = 125,
128
+ ConstructorTranslation = 126,
129
+ IndexParameterTranslationClause = 127,
130
+ IndexerTranslation = 128,
131
+ TranslationTypeParameterList = 129,
132
+ TranslationTypeParameterClause = 130,
133
+ PackageFunctionTranslation = 131,
134
+ MethodTranslation = 132,
135
+ FunctionTypeTranslation = 133,
136
+ PackageImportTranslation = 134,
137
+ QualifiedName = 135,
138
+ PackageVariableTranslation = 136,
139
+ FieldOrVariantTranslation = 137,
140
+ TypeMemberTranslationList = 138,
141
+ TypeTranslation = 139,
142
+ TextLiteralTranslation = 140,
143
+ TextTemplateLiteralTranslation = 141,
144
+ VariantDeclaration = 142,
145
+ TypeParameterDeclaration = 143,
146
+ ParameterDeclaration = 144,
147
+ Argument = 145,
148
+ TagList = 146,
149
+ Tag = 147,
150
+ ModifierList = 148,
151
+ Modifier = 149,
152
+ ParameterClause = 150,
153
+ ParameterList = 151,
154
+ TypeArgumentClause = 152,
155
+ TypeArgumentList = 153,
156
+ TypeParameterClause = 154,
157
+ TypeParameterList = 155,
158
+ TypeAnnotation = 156
160
159
  }
@@ -1,4 +1,4 @@
1
- import { Node } from './index.js';
1
+ import { Node, Token } from './index.js';
2
2
  export declare abstract class BaseNode {
3
3
  protected _rangeLength: number;
4
4
  protected abstract thisAsNode: Node;
@@ -9,4 +9,6 @@ export declare abstract class BaseNode {
9
9
  * Информация для оценки размера дерева при отладке.
10
10
  */
11
11
  get descendantCount(): number;
12
+ findLeftmostToken(): Token | undefined;
13
+ private countDescendants;
12
14
  }
@@ -920,7 +920,7 @@ export declare class EnumerationVariableDeclaration extends BaseNode {
920
920
  constructor(name: Identifier);
921
921
  toRed(rangeStart: number, parent: red.EnumerationVariableDeclarationParent): red.EnumerationVariableDeclaration;
922
922
  }
923
- export type Expression = ArrayLiteral | AsExpression | AssertionExpression | AssumptionExpression | BinaryExpression | FunctionBlockLiteral | CallExpression | IdentifierExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | FunctionLiteral | ParenthesizedExpression | WhenTernaryExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | GenericSpecializationExpression | DefaultMatchExpression | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression;
923
+ export type Expression = ArrayLiteral | AsExpression | AssertionExpression | AssumptionExpression | BinaryExpression | FunctionBlockLiteral | CallExpression | IdentifierExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | FunctionLiteral | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | GenericSpecializationExpression | DefaultMatchExpression | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression;
924
924
  export type ExpressionListElement = Expression | Comma;
925
925
  export declare class ArrayLiteral extends BaseNode {
926
926
  readonly kind = NodeKind.ArrayLiteral;
@@ -1117,24 +1117,6 @@ export declare class ParenthesizedExpression extends BaseNode {
1117
1117
  constructor(openParenthesisToken: Token<TokenKind.OpenParenthesis>, expression: Expression, closeParenthesisToken: Token<TokenKind.CloseParenthesis>);
1118
1118
  toRed(rangeStart: number, parent: red.ExpressionParent): red.ParenthesizedExpression;
1119
1119
  }
1120
- export declare class WhenTernaryExpression extends BaseNode {
1121
- readonly kind = NodeKind.WhenTernaryExpression;
1122
- readonly children: readonly [
1123
- Expression,
1124
- Keyword<KeywordKind.When>,
1125
- Expression,
1126
- Token<TokenKind.Colon>,
1127
- Expression
1128
- ];
1129
- get firstExpression(): Expression;
1130
- get whenKeyword(): Keyword<KeywordKind.When>;
1131
- get condition(): Expression;
1132
- get colonToken(): Token<TokenKind.Colon>;
1133
- get secondExpression(): Expression;
1134
- protected get thisAsNode(): Node;
1135
- constructor(firstExpression: Expression, whenKeyword: Keyword<KeywordKind.When>, condition: Expression, colonToken: Token<TokenKind.Colon>, secondExpression: Expression);
1136
- toRed(rangeStart: number, parent: red.ExpressionParent): red.WhenTernaryExpression;
1137
- }
1138
1120
  export declare class ConditionalExpression extends BaseNode {
1139
1121
  readonly kind = NodeKind.ConditionalExpression;
1140
1122
  readonly children: readonly [
@@ -2122,7 +2104,7 @@ export declare class Modifier extends BaseNode {
2122
2104
  toRed(rangeStart: number, parent: red.ModifierParent): red.Modifier;
2123
2105
  }
2124
2106
  export type ModifierKeyword = Keyword<ModifierKeywordKind>;
2125
- export type ModifierKeywordKind = KeywordKind.Hidden | KeywordKind.Basic | KeywordKind.Static | KeywordKind.Redefinable | KeywordKind.Abstract | KeywordKind.Redefined | KeywordKind.Async | KeywordKind.Const;
2107
+ export type ModifierKeywordKind = KeywordKind.Hidden | KeywordKind.Basic | KeywordKind.Static | KeywordKind.Abstract | KeywordKind.Redefined | KeywordKind.Async | KeywordKind.Const;
2126
2108
  export type ModifierLevelKeyword = Keyword<KeywordKind.InType> | Keyword<KeywordKind.InHierarchy> | Keyword<KeywordKind.InFile> | Keyword<KeywordKind.InPackage>;
2127
2109
  export declare class ParameterClause extends BaseNode {
2128
2110
  readonly kind = NodeKind.ParameterClause;
@@ -2205,4 +2187,4 @@ export declare class TypeAnnotation extends BaseNode {
2205
2187
  constructor(colonToken: Token<TokenKind.Colon>, typeSpecifier: TypeSpecifier);
2206
2188
  toRed(rangeStart: number, parent: red.TypeAnnotationParent): red.TypeAnnotation;
2207
2189
  }
2208
- export type Node = SourceFile | PackageMemberDeclarationList | Keyword | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackageName | NamedTypeSpecifier | UnionTypeSpecifier | IntersectionTypeSpecifier | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | InvalidTypeSpecifier | AnonymousFunctionTypeDeclaration | AnonymousStructuredTypeDeclaration | AnonymousVariantTypeDeclaration | TopLevelTranslationList | TranslationsDeclaration | PackageAliasTypeDeclaration | AliasTypeDeclarationBody | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageFunctionDeclaration | PackageFunctionTypeDeclaration | FunctionTypeDeclarationBody | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageStructuredTypeDeclaration | StructuredTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | VariantTypeDeclarationBody | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | InvalidPackageMemberDeclaration | TypeMemberGroupDeclaration | ConstructorDeclaration | DestructorDeclaration | IndexedElementGetterDeclaration | IndexedElementSetterDeclaration | IndexParameterClause | DereferencedVariableGetterDeclaration | DereferencedVariableSetterDeclaration | MethodDeclaration | OperatorDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | InvalidTypeMemberDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | FunctionBlockLiteral | ArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | FunctionLiteral | ParenthesizedExpression | WhenTernaryExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | AssignmentStatement | StatementList | StatementBlock | FunctionBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatement | TryStatement | CatchClause | ErrorVariableDeclaration | FinallyClause | EmptyStatement | ErrorStatement | ImportantStatement | ExpressionStatement | EnumerationVariableList | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | ElseClause | InvalidStatement | NestedFunctionDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList | CaseClause | WhileStatement | YieldStatement | TranslationParameterList | TranslationParameterClause | ConstructorTranslation | IndexParameterTranslationClause | IndexerTranslation | TranslationTypeParameterList | TranslationTypeParameterClause | PackageFunctionTranslation | MethodTranslation | FunctionTypeTranslation | PackageImportTranslation | QualifiedName | PackageVariableTranslation | FieldOrVariantTranslation | TypeMemberTranslationList | TypeTranslation | TextLiteralTranslation | TextTemplateLiteralTranslation | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation | Token;
2190
+ export type Node = SourceFile | PackageMemberDeclarationList | Keyword | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackageName | NamedTypeSpecifier | UnionTypeSpecifier | IntersectionTypeSpecifier | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | InvalidTypeSpecifier | AnonymousFunctionTypeDeclaration | AnonymousStructuredTypeDeclaration | AnonymousVariantTypeDeclaration | TopLevelTranslationList | TranslationsDeclaration | PackageAliasTypeDeclaration | AliasTypeDeclarationBody | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageFunctionDeclaration | PackageFunctionTypeDeclaration | FunctionTypeDeclarationBody | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageStructuredTypeDeclaration | StructuredTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | VariantTypeDeclarationBody | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | InvalidPackageMemberDeclaration | TypeMemberGroupDeclaration | ConstructorDeclaration | DestructorDeclaration | IndexedElementGetterDeclaration | IndexedElementSetterDeclaration | IndexParameterClause | DereferencedVariableGetterDeclaration | DereferencedVariableSetterDeclaration | MethodDeclaration | OperatorDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | InvalidTypeMemberDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | FunctionBlockLiteral | ArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | FunctionLiteral | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | AssignmentStatement | StatementList | StatementBlock | FunctionBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatement | TryStatement | CatchClause | ErrorVariableDeclaration | FinallyClause | EmptyStatement | ErrorStatement | ImportantStatement | ExpressionStatement | EnumerationVariableList | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | ElseClause | InvalidStatement | NestedFunctionDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList | CaseClause | WhileStatement | YieldStatement | TranslationParameterList | TranslationParameterClause | ConstructorTranslation | IndexParameterTranslationClause | IndexerTranslation | TranslationTypeParameterList | TranslationTypeParameterClause | PackageFunctionTranslation | MethodTranslation | FunctionTypeTranslation | PackageImportTranslation | QualifiedName | PackageVariableTranslation | FieldOrVariantTranslation | TypeMemberTranslationList | TypeTranslation | TextLiteralTranslation | TextTemplateLiteralTranslation | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation | Token;
@@ -1,6 +1,6 @@
1
1
  import { Range } from '../../common/index.js';
2
2
  import * as green from '../green/index.js';
3
- import { Node } from './index.js';
3
+ import { Node, Token } from './index.js';
4
4
  export declare abstract class BaseNode {
5
5
  readonly green: green.Node;
6
6
  readonly rangeStart: number;
@@ -12,4 +12,5 @@ export declare abstract class BaseNode {
12
12
  get debuggerDisplay(): string;
13
13
  get descendantCount(): number;
14
14
  constructor(green: green.Node, rangeStart: number, parent: Node | undefined);
15
+ findLeftmostToken(): Token | undefined;
15
16
  }
@@ -879,8 +879,8 @@ export declare class EnumerationVariableDeclaration extends BaseNode {
879
879
  constructor(green: green.EnumerationVariableDeclaration, rangeStart: number, parent: EnumerationVariableDeclarationParent);
880
880
  private createChildren;
881
881
  }
882
- export type Expression = ArrayLiteral | AsExpression | AssertionExpression | AssumptionExpression | BinaryExpression | FunctionBlockLiteral | CallExpression | IdentifierExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | FunctionLiteral | ParenthesizedExpression | WhenTernaryExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | GenericSpecializationExpression | DefaultMatchExpression | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression;
883
- export type ExpressionParent = ArrayLiteralElementList | AsExpression | AssertionExpression | AssumptionExpression | AssignmentStatement | BinaryExpression | Argument | CallExpression | DisposeStatement | ErrorStatement | ImportantStatement | ExpressionStatement | ForStatement | PackageVariableDeclaration | IfStatement | IndexedAccessExpression | IsExpression | LocalVariableDeclaration | MatchExpressionList | ParameterDeclaration | ParenthesizedExpression | WhenTernaryExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | LoopStatement | ReturnStatement | TextTemplateSpan | FieldDeclaration | SwitchStatement | VariantDeclaration | WhileStatement | YieldStatement | GenericSpecializationExpression | ElseIfClause | TextTemplateLiteralTranslation | FunctionBlock;
882
+ export type Expression = ArrayLiteral | AsExpression | AssertionExpression | AssumptionExpression | BinaryExpression | FunctionBlockLiteral | CallExpression | IdentifierExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | FunctionLiteral | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | GenericSpecializationExpression | DefaultMatchExpression | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression;
883
+ export type ExpressionParent = ArrayLiteralElementList | AsExpression | AssertionExpression | AssumptionExpression | AssignmentStatement | BinaryExpression | Argument | CallExpression | DisposeStatement | ErrorStatement | ImportantStatement | ExpressionStatement | ForStatement | PackageVariableDeclaration | IfStatement | IndexedAccessExpression | IsExpression | LocalVariableDeclaration | MatchExpressionList | ParameterDeclaration | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | LoopStatement | ReturnStatement | TextTemplateSpan | FieldDeclaration | SwitchStatement | VariantDeclaration | WhileStatement | YieldStatement | GenericSpecializationExpression | ElseIfClause | TextTemplateLiteralTranslation | FunctionBlock;
884
884
  export type ExpressionListElement = Expression | Comma;
885
885
  export declare class ArrayLiteral extends BaseNode {
886
886
  readonly kind = NodeKind.ArrayLiteral;
@@ -1075,21 +1075,6 @@ export declare class ParenthesizedExpression extends BaseNode {
1075
1075
  constructor(green: green.ParenthesizedExpression, rangeStart: number, parent: ExpressionParent);
1076
1076
  private createChildren;
1077
1077
  }
1078
- export declare class WhenTernaryExpression extends BaseNode {
1079
- readonly kind = NodeKind.WhenTernaryExpression;
1080
- readonly green: green.WhenTernaryExpression;
1081
- readonly parent: ExpressionParent;
1082
- private _children;
1083
- get children(): readonly [Expression, Keyword<green.KeywordKind.When>, Expression, Token<green.TokenKind.Colon>, Expression];
1084
- get firstExpression(): Expression;
1085
- get whenKeyword(): Keyword<KeywordKind.When>;
1086
- get condition(): Expression;
1087
- get colonToken(): Token<TokenKind.Colon>;
1088
- get secondExpression(): Expression;
1089
- protected get thisAsNode(): Node;
1090
- constructor(green: green.WhenTernaryExpression, rangeStart: number, parent: ExpressionParent);
1091
- private createChildren;
1092
- }
1093
1078
  export declare class ConditionalExpression extends BaseNode {
1094
1079
  readonly kind = NodeKind.ConditionalExpression;
1095
1080
  readonly green: green.ConditionalExpression;
@@ -2100,7 +2085,7 @@ export declare class Modifier extends BaseNode {
2100
2085
  private createChildren;
2101
2086
  }
2102
2087
  export type ModifierKeyword = Keyword<ModifierKeywordKind>;
2103
- export type ModifierKeywordKind = KeywordKind.Hidden | KeywordKind.Basic | KeywordKind.Static | KeywordKind.Redefinable | KeywordKind.Abstract | KeywordKind.Redefined | KeywordKind.Async | KeywordKind.Const;
2088
+ export type ModifierKeywordKind = KeywordKind.Hidden | KeywordKind.Basic | KeywordKind.Static | KeywordKind.Abstract | KeywordKind.Redefined | KeywordKind.Async | KeywordKind.Const;
2104
2089
  export type ModifierLevelKeyword = Keyword<KeywordKind.InType> | Keyword<KeywordKind.InHierarchy> | Keyword<KeywordKind.InFile> | Keyword<KeywordKind.InPackage>;
2105
2090
  export type ParameterClauseParent = PackageFunctionDeclaration | NestedFunctionDeclaration | FunctionLiteral | ConstructorDeclaration | DestructorDeclaration | MethodDeclaration | OperatorDeclaration | FunctionTypeDeclarationBody;
2106
2091
  export declare class ParameterClause extends BaseNode {
@@ -2199,4 +2184,4 @@ export declare class TypeAnnotation extends BaseNode {
2199
2184
  constructor(green: green.TypeAnnotation, rangeStart: number, parent: TypeAnnotationParent);
2200
2185
  private createChildren;
2201
2186
  }
2202
- export type Node = SourceFile | PackageMemberDeclarationList | Keyword | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackageName | NamedTypeSpecifier | UnionTypeSpecifier | IntersectionTypeSpecifier | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | InvalidTypeSpecifier | AnonymousFunctionTypeDeclaration | AnonymousStructuredTypeDeclaration | AnonymousVariantTypeDeclaration | TopLevelTranslationList | TranslationsDeclaration | PackageAliasTypeDeclaration | AliasTypeDeclarationBody | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageFunctionDeclaration | PackageFunctionTypeDeclaration | FunctionTypeDeclarationBody | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageStructuredTypeDeclaration | StructuredTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | VariantTypeDeclarationBody | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | InvalidPackageMemberDeclaration | TypeMemberGroupDeclaration | ConstructorDeclaration | DestructorDeclaration | IndexedElementGetterDeclaration | IndexedElementSetterDeclaration | IndexParameterClause | DereferencedVariableGetterDeclaration | DereferencedVariableSetterDeclaration | MethodDeclaration | OperatorDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | InvalidTypeMemberDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | FunctionBlockLiteral | ArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | FunctionLiteral | ParenthesizedExpression | WhenTernaryExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | AssignmentStatement | StatementList | StatementBlock | FunctionBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatement | TryStatement | CatchClause | ErrorVariableDeclaration | FinallyClause | EmptyStatement | ErrorStatement | ImportantStatement | ExpressionStatement | EnumerationVariableList | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | ElseClause | InvalidStatement | NestedFunctionDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList | CaseClause | WhileStatement | YieldStatement | TranslationParameterList | TranslationParameterClause | ConstructorTranslation | IndexParameterTranslationClause | IndexerTranslation | TranslationTypeParameterList | TranslationTypeParameterClause | PackageFunctionTranslation | MethodTranslation | FunctionTypeTranslation | PackageImportTranslation | QualifiedName | PackageVariableTranslation | FieldOrVariantTranslation | TypeMemberTranslationList | TypeTranslation | TextLiteralTranslation | TextTemplateLiteralTranslation | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation | Token;
2187
+ export type Node = SourceFile | PackageMemberDeclarationList | Keyword | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackageName | NamedTypeSpecifier | UnionTypeSpecifier | IntersectionTypeSpecifier | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | InvalidTypeSpecifier | AnonymousFunctionTypeDeclaration | AnonymousStructuredTypeDeclaration | AnonymousVariantTypeDeclaration | TopLevelTranslationList | TranslationsDeclaration | PackageAliasTypeDeclaration | AliasTypeDeclarationBody | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageFunctionDeclaration | PackageFunctionTypeDeclaration | FunctionTypeDeclarationBody | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageStructuredTypeDeclaration | StructuredTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | VariantTypeDeclarationBody | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | InvalidPackageMemberDeclaration | TypeMemberGroupDeclaration | ConstructorDeclaration | DestructorDeclaration | IndexedElementGetterDeclaration | IndexedElementSetterDeclaration | IndexParameterClause | DereferencedVariableGetterDeclaration | DereferencedVariableSetterDeclaration | MethodDeclaration | OperatorDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | InvalidTypeMemberDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | FunctionBlockLiteral | ArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | FunctionLiteral | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | AssignmentStatement | StatementList | StatementBlock | FunctionBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatement | TryStatement | CatchClause | ErrorVariableDeclaration | FinallyClause | EmptyStatement | ErrorStatement | ImportantStatement | ExpressionStatement | EnumerationVariableList | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | ElseClause | InvalidStatement | NestedFunctionDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList | CaseClause | WhileStatement | YieldStatement | TranslationParameterList | TranslationParameterClause | ConstructorTranslation | IndexParameterTranslationClause | IndexerTranslation | TranslationTypeParameterList | TranslationTypeParameterClause | PackageFunctionTranslation | MethodTranslation | FunctionTypeTranslation | PackageImportTranslation | QualifiedName | PackageVariableTranslation | FieldOrVariantTranslation | TypeMemberTranslationList | TypeTranslation | TextLiteralTranslation | TextTemplateLiteralTranslation | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation | Token;
@@ -310,8 +310,8 @@ export declare class TsPropertyEntity implements FieldEntity {
310
310
  getTags(): readonly Tag[];
311
311
  getContainer(): TypeMemberEntityContainer;
312
312
  isStatic(): boolean;
313
- isRedefinable(): boolean;
314
- isRedefined(): boolean;
313
+ isBasic(): boolean;
314
+ isOverridden(): boolean;
315
315
  isAbstract(): boolean;
316
316
  getOverriddenMembers(): readonly types.Variable[];
317
317
  isVariant(): boolean;
@@ -340,8 +340,8 @@ export declare class TsAccessorEntity implements FieldEntity {
340
340
  getTags(): readonly Tag[];
341
341
  getContainer(): TypeMemberEntityContainer;
342
342
  isStatic(): boolean;
343
- isRedefinable(): boolean;
344
- isRedefined(): boolean;
343
+ isBasic(): boolean;
344
+ isOverridden(): boolean;
345
345
  isAbstract(): boolean;
346
346
  getOverriddenMembers(): readonly types.Variable[];
347
347
  isVariant(): boolean;
@@ -395,8 +395,8 @@ export declare class TsFunctionEntity implements MethodEntity {
395
395
  getDefinition(): FunctionEntityDefinition;
396
396
  getContainer(): TypeMemberEntityContainer;
397
397
  isStatic(): boolean;
398
- isRedefinable(): boolean;
399
- isRedefined(): boolean;
398
+ isBasic(): boolean;
399
+ isOverridden(): boolean;
400
400
  isAbstract(): boolean;
401
401
  isModifyingOwningPlainObject(): boolean;
402
402
  isAsync(): boolean;
@@ -423,8 +423,8 @@ export declare class TsIteratorFunctionEntity implements MethodEntity {
423
423
  getDefinition(): FunctionEntityDefinition;
424
424
  getContainer(): TypeMemberEntityContainer;
425
425
  isStatic(): boolean;
426
- isRedefinable(): boolean;
427
- isRedefined(): boolean;
426
+ isBasic(): boolean;
427
+ isOverridden(): boolean;
428
428
  isAbstract(): boolean;
429
429
  isModifyingOwningPlainObject(): boolean;
430
430
  isAsync(): boolean;
@@ -499,8 +499,8 @@ export declare class TsIndexSignatureEntity implements IndexerEntity {
499
499
  getContainer(): TypeMemberEntityContainer;
500
500
  isStatic(): boolean;
501
501
  isHidden(): EntityHidingLevel | undefined;
502
- isRedefinable(): boolean;
503
- isRedefined(): boolean;
502
+ isBasic(): boolean;
503
+ isOverridden(): boolean;
504
504
  isAbstract(): boolean;
505
505
  getTags(): readonly Tag[];
506
506
  getOverriddenMembers(): readonly types.Indexer[];
@@ -571,8 +571,8 @@ export declare class TsEnumMemberEntity implements FieldEntity {
571
571
  constructor(_tsctx: TsInteropContext, _symbol: ts.Symbol, _variantTypeEntity: VariantTypeEntity);
572
572
  getContainer(): TypeMemberEntityContainer;
573
573
  isStatic(): boolean;
574
- isRedefinable(): boolean;
575
- isRedefined(): boolean;
574
+ isBasic(): boolean;
575
+ isOverridden(): boolean;
576
576
  isAbstract(): boolean;
577
577
  getOverriddenMembers(): readonly types.Variable[];
578
578
  isVariant(): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artel/artc",
3
- "version": "0.6.25227",
3
+ "version": "0.6.25229",
4
4
  "description": "Артель Компилятор | Artel Compiler",
5
5
  "author": "Nezaboodka Team <contact@nezaboodka.com>",
6
6
  "license": "LGPL-3.0-or-later",