@bamboocss/node 1.49.0 → 1.50.1
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/dist/index.cjs +137 -103
- package/dist/index.d.cts +700 -1
- package/dist/index.d.mts +700 -1
- package/dist/index.mjs +118 -84
- package/package.json +13 -13
package/dist/index.d.cts
CHANGED
|
@@ -69,6 +69,21 @@ declare class OutputEngine {
|
|
|
69
69
|
removed: number;
|
|
70
70
|
};
|
|
71
71
|
write: (output: Artifact | undefined) => Promise<PromiseSettledResult<void>[]> | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Whether the file on disk already holds exactly what codegen would write.
|
|
74
|
+
*
|
|
75
|
+
* Not for the write itself, which is cheap — 54 artifacts and 1.4 MB measure ~6ms, against
|
|
76
|
+
* ~1.3ms to read them back and compare. It is for the mtime. Codegen rewrote every artifact
|
|
77
|
+
* on every build whether or not a byte moved, and most builds move nothing: `csstype.d.ts` is
|
|
78
|
+
* copied verbatim from a constant and accounts for 895 kB on its own. Everything downstream
|
|
79
|
+
* watches those files — the dev server's module graph, `tsc --incremental`, any bundler with
|
|
80
|
+
* the output directory in scope — and each of them re-does work for a file that is identical
|
|
81
|
+
* to the one it already read.
|
|
82
|
+
*
|
|
83
|
+
* A read that throws is an answer, not a failure: the file is unreadable or absent, so it has
|
|
84
|
+
* to be written.
|
|
85
|
+
*/
|
|
86
|
+
private isUnchanged;
|
|
72
87
|
/**
|
|
73
88
|
* Unlike the rest of the output, `package.json` is not exclusively ours: `emit-pkg`
|
|
74
89
|
* writes entrypoints to the same path, and consumers hand-edit it. Overwriting would
|
|
@@ -221,6 +236,690 @@ declare function analyze(ctx: BambooContext, options?: AnalysisOptions): Promise
|
|
|
221
236
|
//#region src/build-info.d.ts
|
|
222
237
|
declare function buildInfo(ctx: BambooContext, outfile: string): Promise<void>;
|
|
223
238
|
//#endregion
|
|
239
|
+
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/enums/diagnosticDirectivePolicy.enum.d.ts
|
|
240
|
+
declare enum DiagnosticDirectivePolicy {
|
|
241
|
+
Ignore = 0,
|
|
242
|
+
Expect = 1
|
|
243
|
+
}
|
|
244
|
+
//#endregion
|
|
245
|
+
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/enums/languageVariant.enum.d.ts
|
|
246
|
+
declare enum LanguageVariant {
|
|
247
|
+
Standard = 0,
|
|
248
|
+
JSX = 1
|
|
249
|
+
}
|
|
250
|
+
//#endregion
|
|
251
|
+
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/enums/nodeFlags.enum.d.ts
|
|
252
|
+
declare enum NodeFlags {
|
|
253
|
+
None = 0,
|
|
254
|
+
Let = 1,
|
|
255
|
+
Const = 2,
|
|
256
|
+
Using = 4,
|
|
257
|
+
Reparsed = 8,
|
|
258
|
+
Synthesized = 16,
|
|
259
|
+
OptionalChain = 32,
|
|
260
|
+
ExportContext = 64,
|
|
261
|
+
ContainsThis = 128,
|
|
262
|
+
HasImplicitReturn = 256,
|
|
263
|
+
HasExplicitReturn = 512,
|
|
264
|
+
DisallowInContext = 1024,
|
|
265
|
+
YieldContext = 2048,
|
|
266
|
+
DecoratorContext = 4096,
|
|
267
|
+
AwaitContext = 8192,
|
|
268
|
+
DisallowConditionalTypesContext = 16384,
|
|
269
|
+
ThisNodeHasError = 32768,
|
|
270
|
+
JavaScriptFile = 65536,
|
|
271
|
+
ThisNodeOrAnySubNodesHasError = 131072,
|
|
272
|
+
HasAsyncFunctions = 262144,
|
|
273
|
+
PossiblyContainsDynamicImport = 524288,
|
|
274
|
+
PossiblyContainsImportMeta = 1048576,
|
|
275
|
+
HasJSDoc = 2097152,
|
|
276
|
+
JSDoc = 4194304,
|
|
277
|
+
Ambient = 8388608,
|
|
278
|
+
InWithStatement = 16777216,
|
|
279
|
+
JsonFile = 33554432,
|
|
280
|
+
PossiblyContainsDeprecatedTag = 67108864,
|
|
281
|
+
Unreachable = 134217728,
|
|
282
|
+
ReparserTransformedLiteral = 268435456,
|
|
283
|
+
BlockScoped = 7,
|
|
284
|
+
Constant = 6,
|
|
285
|
+
AwaitUsing = 6,
|
|
286
|
+
ReachabilityCheckFlags = 768,
|
|
287
|
+
ReachabilityAndEmitFlags = 262912,
|
|
288
|
+
ContextFlags = 25263104,
|
|
289
|
+
TypeExcludesFlags = 10240,
|
|
290
|
+
PermanentlySetIncrementalFlags = 1572864,
|
|
291
|
+
IdentifierHasExtendedUnicodeEscape = 128,
|
|
292
|
+
IdentifierIsInJSDocNamespace = 262144,
|
|
293
|
+
NestedNamespace = 32
|
|
294
|
+
}
|
|
295
|
+
//#endregion
|
|
296
|
+
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/enums/scriptKind.enum.d.ts
|
|
297
|
+
declare enum ScriptKind {
|
|
298
|
+
Unknown = 0,
|
|
299
|
+
JS = 1,
|
|
300
|
+
JSX = 2,
|
|
301
|
+
TS = 3,
|
|
302
|
+
TSX = 4,
|
|
303
|
+
JSON = 6
|
|
304
|
+
}
|
|
305
|
+
//#endregion
|
|
306
|
+
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/enums/spanMapFeature.enum.d.ts
|
|
307
|
+
declare enum SpanMapFeature {
|
|
308
|
+
Hover = 1,
|
|
309
|
+
SignatureHelp = 2,
|
|
310
|
+
Completion = 4,
|
|
311
|
+
Definition = 8,
|
|
312
|
+
TypeDefinition = 16,
|
|
313
|
+
Implementation = 32,
|
|
314
|
+
References = 64,
|
|
315
|
+
DocumentHighlights = 128,
|
|
316
|
+
Rename = 256,
|
|
317
|
+
CallHierarchy = 512,
|
|
318
|
+
CodeActions = 1024,
|
|
319
|
+
Formatting = 2048,
|
|
320
|
+
InlayHints = 4096,
|
|
321
|
+
SemanticTokens = 8192,
|
|
322
|
+
FoldingRanges = 16384,
|
|
323
|
+
SelectionRanges = 32768,
|
|
324
|
+
LinkedEditing = 65536,
|
|
325
|
+
AutoInsert = 131072,
|
|
326
|
+
DocumentSymbols = 262144,
|
|
327
|
+
CodeLens = 524288,
|
|
328
|
+
None = 0,
|
|
329
|
+
All = 1048575
|
|
330
|
+
}
|
|
331
|
+
//#endregion
|
|
332
|
+
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/enums/spanMapFidelity.enum.d.ts
|
|
333
|
+
declare enum SpanMapFidelity {
|
|
334
|
+
Exact = 0,
|
|
335
|
+
Atom = 1,
|
|
336
|
+
Approximate = 2,
|
|
337
|
+
None = 3
|
|
338
|
+
}
|
|
339
|
+
//#endregion
|
|
340
|
+
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/enums/spanMapKind.enum.d.ts
|
|
341
|
+
declare enum SpanMapKind {
|
|
342
|
+
Verbatim = 0,
|
|
343
|
+
Atom = 1,
|
|
344
|
+
Alias = 2
|
|
345
|
+
}
|
|
346
|
+
//#endregion
|
|
347
|
+
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/enums/syntaxKind.enum.d.ts
|
|
348
|
+
declare enum SyntaxKind {
|
|
349
|
+
Unknown = 0,
|
|
350
|
+
EndOfFile = 1,
|
|
351
|
+
SingleLineCommentTrivia = 2,
|
|
352
|
+
MultiLineCommentTrivia = 3,
|
|
353
|
+
NewLineTrivia = 4,
|
|
354
|
+
WhitespaceTrivia = 5,
|
|
355
|
+
ConflictMarkerTrivia = 6,
|
|
356
|
+
NonTextFileMarkerTrivia = 7,
|
|
357
|
+
NumericLiteral = 8,
|
|
358
|
+
BigIntLiteral = 9,
|
|
359
|
+
StringLiteral = 10,
|
|
360
|
+
JsxText = 11,
|
|
361
|
+
JsxTextAllWhiteSpaces = 12,
|
|
362
|
+
RegularExpressionLiteral = 13,
|
|
363
|
+
NoSubstitutionTemplateLiteral = 14,
|
|
364
|
+
TemplateHead = 15,
|
|
365
|
+
TemplateMiddle = 16,
|
|
366
|
+
TemplateTail = 17,
|
|
367
|
+
OpenBraceToken = 18,
|
|
368
|
+
CloseBraceToken = 19,
|
|
369
|
+
OpenParenToken = 20,
|
|
370
|
+
CloseParenToken = 21,
|
|
371
|
+
OpenBracketToken = 22,
|
|
372
|
+
CloseBracketToken = 23,
|
|
373
|
+
DotToken = 24,
|
|
374
|
+
DotDotDotToken = 25,
|
|
375
|
+
SemicolonToken = 26,
|
|
376
|
+
CommaToken = 27,
|
|
377
|
+
QuestionDotToken = 28,
|
|
378
|
+
LessThanToken = 29,
|
|
379
|
+
LessThanSlashToken = 30,
|
|
380
|
+
GreaterThanToken = 31,
|
|
381
|
+
LessThanEqualsToken = 32,
|
|
382
|
+
GreaterThanEqualsToken = 33,
|
|
383
|
+
EqualsEqualsToken = 34,
|
|
384
|
+
ExclamationEqualsToken = 35,
|
|
385
|
+
EqualsEqualsEqualsToken = 36,
|
|
386
|
+
ExclamationEqualsEqualsToken = 37,
|
|
387
|
+
EqualsGreaterThanToken = 38,
|
|
388
|
+
PlusToken = 39,
|
|
389
|
+
MinusToken = 40,
|
|
390
|
+
AsteriskToken = 41,
|
|
391
|
+
AsteriskAsteriskToken = 42,
|
|
392
|
+
SlashToken = 43,
|
|
393
|
+
PercentToken = 44,
|
|
394
|
+
PlusPlusToken = 45,
|
|
395
|
+
MinusMinusToken = 46,
|
|
396
|
+
LessThanLessThanToken = 47,
|
|
397
|
+
GreaterThanGreaterThanToken = 48,
|
|
398
|
+
GreaterThanGreaterThanGreaterThanToken = 49,
|
|
399
|
+
AmpersandToken = 50,
|
|
400
|
+
BarToken = 51,
|
|
401
|
+
CaretToken = 52,
|
|
402
|
+
ExclamationToken = 53,
|
|
403
|
+
TildeToken = 54,
|
|
404
|
+
AmpersandAmpersandToken = 55,
|
|
405
|
+
BarBarToken = 56,
|
|
406
|
+
QuestionToken = 57,
|
|
407
|
+
ColonToken = 58,
|
|
408
|
+
AtToken = 59,
|
|
409
|
+
QuestionQuestionToken = 60,
|
|
410
|
+
BacktickToken = 61,
|
|
411
|
+
HashToken = 62,
|
|
412
|
+
EqualsToken = 63,
|
|
413
|
+
PlusEqualsToken = 64,
|
|
414
|
+
MinusEqualsToken = 65,
|
|
415
|
+
AsteriskEqualsToken = 66,
|
|
416
|
+
AsteriskAsteriskEqualsToken = 67,
|
|
417
|
+
SlashEqualsToken = 68,
|
|
418
|
+
PercentEqualsToken = 69,
|
|
419
|
+
LessThanLessThanEqualsToken = 70,
|
|
420
|
+
GreaterThanGreaterThanEqualsToken = 71,
|
|
421
|
+
GreaterThanGreaterThanGreaterThanEqualsToken = 72,
|
|
422
|
+
AmpersandEqualsToken = 73,
|
|
423
|
+
BarEqualsToken = 74,
|
|
424
|
+
BarBarEqualsToken = 75,
|
|
425
|
+
AmpersandAmpersandEqualsToken = 76,
|
|
426
|
+
QuestionQuestionEqualsToken = 77,
|
|
427
|
+
CaretEqualsToken = 78,
|
|
428
|
+
Identifier = 79,
|
|
429
|
+
PrivateIdentifier = 80,
|
|
430
|
+
JSDocCommentTextToken = 81,
|
|
431
|
+
BreakKeyword = 82,
|
|
432
|
+
CaseKeyword = 83,
|
|
433
|
+
CatchKeyword = 84,
|
|
434
|
+
ClassKeyword = 85,
|
|
435
|
+
ConstKeyword = 86,
|
|
436
|
+
ContinueKeyword = 87,
|
|
437
|
+
DebuggerKeyword = 88,
|
|
438
|
+
DefaultKeyword = 89,
|
|
439
|
+
DeleteKeyword = 90,
|
|
440
|
+
DoKeyword = 91,
|
|
441
|
+
ElseKeyword = 92,
|
|
442
|
+
EnumKeyword = 93,
|
|
443
|
+
ExportKeyword = 94,
|
|
444
|
+
ExtendsKeyword = 95,
|
|
445
|
+
FalseKeyword = 96,
|
|
446
|
+
FinallyKeyword = 97,
|
|
447
|
+
ForKeyword = 98,
|
|
448
|
+
FunctionKeyword = 99,
|
|
449
|
+
IfKeyword = 100,
|
|
450
|
+
ImportKeyword = 101,
|
|
451
|
+
InKeyword = 102,
|
|
452
|
+
InstanceOfKeyword = 103,
|
|
453
|
+
NewKeyword = 104,
|
|
454
|
+
NullKeyword = 105,
|
|
455
|
+
ReturnKeyword = 106,
|
|
456
|
+
SuperKeyword = 107,
|
|
457
|
+
SwitchKeyword = 108,
|
|
458
|
+
ThisKeyword = 109,
|
|
459
|
+
ThrowKeyword = 110,
|
|
460
|
+
TrueKeyword = 111,
|
|
461
|
+
TryKeyword = 112,
|
|
462
|
+
TypeOfKeyword = 113,
|
|
463
|
+
VarKeyword = 114,
|
|
464
|
+
VoidKeyword = 115,
|
|
465
|
+
WhileKeyword = 116,
|
|
466
|
+
WithKeyword = 117,
|
|
467
|
+
ImplementsKeyword = 118,
|
|
468
|
+
InterfaceKeyword = 119,
|
|
469
|
+
LetKeyword = 120,
|
|
470
|
+
PackageKeyword = 121,
|
|
471
|
+
PrivateKeyword = 122,
|
|
472
|
+
ProtectedKeyword = 123,
|
|
473
|
+
PublicKeyword = 124,
|
|
474
|
+
StaticKeyword = 125,
|
|
475
|
+
YieldKeyword = 126,
|
|
476
|
+
AbstractKeyword = 127,
|
|
477
|
+
AccessorKeyword = 128,
|
|
478
|
+
AsKeyword = 129,
|
|
479
|
+
AssertsKeyword = 130,
|
|
480
|
+
AssertKeyword = 131,
|
|
481
|
+
AnyKeyword = 132,
|
|
482
|
+
AsyncKeyword = 133,
|
|
483
|
+
AwaitKeyword = 134,
|
|
484
|
+
BooleanKeyword = 135,
|
|
485
|
+
ConstructorKeyword = 136,
|
|
486
|
+
DeclareKeyword = 137,
|
|
487
|
+
GetKeyword = 138,
|
|
488
|
+
ImmediateKeyword = 139,
|
|
489
|
+
InferKeyword = 140,
|
|
490
|
+
IntrinsicKeyword = 141,
|
|
491
|
+
IsKeyword = 142,
|
|
492
|
+
KeyOfKeyword = 143,
|
|
493
|
+
ModuleKeyword = 144,
|
|
494
|
+
NamespaceKeyword = 145,
|
|
495
|
+
NeverKeyword = 146,
|
|
496
|
+
OutKeyword = 147,
|
|
497
|
+
ReadonlyKeyword = 148,
|
|
498
|
+
RequireKeyword = 149,
|
|
499
|
+
NumberKeyword = 150,
|
|
500
|
+
ObjectKeyword = 151,
|
|
501
|
+
SatisfiesKeyword = 152,
|
|
502
|
+
SetKeyword = 153,
|
|
503
|
+
StringKeyword = 154,
|
|
504
|
+
SymbolKeyword = 155,
|
|
505
|
+
TypeKeyword = 156,
|
|
506
|
+
UndefinedKeyword = 157,
|
|
507
|
+
UniqueKeyword = 158,
|
|
508
|
+
UnknownKeyword = 159,
|
|
509
|
+
UsingKeyword = 160,
|
|
510
|
+
FromKeyword = 161,
|
|
511
|
+
GlobalKeyword = 162,
|
|
512
|
+
BigIntKeyword = 163,
|
|
513
|
+
OverrideKeyword = 164,
|
|
514
|
+
OfKeyword = 165,
|
|
515
|
+
DeferKeyword = 166,
|
|
516
|
+
QualifiedName = 167,
|
|
517
|
+
ComputedPropertyName = 168,
|
|
518
|
+
TypeParameter = 169,
|
|
519
|
+
Parameter = 170,
|
|
520
|
+
Decorator = 171,
|
|
521
|
+
PropertySignature = 172,
|
|
522
|
+
PropertyDeclaration = 173,
|
|
523
|
+
MethodSignature = 174,
|
|
524
|
+
MethodDeclaration = 175,
|
|
525
|
+
ClassStaticBlockDeclaration = 176,
|
|
526
|
+
Constructor = 177,
|
|
527
|
+
GetAccessor = 178,
|
|
528
|
+
SetAccessor = 179,
|
|
529
|
+
CallSignature = 180,
|
|
530
|
+
ConstructSignature = 181,
|
|
531
|
+
IndexSignature = 182,
|
|
532
|
+
TypePredicate = 183,
|
|
533
|
+
TypeReference = 184,
|
|
534
|
+
FunctionType = 185,
|
|
535
|
+
ConstructorType = 186,
|
|
536
|
+
TypeQuery = 187,
|
|
537
|
+
TypeLiteral = 188,
|
|
538
|
+
ArrayType = 189,
|
|
539
|
+
TupleType = 190,
|
|
540
|
+
OptionalType = 191,
|
|
541
|
+
RestType = 192,
|
|
542
|
+
UnionType = 193,
|
|
543
|
+
IntersectionType = 194,
|
|
544
|
+
ConditionalType = 195,
|
|
545
|
+
InferType = 196,
|
|
546
|
+
ParenthesizedType = 197,
|
|
547
|
+
ThisType = 198,
|
|
548
|
+
TypeOperator = 199,
|
|
549
|
+
IndexedAccessType = 200,
|
|
550
|
+
MappedType = 201,
|
|
551
|
+
LiteralType = 202,
|
|
552
|
+
NamedTupleMember = 203,
|
|
553
|
+
TemplateLiteralType = 204,
|
|
554
|
+
TemplateLiteralTypeSpan = 205,
|
|
555
|
+
ImportType = 206,
|
|
556
|
+
ObjectBindingPattern = 207,
|
|
557
|
+
ArrayBindingPattern = 208,
|
|
558
|
+
BindingElement = 209,
|
|
559
|
+
ArrayLiteralExpression = 210,
|
|
560
|
+
ObjectLiteralExpression = 211,
|
|
561
|
+
PropertyAccessExpression = 212,
|
|
562
|
+
ElementAccessExpression = 213,
|
|
563
|
+
CallExpression = 214,
|
|
564
|
+
NewExpression = 215,
|
|
565
|
+
TaggedTemplateExpression = 216,
|
|
566
|
+
TypeAssertionExpression = 217,
|
|
567
|
+
ParenthesizedExpression = 218,
|
|
568
|
+
FunctionExpression = 219,
|
|
569
|
+
ArrowFunction = 220,
|
|
570
|
+
DeleteExpression = 221,
|
|
571
|
+
TypeOfExpression = 222,
|
|
572
|
+
VoidExpression = 223,
|
|
573
|
+
AwaitExpression = 224,
|
|
574
|
+
PrefixUnaryExpression = 225,
|
|
575
|
+
PostfixUnaryExpression = 226,
|
|
576
|
+
BinaryExpression = 227,
|
|
577
|
+
ConditionalExpression = 228,
|
|
578
|
+
TemplateExpression = 229,
|
|
579
|
+
YieldExpression = 230,
|
|
580
|
+
SpreadElement = 231,
|
|
581
|
+
ClassExpression = 232,
|
|
582
|
+
OmittedExpression = 233,
|
|
583
|
+
ExpressionWithTypeArguments = 234,
|
|
584
|
+
AsExpression = 235,
|
|
585
|
+
NonNullExpression = 236,
|
|
586
|
+
MetaProperty = 237,
|
|
587
|
+
SyntheticExpression = 238,
|
|
588
|
+
SatisfiesExpression = 239,
|
|
589
|
+
TemplateSpan = 240,
|
|
590
|
+
SemicolonClassElement = 241,
|
|
591
|
+
Block = 242,
|
|
592
|
+
EmptyStatement = 243,
|
|
593
|
+
VariableStatement = 244,
|
|
594
|
+
ExpressionStatement = 245,
|
|
595
|
+
IfStatement = 246,
|
|
596
|
+
DoStatement = 247,
|
|
597
|
+
WhileStatement = 248,
|
|
598
|
+
ForStatement = 249,
|
|
599
|
+
ForInStatement = 250,
|
|
600
|
+
ForOfStatement = 251,
|
|
601
|
+
ContinueStatement = 252,
|
|
602
|
+
BreakStatement = 253,
|
|
603
|
+
ReturnStatement = 254,
|
|
604
|
+
WithStatement = 255,
|
|
605
|
+
SwitchStatement = 256,
|
|
606
|
+
LabeledStatement = 257,
|
|
607
|
+
ThrowStatement = 258,
|
|
608
|
+
TryStatement = 259,
|
|
609
|
+
DebuggerStatement = 260,
|
|
610
|
+
VariableDeclaration = 261,
|
|
611
|
+
VariableDeclarationList = 262,
|
|
612
|
+
FunctionDeclaration = 263,
|
|
613
|
+
ClassDeclaration = 264,
|
|
614
|
+
InterfaceDeclaration = 265,
|
|
615
|
+
TypeAliasDeclaration = 266,
|
|
616
|
+
EnumDeclaration = 267,
|
|
617
|
+
ModuleDeclaration = 268,
|
|
618
|
+
ModuleBlock = 269,
|
|
619
|
+
CaseBlock = 270,
|
|
620
|
+
NamespaceExportDeclaration = 271,
|
|
621
|
+
ImportEqualsDeclaration = 272,
|
|
622
|
+
ImportDeclaration = 273,
|
|
623
|
+
ImportClause = 274,
|
|
624
|
+
NamespaceImport = 275,
|
|
625
|
+
NamedImports = 276,
|
|
626
|
+
ImportSpecifier = 277,
|
|
627
|
+
ExportAssignment = 278,
|
|
628
|
+
ExportDeclaration = 279,
|
|
629
|
+
NamedExports = 280,
|
|
630
|
+
NamespaceExport = 281,
|
|
631
|
+
ExportSpecifier = 282,
|
|
632
|
+
MissingDeclaration = 283,
|
|
633
|
+
ExternalModuleReference = 284,
|
|
634
|
+
JsxElement = 285,
|
|
635
|
+
JsxSelfClosingElement = 286,
|
|
636
|
+
JsxOpeningElement = 287,
|
|
637
|
+
JsxClosingElement = 288,
|
|
638
|
+
JsxFragment = 289,
|
|
639
|
+
JsxOpeningFragment = 290,
|
|
640
|
+
JsxClosingFragment = 291,
|
|
641
|
+
JsxAttribute = 292,
|
|
642
|
+
JsxAttributes = 293,
|
|
643
|
+
JsxSpreadAttribute = 294,
|
|
644
|
+
JsxExpression = 295,
|
|
645
|
+
JsxNamespacedName = 296,
|
|
646
|
+
CaseClause = 297,
|
|
647
|
+
DefaultClause = 298,
|
|
648
|
+
HeritageClause = 299,
|
|
649
|
+
CatchClause = 300,
|
|
650
|
+
ImportAttributes = 301,
|
|
651
|
+
ImportAttribute = 302,
|
|
652
|
+
PropertyAssignment = 303,
|
|
653
|
+
ShorthandPropertyAssignment = 304,
|
|
654
|
+
SpreadAssignment = 305,
|
|
655
|
+
EnumMember = 306,
|
|
656
|
+
SourceFile = 307,
|
|
657
|
+
JSDocTypeExpression = 308,
|
|
658
|
+
JSDocNameReference = 309,
|
|
659
|
+
JSDocAllType = 310,
|
|
660
|
+
JSDocNullableType = 311,
|
|
661
|
+
JSDocNonNullableType = 312,
|
|
662
|
+
JSDocOptionalType = 313,
|
|
663
|
+
JSDocVariadicType = 314,
|
|
664
|
+
JSDoc = 315,
|
|
665
|
+
JSDocText = 316,
|
|
666
|
+
JSDocTypeLiteral = 317,
|
|
667
|
+
JSDocSignature = 318,
|
|
668
|
+
JSDocLink = 319,
|
|
669
|
+
JSDocLinkCode = 320,
|
|
670
|
+
JSDocLinkPlain = 321,
|
|
671
|
+
JSDocUnknownTag = 322,
|
|
672
|
+
JSDocAugmentsTag = 323,
|
|
673
|
+
JSDocImplementsTag = 324,
|
|
674
|
+
JSDocDeprecatedTag = 325,
|
|
675
|
+
JSDocPublicTag = 326,
|
|
676
|
+
JSDocPrivateTag = 327,
|
|
677
|
+
JSDocProtectedTag = 328,
|
|
678
|
+
JSDocReadonlyTag = 329,
|
|
679
|
+
JSDocOverrideTag = 330,
|
|
680
|
+
JSDocCallbackTag = 331,
|
|
681
|
+
JSDocOverloadTag = 332,
|
|
682
|
+
JSDocParameterTag = 333,
|
|
683
|
+
JSDocReturnTag = 334,
|
|
684
|
+
JSDocThisTag = 335,
|
|
685
|
+
JSDocTypeTag = 336,
|
|
686
|
+
JSDocTemplateTag = 337,
|
|
687
|
+
JSDocTypedefTag = 338,
|
|
688
|
+
JSDocSeeTag = 339,
|
|
689
|
+
JSDocPropertyTag = 340,
|
|
690
|
+
JSDocThrowsTag = 341,
|
|
691
|
+
JSDocSatisfiesTag = 342,
|
|
692
|
+
JSDocImportTag = 343,
|
|
693
|
+
SyntaxList = 344,
|
|
694
|
+
JSTypeAliasDeclaration = 345,
|
|
695
|
+
JSImportDeclaration = 346,
|
|
696
|
+
NotEmittedStatement = 347,
|
|
697
|
+
PartiallyEmittedExpression = 348,
|
|
698
|
+
SyntheticReferenceExpression = 349,
|
|
699
|
+
NotEmittedTypeElement = 350,
|
|
700
|
+
Count = 351,
|
|
701
|
+
FirstAssignment = 63,
|
|
702
|
+
LastAssignment = 78,
|
|
703
|
+
FirstCompoundAssignment = 64,
|
|
704
|
+
LastCompoundAssignment = 78,
|
|
705
|
+
FirstReservedWord = 82,
|
|
706
|
+
LastReservedWord = 117,
|
|
707
|
+
FirstKeyword = 82,
|
|
708
|
+
LastKeyword = 166,
|
|
709
|
+
FirstFutureReservedWord = 118,
|
|
710
|
+
LastFutureReservedWord = 126,
|
|
711
|
+
FirstTypeNode = 183,
|
|
712
|
+
LastTypeNode = 206,
|
|
713
|
+
FirstPunctuation = 18,
|
|
714
|
+
LastPunctuation = 78,
|
|
715
|
+
FirstToken = 0,
|
|
716
|
+
LastToken = 166,
|
|
717
|
+
FirstLiteralToken = 8,
|
|
718
|
+
LastLiteralToken = 14,
|
|
719
|
+
FirstTemplateToken = 14,
|
|
720
|
+
LastTemplateToken = 17,
|
|
721
|
+
FirstBinaryOperator = 29,
|
|
722
|
+
LastBinaryOperator = 78,
|
|
723
|
+
FirstStatement = 244,
|
|
724
|
+
LastStatement = 260,
|
|
725
|
+
FirstNode = 167,
|
|
726
|
+
FirstJSDocNode = 308,
|
|
727
|
+
LastJSDocNode = 343,
|
|
728
|
+
FirstJSDocTagNode = 322,
|
|
729
|
+
LastJSDocTagNode = 343,
|
|
730
|
+
FirstContextualKeyword = 127,
|
|
731
|
+
LastContextualKeyword = 166,
|
|
732
|
+
LastUnaryOperator = 54,
|
|
733
|
+
FirstTriviaToken = 2,
|
|
734
|
+
LastTriviaToken = 6
|
|
735
|
+
}
|
|
736
|
+
//#endregion
|
|
737
|
+
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/ast/ast.generated.d.ts
|
|
738
|
+
type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFile | SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.NonTextFileMarkerTrivia | SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral | SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail | 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.QuestionToken | SyntaxKind.ColonToken | SyntaxKind.AtToken | SyntaxKind.QuestionQuestionToken | 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.BarBarEqualsToken | SyntaxKind.AmpersandAmpersandEqualsToken | SyntaxKind.QuestionQuestionEqualsToken | SyntaxKind.CaretEqualsToken | SyntaxKind.Identifier | SyntaxKind.PrivateIdentifier | SyntaxKind.JSDocCommentTextToken | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.LetKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.StaticKeyword | SyntaxKind.YieldKeyword | SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.GetKeyword | SyntaxKind.ImmediateKeyword | SyntaxKind.InferKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.OutKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.SatisfiesKeyword | SyntaxKind.SetKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.TypeKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.UsingKeyword | SyntaxKind.FromKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.OfKeyword | SyntaxKind.DeferKeyword;
|
|
739
|
+
interface NodeBase extends Node {
|
|
740
|
+
readonly flags: NodeFlags;
|
|
741
|
+
}
|
|
742
|
+
interface StatementBase extends NodeBase {
|
|
743
|
+
readonly _statementBrand: any;
|
|
744
|
+
}
|
|
745
|
+
interface Token<TKind extends TokenSyntaxKind = TokenSyntaxKind> extends NodeBase {
|
|
746
|
+
readonly kind: TKind;
|
|
747
|
+
}
|
|
748
|
+
type Statement = StatementBase;
|
|
749
|
+
type EndOfFile = Token<SyntaxKind.EndOfFile>;
|
|
750
|
+
//#endregion
|
|
751
|
+
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/ast/spanMap.d.ts
|
|
752
|
+
/** Maps one half-open virtual range to one half-open original range. */
|
|
753
|
+
interface SpanMapSegment {
|
|
754
|
+
readonly virtualStart: number;
|
|
755
|
+
readonly virtualEnd: number;
|
|
756
|
+
readonly originalStart: number;
|
|
757
|
+
readonly originalEnd: number;
|
|
758
|
+
readonly kind: SpanMapKind;
|
|
759
|
+
readonly features?: SpanMapFeature;
|
|
760
|
+
}
|
|
761
|
+
/** Internal segment representation after omitted features have been normalized to `All`. */
|
|
762
|
+
type NormalizedSpanMapSegment = SpanMapSegment & {
|
|
763
|
+
readonly features: SpanMapFeature;
|
|
764
|
+
};
|
|
765
|
+
/** One virtual projection of an original position and its mapping fidelity. */
|
|
766
|
+
interface MappedPosition {
|
|
767
|
+
readonly position: number;
|
|
768
|
+
readonly fidelity: SpanMapFidelity;
|
|
769
|
+
}
|
|
770
|
+
/** One virtual projection of an original range and its mapping fidelity. */
|
|
771
|
+
interface MappedRange {
|
|
772
|
+
readonly range: ReadonlyTextRange;
|
|
773
|
+
readonly fidelity: SpanMapFidelity;
|
|
774
|
+
}
|
|
775
|
+
/** Provides bidirectional span-aware mapping between virtual and original text. */
|
|
776
|
+
declare class SpanMap {
|
|
777
|
+
readonly segments: readonly NormalizedSpanMapSegment[];
|
|
778
|
+
private originalIndex;
|
|
779
|
+
/** Copies and sorts segments by virtual start, normalizing omitted features to `All`. */
|
|
780
|
+
constructor(segments: readonly SpanMapSegment[]);
|
|
781
|
+
/** Reports whether a mapping is a precise, edit-safe projection through one verbatim segment. */
|
|
782
|
+
static isExact(fidelity: SpanMapFidelity): boolean;
|
|
783
|
+
/** Reports whether a mapping lies in one verbatim or atom segment. */
|
|
784
|
+
static isSingleSegment(fidelity: SpanMapFidelity): boolean;
|
|
785
|
+
/** Reports whether the input had no counterpart in the target text. */
|
|
786
|
+
static isNone(fidelity: SpanMapFidelity): boolean;
|
|
787
|
+
/**
|
|
788
|
+
* Maps a virtual range to original text. Gaps map to insertion points with `None` fidelity,
|
|
789
|
+
* and ranges crossing segment boundaries map their endpoints with `Approximate` fidelity.
|
|
790
|
+
*/
|
|
791
|
+
virtualToOriginalSpan(range: ReadonlyTextRange): MappedRange;
|
|
792
|
+
/** Maps a visible LS result only when every covered segment participates in `feature`. */
|
|
793
|
+
virtualToOriginalSpanForFeature(range: ReadonlyTextRange, feature: SpanMapFeature): MappedRange;
|
|
794
|
+
/** Maps a virtual position to original text, using `None` fidelity for synthesized gaps. */
|
|
795
|
+
virtualToOriginalPosition(position: number): MappedPosition;
|
|
796
|
+
virtualToOriginalPositionForFeature(position: number, feature: SpanMapFeature): MappedPosition;
|
|
797
|
+
/**
|
|
798
|
+
* Returns every virtual projection of an original position whose segment participates in `feature`.
|
|
799
|
+
* Segment ends are inclusive for point mapping, so adjacent spans may both produce projections.
|
|
800
|
+
* Results are ordered by virtual position; uncovered or disabled positions produce no results.
|
|
801
|
+
*/
|
|
802
|
+
originalToVirtualPositions(position: number, feature: SpanMapFeature): readonly MappedPosition[];
|
|
803
|
+
/**
|
|
804
|
+
* Returns every feature-compatible virtual projection of an original range.
|
|
805
|
+
* A range contained by one or more segments produces one exact or atom result per matching segment.
|
|
806
|
+
*
|
|
807
|
+
* A range that starts in one group and ends in another can have several possible virtual ranges. For
|
|
808
|
+
* example, suppose two original segments are each copied twice into the virtual text:
|
|
809
|
+
*
|
|
810
|
+
* ```text
|
|
811
|
+
* original: [ A ][ B ]
|
|
812
|
+
* [---) range from inside A to inside B
|
|
813
|
+
*
|
|
814
|
+
* virtual: [ A ][ B ] [ A ][ B ]
|
|
815
|
+
* ^ ^ ^ ^
|
|
816
|
+
* start end start end
|
|
817
|
+
* 1 3 11 13
|
|
818
|
+
* ```
|
|
819
|
+
*
|
|
820
|
+
* The map says that the range may start at 1 or 11 and end at 3 or 13, but it does not say which copy of A
|
|
821
|
+
* belongs with which copy of B. We choose the smallest range around each possible location, producing [1,3)
|
|
822
|
+
* and [11,13). We do not return [1,13), because it contains both smaller candidates and would include code
|
|
823
|
+
* that may be unrelated to the original range. These cross-group results have approximate fidelity.
|
|
824
|
+
*/
|
|
825
|
+
originalToVirtualSpans(range: ReadonlyTextRange, feature: SpanMapFeature): readonly MappedRange[];
|
|
826
|
+
/** Maps one range through an ordered segment index in the direction selected by `reverse`. */
|
|
827
|
+
private mapRange;
|
|
828
|
+
/** Maps one position through an ordered segment index in the direction selected by `reverse`. */
|
|
829
|
+
private mapPoint;
|
|
830
|
+
/** Returns the lazily built original-text interval index. */
|
|
831
|
+
private getOriginalIndex;
|
|
832
|
+
private virtualRangeSupportsFeature;
|
|
833
|
+
}
|
|
834
|
+
//#endregion
|
|
835
|
+
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/ast/ast.d.ts
|
|
836
|
+
type Path = string & {
|
|
837
|
+
__pathBrand: any;
|
|
838
|
+
};
|
|
839
|
+
interface TextRange {
|
|
840
|
+
pos: number;
|
|
841
|
+
end: number;
|
|
842
|
+
}
|
|
843
|
+
interface ReadonlyTextRange {
|
|
844
|
+
readonly pos: number;
|
|
845
|
+
readonly end: number;
|
|
846
|
+
}
|
|
847
|
+
interface NodeArray<T extends Node> extends ReadonlyArray<T>, ReadonlyTextRange {
|
|
848
|
+
hasTrailingComma?: boolean;
|
|
849
|
+
transformFlags: number;
|
|
850
|
+
}
|
|
851
|
+
interface Node extends ReadonlyTextRange {
|
|
852
|
+
readonly kind: SyntaxKind;
|
|
853
|
+
readonly flags: NodeFlags;
|
|
854
|
+
readonly parent: Node;
|
|
855
|
+
readonly jsDoc?: readonly Node[] | undefined;
|
|
856
|
+
forEachChild<T>(visitor: (node: Node) => T, visitArray?: (nodes: NodeArray<Node>) => T): T | undefined;
|
|
857
|
+
getSourceFile(): SourceFile;
|
|
858
|
+
getStart(sourceFile?: SourceFile, includeJsDocComment?: boolean): number;
|
|
859
|
+
getFullStart(): number;
|
|
860
|
+
getEnd(): number;
|
|
861
|
+
getWidth(sourceFile?: SourceFile): number;
|
|
862
|
+
getFullWidth(): number;
|
|
863
|
+
getLeadingTriviaWidth(sourceFile?: SourceFile): number;
|
|
864
|
+
getFullText(sourceFile?: SourceFile): string;
|
|
865
|
+
getText(sourceFile?: SourceFile): string;
|
|
866
|
+
}
|
|
867
|
+
interface FileReference extends TextRange {
|
|
868
|
+
readonly fileName: string;
|
|
869
|
+
readonly resolutionMode: number;
|
|
870
|
+
readonly preserve: boolean;
|
|
871
|
+
}
|
|
872
|
+
interface LineAndCharacter {
|
|
873
|
+
/** 0-based line number. */
|
|
874
|
+
readonly line: number;
|
|
875
|
+
/** 0-based character offset, in UTF-16 code units, from the start of the line. */
|
|
876
|
+
readonly character: number;
|
|
877
|
+
}
|
|
878
|
+
interface MappedDiagnosticDirective {
|
|
879
|
+
readonly originalRange: ReadonlyTextRange;
|
|
880
|
+
readonly virtualRange: ReadonlyTextRange;
|
|
881
|
+
readonly policy: DiagnosticDirectivePolicy;
|
|
882
|
+
readonly unusedCode: number;
|
|
883
|
+
}
|
|
884
|
+
interface SourceFile extends Node {
|
|
885
|
+
readonly kind: SyntaxKind.SourceFile;
|
|
886
|
+
readonly statements: NodeArray<Statement>;
|
|
887
|
+
readonly endOfFileToken: EndOfFile;
|
|
888
|
+
readonly text: string;
|
|
889
|
+
readonly originalText: string;
|
|
890
|
+
readonly spanMap: SpanMap | undefined;
|
|
891
|
+
/** Identity of the content mapper that produced this source file. */
|
|
892
|
+
readonly contentMapper?: string;
|
|
893
|
+
/** Filename used to determine the syntax and module semantics of the transformed content. */
|
|
894
|
+
readonly virtualFileName?: string;
|
|
895
|
+
/** Framework-specific diagnostic directives applied to the transformed content. */
|
|
896
|
+
readonly diagnosticDirectives?: readonly MappedDiagnosticDirective[];
|
|
897
|
+
/** Compiler-assigned filenames of supplemental outputs associated with this canonical source file. */
|
|
898
|
+
readonly supplementalSourceFileNames?: readonly string[];
|
|
899
|
+
/** Canonical source filename associated with this supplemental output, if this is supplemental. */
|
|
900
|
+
readonly canonicalSourceFileName?: string;
|
|
901
|
+
readonly fileName: string;
|
|
902
|
+
readonly path: Path;
|
|
903
|
+
readonly languageVariant: LanguageVariant;
|
|
904
|
+
readonly scriptKind: ScriptKind;
|
|
905
|
+
readonly isDeclarationFile: boolean;
|
|
906
|
+
readonly referencedFiles: readonly FileReference[];
|
|
907
|
+
readonly typeReferenceDirectives: readonly FileReference[];
|
|
908
|
+
readonly libReferenceDirectives: readonly FileReference[];
|
|
909
|
+
readonly imports: readonly Node[];
|
|
910
|
+
readonly moduleAugmentations: readonly Node[];
|
|
911
|
+
readonly ambientModuleNames: readonly string[];
|
|
912
|
+
readonly externalModuleIndicator: Node | true | undefined;
|
|
913
|
+
/** Returns the UTF-16 code unit offset of the start of each line. */
|
|
914
|
+
getLineStarts(): readonly number[];
|
|
915
|
+
/** Converts a UTF-16 code unit position into a 0-based line and character. */
|
|
916
|
+
getLineAndCharacterOfPosition(position: number): LineAndCharacter;
|
|
917
|
+
/** Converts a 0-based line and character into a UTF-16 code unit position. */
|
|
918
|
+
getPositionOfLineAndCharacter(line: number, character: number): number;
|
|
919
|
+
/** @internal */
|
|
920
|
+
tokenCache?: Map<string, Node>;
|
|
921
|
+
}
|
|
922
|
+
//#endregion
|
|
224
923
|
//#region src/builder.d.ts
|
|
225
924
|
/** Files a watcher knows moved since the previous setup. Omit this to retain filesystem discovery. */
|
|
226
925
|
interface BuilderSourceChanges {
|
|
@@ -297,7 +996,7 @@ declare class Builder {
|
|
|
297
996
|
* Once per pass, not once per file: the first mutation is the boundary, and every later one
|
|
298
997
|
* in the same event is already described by that snapshot. `refreshSourceState` consumes it.
|
|
299
998
|
*/
|
|
300
|
-
reloadSource: (filePath: string) =>
|
|
999
|
+
reloadSource: (filePath: string) => SourceFile | undefined;
|
|
301
1000
|
/** The deletion half of `reloadSource`, with the same snapshot obligation. */
|
|
302
1001
|
removeSource: (filePath: string) => boolean;
|
|
303
1002
|
private captureResolutionLedger;
|