@artel/artc 0.6.25227 → 0.6.25228
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 +4 -2
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +246 -232
- package/build/{chunk-NOECPQMV.js → chunk-5GSDYTF6.js} +2178 -1668
- package/build/{chunk-74TFH7TE.js → chunk-F5OW64UA.js} +3 -3
- package/build/{chunk-VD6OPILI.js → chunk-FHJJX7JY.js} +3 -3
- package/build/types/analysis/Analyzer.d.ts +9 -2
- package/build/types/analysis/DeclarationsUsageCounter.d.ts +8 -3
- package/build/types/analysis/DiagnosticCollector.d.ts +9 -2
- package/build/types/analysis/NodeTypeUtils.d.ts +2 -2
- package/build/types/analysis/PackageMemberNameConflictsValidator.d.ts +24 -0
- package/build/types/analysis/SourceFileMembers.d.ts +6 -1
- package/build/types/analysis/SourcePackageMembersCreator.d.ts +2 -1
- package/build/types/analysis/TypeInferrer.d.ts +2 -0
- package/build/types/analysis/control-flow/GraphBuilder.d.ts +5 -2
- package/build/types/analysis/semantic-context/SemanticContext.d.ts +1 -1
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +1 -80
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +1 -1
- package/build/types/analysis/semantic-context/SubprogramBodyAndParametersSemanticContext.d.ts +89 -0
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +0 -8
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +9 -24
- package/build/types/analysis/semantic-context/index.d.ts +1 -0
- package/build/types/common/Cached.d.ts +1 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +87 -72
- package/build/types/emitter/IrBuilder.d.ts +0 -1
- package/build/types/entities/VariableEntity.d.ts +13 -0
- package/build/types/entities/index.d.ts +4 -0
- package/build/types/tree/NodeKind.d.ts +81 -82
- package/build/types/tree/green/Nodes.d.ts +2 -20
- package/build/types/tree/red/Nodes.d.ts +3 -18
- package/package.json +1 -1
@@ -12,29 +12,30 @@ export declare enum DiagnosticCode {
|
|
12
12
|
EnumerationVariableDeclarationExpected = 106,
|
13
13
|
StatementExpected = 107,
|
14
14
|
ExpressionExpected = 108,
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
15
|
+
ExpressionCannotBeUsedAsStatement = 109,
|
16
|
+
BaseTypeNameExpected = 110,
|
17
|
+
TypeSpecifierExpected = 111,
|
18
|
+
TypeBodyExpected = 112,
|
19
|
+
FunctionCallArgumentExpected = 113,
|
20
|
+
IndexedAccessArgumentExpected = 114,
|
21
|
+
TagArgumentExpected = 115,
|
22
|
+
TypeParameterExpected = 116,
|
23
|
+
ParameterExpected = 117,
|
24
|
+
CatchClauseOrFinallyClauseExpected = 118,
|
25
|
+
PackageImportExpected = 119,
|
26
|
+
DeclarationOrPackageImportExpected = 120,
|
27
|
+
Expected0But1Found = 121,
|
28
|
+
InvalidTextTemplateLiteral = 122,
|
29
|
+
ModifierListExpected = 123,
|
30
|
+
RunKeywordCreationKeywordOrModifierListExpected = 124,
|
31
|
+
HidingLevelExpected = 125,
|
32
|
+
ParameterNameCanContainOnlyOneBackQuote = 126,
|
33
|
+
FieldNameCanContainOnlyTwoBackQuote = 127,
|
34
|
+
BackQuotesCanOnlyBeUsedInParameterAndFieldNames = 128,
|
35
|
+
NameThatMatchesKeywordMustBeEnclosedInSingleQuotes = 129,
|
36
|
+
TagNameExpected = 130,
|
37
|
+
TypeMemberTranslationExpected = 131,
|
38
|
+
TranslationExpected = 132,
|
38
39
|
TypeCannotBeUsedAsValue = 201,
|
39
40
|
PackageNameCannotBeUsedAsValue = 202,
|
40
41
|
PackageAliasCannotBeUsedAsValue = 203,
|
@@ -86,53 +87,67 @@ export declare enum DiagnosticCode {
|
|
86
87
|
InterfacePackageVariablesMustNotHaveInitializers = 249,
|
87
88
|
BodyIsMissing = 250,
|
88
89
|
AbstractTypeMembersMustNotHaveBody = 251,
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
90
|
+
MembersOfAspectTypeMustNotHaveBody = 252,
|
91
|
+
DeclarationsMarkedWithBuiltIntoPlatformTagMustNotHaveBody = 253,
|
92
|
+
AbstractVariablesMustNotHaveInitializers = 254,
|
93
|
+
PackageIsAlreadyImportedInAnotherLanguage = 255,
|
94
|
+
OnlySubprogramsWithReturnTypeCanReturnValue = 256,
|
95
|
+
FunctionsUsingYieldStatementCannotReturnValue = 257,
|
96
|
+
YieldStatementCannotBeUsedInAnonymousFunctions = 258,
|
97
|
+
YieldStatementCannotBeUsedHere = 259,
|
98
|
+
FunctionsUsingYieldStatementMustHaveEnumerableAsReturnType = 260,
|
99
|
+
YieldStatementCannotBeUsedInTryStatementThatHasCatchClause = 261,
|
100
|
+
YieldStatementCannotBeUsedInFinallyClause = 262,
|
101
|
+
SubprogramMustReturnValue = 263,
|
102
|
+
ResultVariableCannotBeUsedInFunctionsUsingYieldStatement = 264,
|
103
|
+
TypeAliasReferencesItself = 265,
|
104
|
+
TypeParameterHasCircularConstraint = 266,
|
105
|
+
BaseTypeCausesInheritanceCycle = 267,
|
106
|
+
OnlyGenericTypesAndFunctionsCanBeSpecialized = 268,
|
107
|
+
Expected0TypeArguments = 269,
|
108
|
+
ExpectedFrom0To1TypeArguments = 270,
|
109
|
+
Type0IsNotAssignableToConstraint1 = 271,
|
110
|
+
VariableIsDeclaredButItsValueIsNeverRead = 272,
|
111
|
+
FunctionIsDeclaredButNotUsed = 273,
|
112
|
+
TypeParameterIsDeclaredButNotUsed = 274,
|
113
|
+
DefaultConstructorArgumentsMustBeNamed = 275,
|
114
|
+
IncorrectBodyOfRedefinableAliasTypeMethod = 276,
|
115
|
+
TheFollowingDeclarationsAreNotTranslated0 = 277,
|
116
|
+
TheFollowingDeclarationAreNotTranslated0And1More = 278,
|
117
|
+
OperatorFunctionMustNotBeStatic = 279,
|
118
|
+
OperatorFunction0MustNotHaveParameters = 280,
|
119
|
+
OperatorFunction0MustHaveOneParameter = 281,
|
120
|
+
OperatorFunction0MustHaveNoMoreThanOneParameter = 282,
|
121
|
+
CorrespondingRedefinableTypeMemberNotFound = 283,
|
122
|
+
ConstructorCannotBeDeclaredAsBasic = 284,
|
123
|
+
ConstructorCannotBeDeclaredAsRedefinable = 285,
|
124
|
+
ConstructorCannotBeDeclaredAsOverridden = 286,
|
125
|
+
AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier = 287,
|
126
|
+
TagNotFound = 288,
|
127
|
+
TypeOrFunctionNameExpected = 289,
|
128
|
+
PackageNameOrAliasExpected = 290,
|
129
|
+
ExpressionCanBeNone = 291,
|
130
|
+
TargetVariableExpressionInTheAssignmentStatementCannotContainQuestionOperator = 292,
|
131
|
+
UnreachableCode = 293,
|
132
|
+
RecursionOccurredWhileCalculatingTheTypeOfTheExpression = 294,
|
133
|
+
RecursionOccurredWhileInferringTheTypeOfTheVariable = 295,
|
134
|
+
ScopeAlreadyContainsDeclarationWithTheSameName = 296,
|
135
|
+
ScopeAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 297,
|
136
|
+
ParameterName0ConflictsWithAutomaticallyGeneratedVariableName = 298,
|
137
|
+
PackageAlreadyContainsDeclarationWithTheSameName = 299,
|
138
|
+
PackageAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 300,
|
139
|
+
PackageAlreadyContainsTypeWithTheSameNameAndSameOrIntersectingTypeParameterCount = 301,
|
140
|
+
PackageAliasWithTheSameNameAlreadyExits = 302,
|
141
|
+
PackageCanHaveOnlyEntryPoint = 303,
|
142
|
+
PackageCanHaveOnlyOneConstructor = 304,
|
143
|
+
VariableIsUsedBeforeItsDeclaration = 305,
|
144
|
+
VariableMayNotHasBeenAssignedBeforeUsage = 306,
|
145
|
+
NotAllCodePathsReturnAValueAndResultLocalVariableMayNotHasBeenAssigned = 307,
|
146
|
+
WriteFunctionHasNoCorrespondingReadFunction = 308,
|
147
|
+
CannotFindTsLibDirectoryBaseSearchPaths0 = 401,
|
148
|
+
SourceFile0IsNotPartOfThePackageAndWontBeLoaded = 402,
|
149
|
+
ProgramWithoutMainPackageCannotBeCompiled = 403,
|
150
|
+
ErrorsInJsonConfigurationFile = 404,
|
151
|
+
StandardPackage0NotFound = 405,
|
152
|
+
Declaration0NotFoundInStandardPackage1 = 406
|
138
153
|
}
|
@@ -91,7 +91,6 @@ export declare class IrBuilder {
|
|
91
91
|
private convertIndexedAccess;
|
92
92
|
private convertDereferencedVariableAccess;
|
93
93
|
private buildReferenceExpression;
|
94
|
-
private buildWhenTernaryExpression;
|
95
94
|
private buildConditionalExpression;
|
96
95
|
private buildTextTemplateLiteral;
|
97
96
|
private buildTokenExpression;
|
@@ -48,6 +48,7 @@ interface IVariableEntity {
|
|
48
48
|
isHidden(): EntityHidingLevel | undefined;
|
49
49
|
isSpecial(): SpecialVariableEntityInfo | undefined;
|
50
50
|
getTags(): readonly Tag[];
|
51
|
+
ensureAllDiagnosticsReported?(): void;
|
51
52
|
}
|
52
53
|
export type ParameterVariableEntityContainer = ParameterVariableEntityContainer.Entity | ParameterVariableEntityContainer.FunctionLiteral;
|
53
54
|
export declare namespace ParameterVariableEntityContainer {
|
@@ -109,6 +110,7 @@ export declare class PackageVariableDeclarationEntity implements PackageVariable
|
|
109
110
|
readonly subkind = "package";
|
110
111
|
private readonly _typeInferrer;
|
111
112
|
private readonly _modifierFlags;
|
113
|
+
private _hasReportedAllDiagnostics;
|
112
114
|
private get modifierFlags();
|
113
115
|
constructor(_analyzer: Analyzer, _node: tree.PackageVariableDeclaration);
|
114
116
|
getName(): Name;
|
@@ -121,6 +123,7 @@ export declare class PackageVariableDeclarationEntity implements PackageVariable
|
|
121
123
|
isHidden(): EntityHidingLevel | undefined;
|
122
124
|
isSpecial(): SpecialVariableEntityInfo | undefined;
|
123
125
|
getTags(): readonly Tag[];
|
126
|
+
ensureAllDiagnosticsReported(): void;
|
124
127
|
}
|
125
128
|
export declare class ComputedPackageVariableDeclarationEntity implements PackageVariableEntity {
|
126
129
|
readonly kind = EntityKind.Variable;
|
@@ -151,6 +154,7 @@ export declare class FieldDeclarationEntity implements FieldEntity {
|
|
151
154
|
private readonly _typeInferrer;
|
152
155
|
private readonly _overriddenMembers;
|
153
156
|
private readonly _modifierFlags;
|
157
|
+
private _hasReportedAllDiagnostics;
|
154
158
|
private get modifierFlags();
|
155
159
|
constructor(analyzer: Analyzer, node: tree.FieldDeclaration);
|
156
160
|
getName(): Name;
|
@@ -169,6 +173,7 @@ export declare class FieldDeclarationEntity implements FieldEntity {
|
|
169
173
|
isAbstract(): boolean;
|
170
174
|
getOverriddenMembers(): readonly types.Variable[];
|
171
175
|
isVariant(): boolean;
|
176
|
+
ensureAllDiagnosticsReported(): void;
|
172
177
|
}
|
173
178
|
export declare class ComputedFieldDeclarationEntity implements FieldEntity {
|
174
179
|
readonly kind = EntityKind.Variable;
|
@@ -229,6 +234,7 @@ export declare class LocalVariableDeclarationEntity implements LocalVariableEnti
|
|
229
234
|
readonly kind = EntityKind.Variable;
|
230
235
|
readonly subkind = "local";
|
231
236
|
private readonly _typeInferrer;
|
237
|
+
private _hasReportedAllDiagnostics;
|
232
238
|
constructor(_analyzer: Analyzer, _node: tree.LocalVariableDeclaration);
|
233
239
|
getName(): Name;
|
234
240
|
getType(): types.Type;
|
@@ -241,6 +247,7 @@ export declare class LocalVariableDeclarationEntity implements LocalVariableEnti
|
|
241
247
|
getTags(): readonly Tag[];
|
242
248
|
getLocalVariableKind(): LocalVariableKind;
|
243
249
|
getContainingEntity(): Entity;
|
250
|
+
ensureAllDiagnosticsReported(): void;
|
244
251
|
}
|
245
252
|
export declare class EnumerationVariableDeclarationEntity implements LocalVariableEntity {
|
246
253
|
private readonly _analyzer;
|
@@ -248,6 +255,7 @@ export declare class EnumerationVariableDeclarationEntity implements LocalVariab
|
|
248
255
|
readonly kind = EntityKind.Variable;
|
249
256
|
readonly subkind = "local";
|
250
257
|
private readonly _typeInferrer;
|
258
|
+
private _hasReportedAllDiagnostics;
|
251
259
|
constructor(_analyzer: Analyzer, _node: tree.EnumerationVariableDeclaration);
|
252
260
|
getName(): Name;
|
253
261
|
getType(): types.Type;
|
@@ -260,6 +268,7 @@ export declare class EnumerationVariableDeclarationEntity implements LocalVariab
|
|
260
268
|
getTags(): readonly Tag[];
|
261
269
|
getLocalVariableKind(): LocalVariableKind;
|
262
270
|
getContainingEntity(): Entity;
|
271
|
+
ensureAllDiagnosticsReported(): void;
|
263
272
|
}
|
264
273
|
export declare class ErrorVariableDeclarationEntity implements LocalVariableEntity {
|
265
274
|
private readonly _analyzer;
|
@@ -285,6 +294,7 @@ export declare class ParameterDeclarationEntity implements ParameterVariableEnti
|
|
285
294
|
readonly kind = EntityKind.Variable;
|
286
295
|
readonly subkind = "parameter";
|
287
296
|
private readonly _typeInferrer;
|
297
|
+
private _hasReportedAllDiagnostics;
|
288
298
|
constructor(_analyzer: Analyzer, _node: tree.ParameterDeclaration);
|
289
299
|
getName(): Name;
|
290
300
|
getType(): types.Type;
|
@@ -298,6 +308,7 @@ export declare class ParameterDeclarationEntity implements ParameterVariableEnti
|
|
298
308
|
getContainer(): ParameterVariableEntityContainer;
|
299
309
|
isOptional(): boolean;
|
300
310
|
isVariadic(): boolean;
|
311
|
+
ensureAllDiagnosticsReported(): void;
|
301
312
|
}
|
302
313
|
export declare class IndexParameterDeclarationEntity implements ParameterVariableEntity {
|
303
314
|
private readonly _analyzer;
|
@@ -308,6 +319,7 @@ export declare class IndexParameterDeclarationEntity implements ParameterVariabl
|
|
308
319
|
readonly subkind = "parameter";
|
309
320
|
private readonly _getterOrSetterParameterDeclaration;
|
310
321
|
private readonly _typeInferrer;
|
322
|
+
private _hasReportedAllDiagnostics;
|
311
323
|
constructor(_analyzer: Analyzer, _getterParameterDeclaration: tree.ParameterDeclaration | undefined, _setterParameterDeclaration: tree.ParameterDeclaration | undefined, _indexerEntity: IndexerEntity);
|
312
324
|
getName(): Name;
|
313
325
|
getType(): types.Type;
|
@@ -321,6 +333,7 @@ export declare class IndexParameterDeclarationEntity implements ParameterVariabl
|
|
321
333
|
getContainer(): ParameterVariableEntityContainer;
|
322
334
|
isOptional(): boolean;
|
323
335
|
isVariadic(): boolean;
|
336
|
+
ensureAllDiagnosticsReported(): void;
|
324
337
|
}
|
325
338
|
export declare class FunctionLiteralParameterDeclarationEntity implements ParameterVariableEntity {
|
326
339
|
private readonly _analyzer;
|
@@ -77,6 +77,10 @@ export type EntityWithTags = ConstructorEntity | DestructorEntity | IndexerEntit
|
|
77
77
|
export declare function isEntityWithTags(entity: Entity): entity is EntityWithTags;
|
78
78
|
export type TypeMemberEntity = FieldEntity | MethodEntity | OperatorEntity | ConstructorEntity | DestructorEntity | IndexerEntity | DereferenceOperatorEntity;
|
79
79
|
export declare function isTypeMemberEntity(entity: Entity): entity is TypeMemberEntity;
|
80
|
+
export declare namespace TypeMemberEntity {
|
81
|
+
function isAspectTypeMember(entity: TypeMemberEntity): boolean;
|
82
|
+
function isStatic(entity: TypeMemberEntity): boolean;
|
83
|
+
}
|
80
84
|
export declare function entityToStringDecorator<T extends {
|
81
85
|
new (...args: any[]): Entity;
|
82
86
|
}>(constructor: T): void;
|
@@ -75,86 +75,85 @@ export declare enum NodeKind {
|
|
75
75
|
IsExpression = 73,
|
76
76
|
FunctionLiteral = 74,
|
77
77
|
ParenthesizedExpression = 75,
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
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
|
}
|
@@ -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 |
|
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 [
|
@@ -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 |
|
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;
|
@@ -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 |
|
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 |
|
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;
|
@@ -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 |
|
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;
|