arkanalyzer 1.0.82 → 1.0.84
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/lib/Scene.d.ts.map +1 -1
- package/lib/Scene.js +2 -1
- package/lib/callgraph/algorithm/AbstractAnalysis.d.ts +1 -0
- package/lib/callgraph/algorithm/AbstractAnalysis.d.ts.map +1 -1
- package/lib/callgraph/algorithm/AbstractAnalysis.js +8 -0
- package/lib/callgraph/algorithm/ClassHierarchyAnalysis.d.ts.map +1 -1
- package/lib/callgraph/algorithm/ClassHierarchyAnalysis.js +20 -16
- package/lib/callgraph/model/CallGraph.d.ts.map +1 -1
- package/lib/callgraph/model/CallGraph.js +5 -2
- package/lib/core/common/ArkIRTransformer.d.ts.map +1 -1
- package/lib/core/common/ArkIRTransformer.js +3 -7
- package/lib/core/common/ArkValueTransformer.d.ts +4 -2
- package/lib/core/common/ArkValueTransformer.d.ts.map +1 -1
- package/lib/core/common/ArkValueTransformer.js +49 -7
- package/lib/core/common/Const.d.ts +10 -0
- package/lib/core/common/Const.d.ts.map +1 -1
- package/lib/core/common/Const.js +12 -1
- package/lib/core/common/DummyMainCreater.d.ts +32 -2
- package/lib/core/common/DummyMainCreater.d.ts.map +1 -1
- package/lib/core/common/DummyMainCreater.js +235 -97
- package/lib/core/common/EtsConst.d.ts +2 -0
- package/lib/core/common/EtsConst.d.ts.map +1 -1
- package/lib/core/common/EtsConst.js +3 -1
- package/lib/core/common/ModelUtils.d.ts +1 -0
- package/lib/core/common/ModelUtils.d.ts.map +1 -1
- package/lib/core/common/ModelUtils.js +2 -0
- package/lib/core/common/SdkUtils.d.ts +2 -0
- package/lib/core/common/SdkUtils.d.ts.map +1 -1
- package/lib/core/common/SdkUtils.js +13 -1
- package/lib/core/graph/BasicBlock.d.ts +1 -1
- package/lib/core/graph/BasicBlock.d.ts.map +1 -1
- package/lib/core/graph/BasicBlock.js +4 -1
- package/lib/core/graph/builder/CfgBuilder.d.ts +1 -0
- package/lib/core/graph/builder/CfgBuilder.d.ts.map +1 -1
- package/lib/core/graph/builder/CfgBuilder.js +5 -1
- package/lib/core/graph/builder/ConditionBuilder.d.ts +1 -0
- package/lib/core/graph/builder/ConditionBuilder.d.ts.map +1 -1
- package/lib/core/graph/builder/ConditionBuilder.js +40 -24
- package/lib/core/inference/ModelInference.d.ts.map +1 -1
- package/lib/core/inference/ModelInference.js +9 -3
- package/lib/core/inference/arkts/ArkTsInference.d.ts.map +1 -1
- package/lib/core/inference/arkts/ArkTsInference.js +2 -1
- package/lib/core/model/builder/ArkMethodBuilder.d.ts.map +1 -1
- package/lib/core/model/builder/ArkMethodBuilder.js +3 -2
- package/lib/save/source/SourceStmt.d.ts +2 -0
- package/lib/save/source/SourceStmt.d.ts.map +1 -1
- package/lib/save/source/SourceStmt.js +51 -8
- package/lib/utils/entryMethodUtils.d.ts.map +1 -1
- package/lib/utils/entryMethodUtils.js +20 -11
- package/node_modules/ohos-typescript/lib/tsc.js +5724 -5655
- package/node_modules/ohos-typescript/lib/tsserver.js +7957 -7935
- package/node_modules/ohos-typescript/lib/tsserverlibrary.d.ts +250 -230
- package/node_modules/ohos-typescript/lib/tsserverlibrary.js +7933 -7911
- package/node_modules/ohos-typescript/lib/typesMap.json +496 -496
- package/node_modules/ohos-typescript/lib/typescript.d.ts +250 -230
- package/node_modules/ohos-typescript/lib/typescript.js +7834 -7813
- package/node_modules/ohos-typescript/lib/typingsInstaller.js +2579 -2378
- package/node_modules/ohos-typescript/package.json +1 -1
- package/package.json +2 -2
|
@@ -310,209 +310,212 @@ declare namespace ts {
|
|
|
310
310
|
GlobalKeyword = 161,
|
|
311
311
|
BigIntKeyword = 162,
|
|
312
312
|
OverrideKeyword = 163,
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
313
|
+
OverloadKeyword = 164,
|
|
314
|
+
OfKeyword = 165,
|
|
315
|
+
QualifiedName = 166,
|
|
316
|
+
ComputedPropertyName = 167,
|
|
317
|
+
TypeParameter = 168,
|
|
318
|
+
Parameter = 169,
|
|
319
|
+
Decorator = 170,
|
|
320
|
+
PropertySignature = 171,
|
|
321
|
+
PropertyDeclaration = 172,
|
|
322
|
+
AnnotationPropertyDeclaration = 173,
|
|
323
|
+
OverloadPropertyDeclaration = 174,
|
|
324
|
+
MethodSignature = 175,
|
|
325
|
+
MethodDeclaration = 176,
|
|
326
|
+
ClassStaticBlockDeclaration = 177,
|
|
327
|
+
Constructor = 178,
|
|
328
|
+
GetAccessor = 179,
|
|
329
|
+
SetAccessor = 180,
|
|
330
|
+
CallSignature = 181,
|
|
331
|
+
ConstructSignature = 182,
|
|
332
|
+
IndexSignature = 183,
|
|
333
|
+
TypePredicate = 184,
|
|
334
|
+
TypeReference = 185,
|
|
335
|
+
FunctionType = 186,
|
|
336
|
+
ConstructorType = 187,
|
|
337
|
+
TypeQuery = 188,
|
|
338
|
+
TypeLiteral = 189,
|
|
339
|
+
ArrayType = 190,
|
|
340
|
+
TupleType = 191,
|
|
341
|
+
OptionalType = 192,
|
|
342
|
+
RestType = 193,
|
|
343
|
+
UnionType = 194,
|
|
344
|
+
IntersectionType = 195,
|
|
345
|
+
ConditionalType = 196,
|
|
346
|
+
InferType = 197,
|
|
347
|
+
ParenthesizedType = 198,
|
|
348
|
+
ThisType = 199,
|
|
349
|
+
TypeOperator = 200,
|
|
350
|
+
IndexedAccessType = 201,
|
|
351
|
+
MappedType = 202,
|
|
352
|
+
LiteralType = 203,
|
|
353
|
+
NamedTupleMember = 204,
|
|
354
|
+
TemplateLiteralType = 205,
|
|
355
|
+
TemplateLiteralTypeSpan = 206,
|
|
356
|
+
ImportType = 207,
|
|
357
|
+
ObjectBindingPattern = 208,
|
|
358
|
+
ArrayBindingPattern = 209,
|
|
359
|
+
BindingElement = 210,
|
|
360
|
+
ArrayLiteralExpression = 211,
|
|
361
|
+
ObjectLiteralExpression = 212,
|
|
362
|
+
PropertyAccessExpression = 213,
|
|
363
|
+
ElementAccessExpression = 214,
|
|
364
|
+
CallExpression = 215,
|
|
365
|
+
NewExpression = 216,
|
|
366
|
+
TaggedTemplateExpression = 217,
|
|
367
|
+
TypeAssertionExpression = 218,
|
|
368
|
+
ParenthesizedExpression = 219,
|
|
369
|
+
FunctionExpression = 220,
|
|
370
|
+
ArrowFunction = 221,
|
|
371
|
+
EtsComponentExpression = 222,
|
|
372
|
+
DeleteExpression = 223,
|
|
373
|
+
TypeOfExpression = 224,
|
|
374
|
+
VoidExpression = 225,
|
|
375
|
+
AwaitExpression = 226,
|
|
376
|
+
PrefixUnaryExpression = 227,
|
|
377
|
+
PostfixUnaryExpression = 228,
|
|
378
|
+
BinaryExpression = 229,
|
|
379
|
+
ConditionalExpression = 230,
|
|
380
|
+
TemplateExpression = 231,
|
|
381
|
+
YieldExpression = 232,
|
|
382
|
+
SpreadElement = 233,
|
|
383
|
+
ClassExpression = 234,
|
|
384
|
+
OmittedExpression = 235,
|
|
385
|
+
ExpressionWithTypeArguments = 236,
|
|
386
|
+
AsExpression = 237,
|
|
387
|
+
NonNullExpression = 238,
|
|
388
|
+
MetaProperty = 239,
|
|
389
|
+
SyntheticExpression = 240,
|
|
390
|
+
SatisfiesExpression = 241,
|
|
391
|
+
TemplateSpan = 242,
|
|
392
|
+
SemicolonClassElement = 243,
|
|
393
|
+
Block = 244,
|
|
394
|
+
EmptyStatement = 245,
|
|
395
|
+
VariableStatement = 246,
|
|
396
|
+
ExpressionStatement = 247,
|
|
397
|
+
IfStatement = 248,
|
|
398
|
+
DoStatement = 249,
|
|
399
|
+
WhileStatement = 250,
|
|
400
|
+
ForStatement = 251,
|
|
401
|
+
ForInStatement = 252,
|
|
402
|
+
ForOfStatement = 253,
|
|
403
|
+
ContinueStatement = 254,
|
|
404
|
+
BreakStatement = 255,
|
|
405
|
+
ReturnStatement = 256,
|
|
406
|
+
WithStatement = 257,
|
|
407
|
+
SwitchStatement = 258,
|
|
408
|
+
LabeledStatement = 259,
|
|
409
|
+
ThrowStatement = 260,
|
|
410
|
+
TryStatement = 261,
|
|
411
|
+
DebuggerStatement = 262,
|
|
412
|
+
VariableDeclaration = 263,
|
|
413
|
+
VariableDeclarationList = 264,
|
|
414
|
+
FunctionDeclaration = 265,
|
|
415
|
+
ClassDeclaration = 266,
|
|
416
|
+
StructDeclaration = 267,
|
|
417
|
+
AnnotationDeclaration = 268,
|
|
418
|
+
OverloadDeclaration = 269,
|
|
419
|
+
InterfaceDeclaration = 270,
|
|
420
|
+
TypeAliasDeclaration = 271,
|
|
421
|
+
EnumDeclaration = 272,
|
|
422
|
+
ModuleDeclaration = 273,
|
|
423
|
+
ModuleBlock = 274,
|
|
424
|
+
CaseBlock = 275,
|
|
425
|
+
NamespaceExportDeclaration = 276,
|
|
426
|
+
ImportEqualsDeclaration = 277,
|
|
427
|
+
ImportDeclaration = 278,
|
|
428
|
+
ImportClause = 279,
|
|
429
|
+
NamespaceImport = 280,
|
|
430
|
+
NamedImports = 281,
|
|
431
|
+
ImportSpecifier = 282,
|
|
432
|
+
ExportAssignment = 283,
|
|
433
|
+
ExportDeclaration = 284,
|
|
434
|
+
NamedExports = 285,
|
|
435
|
+
NamespaceExport = 286,
|
|
436
|
+
ExportSpecifier = 287,
|
|
437
|
+
MissingDeclaration = 288,
|
|
438
|
+
ExternalModuleReference = 289,
|
|
439
|
+
JsxElement = 290,
|
|
440
|
+
JsxSelfClosingElement = 291,
|
|
441
|
+
JsxOpeningElement = 292,
|
|
442
|
+
JsxClosingElement = 293,
|
|
443
|
+
JsxFragment = 294,
|
|
444
|
+
JsxOpeningFragment = 295,
|
|
445
|
+
JsxClosingFragment = 296,
|
|
446
|
+
JsxAttribute = 297,
|
|
447
|
+
JsxAttributes = 298,
|
|
448
|
+
JsxSpreadAttribute = 299,
|
|
449
|
+
JsxExpression = 300,
|
|
450
|
+
CaseClause = 301,
|
|
451
|
+
DefaultClause = 302,
|
|
452
|
+
HeritageClause = 303,
|
|
453
|
+
CatchClause = 304,
|
|
454
|
+
AssertClause = 305,
|
|
455
|
+
AssertEntry = 306,
|
|
456
|
+
ImportTypeAssertionContainer = 307,
|
|
457
|
+
PropertyAssignment = 308,
|
|
458
|
+
ShorthandPropertyAssignment = 309,
|
|
459
|
+
SpreadAssignment = 310,
|
|
460
|
+
EnumMember = 311,
|
|
461
|
+
UnparsedPrologue = 312,
|
|
462
|
+
UnparsedPrepend = 313,
|
|
463
|
+
UnparsedText = 314,
|
|
464
|
+
UnparsedInternalText = 315,
|
|
465
|
+
UnparsedSyntheticReference = 316,
|
|
466
|
+
SourceFile = 317,
|
|
467
|
+
Bundle = 318,
|
|
468
|
+
UnparsedSource = 319,
|
|
469
|
+
InputFiles = 320,
|
|
470
|
+
JSDocTypeExpression = 321,
|
|
471
|
+
JSDocNameReference = 322,
|
|
472
|
+
JSDocMemberName = 323,
|
|
473
|
+
JSDocAllType = 324,
|
|
474
|
+
JSDocUnknownType = 325,
|
|
475
|
+
JSDocNullableType = 326,
|
|
476
|
+
JSDocNonNullableType = 327,
|
|
477
|
+
JSDocOptionalType = 328,
|
|
478
|
+
JSDocFunctionType = 329,
|
|
479
|
+
JSDocVariadicType = 330,
|
|
480
|
+
JSDocNamepathType = 331,
|
|
481
|
+
JSDoc = 332,
|
|
479
482
|
/** @deprecated Use SyntaxKind.JSDoc */
|
|
480
|
-
JSDocComment =
|
|
481
|
-
JSDocText =
|
|
482
|
-
JSDocTypeLiteral =
|
|
483
|
-
JSDocSignature =
|
|
484
|
-
JSDocLink =
|
|
485
|
-
JSDocLinkCode =
|
|
486
|
-
JSDocLinkPlain =
|
|
487
|
-
JSDocTag =
|
|
488
|
-
JSDocAugmentsTag =
|
|
489
|
-
JSDocImplementsTag =
|
|
490
|
-
JSDocAuthorTag =
|
|
491
|
-
JSDocDeprecatedTag =
|
|
492
|
-
JSDocClassTag =
|
|
493
|
-
JSDocPublicTag =
|
|
494
|
-
JSDocPrivateTag =
|
|
495
|
-
JSDocProtectedTag =
|
|
496
|
-
JSDocReadonlyTag =
|
|
497
|
-
JSDocOverrideTag =
|
|
498
|
-
JSDocCallbackTag =
|
|
499
|
-
JSDocEnumTag =
|
|
500
|
-
JSDocParameterTag =
|
|
501
|
-
JSDocReturnTag =
|
|
502
|
-
JSDocThisTag =
|
|
503
|
-
JSDocTypeTag =
|
|
504
|
-
JSDocTemplateTag =
|
|
505
|
-
JSDocTypedefTag =
|
|
506
|
-
JSDocSeeTag =
|
|
507
|
-
JSDocPropertyTag =
|
|
508
|
-
SyntaxList =
|
|
509
|
-
NotEmittedStatement =
|
|
510
|
-
PartiallyEmittedExpression =
|
|
511
|
-
CommaListExpression =
|
|
512
|
-
MergeDeclarationMarker =
|
|
513
|
-
EndOfDeclarationMarker =
|
|
514
|
-
SyntheticReferenceExpression =
|
|
515
|
-
Count =
|
|
483
|
+
JSDocComment = 332,
|
|
484
|
+
JSDocText = 333,
|
|
485
|
+
JSDocTypeLiteral = 334,
|
|
486
|
+
JSDocSignature = 335,
|
|
487
|
+
JSDocLink = 336,
|
|
488
|
+
JSDocLinkCode = 337,
|
|
489
|
+
JSDocLinkPlain = 338,
|
|
490
|
+
JSDocTag = 339,
|
|
491
|
+
JSDocAugmentsTag = 340,
|
|
492
|
+
JSDocImplementsTag = 341,
|
|
493
|
+
JSDocAuthorTag = 342,
|
|
494
|
+
JSDocDeprecatedTag = 343,
|
|
495
|
+
JSDocClassTag = 344,
|
|
496
|
+
JSDocPublicTag = 345,
|
|
497
|
+
JSDocPrivateTag = 346,
|
|
498
|
+
JSDocProtectedTag = 347,
|
|
499
|
+
JSDocReadonlyTag = 348,
|
|
500
|
+
JSDocOverrideTag = 349,
|
|
501
|
+
JSDocCallbackTag = 350,
|
|
502
|
+
JSDocEnumTag = 351,
|
|
503
|
+
JSDocParameterTag = 352,
|
|
504
|
+
JSDocReturnTag = 353,
|
|
505
|
+
JSDocThisTag = 354,
|
|
506
|
+
JSDocTypeTag = 355,
|
|
507
|
+
JSDocTemplateTag = 356,
|
|
508
|
+
JSDocTypedefTag = 357,
|
|
509
|
+
JSDocSeeTag = 358,
|
|
510
|
+
JSDocPropertyTag = 359,
|
|
511
|
+
SyntaxList = 360,
|
|
512
|
+
NotEmittedStatement = 361,
|
|
513
|
+
PartiallyEmittedExpression = 362,
|
|
514
|
+
CommaListExpression = 363,
|
|
515
|
+
MergeDeclarationMarker = 364,
|
|
516
|
+
EndOfDeclarationMarker = 365,
|
|
517
|
+
SyntheticReferenceExpression = 366,
|
|
518
|
+
Count = 367,
|
|
516
519
|
FirstAssignment = 63,
|
|
517
520
|
LastAssignment = 78,
|
|
518
521
|
FirstCompoundAssignment = 64,
|
|
@@ -520,15 +523,15 @@ declare namespace ts {
|
|
|
520
523
|
FirstReservedWord = 81,
|
|
521
524
|
LastReservedWord = 117,
|
|
522
525
|
FirstKeyword = 81,
|
|
523
|
-
LastKeyword =
|
|
526
|
+
LastKeyword = 165,
|
|
524
527
|
FirstFutureReservedWord = 118,
|
|
525
528
|
LastFutureReservedWord = 126,
|
|
526
|
-
FirstTypeNode =
|
|
527
|
-
LastTypeNode =
|
|
529
|
+
FirstTypeNode = 184,
|
|
530
|
+
LastTypeNode = 207,
|
|
528
531
|
FirstPunctuation = 18,
|
|
529
532
|
LastPunctuation = 78,
|
|
530
533
|
FirstToken = 0,
|
|
531
|
-
LastToken =
|
|
534
|
+
LastToken = 165,
|
|
532
535
|
FirstTriviaToken = 2,
|
|
533
536
|
LastTriviaToken = 7,
|
|
534
537
|
FirstLiteralToken = 8,
|
|
@@ -537,19 +540,19 @@ declare namespace ts {
|
|
|
537
540
|
LastTemplateToken = 17,
|
|
538
541
|
FirstBinaryOperator = 29,
|
|
539
542
|
LastBinaryOperator = 78,
|
|
540
|
-
FirstStatement =
|
|
541
|
-
LastStatement =
|
|
542
|
-
FirstNode =
|
|
543
|
-
FirstJSDocNode =
|
|
544
|
-
LastJSDocNode =
|
|
545
|
-
FirstJSDocTagNode =
|
|
546
|
-
LastJSDocTagNode =
|
|
543
|
+
FirstStatement = 246,
|
|
544
|
+
LastStatement = 262,
|
|
545
|
+
FirstNode = 166,
|
|
546
|
+
FirstJSDocNode = 321,
|
|
547
|
+
LastJSDocNode = 359,
|
|
548
|
+
FirstJSDocTagNode = 339,
|
|
549
|
+
LastJSDocTagNode = 359
|
|
547
550
|
}
|
|
548
551
|
type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
|
549
552
|
type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
550
553
|
type PseudoLiteralSyntaxKind = SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail;
|
|
551
554
|
type PunctuationSyntaxKind = SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.OpenParenToken | SyntaxKind.CloseParenToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.DotToken | SyntaxKind.DotDotDotToken | SyntaxKind.SemicolonToken | SyntaxKind.CommaToken | SyntaxKind.QuestionDotToken | SyntaxKind.LessThanToken | SyntaxKind.LessThanSlashToken | SyntaxKind.GreaterThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.EqualsEqualsToken | SyntaxKind.ExclamationEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.EqualsGreaterThanToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.AsteriskToken | SyntaxKind.AsteriskAsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken | SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken | SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken | SyntaxKind.ExclamationToken | SyntaxKind.TildeToken | SyntaxKind.AmpersandAmpersandToken | SyntaxKind.BarBarToken | SyntaxKind.QuestionQuestionToken | SyntaxKind.QuestionToken | SyntaxKind.ColonToken | SyntaxKind.AtToken | SyntaxKind.BacktickToken | SyntaxKind.HashToken | SyntaxKind.EqualsToken | SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.CaretEqualsToken;
|
|
552
|
-
type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.StructKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InferKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.OfKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SatisfiesKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.LazyKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword;
|
|
555
|
+
type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.StructKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InferKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.OfKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.OverloadKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SatisfiesKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.LazyKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword;
|
|
553
556
|
type ModifierSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.ConstKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.ExportKeyword | SyntaxKind.InKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.StaticKeyword;
|
|
554
557
|
type KeywordTypeSyntaxKind = SyntaxKind.AnyKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VoidKeyword;
|
|
555
558
|
type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | TriviaSyntaxKind | LiteralSyntaxKind | PseudoLiteralSyntaxKind | PunctuationSyntaxKind | SyntaxKind.Identifier | KeywordSyntaxKind;
|
|
@@ -690,14 +693,14 @@ declare namespace ts {
|
|
|
690
693
|
}
|
|
691
694
|
interface JSDocContainer {
|
|
692
695
|
}
|
|
693
|
-
type HasJSDoc = ParameterDeclaration | CallSignatureDeclaration | ClassStaticBlockDeclaration | ConstructSignatureDeclaration | MethodSignature | PropertySignature | ArrowFunction | ParenthesizedExpression | SpreadAssignment | ShorthandPropertyAssignment | PropertyAssignment | FunctionExpression | EmptyStatement | DebuggerStatement | Block | VariableStatement | ExpressionStatement | IfStatement | DoStatement | WhileStatement | ForStatement | ForInStatement | ForOfStatement | BreakStatement | ContinueStatement | ReturnStatement | WithStatement | SwitchStatement | LabeledStatement | ThrowStatement | TryStatement | FunctionDeclaration | ConstructorDeclaration | MethodDeclaration | VariableDeclaration | PropertyDeclaration | AnnotationPropertyDeclaration | AnnotationDeclaration | AccessorDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | EnumMember | EnumDeclaration | ModuleDeclaration | ImportEqualsDeclaration | ImportDeclaration | NamespaceExportDeclaration | ExportAssignment | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | ExportDeclaration | NamedTupleMember | ExportSpecifier | CaseClause | EndOfFileToken;
|
|
694
|
-
type HasType = SignatureDeclaration | VariableDeclaration | ParameterDeclaration | PropertySignature | PropertyDeclaration | AnnotationPropertyDeclaration | TypePredicateNode | ParenthesizedTypeNode | TypeOperatorNode | MappedTypeNode | AssertionExpression | TypeAliasDeclaration | JSDocTypeExpression | JSDocNonNullableType | JSDocNullableType | JSDocOptionalType | JSDocVariadicType;
|
|
696
|
+
type HasJSDoc = ParameterDeclaration | CallSignatureDeclaration | ClassStaticBlockDeclaration | ConstructSignatureDeclaration | MethodSignature | PropertySignature | ArrowFunction | ParenthesizedExpression | SpreadAssignment | ShorthandPropertyAssignment | PropertyAssignment | FunctionExpression | EmptyStatement | DebuggerStatement | Block | VariableStatement | ExpressionStatement | IfStatement | DoStatement | WhileStatement | ForStatement | ForInStatement | ForOfStatement | BreakStatement | ContinueStatement | ReturnStatement | WithStatement | SwitchStatement | LabeledStatement | ThrowStatement | TryStatement | FunctionDeclaration | ConstructorDeclaration | MethodDeclaration | VariableDeclaration | PropertyDeclaration | AnnotationPropertyDeclaration | OverloadPropertyDeclaration | AnnotationDeclaration | OverloadDeclaration | AccessorDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | EnumMember | EnumDeclaration | ModuleDeclaration | ImportEqualsDeclaration | ImportDeclaration | NamespaceExportDeclaration | ExportAssignment | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | ExportDeclaration | NamedTupleMember | ExportSpecifier | CaseClause | EndOfFileToken;
|
|
697
|
+
type HasType = SignatureDeclaration | VariableDeclaration | ParameterDeclaration | PropertySignature | PropertyDeclaration | AnnotationPropertyDeclaration | OverloadPropertyDeclaration | TypePredicateNode | ParenthesizedTypeNode | TypeOperatorNode | MappedTypeNode | AssertionExpression | TypeAliasDeclaration | JSDocTypeExpression | JSDocNonNullableType | JSDocNullableType | JSDocOptionalType | JSDocVariadicType;
|
|
695
698
|
type HasTypeArguments = CallExpression | NewExpression | TaggedTemplateExpression | JsxOpeningElement | JsxSelfClosingElement;
|
|
696
699
|
type HasInitializer = HasExpressionInitializer | ForStatement | ForInStatement | ForOfStatement | JsxAttribute;
|
|
697
700
|
type HasExpressionInitializer = VariableDeclaration | ParameterDeclaration | BindingElement | PropertyDeclaration | AnnotationPropertyDeclaration | PropertyAssignment | EnumMember;
|
|
698
701
|
type HasDecorators = ParameterDeclaration | PropertyDeclaration | MethodDeclaration | GetAccessorDeclaration | SetAccessorDeclaration | ClassExpression | ClassDeclaration | StructDeclaration | FunctionDeclaration;
|
|
699
702
|
type HasIllegalDecorators = PropertyAssignment | ShorthandPropertyAssignment | FunctionDeclaration | ConstructorDeclaration | IndexSignatureDeclaration | ClassStaticBlockDeclaration | MissingDeclaration | VariableStatement | InterfaceDeclaration | TypeAliasDeclaration | EnumDeclaration | ModuleDeclaration | ImportEqualsDeclaration | ImportDeclaration | NamespaceExportDeclaration | ExportDeclaration | ExportAssignment;
|
|
700
|
-
type HasModifiers = TypeParameterDeclaration | ParameterDeclaration | ConstructorTypeNode | PropertySignature | PropertyDeclaration | MethodSignature | MethodDeclaration | ConstructorDeclaration | GetAccessorDeclaration | SetAccessorDeclaration | IndexSignatureDeclaration | FunctionExpression | ArrowFunction | ClassExpression | VariableStatement | FunctionDeclaration | ClassDeclaration | StructDeclaration | AnnotationDeclaration | InterfaceDeclaration | TypeAliasDeclaration | EnumDeclaration | ModuleDeclaration | ImportEqualsDeclaration | ImportDeclaration | ExportAssignment | ExportDeclaration;
|
|
703
|
+
type HasModifiers = TypeParameterDeclaration | ParameterDeclaration | ConstructorTypeNode | PropertySignature | PropertyDeclaration | MethodSignature | MethodDeclaration | ConstructorDeclaration | GetAccessorDeclaration | SetAccessorDeclaration | IndexSignatureDeclaration | FunctionExpression | ArrowFunction | ClassExpression | VariableStatement | FunctionDeclaration | ClassDeclaration | StructDeclaration | AnnotationDeclaration | OverloadDeclaration | InterfaceDeclaration | TypeAliasDeclaration | EnumDeclaration | ModuleDeclaration | ImportEqualsDeclaration | ImportDeclaration | ExportAssignment | ExportDeclaration | OverloadPropertyDeclaration;
|
|
701
704
|
interface NodeArray<T extends Node> extends ReadonlyArray<T>, ReadonlyTextRange {
|
|
702
705
|
readonly hasTrailingComma: boolean;
|
|
703
706
|
}
|
|
@@ -938,7 +941,7 @@ declare namespace ts {
|
|
|
938
941
|
readonly parent: ObjectLiteralExpression;
|
|
939
942
|
readonly expression: Expression;
|
|
940
943
|
}
|
|
941
|
-
type VariableLikeDeclaration = VariableDeclaration | ParameterDeclaration | BindingElement | PropertyDeclaration | AnnotationPropertyDeclaration | PropertyAssignment | PropertySignature | JsxAttribute | ShorthandPropertyAssignment | EnumMember | JSDocPropertyTag | JSDocParameterTag;
|
|
944
|
+
type VariableLikeDeclaration = VariableDeclaration | ParameterDeclaration | BindingElement | PropertyDeclaration | AnnotationPropertyDeclaration | OverloadPropertyDeclaration | PropertyAssignment | PropertySignature | JsxAttribute | ShorthandPropertyAssignment | EnumMember | JSDocPropertyTag | JSDocParameterTag;
|
|
942
945
|
interface PropertyLikeDeclaration extends NamedDeclaration {
|
|
943
946
|
readonly name: PropertyName;
|
|
944
947
|
}
|
|
@@ -996,6 +999,7 @@ declare namespace ts {
|
|
|
996
999
|
readonly parent: ClassLikeDeclaration;
|
|
997
1000
|
readonly modifiers?: NodeArray<Modifier> | undefined;
|
|
998
1001
|
readonly body?: FunctionBody | undefined;
|
|
1002
|
+
readonly name?: Identifier;
|
|
999
1003
|
}
|
|
1000
1004
|
/** For when we encounter a semicolon in a class declaration. ES6 allows these as class elements. */
|
|
1001
1005
|
interface SemicolonClassElement extends ClassElement {
|
|
@@ -1730,7 +1734,7 @@ declare namespace ts {
|
|
|
1730
1734
|
type DeclarationWithTypeParameters = DeclarationWithTypeParameterChildren | JSDocTypedefTag | JSDocCallbackTag | JSDocSignature;
|
|
1731
1735
|
type DeclarationWithTypeParameterChildren = SignatureDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | JSDocTemplateTag;
|
|
1732
1736
|
interface ClassLikeDeclarationBase extends NamedDeclaration, JSDocContainer {
|
|
1733
|
-
readonly kind: SyntaxKind.ClassDeclaration | SyntaxKind.ClassExpression | SyntaxKind.StructDeclaration | SyntaxKind.AnnotationDeclaration;
|
|
1737
|
+
readonly kind: SyntaxKind.ClassDeclaration | SyntaxKind.ClassExpression | SyntaxKind.StructDeclaration | SyntaxKind.AnnotationDeclaration | SyntaxKind.OverloadDeclaration;
|
|
1734
1738
|
readonly name?: Identifier;
|
|
1735
1739
|
readonly typeParameters?: NodeArray<TypeParameterDeclaration>;
|
|
1736
1740
|
readonly heritageClauses?: NodeArray<HeritageClause>;
|
|
@@ -1754,6 +1758,12 @@ declare namespace ts {
|
|
|
1754
1758
|
readonly name: Identifier;
|
|
1755
1759
|
readonly members: NodeArray<AnnotationElement>;
|
|
1756
1760
|
}
|
|
1761
|
+
interface OverloadDeclaration extends DeclarationStatement, ClassElement, TypeElement {
|
|
1762
|
+
readonly kind: SyntaxKind.OverloadDeclaration;
|
|
1763
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
1764
|
+
readonly name: Identifier;
|
|
1765
|
+
readonly members: NodeArray<OverloadElement>;
|
|
1766
|
+
}
|
|
1757
1767
|
interface ClassExpression extends ClassLikeDeclarationBase, PrimaryExpression {
|
|
1758
1768
|
readonly kind: SyntaxKind.ClassExpression;
|
|
1759
1769
|
readonly modifiers?: NodeArray<ModifierLike>;
|
|
@@ -1767,6 +1777,16 @@ declare namespace ts {
|
|
|
1767
1777
|
_annnotationElementBrand: any;
|
|
1768
1778
|
readonly name: PropertyName;
|
|
1769
1779
|
}
|
|
1780
|
+
interface OverloadElement extends NamedDeclaration {
|
|
1781
|
+
readonly name: PropertyName;
|
|
1782
|
+
}
|
|
1783
|
+
interface OverloadPropertyDeclaration extends OverloadElement, JSDocContainer {
|
|
1784
|
+
readonly kind: SyntaxKind.OverloadPropertyDeclaration;
|
|
1785
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1786
|
+
readonly name: PropertyName;
|
|
1787
|
+
readonly questionToken?: QuestionToken;
|
|
1788
|
+
readonly type?: TypeNode;
|
|
1789
|
+
}
|
|
1770
1790
|
interface TypeElement extends NamedDeclaration {
|
|
1771
1791
|
_typeElementBrand: any;
|
|
1772
1792
|
readonly name?: PropertyName;
|
|
@@ -2647,7 +2667,6 @@ declare namespace ts {
|
|
|
2647
2667
|
clearQualifiedNameCache?(): void;
|
|
2648
2668
|
isStaticRecord?(type: Type): boolean;
|
|
2649
2669
|
isStaticSourceFile?(sourceFile: SourceFile | undefined): boolean;
|
|
2650
|
-
createIntrinsicType?(kind: TypeFlags, intrinsicName: string, objectFlags?: ObjectFlags): Type;
|
|
2651
2670
|
}
|
|
2652
2671
|
enum NodeBuilderFlags {
|
|
2653
2672
|
None = 0,
|
|
@@ -3311,7 +3330,6 @@ declare namespace ts {
|
|
|
3311
3330
|
inlineSourceMap?: boolean;
|
|
3312
3331
|
inlineSources?: boolean;
|
|
3313
3332
|
isolatedModules?: boolean;
|
|
3314
|
-
isolatedDeclarations?: boolean;
|
|
3315
3333
|
jsx?: JsxEmit;
|
|
3316
3334
|
keyofStringsOnly?: boolean;
|
|
3317
3335
|
lib?: string[];
|
|
@@ -3894,12 +3912,14 @@ declare namespace ts {
|
|
|
3894
3912
|
updatePropertyDeclaration(node: PropertyDeclaration, modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
3895
3913
|
createAnnotationPropertyDeclaration(name: string | PropertyName, type: TypeNode | undefined, initializer: Expression | undefined): AnnotationPropertyDeclaration;
|
|
3896
3914
|
updateAnnotationPropertyDeclaration(node: AnnotationPropertyDeclaration, name: string | PropertyName, type: TypeNode | undefined, initializer: Expression | undefined): AnnotationPropertyDeclaration;
|
|
3915
|
+
createOverloadPropertyDeclaration(modifiers: readonly ModifierLike[] | undefined, name: PropertyName | string, questionToken: QuestionToken | undefined, type: TypeNode | undefined): OverloadPropertyDeclaration;
|
|
3916
|
+
updateOverloadPropertyDeclaration(node: OverloadPropertyDeclaration, modifiers: readonly ModifierLike[] | undefined, name: PropertyName, questionToken: QuestionToken | undefined, type: TypeNode | undefined): OverloadPropertyDeclaration;
|
|
3897
3917
|
createMethodSignature(modifiers: readonly Modifier[] | undefined, name: string | PropertyName, questionToken: QuestionToken | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined): MethodSignature;
|
|
3898
3918
|
updateMethodSignature(node: MethodSignature, modifiers: readonly Modifier[] | undefined, name: PropertyName, questionToken: QuestionToken | undefined, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): MethodSignature;
|
|
3899
3919
|
createMethodDeclaration(modifiers: readonly ModifierLike[] | undefined, asteriskToken: AsteriskToken | undefined, name: string | PropertyName, questionToken: QuestionToken | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): MethodDeclaration;
|
|
3900
3920
|
updateMethodDeclaration(node: MethodDeclaration, modifiers: readonly ModifierLike[] | undefined, asteriskToken: AsteriskToken | undefined, name: PropertyName, questionToken: QuestionToken | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): MethodDeclaration;
|
|
3901
|
-
createConstructorDeclaration(modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
3902
|
-
updateConstructorDeclaration(node: ConstructorDeclaration, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
3921
|
+
createConstructorDeclaration(modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined, name: Identifier | undefined): ConstructorDeclaration;
|
|
3922
|
+
updateConstructorDeclaration(node: ConstructorDeclaration, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined, name: Identifier | undefined): ConstructorDeclaration;
|
|
3903
3923
|
createGetAccessorDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
3904
3924
|
updateGetAccessorDeclaration(node: GetAccessorDeclaration, modifiers: readonly ModifierLike[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
3905
3925
|
createSetAccessorDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
@@ -4093,6 +4113,8 @@ declare namespace ts {
|
|
|
4093
4113
|
updateStructDeclaration(node: StructDeclaration, modifiers: readonly ModifierLike[] | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): StructDeclaration;
|
|
4094
4114
|
createAnnotationDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | Identifier | undefined, members: readonly AnnotationElement[]): AnnotationDeclaration;
|
|
4095
4115
|
updateAnnotationDeclaration(node: AnnotationDeclaration, modifiers: readonly ModifierLike[] | undefined, name: Identifier | undefined, members: readonly AnnotationElement[]): AnnotationDeclaration;
|
|
4116
|
+
createOverloadDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | Identifier | undefined, members: readonly OverloadElement[]): OverloadDeclaration;
|
|
4117
|
+
updateOverloadDeclaration(node: OverloadDeclaration, modifiers: readonly ModifierLike[] | undefined, name: Identifier | undefined, members: readonly OverloadElement[]): OverloadDeclaration;
|
|
4096
4118
|
createInterfaceDeclaration(modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
4097
4119
|
updateInterfaceDeclaration(node: InterfaceDeclaration, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
4098
4120
|
createTypeAliasDeclaration(modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
@@ -4349,11 +4371,11 @@ declare namespace ts {
|
|
|
4349
4371
|
/**
|
|
4350
4372
|
* @deprecated This node does not support Decorators. Callers should use an overload that does not accept a `decorators` parameter.
|
|
4351
4373
|
*/
|
|
4352
|
-
createConstructorDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
4374
|
+
createConstructorDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined, name: Identifier | undefined): ConstructorDeclaration;
|
|
4353
4375
|
/**
|
|
4354
4376
|
* @deprecated This node does not support Decorators. Callers should use an overload that does not accept a `decorators` parameter.
|
|
4355
4377
|
*/
|
|
4356
|
-
updateConstructorDeclaration(node: ConstructorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
4378
|
+
updateConstructorDeclaration(node: ConstructorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined, name: Identifier | undefined): ConstructorDeclaration;
|
|
4357
4379
|
/**
|
|
4358
4380
|
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
4359
4381
|
*/
|
|
@@ -5273,6 +5295,7 @@ declare namespace ts {
|
|
|
5273
5295
|
function isBindingName(node: Node): node is BindingName;
|
|
5274
5296
|
function isFunctionLike(node: Node | undefined): node is SignatureDeclaration;
|
|
5275
5297
|
function isAnnotationElement(node: Node): node is AnnotationElement;
|
|
5298
|
+
function isOverloadElement(node: Node): node is OverloadElement;
|
|
5276
5299
|
function isClassElement(node: Node): node is ClassElement;
|
|
5277
5300
|
function isClassLike(node: Node): node is ClassLikeDeclaration;
|
|
5278
5301
|
function isStruct(node: Node): node is StructDeclaration;
|
|
@@ -5443,6 +5466,7 @@ declare namespace ts {
|
|
|
5443
5466
|
function isDecorator(node: Node): node is Decorator;
|
|
5444
5467
|
function isAnnotation(node: Node): node is Annotation;
|
|
5445
5468
|
function isPropertySignature(node: Node): node is PropertySignature;
|
|
5469
|
+
function isOverloadPropertyDeclaration(node: Node): node is OverloadPropertyDeclaration;
|
|
5446
5470
|
function isPropertyDeclaration(node: Node): node is PropertyDeclaration;
|
|
5447
5471
|
function isAnnotationPropertyDeclaration(node: Node): node is AnnotationPropertyDeclaration;
|
|
5448
5472
|
function isMethodSignature(node: Node): node is MethodSignature;
|
|
@@ -5541,6 +5565,7 @@ declare namespace ts {
|
|
|
5541
5565
|
function isClassDeclaration(node: Node): node is ClassDeclaration;
|
|
5542
5566
|
function isStructDeclaration(node: Node): node is StructDeclaration;
|
|
5543
5567
|
function isAnnotationDeclaration(node: Node): node is AnnotationDeclaration;
|
|
5568
|
+
function isOverloadDeclaration(node: Node): node is OverloadDeclaration;
|
|
5544
5569
|
function isInterfaceDeclaration(node: Node): node is InterfaceDeclaration;
|
|
5545
5570
|
function isTypeAliasDeclaration(node: Node): node is TypeAliasDeclaration;
|
|
5546
5571
|
function isEnumDeclaration(node: Node): node is EnumDeclaration;
|
|
@@ -5849,7 +5874,6 @@ declare namespace ts {
|
|
|
5849
5874
|
function transformTypeExportImportAndConstEnumInTypeScript(context: TransformationContext): (node: SourceFile) => SourceFile;
|
|
5850
5875
|
function hasTsNoCheckOrTsIgnoreFlag(node: SourceFile): boolean;
|
|
5851
5876
|
function createObfTextSingleLineWriter(): EmitTextWriter;
|
|
5852
|
-
function isMixedCompilerSDKPath(compilerOptions: CompilerOptions): boolean;
|
|
5853
5877
|
function cleanKitJsonCache(): void;
|
|
5854
5878
|
function getMaxFlowDepth(compilerOptions: CompilerOptions): number;
|
|
5855
5879
|
function getErrorCode(diagnostic: Diagnostic): ErrorInfo;
|
|
@@ -9144,7 +9168,6 @@ declare namespace ts {
|
|
|
9144
9168
|
function setTypeChecker(tsTypeChecker: TypeChecker): void;
|
|
9145
9169
|
function clearTypeChecker(): void;
|
|
9146
9170
|
function setTestMode(tsTestMode: boolean): void;
|
|
9147
|
-
function setMixCompile(isMixCompile: boolean): void;
|
|
9148
9171
|
function getStartPos(nodeOrComment: Node | CommentRange): number;
|
|
9149
9172
|
function getEndPos(nodeOrComment: Node | CommentRange): number;
|
|
9150
9173
|
function getHighlightRange(nodeOrComment: Node | CommentRange, faultId: number): [
|
|
@@ -9381,8 +9404,6 @@ declare namespace ts {
|
|
|
9381
9404
|
function hasConcurrentDecoratorFunctionOverload(decl: FunctionDeclaration): boolean;
|
|
9382
9405
|
function hasUseConcurrentDirective(decl: FunctionDeclaration): boolean;
|
|
9383
9406
|
function isDeclarationSymbol(sym: Symbol | undefined): boolean;
|
|
9384
|
-
function checkTaskpoolFunction(arg: Expression, argType: Type, argSym: Symbol | undefined): boolean;
|
|
9385
|
-
function getTypeAtLocationForLinter(node: Node): Type;
|
|
9386
9407
|
const PROPERTY_HAS_NO_INITIALIZER_ERROR_CODE = 2564;
|
|
9387
9408
|
const NON_INITIALIZABLE_PROPERTY_DECORATORS: string[];
|
|
9388
9409
|
const NON_INITIALIZABLE_PROPERTY_CLASS_DECORATORS: string[];
|
|
@@ -9406,7 +9427,6 @@ declare namespace ts {
|
|
|
9406
9427
|
const TASKPOOL = "taskpool";
|
|
9407
9428
|
const TASKGROUP = "TaskGroup";
|
|
9408
9429
|
const TASKPOOL_API: string[];
|
|
9409
|
-
const TASK_LIST: string[];
|
|
9410
9430
|
const CONCURRENT_DECORATOR = "Concurrent";
|
|
9411
9431
|
const USE_CONCURRENT = "use concurrent";
|
|
9412
9432
|
type CheckType = ((t: Type) => boolean);
|