@artel/artc 0.6.25264 → 0.6.25266

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 (52) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +8 -10
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +327 -341
  5. package/build/{chunk-3V2UPAG3.js → chunk-2Y343AG7.js} +1 -1
  6. package/build/{chunk-WTJNZUBE.js → chunk-4YMBG4SM.js} +3664 -2958
  7. package/build/{chunk-26UG42AZ.js → chunk-MHMPJB2Y.js} +2 -2
  8. package/build/types/analysis/AnalyzedTextTranslationPackage.d.ts +21 -0
  9. package/build/types/analysis/Analyzer.d.ts +15 -9
  10. package/build/types/analysis/DiagnosticCollector.d.ts +2 -0
  11. package/build/types/analysis/control-flow/NarrowableReference.d.ts +3 -3
  12. package/build/types/analysis/semantic-context/SemanticContext.d.ts +2 -3
  13. package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +11 -1
  14. package/build/types/analysis/semantic-context/SemanticContextBuilder.d.ts +10 -10
  15. package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +7 -7
  16. package/build/types/analysis/semantic-context/SpecialLocalDeclarationsBuilder.d.ts +1 -0
  17. package/build/types/analysis/semantic-context/SubprogramBodyAndParametersSemanticContext.d.ts +34 -12
  18. package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +9 -0
  19. package/build/types/common/Query.d.ts +1 -0
  20. package/build/types/diagnostic/DiagnosticCode.d.ts +1 -0
  21. package/build/types/emitter/EmitPhaseName.d.ts +3 -0
  22. package/build/types/emitter/Emitter.d.ts +1 -2
  23. package/build/types/emitter/EmitterContext.d.ts +1 -0
  24. package/build/types/emitter/Entities.d.ts +5 -0
  25. package/build/types/emitter/GeneralLowering.d.ts +1 -2
  26. package/build/types/emitter/IrBuilder.d.ts +5 -3
  27. package/build/types/emitter/IrFactory.d.ts +118 -0
  28. package/build/types/emitter/Transformer.d.ts +0 -2
  29. package/build/types/emitter/ir/Nodes.d.ts +328 -323
  30. package/build/types/emitter/ir/types.d.ts +2 -2
  31. package/build/types/entities/PackageEntity.d.ts +14 -3
  32. package/build/types/entities/StructuredTypeEntity.d.ts +1 -0
  33. package/build/types/entities/TextTranslationEntity.d.ts +45 -0
  34. package/build/types/entities/VariableEntity.d.ts +7 -16
  35. package/build/types/entities/index.d.ts +4 -4
  36. package/build/types/entities/translated/TranslatedPackageEntity.d.ts +3 -2
  37. package/build/types/parser/TokenKind.d.ts +56 -55
  38. package/build/types/parser/UnescapeText.d.ts +1 -0
  39. package/build/types/project/SourcePackage.d.ts +7 -3
  40. package/build/types/project/configuration/ConfigurationConverter.d.ts +3 -0
  41. package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +3 -0
  42. package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +3 -0
  43. package/build/types/services/DisplayService.d.ts +1 -1
  44. package/build/types/services/NodeSemanticInfo.d.ts +8 -2
  45. package/build/types/tree/NodeKind.d.ts +21 -20
  46. package/build/types/tree/Nodes.d.ts +45 -18
  47. package/build/types/tree/Token.d.ts +4 -1
  48. package/build/types/ts-interop/Entities.d.ts +5 -3
  49. package/build/types/ts-interop/TsInteropContext.d.ts +3 -2
  50. package/package.json +1 -1
  51. package/build/types/analysis/semantic-context/TranslationTextTemplateSemanticContext.d.ts +0 -13
  52. package/build/types/entities/LocalizableTextEntity.d.ts +0 -80
@@ -1,58 +1,62 @@
1
1
  import { AccessKind } from '../../common/index.js';
2
- import { FunctionEntity, NamedEntity, Type, TypeOrExtensionEntity, VariableEntity } from '../Entities.js';
2
+ import { FunctionEntity, NamedEntity, PackageEntity, Type, TypeOrExtensionEntity, VariableEntity } from '../Entities.js';
3
3
  import { AccessedFunction, AccessedVariable } from './AccessedEntities.js';
4
4
  import { ComputedAccess } from './ComputedAccess.js';
5
5
  import { AssignmentEmitOptions, CallExpressionEmitOptions, ConstructorCallExpressionEmitOptions, DeclarationWithInitializerEmitOptions, ErrorStatementEmitOptions, FieldAccessExpressionEmitOptions, FieldDeclarationEmitOptions, ForStatementEmitOptions, FunctionAccessExpressionEmitOptions, FunctionLiteralEmitOptions, MethodDeclarationEmitOptions, PackageVariableDeclarationEmitOptions, TextTemplateEmitOptions } from './EmitOptions.js';
6
6
  import { SourceLocation } from './SourceLocation.js';
7
7
  import { Expression, LValueExpression, PackageMemberDeclaration, Statement, TypeMemberDeclaration } from './types.js';
8
8
  export declare class Package {
9
+ entity: PackageEntity;
9
10
  leadingStatements: readonly Statement[];
10
11
  declarations: readonly PackageMemberDeclaration[];
11
12
  translations: readonly TextTranslationDeclaration[];
12
13
  trailingStatements: readonly Statement[];
13
- sourceLocation: SourceLocation | undefined;
14
+ defaultExportExpression: Expression | undefined;
15
+ sourceLocation?: SourceLocation | undefined;
14
16
  readonly kind = NodeKind.Package;
15
- constructor(leadingStatements: readonly Statement[], declarations: readonly PackageMemberDeclaration[], translations: readonly TextTranslationDeclaration[], trailingStatements: readonly Statement[], sourceLocation: SourceLocation | undefined);
17
+ constructor(entity: PackageEntity, leadingStatements: readonly Statement[], declarations: readonly PackageMemberDeclaration[], translations: readonly TextTranslationDeclaration[], trailingStatements: readonly Statement[], defaultExportExpression: Expression | undefined, sourceLocation?: SourceLocation | undefined);
16
18
  clone(): Package;
17
19
  }
18
20
  export declare class PackageFunctionDeclaration {
21
+ entity: FunctionEntity;
19
22
  modifiers: Modifiers;
20
23
  parameters: readonly ParameterDeclaration[];
21
24
  body: BlockStatement;
22
- entity: FunctionEntity;
23
25
  isGenerator: boolean;
24
- sourceLocation: SourceLocation | undefined;
26
+ sourceLocation?: SourceLocation | undefined;
25
27
  readonly kind = NodeKind.PackageFunctionDeclaration;
26
- constructor(modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, isGenerator: boolean, sourceLocation: SourceLocation | undefined);
28
+ constructor(entity: FunctionEntity, modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, isGenerator: boolean, sourceLocation?: SourceLocation | undefined);
27
29
  clone(): PackageFunctionDeclaration;
28
30
  }
29
31
  export declare class PackageTypeDeclaration {
30
- decorators: readonly Decorator[];
32
+ entity: TypeOrExtensionEntity;
31
33
  modifiers: Modifiers;
32
34
  members: readonly TypeMemberDeclaration[];
33
- entity: TypeOrExtensionEntity;
34
- sourceLocation: SourceLocation | undefined;
35
+ sourceLocation?: SourceLocation | undefined;
35
36
  readonly kind = NodeKind.PackageTypeDeclaration;
36
- constructor(decorators: readonly Decorator[], modifiers: Modifiers, members: readonly TypeMemberDeclaration[], entity: TypeOrExtensionEntity, sourceLocation: SourceLocation | undefined);
37
+ decorators: readonly Decorator[];
38
+ constructor(entity: TypeOrExtensionEntity, modifiers: Modifiers, members: readonly TypeMemberDeclaration[], sourceLocation?: SourceLocation | undefined);
39
+ withDecorators(decorators: readonly Decorator[]): this;
37
40
  clone(): PackageTypeDeclaration;
38
41
  }
39
42
  export declare class PackageVariableDeclaration {
43
+ entity: VariableEntity;
40
44
  modifiers: Modifiers;
41
45
  initializer: Expression | undefined;
42
- entity: VariableEntity;
43
- sourceLocation: SourceLocation | undefined;
44
- options: PackageVariableDeclarationEmitOptions;
46
+ sourceLocation?: SourceLocation | undefined;
45
47
  readonly kind = NodeKind.PackageVariableDeclaration;
46
- constructor(modifiers: Modifiers, initializer: Expression | undefined, entity: VariableEntity, sourceLocation: SourceLocation | undefined, options?: PackageVariableDeclarationEmitOptions);
48
+ options: PackageVariableDeclarationEmitOptions;
49
+ constructor(entity: VariableEntity, modifiers: Modifiers, initializer: Expression | undefined, sourceLocation?: SourceLocation | undefined);
50
+ withOptions(options: PackageVariableDeclarationEmitOptions): this;
47
51
  clone(): PackageVariableDeclaration;
48
52
  }
49
53
  export declare class PackageVariableGetterDeclaration {
50
54
  entity: FunctionEntity;
51
55
  variableEntity: VariableEntity;
52
56
  body: BlockStatement;
53
- sourceLocation: SourceLocation | undefined;
57
+ sourceLocation?: SourceLocation | undefined;
54
58
  readonly kind = NodeKind.PackageVariableGetterDeclaration;
55
- constructor(entity: FunctionEntity, variableEntity: VariableEntity, body: BlockStatement, sourceLocation: SourceLocation | undefined);
59
+ constructor(entity: FunctionEntity, variableEntity: VariableEntity, body: BlockStatement, sourceLocation?: SourceLocation | undefined);
56
60
  clone(): PackageVariableGetterDeclaration;
57
61
  }
58
62
  export declare class PackageVariableSetterDeclaration {
@@ -60,19 +64,19 @@ export declare class PackageVariableSetterDeclaration {
60
64
  variableEntity: VariableEntity;
61
65
  body: BlockStatement;
62
66
  valueLocalVariableEntity: VariableEntity;
63
- sourceLocation: SourceLocation | undefined;
67
+ sourceLocation?: SourceLocation | undefined;
64
68
  readonly kind = NodeKind.PackageVariableSetterDeclaration;
65
- constructor(entity: FunctionEntity, variableEntity: VariableEntity, body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
69
+ constructor(entity: FunctionEntity, variableEntity: VariableEntity, body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation?: SourceLocation | undefined);
66
70
  clone(): PackageVariableSetterDeclaration;
67
71
  }
68
72
  export declare class PackageVariantTypeDeclaration {
73
+ entity: TypeOrExtensionEntity;
69
74
  modifiers: Modifiers;
70
75
  underlyingTypeKind: UnderlyingTypeKind;
71
76
  variants: readonly VariantDeclaration[];
72
- entity: TypeOrExtensionEntity;
73
- sourceLocation: SourceLocation | undefined;
77
+ sourceLocation?: SourceLocation | undefined;
74
78
  readonly kind = NodeKind.PackageVariantTypeDeclaration;
75
- constructor(modifiers: Modifiers, underlyingTypeKind: UnderlyingTypeKind, variants: readonly VariantDeclaration[], entity: TypeOrExtensionEntity, sourceLocation: SourceLocation | undefined);
79
+ constructor(entity: TypeOrExtensionEntity, modifiers: Modifiers, underlyingTypeKind: UnderlyingTypeKind, variants: readonly VariantDeclaration[], sourceLocation?: SourceLocation | undefined);
76
80
  clone(): PackageVariantTypeDeclaration;
77
81
  }
78
82
  export declare const enum UnderlyingTypeKind {
@@ -80,85 +84,81 @@ export declare const enum UnderlyingTypeKind {
80
84
  NonNumeric = 1
81
85
  }
82
86
  export declare class VariantDeclaration {
83
- value: Expression | undefined;
84
87
  entity: VariableEntity;
85
- sourceLocation: SourceLocation | undefined;
88
+ value: Expression | undefined;
89
+ sourceLocation?: SourceLocation | undefined;
86
90
  readonly kind = NodeKind.VariantDeclaration;
87
- constructor(value: Expression | undefined, entity: VariableEntity, sourceLocation: SourceLocation | undefined);
91
+ constructor(entity: VariableEntity, value: Expression | undefined, sourceLocation?: SourceLocation | undefined);
88
92
  clone(): VariantDeclaration;
89
93
  }
90
94
  export declare class Decorator {
91
95
  expression: Expression;
92
- sourceLocation: SourceLocation | undefined;
96
+ sourceLocation?: SourceLocation | undefined;
93
97
  readonly kind = NodeKind.Decorator;
94
- constructor(expression: Expression, sourceLocation: SourceLocation | undefined);
98
+ constructor(expression: Expression, sourceLocation?: SourceLocation | undefined);
95
99
  clone(): Decorator;
96
100
  }
97
101
  export declare class ArrayLiteral {
98
102
  elements: readonly Expression[];
99
103
  type: Type;
100
- sourceLocation: SourceLocation | undefined;
104
+ sourceLocation?: SourceLocation | undefined;
101
105
  readonly kind = NodeKind.ArrayLiteral;
102
- constructor(elements: readonly Expression[], type: Type, sourceLocation: SourceLocation | undefined);
106
+ constructor(elements: readonly Expression[], type: Type, sourceLocation?: SourceLocation | undefined);
103
107
  clone(): ArrayLiteral;
104
108
  }
105
109
  export declare class AsExpression {
106
110
  expression: Expression;
107
111
  type: Type;
108
- sourceLocation: SourceLocation | undefined;
112
+ sourceLocation?: SourceLocation | undefined;
109
113
  readonly kind = NodeKind.AsExpression;
110
- constructor(expression: Expression, type: Type, sourceLocation: SourceLocation | undefined);
114
+ constructor(expression: Expression, type: Type, sourceLocation?: SourceLocation | undefined);
111
115
  clone(): AsExpression;
112
116
  }
113
117
  export declare class AssertionExpression {
114
118
  expression: Expression;
115
- sourceLocation: SourceLocation | undefined;
119
+ sourceLocation?: SourceLocation | undefined;
116
120
  readonly kind = NodeKind.AssertionExpression;
117
- constructor(expression: Expression, sourceLocation: SourceLocation | undefined);
121
+ constructor(expression: Expression, sourceLocation?: SourceLocation | undefined);
118
122
  clone(): AssertionExpression;
119
123
  }
120
124
  export declare class AssignmentExpression {
121
125
  left: LValueExpression;
122
126
  operatorKind: AssignmentOperatorKind;
123
127
  right: Expression;
128
+ sourceLocation?: SourceLocation | undefined;
129
+ readonly kind = NodeKind.AssignmentExpression;
124
130
  operator: AccessedFunction | undefined;
125
- sourceLocation: SourceLocation | undefined;
126
131
  options: AssignmentEmitOptions;
127
- readonly kind = NodeKind.AssignmentExpression;
128
- constructor(left: LValueExpression, operatorKind: AssignmentOperatorKind, right: Expression, operator: AccessedFunction | undefined, sourceLocation: SourceLocation | undefined, options?: AssignmentEmitOptions);
132
+ constructor(left: LValueExpression, operatorKind: AssignmentOperatorKind, right: Expression, sourceLocation?: SourceLocation | undefined);
133
+ withOperator(operator: AccessedFunction | undefined): this;
134
+ withOptions(options: AssignmentEmitOptions): this;
129
135
  clone(): AssignmentExpression;
130
136
  }
131
137
  export declare class AssignmentStatement {
132
138
  left: LValueExpression;
133
139
  operatorKind: AssignmentOperatorKind;
134
140
  right: Expression;
141
+ sourceLocation?: SourceLocation | undefined;
142
+ readonly kind = NodeKind.AssignmentStatement;
135
143
  operator: AccessedFunction | undefined;
136
- sourceLocation: SourceLocation | undefined;
137
144
  options: AssignmentEmitOptions;
138
- readonly kind = NodeKind.AssignmentStatement;
139
- constructor(left: LValueExpression, operatorKind: AssignmentOperatorKind, right: Expression, operator: AccessedFunction | undefined, sourceLocation: SourceLocation | undefined, options?: AssignmentEmitOptions);
145
+ constructor(left: LValueExpression, operatorKind: AssignmentOperatorKind, right: Expression, sourceLocation?: SourceLocation | undefined);
146
+ withOperator(operator: AccessedFunction | undefined): this;
147
+ withOptions(options: AssignmentEmitOptions): this;
140
148
  clone(): AssignmentStatement;
141
149
  }
142
- export declare class AssumptionExpression {
143
- expression: Expression;
144
- sourceLocation: SourceLocation | undefined;
145
- readonly kind = NodeKind.AssumptionExpression;
146
- constructor(expression: Expression, sourceLocation: SourceLocation | undefined);
147
- clone(): AssumptionExpression;
148
- }
149
150
  export declare class BaseConstructorCallExpression {
150
151
  entity: FunctionEntity;
151
- containingTypeOfConstructor: TypeOrExtensionEntity;
152
152
  args: Arguments;
153
- sourceLocation: SourceLocation | undefined;
153
+ sourceLocation?: SourceLocation | undefined;
154
154
  readonly kind = NodeKind.BaseConstructorCallExpression;
155
- constructor(entity: FunctionEntity, containingTypeOfConstructor: TypeOrExtensionEntity, args: Arguments, sourceLocation: SourceLocation | undefined);
155
+ constructor(entity: FunctionEntity, args: Arguments, sourceLocation?: SourceLocation | undefined);
156
156
  clone(): BaseConstructorCallExpression;
157
157
  }
158
158
  export declare class BaseExpression {
159
- sourceLocation: SourceLocation | undefined;
159
+ sourceLocation?: SourceLocation | undefined;
160
160
  readonly kind = NodeKind.BaseExpression;
161
- constructor(sourceLocation: SourceLocation | undefined);
161
+ constructor(sourceLocation?: SourceLocation | undefined);
162
162
  clone(): BaseExpression;
163
163
  }
164
164
  export declare class BinaryExpression {
@@ -166,39 +166,40 @@ export declare class BinaryExpression {
166
166
  operatorKind: BinaryExpressionOperatorKind;
167
167
  right: Expression;
168
168
  type: Type;
169
- operator: AccessedFunction | undefined;
170
- sourceLocation: SourceLocation | undefined;
169
+ sourceLocation?: SourceLocation | undefined;
171
170
  readonly kind = NodeKind.BinaryExpression;
172
- constructor(left: Expression, operatorKind: BinaryExpressionOperatorKind, right: Expression, type: Type, operator: AccessedFunction | undefined, sourceLocation: SourceLocation | undefined);
171
+ operator: AccessedFunction | undefined;
172
+ constructor(left: Expression, operatorKind: BinaryExpressionOperatorKind, right: Expression, type: Type, sourceLocation?: SourceLocation | undefined);
173
+ withOperator(operator: AccessedFunction | undefined): this;
173
174
  clone(): BinaryExpression;
174
175
  }
175
176
  export declare class BlockStatement {
176
177
  statements: readonly Statement[];
177
- sourceLocation: SourceLocation | undefined;
178
+ sourceLocation?: SourceLocation | undefined;
178
179
  readonly kind = NodeKind.BlockStatement;
179
- constructor(statements: readonly Statement[], sourceLocation: SourceLocation | undefined);
180
+ constructor(statements: readonly Statement[], sourceLocation?: SourceLocation | undefined);
180
181
  clone(): BlockStatement;
181
182
  }
182
183
  export declare class BooleanLiteral {
183
184
  value: boolean;
184
- sourceLocation: SourceLocation | undefined;
185
+ sourceLocation?: SourceLocation | undefined;
185
186
  readonly kind = NodeKind.BooleanLiteral;
186
- constructor(value: boolean, sourceLocation: SourceLocation | undefined);
187
+ constructor(value: boolean, sourceLocation?: SourceLocation | undefined);
187
188
  clone(): BooleanLiteral;
188
189
  }
189
190
  export declare class BreakLoopStatement {
190
191
  label: string;
191
- sourceLocation: SourceLocation | undefined;
192
+ sourceLocation?: SourceLocation | undefined;
192
193
  readonly kind = NodeKind.BreakLoopStatement;
193
- constructor(label: string, sourceLocation: SourceLocation | undefined);
194
+ constructor(label: string, sourceLocation?: SourceLocation | undefined);
194
195
  clone(): BreakLoopStatement;
195
196
  }
196
197
  export declare class Argument {
197
198
  expression: Expression;
198
199
  targetParameter: TargetParameter;
199
- sourceLocation: SourceLocation | undefined;
200
+ sourceLocation?: SourceLocation | undefined;
200
201
  readonly kind = NodeKind.Argument;
201
- constructor(expression: Expression, targetParameter: TargetParameter, sourceLocation: SourceLocation | undefined);
202
+ constructor(expression: Expression, targetParameter: TargetParameter, sourceLocation?: SourceLocation | undefined);
202
203
  clone(): Argument;
203
204
  }
204
205
  export declare class TargetParameter {
@@ -210,16 +211,16 @@ export type Arguments = UnorderedArguments | OrderedArguments;
210
211
  export declare class UnorderedArguments {
211
212
  values: readonly Argument[];
212
213
  targetParameters: readonly VariableEntity[];
213
- sourceLocation: SourceLocation | undefined;
214
+ sourceLocation?: SourceLocation | undefined;
214
215
  readonly kind = NodeKind.Arguments;
215
216
  readonly areOrdered = false;
216
- constructor(values: readonly Argument[], targetParameters: readonly VariableEntity[], sourceLocation: SourceLocation | undefined);
217
+ constructor(values: readonly Argument[], targetParameters: readonly VariableEntity[], sourceLocation?: SourceLocation | undefined);
217
218
  clone(): UnorderedArguments;
218
219
  }
219
220
  export declare class OrderedArguments {
220
221
  values: readonly Expression[];
221
222
  isLastArgumentSpreading: boolean;
222
- sourceLocation: SourceLocation | undefined;
223
+ sourceLocation?: SourceLocation | undefined;
223
224
  readonly kind = NodeKind.Arguments;
224
225
  readonly areOrdered = true;
225
226
  constructor(values: readonly Expression[], isLastArgumentSpreading: boolean, sourceLocation?: SourceLocation | undefined);
@@ -231,24 +232,25 @@ export declare class CallExpression {
231
232
  args: Arguments;
232
233
  isAsyncFunctionCall: boolean;
233
234
  returnType: Type;
234
- sourceLocation: SourceLocation | undefined;
235
- options: CallExpressionEmitOptions;
235
+ sourceLocation?: SourceLocation | undefined;
236
236
  readonly kind = NodeKind.CallExpression;
237
- constructor(expression: Expression, isOptionalAccess: boolean, args: Arguments, isAsyncFunctionCall: boolean, returnType: Type, sourceLocation: SourceLocation | undefined, options?: CallExpressionEmitOptions);
237
+ options: CallExpressionEmitOptions;
238
+ constructor(expression: Expression, isOptionalAccess: boolean, args: Arguments, isAsyncFunctionCall: boolean, returnType: Type, sourceLocation?: SourceLocation | undefined);
239
+ withOptions(options: CallExpressionEmitOptions): this;
238
240
  clone(): CallExpression;
239
241
  }
240
242
  export declare class CharLiteral {
241
243
  value: string;
242
- sourceLocation: SourceLocation | undefined;
244
+ sourceLocation?: SourceLocation | undefined;
243
245
  readonly kind = NodeKind.CharLiteral;
244
- constructor(value: string, sourceLocation: SourceLocation | undefined);
246
+ constructor(value: string, sourceLocation?: SourceLocation | undefined);
245
247
  clone(): CharLiteral;
246
248
  }
247
249
  export declare class CommaExpression {
248
250
  expressions: readonly Expression[];
249
- sourceLocation: SourceLocation | undefined;
251
+ sourceLocation?: SourceLocation | undefined;
250
252
  readonly kind = NodeKind.CommaExpression;
251
- constructor(expressions: readonly Expression[], sourceLocation: SourceLocation | undefined);
253
+ constructor(expressions: readonly Expression[], sourceLocation?: SourceLocation | undefined);
252
254
  clone(): CommaExpression;
253
255
  }
254
256
  export declare class ConstructorCallExpression {
@@ -257,69 +259,69 @@ export declare class ConstructorCallExpression {
257
259
  typeAccess: TypeAccessExpression;
258
260
  args: Arguments;
259
261
  returnType: Type;
260
- sourceLocation: SourceLocation | undefined;
262
+ sourceLocation?: SourceLocation | undefined;
261
263
  options: ConstructorCallExpressionEmitOptions;
262
264
  readonly kind = NodeKind.ConstructorCallExpression;
263
- constructor(entity: FunctionEntity, containingTypeOfConstructor: TypeOrExtensionEntity, typeAccess: TypeAccessExpression, args: Arguments, returnType: Type, sourceLocation: SourceLocation | undefined, options?: ConstructorCallExpressionEmitOptions);
265
+ constructor(entity: FunctionEntity, containingTypeOfConstructor: TypeOrExtensionEntity, typeAccess: TypeAccessExpression, args: Arguments, returnType: Type, sourceLocation?: SourceLocation | undefined, options?: ConstructorCallExpressionEmitOptions);
264
266
  clone(): ConstructorCallExpression;
265
267
  }
266
268
  export declare class ContinueLoopStatement {
267
269
  label: string;
268
- sourceLocation: SourceLocation | undefined;
270
+ sourceLocation?: SourceLocation | undefined;
269
271
  readonly kind = NodeKind.ContinueLoopStatement;
270
- constructor(label: string, sourceLocation: SourceLocation | undefined);
272
+ constructor(label: string, sourceLocation?: SourceLocation | undefined);
271
273
  clone(): ContinueLoopStatement;
272
274
  }
273
275
  export declare class DereferenceExpression {
274
276
  expression: Expression;
275
277
  isOptionalAccess: boolean;
276
278
  access: ComputedAccess;
277
- sourceLocation: SourceLocation | undefined;
279
+ sourceLocation?: SourceLocation | undefined;
278
280
  readonly kind = NodeKind.DereferenceExpression;
279
- constructor(expression: Expression, isOptionalAccess: boolean, access: ComputedAccess, sourceLocation: SourceLocation | undefined);
281
+ constructor(expression: Expression, isOptionalAccess: boolean, access: ComputedAccess, sourceLocation?: SourceLocation | undefined);
280
282
  clone(): DereferenceExpression;
281
283
  }
282
284
  export declare class DisposeStatement {
283
285
  expression: Expression;
284
286
  destructorEntity: FunctionEntity;
285
- sourceLocation: SourceLocation | undefined;
287
+ sourceLocation?: SourceLocation | undefined;
286
288
  readonly kind = NodeKind.DisposeStatement;
287
- constructor(expression: Expression, destructorEntity: FunctionEntity, sourceLocation: SourceLocation | undefined);
289
+ constructor(expression: Expression, destructorEntity: FunctionEntity, sourceLocation?: SourceLocation | undefined);
288
290
  clone(): DisposeStatement;
289
291
  }
290
292
  export declare class EmptyStatement {
291
- sourceLocation: SourceLocation | undefined;
293
+ sourceLocation?: SourceLocation | undefined;
292
294
  readonly kind = NodeKind.EmptyStatement;
293
- constructor(sourceLocation: SourceLocation | undefined);
295
+ constructor(sourceLocation?: SourceLocation | undefined);
294
296
  clone(): EmptyStatement;
295
297
  }
296
298
  export declare class ErrorStatement {
297
299
  expression: Expression;
298
- sourceLocation: SourceLocation | undefined;
300
+ sourceLocation?: SourceLocation | undefined;
299
301
  options: ErrorStatementEmitOptions;
300
302
  readonly kind = NodeKind.ErrorStatement;
301
- constructor(expression: Expression, sourceLocation: SourceLocation | undefined, options?: ErrorStatementEmitOptions);
303
+ constructor(expression: Expression, sourceLocation?: SourceLocation | undefined, options?: ErrorStatementEmitOptions);
302
304
  clone(): ErrorStatement;
303
305
  }
304
306
  export declare class ImportantStatement {
305
307
  expression: Expression;
306
- sourceLocation: SourceLocation | undefined;
308
+ sourceLocation?: SourceLocation | undefined;
307
309
  readonly kind = NodeKind.ImportantStatement;
308
- constructor(expression: Expression, sourceLocation: SourceLocation | undefined);
310
+ constructor(expression: Expression, sourceLocation?: SourceLocation | undefined);
309
311
  clone(): ImportantStatement;
310
312
  }
311
313
  export declare class ExpressionStatement {
312
314
  expression: Expression;
313
- sourceLocation: SourceLocation | undefined;
315
+ sourceLocation?: SourceLocation | undefined;
314
316
  readonly kind = NodeKind.ExpressionStatement;
315
- constructor(expression: Expression, sourceLocation: SourceLocation | undefined);
317
+ constructor(expression: Expression, sourceLocation?: SourceLocation | undefined);
316
318
  clone(): ExpressionStatement;
317
319
  }
318
320
  export declare class FinallyClause {
319
321
  body: BlockStatement;
320
- sourceLocation: SourceLocation | undefined;
322
+ sourceLocation?: SourceLocation | undefined;
321
323
  readonly kind = NodeKind.FinallyClause;
322
- constructor(body: BlockStatement, sourceLocation: SourceLocation | undefined);
324
+ constructor(body: BlockStatement, sourceLocation?: SourceLocation | undefined);
323
325
  clone(): FinallyClause;
324
326
  }
325
327
  export declare class ForStatement {
@@ -329,19 +331,19 @@ export declare class ForStatement {
329
331
  enumeratedExpression: Expression;
330
332
  body: BlockStatement;
331
333
  ifExpressionIsNotEnumerableThenEnumeratorMethod: AccessedFunction | undefined;
332
- sourceLocation: SourceLocation | undefined;
334
+ sourceLocation?: SourceLocation | undefined;
333
335
  options: ForStatementEmitOptions;
334
336
  readonly kind = NodeKind.ForStatement;
335
- constructor(label: string | undefined, elementVariableEntity: VariableEntity, indexVariableEntity: VariableEntity | undefined, enumeratedExpression: Expression, body: BlockStatement, ifExpressionIsNotEnumerableThenEnumeratorMethod: AccessedFunction | undefined, sourceLocation: SourceLocation | undefined, options?: ForStatementEmitOptions);
337
+ constructor(label: string | undefined, elementVariableEntity: VariableEntity, indexVariableEntity: VariableEntity | undefined, enumeratedExpression: Expression, body: BlockStatement, ifExpressionIsNotEnumerableThenEnumeratorMethod: AccessedFunction | undefined, sourceLocation?: SourceLocation | undefined, options?: ForStatementEmitOptions);
336
338
  clone(): ForStatement;
337
339
  }
338
340
  export declare class IfStatement {
339
341
  condition: Expression;
340
342
  thenStatement: BlockStatement;
341
343
  elseStatement: BlockStatement | undefined;
342
- sourceLocation: SourceLocation | undefined;
344
+ sourceLocation?: SourceLocation | undefined;
343
345
  readonly kind = NodeKind.IfStatement;
344
- constructor(condition: Expression, thenStatement: BlockStatement, elseStatement: BlockStatement | undefined, sourceLocation: SourceLocation | undefined);
346
+ constructor(condition: Expression, thenStatement: BlockStatement, elseStatement: BlockStatement | undefined, sourceLocation?: SourceLocation | undefined);
345
347
  clone(): IfStatement;
346
348
  }
347
349
  export declare class IndexedAccessExpression {
@@ -349,32 +351,32 @@ export declare class IndexedAccessExpression {
349
351
  isOptionalAccess: boolean;
350
352
  args: Arguments;
351
353
  access: ComputedAccess;
352
- sourceLocation: SourceLocation | undefined;
354
+ sourceLocation?: SourceLocation | undefined;
353
355
  readonly kind = NodeKind.IndexedAccessExpression;
354
- constructor(expression: Expression, isOptionalAccess: boolean, args: Arguments, access: ComputedAccess, sourceLocation: SourceLocation | undefined);
356
+ constructor(expression: Expression, isOptionalAccess: boolean, args: Arguments, access: ComputedAccess, sourceLocation?: SourceLocation | undefined);
355
357
  clone(): IndexedAccessExpression;
356
358
  }
357
359
  export declare class InlineJsExpression {
358
360
  code: string;
359
361
  type: Type;
360
- sourceLocation: SourceLocation | undefined;
362
+ sourceLocation?: SourceLocation | undefined;
361
363
  readonly kind = NodeKind.InlineJsExpression;
362
- constructor(code: string, type: Type, sourceLocation: SourceLocation | undefined);
364
+ constructor(code: string, type: Type, sourceLocation?: SourceLocation | undefined);
363
365
  clone(): InlineJsExpression;
364
366
  }
365
367
  export declare class IntegerLiteral {
366
368
  value: number;
367
- sourceLocation: SourceLocation | undefined;
369
+ sourceLocation?: SourceLocation | undefined;
368
370
  readonly kind = NodeKind.IntegerLiteral;
369
- constructor(value: number, sourceLocation: SourceLocation | undefined);
371
+ constructor(value: number, sourceLocation?: SourceLocation | undefined);
370
372
  clone(): IntegerLiteral;
371
373
  }
372
374
  export declare class IsExpression {
373
375
  expression: Expression;
374
376
  type: Type;
375
- sourceLocation: SourceLocation | undefined;
377
+ sourceLocation?: SourceLocation | undefined;
376
378
  readonly kind = NodeKind.IsExpression;
377
- constructor(expression: Expression, type: Type, sourceLocation: SourceLocation | undefined);
379
+ constructor(expression: Expression, type: Type, sourceLocation?: SourceLocation | undefined);
378
380
  clone(): IsExpression;
379
381
  }
380
382
  export declare class JsFunctionLiteral {
@@ -382,16 +384,16 @@ export declare class JsFunctionLiteral {
382
384
  body: BlockStatement;
383
385
  isAsync: boolean;
384
386
  isGenerator: boolean;
385
- sourceLocation: SourceLocation | undefined;
387
+ sourceLocation?: SourceLocation | undefined;
386
388
  readonly kind = NodeKind.JsFunctionLiteral;
387
- constructor(parameters: readonly ParameterDeclaration[], body: BlockStatement, isAsync: boolean, isGenerator: boolean, sourceLocation: SourceLocation | undefined);
389
+ constructor(parameters: readonly ParameterDeclaration[], body: BlockStatement, isAsync: boolean, isGenerator: boolean, sourceLocation?: SourceLocation | undefined);
388
390
  clone(): JsFunctionLiteral;
389
391
  }
390
392
  export declare class JsIdentifierExpression {
391
393
  identifier: string;
392
- sourceLocation: SourceLocation | undefined;
394
+ sourceLocation?: SourceLocation | undefined;
393
395
  readonly kind = NodeKind.JsIdentifierExpression;
394
- constructor(identifier: string, sourceLocation: SourceLocation | undefined);
396
+ constructor(identifier: string, sourceLocation?: SourceLocation | undefined);
395
397
  clone(): JsIdentifierExpression;
396
398
  }
397
399
  export type JsModuleImportDirectiveStatement = EsModuleImportDirectiveStatement | CjsModuleImportDirectiveStatement;
@@ -399,18 +401,18 @@ export declare class EsModuleImportDirectiveStatement {
399
401
  defaultImport: string | undefined;
400
402
  importSpecifiers: readonly JsImportSpecifier[];
401
403
  path: string;
402
- sourceLocation: SourceLocation | undefined;
404
+ sourceLocation?: SourceLocation | undefined;
403
405
  readonly kind = NodeKind.EsModuleImportDirectiveStatement;
404
- constructor(defaultImport: string | undefined, importSpecifiers: readonly JsImportSpecifier[], path: string, sourceLocation: SourceLocation | undefined);
406
+ constructor(defaultImport: string | undefined, importSpecifiers: readonly JsImportSpecifier[], path: string, sourceLocation?: SourceLocation | undefined);
405
407
  clone(): EsModuleImportDirectiveStatement;
406
408
  }
407
409
  export declare class CjsModuleImportDirectiveStatement {
408
410
  defaultImport: string;
409
411
  importSpecifiers: readonly JsImportSpecifier[];
410
412
  path: string;
411
- sourceLocation: SourceLocation | undefined;
413
+ sourceLocation?: SourceLocation | undefined;
412
414
  readonly kind = NodeKind.CjsModuleImportDirectiveStatement;
413
- constructor(defaultImport: string, importSpecifiers: readonly JsImportSpecifier[], path: string, sourceLocation: SourceLocation | undefined);
415
+ constructor(defaultImport: string, importSpecifiers: readonly JsImportSpecifier[], path: string, sourceLocation?: SourceLocation | undefined);
414
416
  clone(): CjsModuleImportDirectiveStatement;
415
417
  }
416
418
  export declare class JsImportSpecifier {
@@ -425,33 +427,33 @@ export declare class JsIndexedAccessExpression {
425
427
  isOptionalAccess: boolean;
426
428
  argument: Expression;
427
429
  type: Type;
428
- sourceLocation: SourceLocation | undefined;
430
+ sourceLocation?: SourceLocation | undefined;
429
431
  readonly kind = NodeKind.JsIndexedAccessExpression;
430
- constructor(expression: Expression, isOptionalAccess: boolean, argument: Expression, type: Type, sourceLocation: SourceLocation | undefined);
432
+ constructor(expression: Expression, isOptionalAccess: boolean, argument: Expression, type: Type, sourceLocation?: SourceLocation | undefined);
431
433
  clone(): JsIndexedAccessExpression;
432
434
  }
433
435
  export declare class JsInstanceOfExpression {
434
436
  expression: Expression;
435
437
  type: TypeOrExtensionEntity;
436
- sourceLocation: SourceLocation | undefined;
438
+ sourceLocation?: SourceLocation | undefined;
437
439
  readonly kind = NodeKind.JsInstanceOfExpression;
438
- constructor(expression: Expression, type: TypeOrExtensionEntity, sourceLocation: SourceLocation | undefined);
440
+ constructor(expression: Expression, type: TypeOrExtensionEntity, sourceLocation?: SourceLocation | undefined);
439
441
  clone(): JsInstanceOfExpression;
440
442
  }
441
443
  export declare class JsNamespaceDestructuringStatement {
442
444
  defaultImport: string | undefined;
443
445
  destructuredMembers: readonly JsImportSpecifier[];
444
446
  namespaceNameSegments: readonly string[];
445
- sourceLocation: SourceLocation | undefined;
447
+ sourceLocation?: SourceLocation | undefined;
446
448
  readonly kind = NodeKind.JsNamespaceDestructuringStatement;
447
- constructor(defaultImport: string | undefined, destructuredMembers: readonly JsImportSpecifier[], namespaceNameSegments: readonly string[], sourceLocation: SourceLocation | undefined);
449
+ constructor(defaultImport: string | undefined, destructuredMembers: readonly JsImportSpecifier[], namespaceNameSegments: readonly string[], sourceLocation?: SourceLocation | undefined);
448
450
  clone(): JsNamespaceDestructuringStatement;
449
451
  }
450
452
  export declare class JsObjectLiteral {
451
453
  properties: readonly JsObjectLiteralProperty[];
452
- sourceLocation: SourceLocation | undefined;
454
+ sourceLocation?: SourceLocation | undefined;
453
455
  readonly kind = NodeKind.JsObjectLiteral;
454
- constructor(properties: readonly JsObjectLiteralProperty[], sourceLocation: SourceLocation | undefined);
456
+ constructor(properties: readonly JsObjectLiteralProperty[], sourceLocation?: SourceLocation | undefined);
455
457
  clone(): JsObjectLiteral;
456
458
  }
457
459
  export type JsObjectLiteralProperty = ValueJsObjectLiteralProperty | FunctionJsObjectLiteralProperty | SpreadJsObjectLiteralProperty;
@@ -462,18 +464,18 @@ export declare namespace JsObjectLiteralPropertyKey {
462
464
  export declare class ValueJsObjectLiteralProperty {
463
465
  key: JsObjectLiteralPropertyKey;
464
466
  value: Expression;
465
- sourceLocation: SourceLocation | undefined;
467
+ sourceLocation?: SourceLocation | undefined;
466
468
  readonly kind = NodeKind.ValueJsObjectLiteralProperty;
467
- constructor(key: JsObjectLiteralPropertyKey, value: Expression, sourceLocation: SourceLocation | undefined);
469
+ constructor(key: JsObjectLiteralPropertyKey, value: Expression, sourceLocation?: SourceLocation | undefined);
468
470
  clone(): ValueJsObjectLiteralProperty;
469
471
  }
470
472
  export declare class FunctionJsObjectLiteralProperty {
471
473
  key: JsObjectLiteralPropertyKey;
472
474
  parameters: readonly ParameterDeclaration[];
473
475
  body: BlockStatement;
474
- sourceLocation: SourceLocation | undefined;
476
+ sourceLocation?: SourceLocation | undefined;
475
477
  readonly kind = NodeKind.FunctionJsObjectLiteralProperty;
476
- constructor(key: JsObjectLiteralPropertyKey, parameters: readonly ParameterDeclaration[], body: BlockStatement, sourceLocation: SourceLocation | undefined);
478
+ constructor(key: JsObjectLiteralPropertyKey, parameters: readonly ParameterDeclaration[], body: BlockStatement, sourceLocation?: SourceLocation | undefined);
477
479
  clone(): FunctionJsObjectLiteralProperty;
478
480
  }
479
481
  /**
@@ -482,9 +484,9 @@ export declare class FunctionJsObjectLiteralProperty {
482
484
  */
483
485
  export declare class SpreadJsObjectLiteralProperty {
484
486
  expression: Expression;
485
- sourceLocation: SourceLocation | undefined;
487
+ sourceLocation?: SourceLocation | undefined;
486
488
  readonly kind = NodeKind.SpreadJsObjectLiteralProperty;
487
- constructor(expression: Expression, sourceLocation: SourceLocation | undefined);
489
+ constructor(expression: Expression, sourceLocation?: SourceLocation | undefined);
488
490
  clone(): SpreadJsObjectLiteralProperty;
489
491
  }
490
492
  export declare class JsPropertyAccessExpression {
@@ -492,56 +494,56 @@ export declare class JsPropertyAccessExpression {
492
494
  isOptionalAccess: boolean;
493
495
  name: string;
494
496
  type: Type;
495
- sourceLocation: SourceLocation | undefined;
497
+ sourceLocation?: SourceLocation | undefined;
496
498
  readonly kind = NodeKind.JsPropertyAccessExpression;
497
- constructor(expression: Expression, isOptionalAccess: boolean, name: string, type: Type, sourceLocation: SourceLocation | undefined);
499
+ constructor(expression: Expression, isOptionalAccess: boolean, name: string, type: Type, sourceLocation?: SourceLocation | undefined);
498
500
  clone(): JsPropertyAccessExpression;
499
501
  }
500
502
  export declare class JsTypeOfExpression {
501
503
  expression: Expression;
502
- sourceLocation: SourceLocation | undefined;
504
+ sourceLocation?: SourceLocation | undefined;
503
505
  readonly kind = NodeKind.JsTypeOfExpression;
504
- constructor(expression: Expression, sourceLocation: SourceLocation | undefined);
506
+ constructor(expression: Expression, sourceLocation?: SourceLocation | undefined);
505
507
  clone(): JsTypeOfExpression;
506
508
  }
507
509
  export declare class LocalVariableDeclaration {
508
510
  entity: VariableEntity;
509
511
  initializer: Expression | undefined;
510
- sourceLocation: SourceLocation | undefined;
512
+ sourceLocation?: SourceLocation | undefined;
511
513
  options: DeclarationWithInitializerEmitOptions;
512
514
  readonly kind = NodeKind.LocalVariableDeclaration;
513
- constructor(entity: VariableEntity, initializer: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: DeclarationWithInitializerEmitOptions);
515
+ constructor(entity: VariableEntity, initializer: Expression | undefined, sourceLocation?: SourceLocation | undefined, options?: DeclarationWithInitializerEmitOptions);
514
516
  clone(): LocalVariableDeclaration;
515
517
  }
516
518
  export declare class LocalVariableDeclarationStatement {
517
519
  declaration: LocalVariableDeclaration;
518
- sourceLocation: SourceLocation | undefined;
520
+ sourceLocation?: SourceLocation | undefined;
519
521
  readonly kind = NodeKind.LocalVariableDeclarationStatement;
520
- constructor(declaration: LocalVariableDeclaration, sourceLocation: SourceLocation | undefined);
522
+ constructor(declaration: LocalVariableDeclaration, sourceLocation?: SourceLocation | undefined);
521
523
  clone(): LocalVariableDeclarationStatement;
522
524
  }
523
525
  export declare class LoopStatement {
524
526
  label: string | undefined;
525
527
  body: BlockStatement;
526
528
  condition: Expression | undefined;
527
- sourceLocation: SourceLocation | undefined;
529
+ sourceLocation?: SourceLocation | undefined;
528
530
  readonly kind = NodeKind.LoopStatement;
529
- constructor(label: string | undefined, body: BlockStatement, condition: Expression | undefined, sourceLocation: SourceLocation | undefined);
531
+ constructor(label: string | undefined, body: BlockStatement, condition: Expression | undefined, sourceLocation?: SourceLocation | undefined);
530
532
  clone(): LoopStatement;
531
533
  }
532
534
  export declare class MeasureLiteral {
533
- sourceLocation: SourceLocation | undefined;
535
+ sourceLocation?: SourceLocation | undefined;
534
536
  readonly kind = NodeKind.MeasureLiteral;
535
- constructor(sourceLocation: SourceLocation | undefined);
537
+ constructor(sourceLocation?: SourceLocation | undefined);
536
538
  clone(): MeasureLiteral;
537
539
  }
538
540
  export declare class FunctionAccessExpression {
539
541
  func: AccessedFunction;
540
542
  isCallee: boolean;
541
- sourceLocation: SourceLocation | undefined;
543
+ sourceLocation?: SourceLocation | undefined;
542
544
  options: FunctionAccessExpressionEmitOptions;
543
545
  readonly kind = NodeKind.FunctionAccessExpression;
544
- constructor(func: AccessedFunction, isCallee: boolean, sourceLocation: SourceLocation | undefined, options?: FunctionAccessExpressionEmitOptions);
546
+ constructor(func: AccessedFunction, isCallee: boolean, sourceLocation?: SourceLocation | undefined, options?: FunctionAccessExpressionEmitOptions);
545
547
  clone(): FunctionAccessExpression;
546
548
  }
547
549
  export declare class FunctionLiteral {
@@ -549,10 +551,10 @@ export declare class FunctionLiteral {
549
551
  body: BlockStatement;
550
552
  isAsync: boolean;
551
553
  returnType: Type;
552
- sourceLocation: SourceLocation | undefined;
554
+ sourceLocation?: SourceLocation | undefined;
553
555
  options: FunctionLiteralEmitOptions;
554
556
  readonly kind = NodeKind.FunctionLiteral;
555
- constructor(parameters: readonly ParameterDeclaration[], body: BlockStatement, isAsync: boolean, returnType: Type, sourceLocation: SourceLocation | undefined, options?: FunctionLiteralEmitOptions);
557
+ constructor(parameters: readonly ParameterDeclaration[], body: BlockStatement, isAsync: boolean, returnType: Type, sourceLocation?: SourceLocation | undefined, options?: FunctionLiteralEmitOptions);
556
558
  clone(): FunctionLiteral;
557
559
  }
558
560
  export declare class Modifiers {
@@ -581,94 +583,94 @@ export declare class NestedFunctionDeclaration {
581
583
  entity: FunctionEntity;
582
584
  isAsync: boolean;
583
585
  isGenerator: boolean;
584
- sourceLocation: SourceLocation | undefined;
586
+ sourceLocation?: SourceLocation | undefined;
585
587
  readonly kind = NodeKind.NestedFunctionDeclaration;
586
- constructor(parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, isAsync: boolean, isGenerator: boolean, sourceLocation: SourceLocation | undefined);
588
+ constructor(parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, isAsync: boolean, isGenerator: boolean, sourceLocation?: SourceLocation | undefined);
587
589
  clone(): NestedFunctionDeclaration;
588
590
  }
589
591
  export declare class NestedFunctionDeclarationStatement {
590
592
  declaration: NestedFunctionDeclaration;
591
- sourceLocation: SourceLocation | undefined;
593
+ sourceLocation?: SourceLocation | undefined;
592
594
  readonly kind = NodeKind.NestedFunctionDeclarationStatement;
593
- constructor(declaration: NestedFunctionDeclaration, sourceLocation: SourceLocation | undefined);
595
+ constructor(declaration: NestedFunctionDeclaration, sourceLocation?: SourceLocation | undefined);
594
596
  clone(): NestedFunctionDeclarationStatement;
595
597
  }
596
598
  export declare class NullLiteral {
597
- sourceLocation: SourceLocation | undefined;
599
+ sourceLocation?: SourceLocation | undefined;
598
600
  readonly kind = NodeKind.NullLiteral;
599
- constructor(sourceLocation: SourceLocation | undefined);
601
+ constructor(sourceLocation?: SourceLocation | undefined);
600
602
  clone(): NullLiteral;
601
603
  }
602
604
  export declare class NumericLiteral {
603
605
  value: number;
604
- sourceLocation: SourceLocation | undefined;
606
+ sourceLocation?: SourceLocation | undefined;
605
607
  readonly kind = NodeKind.NumericLiteral;
606
- constructor(value: number, sourceLocation: SourceLocation | undefined);
608
+ constructor(value: number, sourceLocation?: SourceLocation | undefined);
607
609
  clone(): NumericLiteral;
608
610
  }
609
611
  export declare class CatchClause {
610
612
  errorVariableEntity: VariableEntity | undefined;
611
613
  body: BlockStatement;
612
- sourceLocation: SourceLocation | undefined;
614
+ sourceLocation?: SourceLocation | undefined;
613
615
  readonly kind = NodeKind.CatchClause;
614
- constructor(errorVariableEntity: VariableEntity | undefined, body: BlockStatement, sourceLocation: SourceLocation | undefined);
616
+ constructor(errorVariableEntity: VariableEntity | undefined, body: BlockStatement, sourceLocation?: SourceLocation | undefined);
615
617
  clone(): CatchClause;
616
618
  }
617
619
  export declare class OwnConstructorCallExpression {
618
620
  entity: FunctionEntity;
619
621
  containingTypeOfConstructor: TypeOrExtensionEntity;
620
622
  args: Arguments;
621
- sourceLocation: SourceLocation | undefined;
623
+ sourceLocation?: SourceLocation | undefined;
622
624
  readonly kind = NodeKind.OwnConstructorCallExpression;
623
- constructor(entity: FunctionEntity, containingTypeOfConstructor: TypeOrExtensionEntity, args: Arguments, sourceLocation: SourceLocation | undefined);
625
+ constructor(entity: FunctionEntity, containingTypeOfConstructor: TypeOrExtensionEntity, args: Arguments, sourceLocation?: SourceLocation | undefined);
624
626
  clone(): OwnConstructorCallExpression;
625
627
  }
626
628
  export declare class PrefixUnaryExpression {
627
629
  operatorKind: PrefixUnaryExpressionOperatorKind;
628
630
  expression: Expression;
629
631
  operator: AccessedFunction | undefined;
630
- sourceLocation: SourceLocation | undefined;
632
+ sourceLocation?: SourceLocation | undefined;
631
633
  readonly kind = NodeKind.PrefixUnaryExpression;
632
- constructor(operatorKind: PrefixUnaryExpressionOperatorKind, expression: Expression, operator: AccessedFunction | undefined, sourceLocation: SourceLocation | undefined);
634
+ constructor(operatorKind: PrefixUnaryExpressionOperatorKind, expression: Expression, operator: AccessedFunction | undefined, sourceLocation?: SourceLocation | undefined);
633
635
  clone(): PrefixUnaryExpression;
634
636
  }
635
637
  export declare class ReferenceExpression {
636
638
  expression: Expression;
637
- sourceLocation: SourceLocation | undefined;
639
+ sourceLocation?: SourceLocation | undefined;
638
640
  readonly kind = NodeKind.ReferenceExpression;
639
- constructor(expression: Expression, sourceLocation: SourceLocation | undefined);
641
+ constructor(expression: Expression, sourceLocation?: SourceLocation | undefined);
640
642
  clone(): ReferenceExpression;
641
643
  }
642
644
  export declare class ReturnStatement {
643
645
  expression: Expression | undefined;
644
- sourceLocation: SourceLocation | undefined;
646
+ sourceLocation?: SourceLocation | undefined;
645
647
  readonly kind = NodeKind.ReturnStatement;
646
- constructor(expression: Expression | undefined, sourceLocation: SourceLocation | undefined);
648
+ constructor(expression: Expression | undefined, sourceLocation?: SourceLocation | undefined);
647
649
  clone(): ReturnStatement;
648
650
  }
649
651
  export declare class RunStatement {
650
652
  body: BlockStatement;
651
- sourceLocation: SourceLocation | undefined;
653
+ sourceLocation?: SourceLocation | undefined;
652
654
  readonly kind = NodeKind.RunStatement;
653
- constructor(body: BlockStatement, sourceLocation: SourceLocation | undefined);
655
+ constructor(body: BlockStatement, sourceLocation?: SourceLocation | undefined);
654
656
  clone(): RunStatement;
655
657
  }
656
658
  export declare class TryStatement {
657
659
  body: BlockStatement;
658
660
  catchClause: CatchClause | undefined;
659
661
  finallyClause: FinallyClause | undefined;
660
- sourceLocation: SourceLocation | undefined;
662
+ sourceLocation?: SourceLocation | undefined;
661
663
  readonly kind = NodeKind.TryStatement;
662
- constructor(body: BlockStatement, catchClause: CatchClause | undefined, finallyClause: FinallyClause | undefined, sourceLocation: SourceLocation | undefined);
664
+ constructor(body: BlockStatement, catchClause: CatchClause | undefined, finallyClause: FinallyClause | undefined, sourceLocation?: SourceLocation | undefined);
663
665
  clone(): TryStatement;
664
666
  }
665
667
  export declare class SwitchStatement {
666
668
  matchExpression: Expression;
667
669
  caseClauses: readonly CaseClause[];
668
670
  defaultClauseBody: BlockStatement | undefined;
669
- sourceLocation: SourceLocation | undefined;
671
+ sourceLocation?: SourceLocation | undefined;
670
672
  readonly kind = NodeKind.SwitchStatement;
671
- constructor(matchExpression: Expression, caseClauses: readonly CaseClause[], defaultClauseBody: BlockStatement | undefined, sourceLocation: SourceLocation | undefined);
673
+ constructor(matchExpression: Expression, caseClauses: readonly CaseClause[], defaultClauseBody: BlockStatement | undefined, sourceLocation?: SourceLocation | undefined);
672
674
  clone(): SwitchStatement;
673
675
  }
674
676
  export declare class CaseClause {
@@ -683,23 +685,24 @@ export declare class TernaryExpression {
683
685
  firstExpression: Expression;
684
686
  secondExpression: Expression;
685
687
  type: Type;
686
- sourceLocation: SourceLocation | undefined;
688
+ sourceLocation?: SourceLocation | undefined;
687
689
  readonly kind = NodeKind.TernaryExpression;
688
- constructor(condition: Expression, firstExpression: Expression, secondExpression: Expression, type: Type, sourceLocation: SourceLocation | undefined);
690
+ constructor(condition: Expression, firstExpression: Expression, secondExpression: Expression, type: Type, sourceLocation?: SourceLocation | undefined);
689
691
  clone(): TernaryExpression;
690
692
  }
691
693
  export declare class TextLiteral {
692
694
  value: string;
693
- sourceLocation: SourceLocation | undefined;
695
+ sourceLocation?: SourceLocation | undefined;
694
696
  readonly kind = NodeKind.TextLiteral;
695
- constructor(value: string, sourceLocation: SourceLocation | undefined);
697
+ constructor(value: string, sourceLocation?: SourceLocation | undefined);
696
698
  clone(): TextLiteral;
697
699
  }
698
700
  export declare class LocalizableTextLiteral {
699
701
  value: string;
700
- sourceLocation: SourceLocation | undefined;
702
+ code: number | undefined;
703
+ sourceLocation?: SourceLocation | undefined;
701
704
  readonly kind = NodeKind.LocalizableTextLiteral;
702
- constructor(value: string, sourceLocation: SourceLocation | undefined);
705
+ constructor(value: string, code: number | undefined, sourceLocation?: SourceLocation | undefined);
703
706
  clone(): LocalizableTextLiteral;
704
707
  }
705
708
  /**
@@ -709,39 +712,42 @@ export declare class LocalizableTextLiteral {
709
712
  */
710
713
  export declare class TextWithEntityName {
711
714
  readonly entity: NamedEntity;
712
- sourceLocation: SourceLocation | undefined;
715
+ sourceLocation?: SourceLocation | undefined;
713
716
  readonly kind = NodeKind.TextWithEntityName;
714
- constructor(entity: NamedEntity, sourceLocation: SourceLocation | undefined);
717
+ constructor(entity: NamedEntity, sourceLocation?: SourceLocation | undefined);
715
718
  clone(): TextWithEntityName;
716
719
  }
717
720
  export declare class TextTemplateLiteral {
718
- elements: readonly (string | Expression)[];
719
- sourceLocation: SourceLocation | undefined;
721
+ textFragments: readonly string[];
722
+ expressions: readonly Expression[];
723
+ sourceLocation?: SourceLocation | undefined;
720
724
  options: TextTemplateEmitOptions;
721
725
  readonly kind = NodeKind.TextTemplateLiteral;
722
- constructor(elements: readonly (string | Expression)[], sourceLocation: SourceLocation | undefined, options?: TextTemplateEmitOptions);
726
+ constructor(textFragments: readonly string[], expressions: readonly Expression[], sourceLocation?: SourceLocation | undefined, options?: TextTemplateEmitOptions);
723
727
  clone(): TextTemplateLiteral;
724
728
  }
725
729
  export declare class LocalizableTextTemplateLiteral {
726
- elements: readonly (string | Expression)[];
727
- sourceLocation: SourceLocation | undefined;
730
+ textFragments: readonly string[];
731
+ expressions: readonly Expression[];
732
+ code: number | undefined;
733
+ sourceLocation?: SourceLocation | undefined;
728
734
  options: TextTemplateEmitOptions;
729
735
  readonly kind = NodeKind.LocalizableTextTemplateLiteral;
730
- constructor(elements: readonly (string | Expression)[], sourceLocation: SourceLocation | undefined, options?: TextTemplateEmitOptions);
736
+ constructor(textFragments: readonly string[], expressions: readonly Expression[], code: number | undefined, sourceLocation?: SourceLocation | undefined, options?: TextTemplateEmitOptions);
731
737
  clone(): LocalizableTextTemplateLiteral;
732
738
  }
733
739
  export declare class ThisExpression {
734
740
  type: Type;
735
- sourceLocation: SourceLocation | undefined;
741
+ sourceLocation?: SourceLocation | undefined;
736
742
  readonly kind = NodeKind.ThisExpression;
737
- constructor(type: Type, sourceLocation: SourceLocation | undefined);
743
+ constructor(type: Type, sourceLocation?: SourceLocation | undefined);
738
744
  clone(): ThisExpression;
739
745
  }
740
746
  export declare class TypeAccessExpression {
741
747
  entity: TypeOrExtensionEntity;
742
- sourceLocation: SourceLocation | undefined;
748
+ sourceLocation?: SourceLocation | undefined;
743
749
  readonly kind = NodeKind.TypeAccessExpression;
744
- constructor(entity: TypeOrExtensionEntity, sourceLocation: SourceLocation | undefined);
750
+ constructor(entity: TypeOrExtensionEntity, sourceLocation?: SourceLocation | undefined);
745
751
  clone(): TypeAccessExpression;
746
752
  }
747
753
  export declare class ConstructorDeclaration {
@@ -749,9 +755,9 @@ export declare class ConstructorDeclaration {
749
755
  parameters: readonly ParameterDeclaration[];
750
756
  body: BlockStatement;
751
757
  entity: FunctionEntity;
752
- sourceLocation: SourceLocation | undefined;
758
+ sourceLocation?: SourceLocation | undefined;
753
759
  readonly kind = NodeKind.ConstructorDeclaration;
754
- constructor(decorators: readonly Decorator[], parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, sourceLocation: SourceLocation | undefined);
760
+ constructor(decorators: readonly Decorator[], parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, sourceLocation?: SourceLocation | undefined);
755
761
  clone(): ConstructorDeclaration;
756
762
  }
757
763
  export declare class DereferencedVariableGetterDeclaration {
@@ -759,9 +765,9 @@ export declare class DereferencedVariableGetterDeclaration {
759
765
  decorators: readonly Decorator[];
760
766
  modifiers: Modifiers;
761
767
  body: BlockStatement;
762
- sourceLocation: SourceLocation | undefined;
768
+ sourceLocation?: SourceLocation | undefined;
763
769
  readonly kind = NodeKind.DereferencedVariableGetterDeclaration;
764
- constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, body: BlockStatement, sourceLocation: SourceLocation | undefined);
770
+ constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, body: BlockStatement, sourceLocation?: SourceLocation | undefined);
765
771
  clone(): DereferencedVariableGetterDeclaration;
766
772
  }
767
773
  export declare class DereferencedVariableSetterDeclaration {
@@ -770,9 +776,9 @@ export declare class DereferencedVariableSetterDeclaration {
770
776
  modifiers: Modifiers;
771
777
  body: BlockStatement;
772
778
  valueLocalVariableEntity: VariableEntity;
773
- sourceLocation: SourceLocation | undefined;
779
+ sourceLocation?: SourceLocation | undefined;
774
780
  readonly kind = NodeKind.DereferencedVariableSetterDeclaration;
775
- constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
781
+ constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation?: SourceLocation | undefined);
776
782
  clone(): DereferencedVariableSetterDeclaration;
777
783
  }
778
784
  export declare class DestructorDeclaration {
@@ -780,9 +786,9 @@ export declare class DestructorDeclaration {
780
786
  parameters: readonly ParameterDeclaration[];
781
787
  body: BlockStatement;
782
788
  entity: FunctionEntity;
783
- sourceLocation: SourceLocation | undefined;
789
+ sourceLocation?: SourceLocation | undefined;
784
790
  readonly kind = NodeKind.DestructorDeclaration;
785
- constructor(decorators: readonly Decorator[], parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, sourceLocation: SourceLocation | undefined);
791
+ constructor(decorators: readonly Decorator[], parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, sourceLocation?: SourceLocation | undefined);
786
792
  clone(): DestructorDeclaration;
787
793
  }
788
794
  export declare class IndexedElementGetterDeclaration {
@@ -791,9 +797,9 @@ export declare class IndexedElementGetterDeclaration {
791
797
  modifiers: Modifiers;
792
798
  parameters: readonly ParameterDeclaration[];
793
799
  body: BlockStatement;
794
- sourceLocation: SourceLocation | undefined;
800
+ sourceLocation?: SourceLocation | undefined;
795
801
  readonly kind = NodeKind.IndexedElementGetterDeclaration;
796
- constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, sourceLocation: SourceLocation | undefined);
802
+ constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, sourceLocation?: SourceLocation | undefined);
797
803
  clone(): IndexedElementGetterDeclaration;
798
804
  }
799
805
  export declare class IndexedElementSetterDeclaration {
@@ -803,9 +809,9 @@ export declare class IndexedElementSetterDeclaration {
803
809
  parameters: readonly ParameterDeclaration[];
804
810
  body: BlockStatement;
805
811
  valueLocalVariableEntity: VariableEntity;
806
- sourceLocation: SourceLocation | undefined;
812
+ sourceLocation?: SourceLocation | undefined;
807
813
  readonly kind = NodeKind.IndexedElementSetterDeclaration;
808
- constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
814
+ constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation?: SourceLocation | undefined);
809
815
  clone(): IndexedElementSetterDeclaration;
810
816
  }
811
817
  export declare class MethodAccessExpression {
@@ -814,10 +820,10 @@ export declare class MethodAccessExpression {
814
820
  method: AccessedFunction;
815
821
  isCallee: boolean;
816
822
  ifComputedThenKey: Expression | undefined;
817
- sourceLocation: SourceLocation | undefined;
823
+ sourceLocation?: SourceLocation | undefined;
818
824
  options: FunctionAccessExpressionEmitOptions;
819
825
  readonly kind = NodeKind.MethodAccessExpression;
820
- constructor(expression: Expression, isOptionalAccess: boolean, method: AccessedFunction, isCallee: boolean, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: FunctionAccessExpressionEmitOptions);
826
+ constructor(expression: Expression, isOptionalAccess: boolean, method: AccessedFunction, isCallee: boolean, ifComputedThenKey: Expression | undefined, sourceLocation?: SourceLocation | undefined, options?: FunctionAccessExpressionEmitOptions);
821
827
  clone(): MethodAccessExpression;
822
828
  }
823
829
  export declare class MethodDeclaration {
@@ -828,10 +834,10 @@ export declare class MethodDeclaration {
828
834
  entity: FunctionEntity;
829
835
  isGenerator: boolean;
830
836
  ifComputedThenKey: Expression | undefined;
831
- sourceLocation: SourceLocation | undefined;
837
+ sourceLocation?: SourceLocation | undefined;
832
838
  options: MethodDeclarationEmitOptions;
833
839
  readonly kind = NodeKind.MethodDeclaration;
834
- constructor(decorators: readonly Decorator[], modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, isGenerator: boolean, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: MethodDeclarationEmitOptions);
840
+ constructor(decorators: readonly Decorator[], modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, isGenerator: boolean, ifComputedThenKey: Expression | undefined, sourceLocation?: SourceLocation | undefined, options?: MethodDeclarationEmitOptions);
835
841
  clone(): MethodDeclaration;
836
842
  }
837
843
  export declare class FieldAccessExpression {
@@ -840,10 +846,10 @@ export declare class FieldAccessExpression {
840
846
  field: AccessedVariable;
841
847
  accessKind: AccessKind;
842
848
  ifComputedThenKey: Expression | undefined;
843
- sourceLocation: SourceLocation | undefined;
849
+ sourceLocation?: SourceLocation | undefined;
844
850
  options: FieldAccessExpressionEmitOptions;
845
851
  readonly kind = NodeKind.FieldAccessExpression;
846
- constructor(expression: Expression, isOptionalAccess: boolean, field: AccessedVariable, accessKind: AccessKind, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: FieldAccessExpressionEmitOptions);
852
+ constructor(expression: Expression, isOptionalAccess: boolean, field: AccessedVariable, accessKind: AccessKind, ifComputedThenKey: Expression | undefined, sourceLocation?: SourceLocation | undefined, options?: FieldAccessExpressionEmitOptions);
847
853
  static get(expression: Expression, isOptionalAccess: boolean, field: AccessedVariable | VariableEntity, ifComputedThenKey?: Expression, sourceLocation?: SourceLocation): FieldAccessExpression;
848
854
  static set(expression: Expression, isOptionalAccess: boolean, field: AccessedVariable | VariableEntity, ifComputedThenKey?: Expression, sourceLocation?: SourceLocation): FieldAccessExpression;
849
855
  clone(): FieldAccessExpression;
@@ -854,10 +860,10 @@ export declare class FieldDeclaration {
854
860
  initializer: Expression | undefined;
855
861
  entity: VariableEntity;
856
862
  ifComputedThenKey: Expression | undefined;
857
- sourceLocation: SourceLocation | undefined;
863
+ sourceLocation?: SourceLocation | undefined;
858
864
  options: FieldDeclarationEmitOptions;
859
865
  readonly kind = NodeKind.FieldDeclaration;
860
- constructor(decorators: readonly Decorator[], modifiers: Modifiers, initializer: Expression | undefined, entity: VariableEntity, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: FieldDeclarationEmitOptions);
866
+ constructor(decorators: readonly Decorator[], modifiers: Modifiers, initializer: Expression | undefined, entity: VariableEntity, ifComputedThenKey: Expression | undefined, sourceLocation?: SourceLocation | undefined, options?: FieldDeclarationEmitOptions);
861
867
  clone(): FieldDeclaration;
862
868
  }
863
869
  export declare class ComputedFieldDeclaration {
@@ -866,19 +872,19 @@ export declare class ComputedFieldDeclaration {
866
872
  getter: FieldGetterDeclaration;
867
873
  setter: FieldSetterDeclaration | undefined;
868
874
  ifComputedThenKey: Expression | undefined;
869
- sourceLocation: SourceLocation | undefined;
875
+ sourceLocation?: SourceLocation | undefined;
870
876
  options: FieldDeclarationEmitOptions;
871
877
  readonly kind = NodeKind.ComputedFieldDeclaration;
872
- constructor(entity: VariableEntity, modifiers: Modifiers, getter: FieldGetterDeclaration, setter: FieldSetterDeclaration | undefined, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: FieldDeclarationEmitOptions);
878
+ constructor(entity: VariableEntity, modifiers: Modifiers, getter: FieldGetterDeclaration, setter: FieldSetterDeclaration | undefined, ifComputedThenKey: Expression | undefined, sourceLocation?: SourceLocation | undefined, options?: FieldDeclarationEmitOptions);
873
879
  clone(): ComputedFieldDeclaration;
874
880
  }
875
881
  export declare class FieldGetterDeclaration {
876
882
  entity: FunctionEntity;
877
883
  decorators: readonly Decorator[];
878
884
  body: BlockStatement;
879
- sourceLocation: SourceLocation | undefined;
885
+ sourceLocation?: SourceLocation | undefined;
880
886
  readonly kind = NodeKind.FieldGetterDeclaration;
881
- constructor(entity: FunctionEntity, decorators: readonly Decorator[], body: BlockStatement, sourceLocation: SourceLocation | undefined);
887
+ constructor(entity: FunctionEntity, decorators: readonly Decorator[], body: BlockStatement, sourceLocation?: SourceLocation | undefined);
882
888
  clone(): FieldGetterDeclaration;
883
889
  }
884
890
  export declare class FieldSetterDeclaration {
@@ -886,9 +892,9 @@ export declare class FieldSetterDeclaration {
886
892
  decorators: readonly Decorator[];
887
893
  body: BlockStatement;
888
894
  valueLocalVariableEntity: VariableEntity;
889
- sourceLocation: SourceLocation | undefined;
895
+ sourceLocation?: SourceLocation | undefined;
890
896
  readonly kind = NodeKind.FieldSetterDeclaration;
891
- constructor(entity: FunctionEntity, decorators: readonly Decorator[], body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
897
+ constructor(entity: FunctionEntity, decorators: readonly Decorator[], body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation?: SourceLocation | undefined);
892
898
  clone(): FieldSetterDeclaration;
893
899
  }
894
900
  export declare class ParameterDeclaration {
@@ -898,21 +904,21 @@ export declare class ParameterDeclaration {
898
904
  * ...param
899
905
  */
900
906
  isRest: boolean;
901
- sourceLocation: SourceLocation | undefined;
907
+ sourceLocation?: SourceLocation | undefined;
902
908
  readonly kind = NodeKind.ParameterDeclaration;
903
909
  constructor(entity: VariableEntity, defaultValue: Expression | undefined,
904
910
  /**
905
911
  * ...param
906
912
  */
907
- isRest: boolean, sourceLocation: SourceLocation | undefined);
913
+ isRest: boolean, sourceLocation?: SourceLocation | undefined);
908
914
  clone(): ParameterDeclaration;
909
915
  }
910
916
  export declare class VariableAccessExpression {
911
917
  variable: AccessedVariable;
912
918
  accessKind: AccessKind;
913
- sourceLocation: SourceLocation | undefined;
919
+ sourceLocation?: SourceLocation | undefined;
914
920
  readonly kind = NodeKind.VariableAccessExpression;
915
- constructor(variable: AccessedVariable, accessKind: AccessKind, sourceLocation: SourceLocation | undefined);
921
+ constructor(variable: AccessedVariable, accessKind: AccessKind, sourceLocation?: SourceLocation | undefined);
916
922
  static get(variable: AccessedVariable | VariableEntity): VariableAccessExpression;
917
923
  static set(variable: AccessedVariable | VariableEntity): VariableAccessExpression;
918
924
  clone(): VariableAccessExpression;
@@ -921,140 +927,139 @@ export declare class WhileStatement {
921
927
  label: string | undefined;
922
928
  condition: Expression;
923
929
  body: BlockStatement;
924
- sourceLocation: SourceLocation | undefined;
930
+ sourceLocation?: SourceLocation | undefined;
925
931
  readonly kind = NodeKind.WhileStatement;
926
- constructor(label: string | undefined, condition: Expression, body: BlockStatement, sourceLocation: SourceLocation | undefined);
932
+ constructor(label: string | undefined, condition: Expression, body: BlockStatement, sourceLocation?: SourceLocation | undefined);
927
933
  clone(): WhileStatement;
928
934
  }
929
935
  export declare class YieldStatement {
930
936
  expression: Expression;
931
- sourceLocation: SourceLocation | undefined;
937
+ sourceLocation?: SourceLocation | undefined;
932
938
  readonly kind = NodeKind.YieldStatement;
933
- constructor(expression: Expression, sourceLocation: SourceLocation | undefined);
939
+ constructor(expression: Expression, sourceLocation?: SourceLocation | undefined);
934
940
  clone(): YieldStatement;
935
941
  }
936
942
  export declare class TextTranslationDeclaration {
937
- key: string;
943
+ key: string | number;
938
944
  sourceTextTemplate: TranslationTextTemplate | undefined;
939
- translatedTextOrTranslationFunction: string | FunctionLiteral | undefined;
940
- sourceLocation: SourceLocation | undefined;
945
+ translatedTextOrFunctionBlock: TextLiteral | BlockStatement;
946
+ sourceLocation?: SourceLocation | undefined;
941
947
  readonly kind = NodeKind.TextTranslationDeclaration;
942
- constructor(key: string, sourceTextTemplate: TranslationTextTemplate | undefined, translatedTextOrTranslationFunction: string | FunctionLiteral | undefined, sourceLocation: SourceLocation | undefined);
948
+ constructor(key: string | number, sourceTextTemplate: TranslationTextTemplate | undefined, translatedTextOrFunctionBlock: TextLiteral | BlockStatement, sourceLocation?: SourceLocation | undefined);
943
949
  clone(): TextTranslationDeclaration;
944
950
  }
945
951
  export declare class TranslationTextTemplate {
946
952
  fragments: readonly string[];
947
953
  parameters: readonly VariableEntity[];
948
- sourceLocation: SourceLocation | undefined;
954
+ sourceLocation?: SourceLocation | undefined;
949
955
  readonly kind = NodeKind.TranslationTextTemplate;
950
- constructor(fragments: readonly string[], parameters: readonly VariableEntity[], sourceLocation: SourceLocation | undefined);
956
+ constructor(fragments: readonly string[], parameters: readonly VariableEntity[], sourceLocation?: SourceLocation | undefined);
951
957
  clone(): TranslationTextTemplate;
952
958
  }
953
959
  export declare const enum NodeKind {
954
960
  AsExpression = 0,
955
961
  AssertionExpression = 1,
956
- AssumptionExpression = 2,
957
- AssignmentStatement = 3,
958
- BinaryExpression = 4,
959
- BlockStatement = 5,
960
- BooleanLiteral = 6,
961
- BreakLoopStatement = 7,
962
- Argument = 8,
963
- CallExpression = 9,
964
- CaseClause = 10,
965
- CharLiteral = 11,
966
- ContinueLoopStatement = 12,
967
- DisposeStatement = 13,
968
- RunStatement = 14,
969
- TryStatement = 15,
970
- NullLiteral = 16,
971
- EmptyStatement = 17,
972
- ErrorStatement = 18,
973
- ImportantStatement = 19,
974
- ExpressionStatement = 20,
975
- FinallyClause = 21,
976
- ForStatement = 22,
977
- PackageFunctionDeclaration = 23,
978
- PackageTypeDeclaration = 24,
979
- PackageVariableDeclaration = 25,
980
- PackageVariableGetterDeclaration = 26,
981
- PackageVariableSetterDeclaration = 27,
982
- PackageVariantTypeDeclaration = 28,
983
- IfStatement = 29,
984
- IndexedAccessExpression = 30,
985
- IntegerLiteral = 31,
986
- IsExpression = 32,
987
- NestedFunctionDeclaration = 33,
988
- NestedFunctionDeclarationStatement = 34,
989
- LocalVariableDeclaration = 35,
990
- LocalVariableDeclarationStatement = 36,
991
- NumericLiteral = 37,
992
- CatchClause = 38,
993
- FunctionLiteral = 39,
994
- PrefixUnaryExpression = 40,
995
- MeasureLiteral = 41,
996
- ReferenceExpression = 42,
997
- LoopStatement = 43,
998
- ReturnStatement = 44,
999
- Package = 45,
1000
- TextLiteral = 46,
1001
- LocalizableTextLiteral = 47,
1002
- TextTemplateLiteral = 48,
1003
- LocalizableTextTemplateLiteral = 49,
1004
- ConstructorDeclaration = 50,
1005
- DestructorDeclaration = 51,
1006
- IndexedElementGetterDeclaration = 52,
1007
- IndexedElementSetterDeclaration = 53,
1008
- MethodDeclaration = 54,
1009
- FieldDeclaration = 55,
1010
- FieldGetterDeclaration = 56,
1011
- FieldSetterDeclaration = 57,
1012
- SwitchStatement = 58,
1013
- TernaryExpression = 59,
1014
- ThisExpression = 60,
1015
- ParameterDeclaration = 61,
1016
- VariantDeclaration = 62,
1017
- WhileStatement = 63,
1018
- YieldStatement = 64,
1019
- ArrayLiteral = 65,
1020
- TypeAccessExpression = 66,
1021
- VariableAccessExpression = 67,
1022
- FunctionAccessExpression = 68,
1023
- ImplicitVariantAccessExpression = 69,
1024
- VariantAccessExpression = 70,
1025
- FieldAccessExpression = 71,
1026
- MethodAccessExpression = 72,
1027
- ConstructorCallExpression = 73,
1028
- InlineJsExpression = 74,
1029
- AssignmentExpression = 75,
1030
- CommaExpression = 76,
1031
- BaseConstructorCallExpression = 77,
1032
- JsImportSpecifier = 78,
1033
- JsIndexedAccessExpression = 79,
1034
- EsModuleImportDirectiveStatement = 80,
1035
- CjsModuleImportDirectiveStatement = 81,
1036
- JsObjectLiteral = 82,
1037
- ValueJsObjectLiteralProperty = 83,
1038
- FunctionJsObjectLiteralProperty = 84,
1039
- SpreadJsObjectLiteralProperty = 85,
1040
- JsPropertyAccessExpression = 86,
1041
- JsFunctionLiteral = 87,
1042
- JsTypeOfExpression = 88,
1043
- JsInstanceOfExpression = 89,
1044
- JsIdentifierExpression = 90,
1045
- DereferenceExpression = 91,
1046
- BaseExpression = 92,
1047
- OwnConstructorCallExpression = 93,
1048
- DereferencedVariableGetterDeclaration = 94,
1049
- DereferencedVariableSetterDeclaration = 95,
1050
- JsNamespaceDestructuringStatement = 96,
1051
- ComputedFieldDeclaration = 97,
1052
- TextWithEntityName = 98,
1053
- Arguments = 99,
1054
- Decorator = 100,
1055
- TextTranslationDeclaration = 101,
1056
- TranslationTextTemplate = 102,
1057
- TranslationTextTemplateParameter = 103
962
+ AssignmentStatement = 2,
963
+ BinaryExpression = 3,
964
+ BlockStatement = 4,
965
+ BooleanLiteral = 5,
966
+ BreakLoopStatement = 6,
967
+ Argument = 7,
968
+ CallExpression = 8,
969
+ CaseClause = 9,
970
+ CharLiteral = 10,
971
+ ContinueLoopStatement = 11,
972
+ DisposeStatement = 12,
973
+ RunStatement = 13,
974
+ TryStatement = 14,
975
+ NullLiteral = 15,
976
+ EmptyStatement = 16,
977
+ ErrorStatement = 17,
978
+ ImportantStatement = 18,
979
+ ExpressionStatement = 19,
980
+ FinallyClause = 20,
981
+ ForStatement = 21,
982
+ PackageFunctionDeclaration = 22,
983
+ PackageTypeDeclaration = 23,
984
+ PackageVariableDeclaration = 24,
985
+ PackageVariableGetterDeclaration = 25,
986
+ PackageVariableSetterDeclaration = 26,
987
+ PackageVariantTypeDeclaration = 27,
988
+ IfStatement = 28,
989
+ IndexedAccessExpression = 29,
990
+ IntegerLiteral = 30,
991
+ IsExpression = 31,
992
+ NestedFunctionDeclaration = 32,
993
+ NestedFunctionDeclarationStatement = 33,
994
+ LocalVariableDeclaration = 34,
995
+ LocalVariableDeclarationStatement = 35,
996
+ NumericLiteral = 36,
997
+ CatchClause = 37,
998
+ FunctionLiteral = 38,
999
+ PrefixUnaryExpression = 39,
1000
+ MeasureLiteral = 40,
1001
+ ReferenceExpression = 41,
1002
+ LoopStatement = 42,
1003
+ ReturnStatement = 43,
1004
+ Package = 44,
1005
+ TextLiteral = 45,
1006
+ LocalizableTextLiteral = 46,
1007
+ TextTemplateLiteral = 47,
1008
+ LocalizableTextTemplateLiteral = 48,
1009
+ ConstructorDeclaration = 49,
1010
+ DestructorDeclaration = 50,
1011
+ IndexedElementGetterDeclaration = 51,
1012
+ IndexedElementSetterDeclaration = 52,
1013
+ MethodDeclaration = 53,
1014
+ FieldDeclaration = 54,
1015
+ FieldGetterDeclaration = 55,
1016
+ FieldSetterDeclaration = 56,
1017
+ SwitchStatement = 57,
1018
+ TernaryExpression = 58,
1019
+ ThisExpression = 59,
1020
+ ParameterDeclaration = 60,
1021
+ VariantDeclaration = 61,
1022
+ WhileStatement = 62,
1023
+ YieldStatement = 63,
1024
+ ArrayLiteral = 64,
1025
+ TypeAccessExpression = 65,
1026
+ VariableAccessExpression = 66,
1027
+ FunctionAccessExpression = 67,
1028
+ ImplicitVariantAccessExpression = 68,
1029
+ VariantAccessExpression = 69,
1030
+ FieldAccessExpression = 70,
1031
+ MethodAccessExpression = 71,
1032
+ ConstructorCallExpression = 72,
1033
+ InlineJsExpression = 73,
1034
+ AssignmentExpression = 74,
1035
+ CommaExpression = 75,
1036
+ BaseConstructorCallExpression = 76,
1037
+ JsImportSpecifier = 77,
1038
+ JsIndexedAccessExpression = 78,
1039
+ EsModuleImportDirectiveStatement = 79,
1040
+ CjsModuleImportDirectiveStatement = 80,
1041
+ JsObjectLiteral = 81,
1042
+ ValueJsObjectLiteralProperty = 82,
1043
+ FunctionJsObjectLiteralProperty = 83,
1044
+ SpreadJsObjectLiteralProperty = 84,
1045
+ JsPropertyAccessExpression = 85,
1046
+ JsFunctionLiteral = 86,
1047
+ JsTypeOfExpression = 87,
1048
+ JsInstanceOfExpression = 88,
1049
+ JsIdentifierExpression = 89,
1050
+ DereferenceExpression = 90,
1051
+ BaseExpression = 91,
1052
+ OwnConstructorCallExpression = 92,
1053
+ DereferencedVariableGetterDeclaration = 93,
1054
+ DereferencedVariableSetterDeclaration = 94,
1055
+ JsNamespaceDestructuringStatement = 95,
1056
+ ComputedFieldDeclaration = 96,
1057
+ TextWithEntityName = 97,
1058
+ Arguments = 98,
1059
+ Decorator = 99,
1060
+ TextTranslationDeclaration = 100,
1061
+ TranslationTextTemplate = 101,
1062
+ TranslationTextTemplateParameter = 102
1058
1063
  }
1059
1064
  export declare const enum AssignmentOperatorKind {
1060
1065
  Equals = 0,