@bamboocss/node 1.55.7 → 1.56.0
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 +465 -531
- package/dist/index.d.cts +361 -720
- package/dist/index.d.mts +361 -720
- package/dist/index.mjs +463 -531
- package/dist/native/darwin-arm64.node +0 -0
- package/dist/native/darwin-x64.node +0 -0
- package/dist/native/linux-arm64-gnu.node +0 -0
- package/dist/native/linux-x64-gnu.node +0 -0
- package/dist/native/win32-x64-msvc.node +0 -0
- package/package.json +21 -14
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,126 @@
|
|
|
1
1
|
import { n as markStaticCompilerActive, t as isStaticCompilerActive } from "./static-compiler-CvT9iHM_.mjs";
|
|
2
|
-
import { DeadImport, StyleEncoder, Stylesheet } from "@bamboocss/core";
|
|
2
|
+
import { DeadImport, ParserOptions, StyleEncoder, Stylesheet } from "@bamboocss/core";
|
|
3
3
|
import { Generator, generatePackageExports } from "@bamboocss/generator";
|
|
4
|
-
import { ParserResult, Project } from "@bamboocss/parser";
|
|
5
4
|
import { ReportFormat } from "@bamboocss/reporter";
|
|
6
|
-
import { AnalysisOptions, Artifact, ArtifactId, BambooHooks, Config, CssArtifactType, LoadConfigResult, Runtime, SpecFile, WatchOptions, WatcherEventType } from "@bamboocss/types";
|
|
5
|
+
import { AnalysisOptions, Artifact, ArtifactId, BambooHooks, Config, CssArtifactType, LoadConfigResult, ParserResultInterface, ResultItem, Runtime, SpecFile, WatchOptions, WatcherEventType } from "@bamboocss/types";
|
|
7
6
|
|
|
7
|
+
//#region ../native-extractor/index.d.ts
|
|
8
|
+
interface NativeSource {
|
|
9
|
+
filename: string;
|
|
10
|
+
source: string;
|
|
11
|
+
}
|
|
12
|
+
interface NativeTokenDecline {
|
|
13
|
+
reason: 're-exported' | 'import-equals' | 'require' | 'dynamic-import' | 'unclassified-import' | 'unsupported-import' | 'unresolved-reference';
|
|
14
|
+
line: number;
|
|
15
|
+
/** UTF-16 source range of the declined syntax. */
|
|
16
|
+
start: number;
|
|
17
|
+
end: number;
|
|
18
|
+
}
|
|
19
|
+
interface NativeTokenAccounting {
|
|
20
|
+
paths: string[];
|
|
21
|
+
prefixes: string[];
|
|
22
|
+
declined: NativeTokenDecline[];
|
|
23
|
+
/** The file did not parse, so nothing in it can be trusted. */
|
|
24
|
+
unparsed: boolean;
|
|
25
|
+
}
|
|
26
|
+
/** A UTF-16 source range. */
|
|
27
|
+
interface FoldSpan {
|
|
28
|
+
start: number;
|
|
29
|
+
end: number;
|
|
30
|
+
}
|
|
31
|
+
interface FoldSelectionProperty {
|
|
32
|
+
key: string;
|
|
33
|
+
shorthand: boolean;
|
|
34
|
+
literal?: unknown;
|
|
35
|
+
text: string;
|
|
36
|
+
inert: boolean;
|
|
37
|
+
resolved?: unknown;
|
|
38
|
+
}
|
|
39
|
+
interface FoldSelection {
|
|
40
|
+
identifier?: string;
|
|
41
|
+
properties?: FoldSelectionProperty[];
|
|
42
|
+
unenumerable: boolean;
|
|
43
|
+
}
|
|
44
|
+
interface FoldCxArgument {
|
|
45
|
+
span: FoldSpan;
|
|
46
|
+
kind: 'string' | 'ignored' | 'array' | 'expression' | 'spread';
|
|
47
|
+
value?: string;
|
|
48
|
+
elements?: FoldCxArgument[];
|
|
49
|
+
}
|
|
50
|
+
interface FoldCall {
|
|
51
|
+
name: string;
|
|
52
|
+
kind: 'css' | 'pattern' | 'recipe' | 'token' | 'tokenValue' | 'viewTransition' | 'cva-call' | 'cva' | 'sva' | 'cx';
|
|
53
|
+
span: FoldSpan;
|
|
54
|
+
slot?: string;
|
|
55
|
+
slotEnd?: number;
|
|
56
|
+
shadowedHelpers: string[];
|
|
57
|
+
raw: boolean;
|
|
58
|
+
notImported: boolean;
|
|
59
|
+
calleeProperty?: string;
|
|
60
|
+
data: unknown[];
|
|
61
|
+
exact: boolean;
|
|
62
|
+
argumentCount: number;
|
|
63
|
+
trailingArgumentsInert: boolean;
|
|
64
|
+
selection?: FoldSelection;
|
|
65
|
+
origin?: {
|
|
66
|
+
filePath: string;
|
|
67
|
+
name: string;
|
|
68
|
+
};
|
|
69
|
+
binding?: string;
|
|
70
|
+
cxArguments: FoldCxArgument[];
|
|
71
|
+
}
|
|
72
|
+
interface FoldSplitCall {
|
|
73
|
+
span: FoldSpan;
|
|
74
|
+
binding: string;
|
|
75
|
+
shadowedHelpers: string[];
|
|
76
|
+
imported: boolean;
|
|
77
|
+
argumentText: string;
|
|
78
|
+
}
|
|
79
|
+
interface FoldImport {
|
|
80
|
+
span: FoldSpan;
|
|
81
|
+
module: string;
|
|
82
|
+
typeOnly: boolean;
|
|
83
|
+
specifiers: Array<{
|
|
84
|
+
imported: string;
|
|
85
|
+
local: string;
|
|
86
|
+
typeOnly: boolean;
|
|
87
|
+
end: number;
|
|
88
|
+
shadowedAnywhere: boolean;
|
|
89
|
+
}>;
|
|
90
|
+
defaultLocal?: string;
|
|
91
|
+
namespaceLocal?: string;
|
|
92
|
+
}
|
|
93
|
+
interface FoldAnalysis {
|
|
94
|
+
calls: FoldCall[];
|
|
95
|
+
splitCalls: FoldSplitCall[];
|
|
96
|
+
imports: FoldImport[];
|
|
97
|
+
moduleScopeNames: string[];
|
|
98
|
+
references: Array<{
|
|
99
|
+
name: string;
|
|
100
|
+
span: FoldSpan;
|
|
101
|
+
}>;
|
|
102
|
+
runtimeShapes: Array<{
|
|
103
|
+
kind: 'import' | 'require' | 'import-equals' | 'export-star' | 'export-from';
|
|
104
|
+
name: string;
|
|
105
|
+
module: string;
|
|
106
|
+
span: FoldSpan;
|
|
107
|
+
}>;
|
|
108
|
+
localExports: Array<{
|
|
109
|
+
local: string;
|
|
110
|
+
span: FoldSpan;
|
|
111
|
+
}>;
|
|
112
|
+
importedRecipes: Array<{
|
|
113
|
+
local: string;
|
|
114
|
+
filePath: string;
|
|
115
|
+
name: string;
|
|
116
|
+
config?: unknown;
|
|
117
|
+
declaringImports: string[];
|
|
118
|
+
dependencies: string[];
|
|
119
|
+
}>;
|
|
120
|
+
dependencies: string[];
|
|
121
|
+
errors: string[];
|
|
122
|
+
}
|
|
123
|
+
//#endregion
|
|
8
124
|
//#region src/diff-engine.d.ts
|
|
9
125
|
declare class DiffEngine {
|
|
10
126
|
private ctx;
|
|
@@ -24,6 +140,196 @@ declare class DiffEngine {
|
|
|
24
140
|
refresh(conf: LoadConfigResult, fn?: (conf: LoadConfigResult) => void): import("@bamboocss/types").DiffConfigResult;
|
|
25
141
|
}
|
|
26
142
|
//#endregion
|
|
143
|
+
//#region src/parser-result.d.ts
|
|
144
|
+
interface UnresolvedStyle {
|
|
145
|
+
/**
|
|
146
|
+
* What the loss costs, which decides how it is explained.
|
|
147
|
+
*
|
|
148
|
+
* - `atomic` — a `css()` call. The declarations the build saw still apply; the ones it
|
|
149
|
+
* did not have no rule behind them, so they are simply absent.
|
|
150
|
+
* - `recipe` — a `cva`/`sva` config. A declaration the build cannot see has no rule behind
|
|
151
|
+
* any selection that includes it.
|
|
152
|
+
*/
|
|
153
|
+
kind: 'atomic' | 'recipe';
|
|
154
|
+
/** The property the build could not resolve, or `undefined` when only the count differs. */
|
|
155
|
+
prop?: string;
|
|
156
|
+
filePath: string;
|
|
157
|
+
line: number;
|
|
158
|
+
column: number;
|
|
159
|
+
/**
|
|
160
|
+
* How the build lost the call:
|
|
161
|
+
*
|
|
162
|
+
* - `unresolvable-value` — a value it could not evaluate.
|
|
163
|
+
* - `missing-property` — a key whose value never arrived at all.
|
|
164
|
+
* - `unenumerable-keys` — a spread or computed key, so it cannot say what the call sets.
|
|
165
|
+
* - `unresolved-raw` — `css(recipe.raw(props), …)`. A recipe or pattern's `.raw` takes
|
|
166
|
+
* *props* and returns *styles*, so the build would compose the props instead and the
|
|
167
|
+
* browser would ask for classes no rule backs.
|
|
168
|
+
*/
|
|
169
|
+
reason: 'unresolvable-value' | 'missing-property' | 'unenumerable-keys' | 'unresolved-raw';
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* What extraction found in one file, and the encoder calls that turn it into rules.
|
|
173
|
+
*
|
|
174
|
+
* Filled from the native analysis by `BambooContext.parseFile`; nothing here reads source.
|
|
175
|
+
*/
|
|
176
|
+
declare class ParserResult implements ParserResultInterface {
|
|
177
|
+
private context;
|
|
178
|
+
/** Ordered list of all ResultItem */
|
|
179
|
+
all: ResultItem[];
|
|
180
|
+
css: Set<ResultItem>;
|
|
181
|
+
cva: Set<ResultItem>;
|
|
182
|
+
sva: Set<ResultItem>;
|
|
183
|
+
token: Set<ResultItem>;
|
|
184
|
+
viewTransition: Set<ResultItem>;
|
|
185
|
+
recipe: Map<string, Set<ResultItem>>;
|
|
186
|
+
pattern: Map<string, Set<ResultItem>>;
|
|
187
|
+
filePath: string | undefined;
|
|
188
|
+
encoder: ParserOptions['encoder'];
|
|
189
|
+
/** Resolver targets crossed while extracting values which contributed CSS. */
|
|
190
|
+
private dependencies;
|
|
191
|
+
/** Styles the build could not fully see. @see `UnresolvedStyle` */
|
|
192
|
+
unresolved: UnresolvedStyle[];
|
|
193
|
+
/**
|
|
194
|
+
* Calls to a name the pattern or recipe entrypoint no longer exports.
|
|
195
|
+
*
|
|
196
|
+
* Separate from `unresolved`, which grades a call the build *did* see and could only
|
|
197
|
+
* partly resolve. These it saw and could not resolve at all: the binding is dead, so every
|
|
198
|
+
* rule the call would have contributed is absent rather than incomplete. Reported by
|
|
199
|
+
* `assertNoDeadCalls` rather than warned about, for that reason.
|
|
200
|
+
*/
|
|
201
|
+
deadCalls: DeadImport[];
|
|
202
|
+
/**
|
|
203
|
+
* Whether each result item is attributed to its call site, for a source map.
|
|
204
|
+
*
|
|
205
|
+
* Off for a source a `parser:before` hook rewrote: its positions are the hook's output's,
|
|
206
|
+
* not the file's, and a wrong line is worse than none.
|
|
207
|
+
*/
|
|
208
|
+
origins: boolean;
|
|
209
|
+
/** Set on a result the native engine produced, with the reads it reported. @internal */
|
|
210
|
+
native: boolean;
|
|
211
|
+
nativePendingCandidates: readonly string[];
|
|
212
|
+
nativeConfigurationFiles: readonly string[];
|
|
213
|
+
constructor(context: ParserOptions, encoder?: ParserOptions['encoder']);
|
|
214
|
+
append(result: ResultItem): ResultItem;
|
|
215
|
+
set(name: 'cva' | 'css' | 'sva' | 'token', result: ResultItem): void;
|
|
216
|
+
setCss(result: ResultItem): void;
|
|
217
|
+
/** The call site of `result`, when the encoder is recording them. */
|
|
218
|
+
private originOf;
|
|
219
|
+
setCva(result: ResultItem): void;
|
|
220
|
+
setSva(result: ResultItem): void;
|
|
221
|
+
/**
|
|
222
|
+
* `kind` separates the variable reference — `token()` — from `token.value()`, the resolved
|
|
223
|
+
* literal. They share this set deliberately: everything that reads a result for the token
|
|
224
|
+
* *path* wants both, and only the fold cares which half was asked for.
|
|
225
|
+
*/
|
|
226
|
+
setToken(result: ResultItem, kind?: 'token' | 'tokenValue'): void;
|
|
227
|
+
setViewTransition(result: ResultItem): void;
|
|
228
|
+
setPattern(name: string, result: ResultItem): void;
|
|
229
|
+
/**
|
|
230
|
+
* @param unresolved The variant axes the call site passed and the build could not read.
|
|
231
|
+
* `button({ size })` with a dynamic `size` and `button()` both arrive as `{}`, and the
|
|
232
|
+
* difference decides whether a class the encoder is about to emit has a rule behind it.
|
|
233
|
+
*/
|
|
234
|
+
setRecipe(recipeName: string, result: ResultItem, unresolved?: ReadonlySet<string>): void;
|
|
235
|
+
isEmpty(): boolean;
|
|
236
|
+
setFilePath(filePath: string): this;
|
|
237
|
+
/** @internal Called with each resolver target the native evaluation crossed. */
|
|
238
|
+
addDependency(filePath: string): void;
|
|
239
|
+
/** Local source paths crossed while resolving values this extraction encoded. */
|
|
240
|
+
getDependencies(): string[];
|
|
241
|
+
toArray(): ResultItem[];
|
|
242
|
+
toJSON(): {
|
|
243
|
+
css: ResultItem[];
|
|
244
|
+
cva: ResultItem[];
|
|
245
|
+
sva: ResultItem[];
|
|
246
|
+
token: ResultItem[];
|
|
247
|
+
viewTransition: ResultItem[];
|
|
248
|
+
recipe: {
|
|
249
|
+
[k: string]: ResultItem[];
|
|
250
|
+
};
|
|
251
|
+
pattern: {
|
|
252
|
+
[k: string]: ResultItem[];
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
//#endregion
|
|
257
|
+
//#region src/source-project.d.ts
|
|
258
|
+
interface SourceProjectOptions {
|
|
259
|
+
/** Where source bytes come from when no overlay supplies them. */
|
|
260
|
+
readFile: (filePath: string) => string;
|
|
261
|
+
fileExists: (filePath: string) => boolean;
|
|
262
|
+
/** What a relative path is relative to. */
|
|
263
|
+
cwd?: string;
|
|
264
|
+
/** The tsconfig `compilerOptions` whose `baseUrl` and `paths` resolution reads. */
|
|
265
|
+
compilerOptions?: {
|
|
266
|
+
baseUrl?: string;
|
|
267
|
+
paths?: Record<string, string[]>;
|
|
268
|
+
};
|
|
269
|
+
parserOptions: ParserOptions;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* The source view every engine reads: disk, with caller-supplied bytes layered over it.
|
|
273
|
+
*
|
|
274
|
+
* Extraction and the Vite compiler run in Rust, and the Rust resolver reads ordinary files
|
|
275
|
+
* itself. What it cannot see is bytes that exist nowhere on disk — a single-file component's
|
|
276
|
+
* compiled script, a test's in-memory module — so those are held here, as overlays, and handed
|
|
277
|
+
* across the native boundary with every analysis. Nothing here parses anything.
|
|
278
|
+
*/
|
|
279
|
+
declare class SourceProject {
|
|
280
|
+
private readonly options;
|
|
281
|
+
/** Bytes explicitly supplied by a caller rather than read from disk, by normalized path. */
|
|
282
|
+
private overlays;
|
|
283
|
+
private compilerOptions;
|
|
284
|
+
constructor(options: SourceProjectOptions);
|
|
285
|
+
private normalizePath;
|
|
286
|
+
/** The `baseUrl` and `paths` module resolution reads. */
|
|
287
|
+
get resolutionOptions(): {
|
|
288
|
+
baseUrl?: string;
|
|
289
|
+
paths?: Record<string, string[]>;
|
|
290
|
+
};
|
|
291
|
+
/** A tsconfig reload replaced the options resolution reads. */
|
|
292
|
+
refreshResolutionConfiguration: (compilerOptions?: {
|
|
293
|
+
baseUrl?: string;
|
|
294
|
+
paths?: Record<string, string[]>;
|
|
295
|
+
}) => void;
|
|
296
|
+
/** Source bytes from an overlay, else from disk; `undefined` when neither can be read. */
|
|
297
|
+
getSourceText: (filePath: string) => string | undefined;
|
|
298
|
+
/** Whether that same source view can read a path. */
|
|
299
|
+
sourceExists: (filePath: string) => boolean;
|
|
300
|
+
/** Whether a caller supplied bytes that can differ from the path on disk. */
|
|
301
|
+
sourceIsOverridden: (filePath: string) => boolean;
|
|
302
|
+
/** Every path a caller supplied bytes for. */
|
|
303
|
+
getOverriddenSources: () => string[];
|
|
304
|
+
/** Supply the bytes for a path. */
|
|
305
|
+
overlaySource: (filePath: string, content: string) => void;
|
|
306
|
+
/**
|
|
307
|
+
* Supply the bytes for a module, under the path extraction will ask for.
|
|
308
|
+
*
|
|
309
|
+
* A relative path resolves against the project's working directory, as `parseFile` resolves
|
|
310
|
+
* it — so a module added as `src/a.tsx` is the one `parseFile('src/a.tsx')` reads.
|
|
311
|
+
*/
|
|
312
|
+
addSourceFile: (filePath: string, content: string) => void;
|
|
313
|
+
private absolute;
|
|
314
|
+
/** Forget bytes supplied through `overlaySource`. Returns whether there were any. */
|
|
315
|
+
removeOverlay: (filePath: string) => boolean;
|
|
316
|
+
/**
|
|
317
|
+
* A watched file changed on disk. Disk is now the truth for it, so an overlay that
|
|
318
|
+
* stood in for it goes.
|
|
319
|
+
*/
|
|
320
|
+
reloadSourceFile: (filePath: string) => void;
|
|
321
|
+
/**
|
|
322
|
+
* A watched file was deleted. Its styles go with it — nothing re-parses a file that is gone,
|
|
323
|
+
* so they would otherwise outlive it for as long as the context does.
|
|
324
|
+
*/
|
|
325
|
+
removeSourceFile: (filePath: string, encoder?: StyleEncoder) => void;
|
|
326
|
+
/**
|
|
327
|
+
* Restore an encoder dump from a `.json` file in `include` — the output of `bamboo ship`,
|
|
328
|
+
* or a library's shipped extraction — and report it as an empty result for that file.
|
|
329
|
+
*/
|
|
330
|
+
parseJson: (filePath: string, encoder?: StyleEncoder) => ParserResult;
|
|
331
|
+
}
|
|
332
|
+
//#endregion
|
|
27
333
|
//#region src/output-engine.d.ts
|
|
28
334
|
interface OutputEngineOptions extends Generator {
|
|
29
335
|
runtime: Runtime;
|
|
@@ -96,7 +402,7 @@ declare class OutputEngine {
|
|
|
96
402
|
//#region src/create-context.d.ts
|
|
97
403
|
declare class BambooContext extends Generator {
|
|
98
404
|
runtime: Runtime;
|
|
99
|
-
project:
|
|
405
|
+
project: SourceProject;
|
|
100
406
|
output: OutputEngine;
|
|
101
407
|
diff: DiffEngine;
|
|
102
408
|
explicitDeps: string[];
|
|
@@ -207,6 +513,42 @@ declare class BambooContext extends Generator {
|
|
|
207
513
|
* project that excludes its `outdir` should not lose them.
|
|
208
514
|
*/
|
|
209
515
|
private isGenerated;
|
|
516
|
+
/**
|
|
517
|
+
* The text extraction reads for a file: its `parser:before` output, or its bytes when no hook
|
|
518
|
+
* rewrites it. `undefined` when the file cannot be read at all.
|
|
519
|
+
*
|
|
520
|
+
* The same preparation `analyzeMany` is handed, so every scan that compares "what the parser
|
|
521
|
+
* holds" against "what is on disk" compares against what extraction actually saw.
|
|
522
|
+
*/
|
|
523
|
+
parsedSourceText: (filePath: string, onDisk?: string) => string | undefined;
|
|
524
|
+
/**
|
|
525
|
+
* Token accounting for one file's text, in Rust — see `token-accounting.ts` for the rules.
|
|
526
|
+
*
|
|
527
|
+
* This used to walk the TypeScript tree, which meant reading `project.getSourceFile` for
|
|
528
|
+
* every file mentioning a token, and that started the Go compiler over the whole inventory
|
|
529
|
+
* on every stylesheet build, since `prune.tokens` defaults on.
|
|
530
|
+
*/
|
|
531
|
+
accountTokens: (filePath: string, source: string) => NativeTokenAccounting;
|
|
532
|
+
/**
|
|
533
|
+
* What the Vite compiler needs to know about modules, in one native call. See
|
|
534
|
+
* `native-extractor/src/fold/model.rs`.
|
|
535
|
+
*
|
|
536
|
+
* `sources` are the modules to analyze, as the bundler hands them over. Every other module a
|
|
537
|
+
* value is resolved through is read the way extraction reads it: its `parser:before` output
|
|
538
|
+
* when a hook rewrites it, disk otherwise, and an overlay the project holds wins over both.
|
|
539
|
+
*/
|
|
540
|
+
compileModules: (sources: NativeSource[], options: {
|
|
541
|
+
references: boolean;
|
|
542
|
+
}) => FoldAnalysis[];
|
|
543
|
+
/**
|
|
544
|
+
* The token table as the native evaluator reads it.
|
|
545
|
+
*
|
|
546
|
+
* Built once per context rather than per call: `compileModules` runs once per transformed
|
|
547
|
+
* module, and the table is every token in the project — rebuilding it priced the whole
|
|
548
|
+
* dictionary into every file, most of which never call `token()`.
|
|
549
|
+
*/
|
|
550
|
+
private get nativeTokens();
|
|
551
|
+
private nativeTokenTable;
|
|
210
552
|
/** Load the required Rust extractor from the workspace or the published prebuild directory. */
|
|
211
553
|
private loadNativeExtractor;
|
|
212
554
|
private prepareNativeSource;
|
|
@@ -275,690 +617,6 @@ declare function analyze(ctx: BambooContext, options?: AnalysisOptions): Promise
|
|
|
275
617
|
//#region src/build-info.d.ts
|
|
276
618
|
declare function buildInfo(ctx: BambooContext, outfile: string): Promise<void>;
|
|
277
619
|
//#endregion
|
|
278
|
-
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/enums/diagnosticDirectivePolicy.enum.d.ts
|
|
279
|
-
declare enum DiagnosticDirectivePolicy {
|
|
280
|
-
Ignore = 0,
|
|
281
|
-
Expect = 1
|
|
282
|
-
}
|
|
283
|
-
//#endregion
|
|
284
|
-
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/enums/languageVariant.enum.d.ts
|
|
285
|
-
declare enum LanguageVariant {
|
|
286
|
-
Standard = 0,
|
|
287
|
-
JSX = 1
|
|
288
|
-
}
|
|
289
|
-
//#endregion
|
|
290
|
-
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/enums/nodeFlags.enum.d.ts
|
|
291
|
-
declare enum NodeFlags {
|
|
292
|
-
None = 0,
|
|
293
|
-
Let = 1,
|
|
294
|
-
Const = 2,
|
|
295
|
-
Using = 4,
|
|
296
|
-
Reparsed = 8,
|
|
297
|
-
Synthesized = 16,
|
|
298
|
-
OptionalChain = 32,
|
|
299
|
-
ExportContext = 64,
|
|
300
|
-
ContainsThis = 128,
|
|
301
|
-
HasImplicitReturn = 256,
|
|
302
|
-
HasExplicitReturn = 512,
|
|
303
|
-
DisallowInContext = 1024,
|
|
304
|
-
YieldContext = 2048,
|
|
305
|
-
DecoratorContext = 4096,
|
|
306
|
-
AwaitContext = 8192,
|
|
307
|
-
DisallowConditionalTypesContext = 16384,
|
|
308
|
-
ThisNodeHasError = 32768,
|
|
309
|
-
JavaScriptFile = 65536,
|
|
310
|
-
ThisNodeOrAnySubNodesHasError = 131072,
|
|
311
|
-
HasAsyncFunctions = 262144,
|
|
312
|
-
PossiblyContainsDynamicImport = 524288,
|
|
313
|
-
PossiblyContainsImportMeta = 1048576,
|
|
314
|
-
HasJSDoc = 2097152,
|
|
315
|
-
JSDoc = 4194304,
|
|
316
|
-
Ambient = 8388608,
|
|
317
|
-
InWithStatement = 16777216,
|
|
318
|
-
JsonFile = 33554432,
|
|
319
|
-
PossiblyContainsDeprecatedTag = 67108864,
|
|
320
|
-
Unreachable = 134217728,
|
|
321
|
-
ReparserTransformedLiteral = 268435456,
|
|
322
|
-
BlockScoped = 7,
|
|
323
|
-
Constant = 6,
|
|
324
|
-
AwaitUsing = 6,
|
|
325
|
-
ReachabilityCheckFlags = 768,
|
|
326
|
-
ReachabilityAndEmitFlags = 262912,
|
|
327
|
-
ContextFlags = 25263104,
|
|
328
|
-
TypeExcludesFlags = 10240,
|
|
329
|
-
PermanentlySetIncrementalFlags = 1572864,
|
|
330
|
-
IdentifierHasExtendedUnicodeEscape = 128,
|
|
331
|
-
IdentifierIsInJSDocNamespace = 262144,
|
|
332
|
-
NestedNamespace = 32
|
|
333
|
-
}
|
|
334
|
-
//#endregion
|
|
335
|
-
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/enums/scriptKind.enum.d.ts
|
|
336
|
-
declare enum ScriptKind {
|
|
337
|
-
Unknown = 0,
|
|
338
|
-
JS = 1,
|
|
339
|
-
JSX = 2,
|
|
340
|
-
TS = 3,
|
|
341
|
-
TSX = 4,
|
|
342
|
-
JSON = 6
|
|
343
|
-
}
|
|
344
|
-
//#endregion
|
|
345
|
-
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/enums/spanMapFeature.enum.d.ts
|
|
346
|
-
declare enum SpanMapFeature {
|
|
347
|
-
Hover = 1,
|
|
348
|
-
SignatureHelp = 2,
|
|
349
|
-
Completion = 4,
|
|
350
|
-
Definition = 8,
|
|
351
|
-
TypeDefinition = 16,
|
|
352
|
-
Implementation = 32,
|
|
353
|
-
References = 64,
|
|
354
|
-
DocumentHighlights = 128,
|
|
355
|
-
Rename = 256,
|
|
356
|
-
CallHierarchy = 512,
|
|
357
|
-
CodeActions = 1024,
|
|
358
|
-
Formatting = 2048,
|
|
359
|
-
InlayHints = 4096,
|
|
360
|
-
SemanticTokens = 8192,
|
|
361
|
-
FoldingRanges = 16384,
|
|
362
|
-
SelectionRanges = 32768,
|
|
363
|
-
LinkedEditing = 65536,
|
|
364
|
-
AutoInsert = 131072,
|
|
365
|
-
DocumentSymbols = 262144,
|
|
366
|
-
CodeLens = 524288,
|
|
367
|
-
None = 0,
|
|
368
|
-
All = 1048575
|
|
369
|
-
}
|
|
370
|
-
//#endregion
|
|
371
|
-
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/enums/spanMapFidelity.enum.d.ts
|
|
372
|
-
declare enum SpanMapFidelity {
|
|
373
|
-
Exact = 0,
|
|
374
|
-
Atom = 1,
|
|
375
|
-
Approximate = 2,
|
|
376
|
-
None = 3
|
|
377
|
-
}
|
|
378
|
-
//#endregion
|
|
379
|
-
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/enums/spanMapKind.enum.d.ts
|
|
380
|
-
declare enum SpanMapKind {
|
|
381
|
-
Verbatim = 0,
|
|
382
|
-
Atom = 1,
|
|
383
|
-
Alias = 2
|
|
384
|
-
}
|
|
385
|
-
//#endregion
|
|
386
|
-
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/enums/syntaxKind.enum.d.ts
|
|
387
|
-
declare enum SyntaxKind {
|
|
388
|
-
Unknown = 0,
|
|
389
|
-
EndOfFile = 1,
|
|
390
|
-
SingleLineCommentTrivia = 2,
|
|
391
|
-
MultiLineCommentTrivia = 3,
|
|
392
|
-
NewLineTrivia = 4,
|
|
393
|
-
WhitespaceTrivia = 5,
|
|
394
|
-
ConflictMarkerTrivia = 6,
|
|
395
|
-
NonTextFileMarkerTrivia = 7,
|
|
396
|
-
NumericLiteral = 8,
|
|
397
|
-
BigIntLiteral = 9,
|
|
398
|
-
StringLiteral = 10,
|
|
399
|
-
JsxText = 11,
|
|
400
|
-
JsxTextAllWhiteSpaces = 12,
|
|
401
|
-
RegularExpressionLiteral = 13,
|
|
402
|
-
NoSubstitutionTemplateLiteral = 14,
|
|
403
|
-
TemplateHead = 15,
|
|
404
|
-
TemplateMiddle = 16,
|
|
405
|
-
TemplateTail = 17,
|
|
406
|
-
OpenBraceToken = 18,
|
|
407
|
-
CloseBraceToken = 19,
|
|
408
|
-
OpenParenToken = 20,
|
|
409
|
-
CloseParenToken = 21,
|
|
410
|
-
OpenBracketToken = 22,
|
|
411
|
-
CloseBracketToken = 23,
|
|
412
|
-
DotToken = 24,
|
|
413
|
-
DotDotDotToken = 25,
|
|
414
|
-
SemicolonToken = 26,
|
|
415
|
-
CommaToken = 27,
|
|
416
|
-
QuestionDotToken = 28,
|
|
417
|
-
LessThanToken = 29,
|
|
418
|
-
LessThanSlashToken = 30,
|
|
419
|
-
GreaterThanToken = 31,
|
|
420
|
-
LessThanEqualsToken = 32,
|
|
421
|
-
GreaterThanEqualsToken = 33,
|
|
422
|
-
EqualsEqualsToken = 34,
|
|
423
|
-
ExclamationEqualsToken = 35,
|
|
424
|
-
EqualsEqualsEqualsToken = 36,
|
|
425
|
-
ExclamationEqualsEqualsToken = 37,
|
|
426
|
-
EqualsGreaterThanToken = 38,
|
|
427
|
-
PlusToken = 39,
|
|
428
|
-
MinusToken = 40,
|
|
429
|
-
AsteriskToken = 41,
|
|
430
|
-
AsteriskAsteriskToken = 42,
|
|
431
|
-
SlashToken = 43,
|
|
432
|
-
PercentToken = 44,
|
|
433
|
-
PlusPlusToken = 45,
|
|
434
|
-
MinusMinusToken = 46,
|
|
435
|
-
LessThanLessThanToken = 47,
|
|
436
|
-
GreaterThanGreaterThanToken = 48,
|
|
437
|
-
GreaterThanGreaterThanGreaterThanToken = 49,
|
|
438
|
-
AmpersandToken = 50,
|
|
439
|
-
BarToken = 51,
|
|
440
|
-
CaretToken = 52,
|
|
441
|
-
ExclamationToken = 53,
|
|
442
|
-
TildeToken = 54,
|
|
443
|
-
AmpersandAmpersandToken = 55,
|
|
444
|
-
BarBarToken = 56,
|
|
445
|
-
QuestionToken = 57,
|
|
446
|
-
ColonToken = 58,
|
|
447
|
-
AtToken = 59,
|
|
448
|
-
QuestionQuestionToken = 60,
|
|
449
|
-
BacktickToken = 61,
|
|
450
|
-
HashToken = 62,
|
|
451
|
-
EqualsToken = 63,
|
|
452
|
-
PlusEqualsToken = 64,
|
|
453
|
-
MinusEqualsToken = 65,
|
|
454
|
-
AsteriskEqualsToken = 66,
|
|
455
|
-
AsteriskAsteriskEqualsToken = 67,
|
|
456
|
-
SlashEqualsToken = 68,
|
|
457
|
-
PercentEqualsToken = 69,
|
|
458
|
-
LessThanLessThanEqualsToken = 70,
|
|
459
|
-
GreaterThanGreaterThanEqualsToken = 71,
|
|
460
|
-
GreaterThanGreaterThanGreaterThanEqualsToken = 72,
|
|
461
|
-
AmpersandEqualsToken = 73,
|
|
462
|
-
BarEqualsToken = 74,
|
|
463
|
-
BarBarEqualsToken = 75,
|
|
464
|
-
AmpersandAmpersandEqualsToken = 76,
|
|
465
|
-
QuestionQuestionEqualsToken = 77,
|
|
466
|
-
CaretEqualsToken = 78,
|
|
467
|
-
Identifier = 79,
|
|
468
|
-
PrivateIdentifier = 80,
|
|
469
|
-
JSDocCommentTextToken = 81,
|
|
470
|
-
BreakKeyword = 82,
|
|
471
|
-
CaseKeyword = 83,
|
|
472
|
-
CatchKeyword = 84,
|
|
473
|
-
ClassKeyword = 85,
|
|
474
|
-
ConstKeyword = 86,
|
|
475
|
-
ContinueKeyword = 87,
|
|
476
|
-
DebuggerKeyword = 88,
|
|
477
|
-
DefaultKeyword = 89,
|
|
478
|
-
DeleteKeyword = 90,
|
|
479
|
-
DoKeyword = 91,
|
|
480
|
-
ElseKeyword = 92,
|
|
481
|
-
EnumKeyword = 93,
|
|
482
|
-
ExportKeyword = 94,
|
|
483
|
-
ExtendsKeyword = 95,
|
|
484
|
-
FalseKeyword = 96,
|
|
485
|
-
FinallyKeyword = 97,
|
|
486
|
-
ForKeyword = 98,
|
|
487
|
-
FunctionKeyword = 99,
|
|
488
|
-
IfKeyword = 100,
|
|
489
|
-
ImportKeyword = 101,
|
|
490
|
-
InKeyword = 102,
|
|
491
|
-
InstanceOfKeyword = 103,
|
|
492
|
-
NewKeyword = 104,
|
|
493
|
-
NullKeyword = 105,
|
|
494
|
-
ReturnKeyword = 106,
|
|
495
|
-
SuperKeyword = 107,
|
|
496
|
-
SwitchKeyword = 108,
|
|
497
|
-
ThisKeyword = 109,
|
|
498
|
-
ThrowKeyword = 110,
|
|
499
|
-
TrueKeyword = 111,
|
|
500
|
-
TryKeyword = 112,
|
|
501
|
-
TypeOfKeyword = 113,
|
|
502
|
-
VarKeyword = 114,
|
|
503
|
-
VoidKeyword = 115,
|
|
504
|
-
WhileKeyword = 116,
|
|
505
|
-
WithKeyword = 117,
|
|
506
|
-
ImplementsKeyword = 118,
|
|
507
|
-
InterfaceKeyword = 119,
|
|
508
|
-
LetKeyword = 120,
|
|
509
|
-
PackageKeyword = 121,
|
|
510
|
-
PrivateKeyword = 122,
|
|
511
|
-
ProtectedKeyword = 123,
|
|
512
|
-
PublicKeyword = 124,
|
|
513
|
-
StaticKeyword = 125,
|
|
514
|
-
YieldKeyword = 126,
|
|
515
|
-
AbstractKeyword = 127,
|
|
516
|
-
AccessorKeyword = 128,
|
|
517
|
-
AsKeyword = 129,
|
|
518
|
-
AssertsKeyword = 130,
|
|
519
|
-
AssertKeyword = 131,
|
|
520
|
-
AnyKeyword = 132,
|
|
521
|
-
AsyncKeyword = 133,
|
|
522
|
-
AwaitKeyword = 134,
|
|
523
|
-
BooleanKeyword = 135,
|
|
524
|
-
ConstructorKeyword = 136,
|
|
525
|
-
DeclareKeyword = 137,
|
|
526
|
-
GetKeyword = 138,
|
|
527
|
-
ImmediateKeyword = 139,
|
|
528
|
-
InferKeyword = 140,
|
|
529
|
-
IntrinsicKeyword = 141,
|
|
530
|
-
IsKeyword = 142,
|
|
531
|
-
KeyOfKeyword = 143,
|
|
532
|
-
ModuleKeyword = 144,
|
|
533
|
-
NamespaceKeyword = 145,
|
|
534
|
-
NeverKeyword = 146,
|
|
535
|
-
OutKeyword = 147,
|
|
536
|
-
ReadonlyKeyword = 148,
|
|
537
|
-
RequireKeyword = 149,
|
|
538
|
-
NumberKeyword = 150,
|
|
539
|
-
ObjectKeyword = 151,
|
|
540
|
-
SatisfiesKeyword = 152,
|
|
541
|
-
SetKeyword = 153,
|
|
542
|
-
StringKeyword = 154,
|
|
543
|
-
SymbolKeyword = 155,
|
|
544
|
-
TypeKeyword = 156,
|
|
545
|
-
UndefinedKeyword = 157,
|
|
546
|
-
UniqueKeyword = 158,
|
|
547
|
-
UnknownKeyword = 159,
|
|
548
|
-
UsingKeyword = 160,
|
|
549
|
-
FromKeyword = 161,
|
|
550
|
-
GlobalKeyword = 162,
|
|
551
|
-
BigIntKeyword = 163,
|
|
552
|
-
OverrideKeyword = 164,
|
|
553
|
-
OfKeyword = 165,
|
|
554
|
-
DeferKeyword = 166,
|
|
555
|
-
QualifiedName = 167,
|
|
556
|
-
ComputedPropertyName = 168,
|
|
557
|
-
TypeParameter = 169,
|
|
558
|
-
Parameter = 170,
|
|
559
|
-
Decorator = 171,
|
|
560
|
-
PropertySignature = 172,
|
|
561
|
-
PropertyDeclaration = 173,
|
|
562
|
-
MethodSignature = 174,
|
|
563
|
-
MethodDeclaration = 175,
|
|
564
|
-
ClassStaticBlockDeclaration = 176,
|
|
565
|
-
Constructor = 177,
|
|
566
|
-
GetAccessor = 178,
|
|
567
|
-
SetAccessor = 179,
|
|
568
|
-
CallSignature = 180,
|
|
569
|
-
ConstructSignature = 181,
|
|
570
|
-
IndexSignature = 182,
|
|
571
|
-
TypePredicate = 183,
|
|
572
|
-
TypeReference = 184,
|
|
573
|
-
FunctionType = 185,
|
|
574
|
-
ConstructorType = 186,
|
|
575
|
-
TypeQuery = 187,
|
|
576
|
-
TypeLiteral = 188,
|
|
577
|
-
ArrayType = 189,
|
|
578
|
-
TupleType = 190,
|
|
579
|
-
OptionalType = 191,
|
|
580
|
-
RestType = 192,
|
|
581
|
-
UnionType = 193,
|
|
582
|
-
IntersectionType = 194,
|
|
583
|
-
ConditionalType = 195,
|
|
584
|
-
InferType = 196,
|
|
585
|
-
ParenthesizedType = 197,
|
|
586
|
-
ThisType = 198,
|
|
587
|
-
TypeOperator = 199,
|
|
588
|
-
IndexedAccessType = 200,
|
|
589
|
-
MappedType = 201,
|
|
590
|
-
LiteralType = 202,
|
|
591
|
-
NamedTupleMember = 203,
|
|
592
|
-
TemplateLiteralType = 204,
|
|
593
|
-
TemplateLiteralTypeSpan = 205,
|
|
594
|
-
ImportType = 206,
|
|
595
|
-
ObjectBindingPattern = 207,
|
|
596
|
-
ArrayBindingPattern = 208,
|
|
597
|
-
BindingElement = 209,
|
|
598
|
-
ArrayLiteralExpression = 210,
|
|
599
|
-
ObjectLiteralExpression = 211,
|
|
600
|
-
PropertyAccessExpression = 212,
|
|
601
|
-
ElementAccessExpression = 213,
|
|
602
|
-
CallExpression = 214,
|
|
603
|
-
NewExpression = 215,
|
|
604
|
-
TaggedTemplateExpression = 216,
|
|
605
|
-
TypeAssertionExpression = 217,
|
|
606
|
-
ParenthesizedExpression = 218,
|
|
607
|
-
FunctionExpression = 219,
|
|
608
|
-
ArrowFunction = 220,
|
|
609
|
-
DeleteExpression = 221,
|
|
610
|
-
TypeOfExpression = 222,
|
|
611
|
-
VoidExpression = 223,
|
|
612
|
-
AwaitExpression = 224,
|
|
613
|
-
PrefixUnaryExpression = 225,
|
|
614
|
-
PostfixUnaryExpression = 226,
|
|
615
|
-
BinaryExpression = 227,
|
|
616
|
-
ConditionalExpression = 228,
|
|
617
|
-
TemplateExpression = 229,
|
|
618
|
-
YieldExpression = 230,
|
|
619
|
-
SpreadElement = 231,
|
|
620
|
-
ClassExpression = 232,
|
|
621
|
-
OmittedExpression = 233,
|
|
622
|
-
ExpressionWithTypeArguments = 234,
|
|
623
|
-
AsExpression = 235,
|
|
624
|
-
NonNullExpression = 236,
|
|
625
|
-
MetaProperty = 237,
|
|
626
|
-
SyntheticExpression = 238,
|
|
627
|
-
SatisfiesExpression = 239,
|
|
628
|
-
TemplateSpan = 240,
|
|
629
|
-
SemicolonClassElement = 241,
|
|
630
|
-
Block = 242,
|
|
631
|
-
EmptyStatement = 243,
|
|
632
|
-
VariableStatement = 244,
|
|
633
|
-
ExpressionStatement = 245,
|
|
634
|
-
IfStatement = 246,
|
|
635
|
-
DoStatement = 247,
|
|
636
|
-
WhileStatement = 248,
|
|
637
|
-
ForStatement = 249,
|
|
638
|
-
ForInStatement = 250,
|
|
639
|
-
ForOfStatement = 251,
|
|
640
|
-
ContinueStatement = 252,
|
|
641
|
-
BreakStatement = 253,
|
|
642
|
-
ReturnStatement = 254,
|
|
643
|
-
WithStatement = 255,
|
|
644
|
-
SwitchStatement = 256,
|
|
645
|
-
LabeledStatement = 257,
|
|
646
|
-
ThrowStatement = 258,
|
|
647
|
-
TryStatement = 259,
|
|
648
|
-
DebuggerStatement = 260,
|
|
649
|
-
VariableDeclaration = 261,
|
|
650
|
-
VariableDeclarationList = 262,
|
|
651
|
-
FunctionDeclaration = 263,
|
|
652
|
-
ClassDeclaration = 264,
|
|
653
|
-
InterfaceDeclaration = 265,
|
|
654
|
-
TypeAliasDeclaration = 266,
|
|
655
|
-
EnumDeclaration = 267,
|
|
656
|
-
ModuleDeclaration = 268,
|
|
657
|
-
ModuleBlock = 269,
|
|
658
|
-
CaseBlock = 270,
|
|
659
|
-
NamespaceExportDeclaration = 271,
|
|
660
|
-
ImportEqualsDeclaration = 272,
|
|
661
|
-
ImportDeclaration = 273,
|
|
662
|
-
ImportClause = 274,
|
|
663
|
-
NamespaceImport = 275,
|
|
664
|
-
NamedImports = 276,
|
|
665
|
-
ImportSpecifier = 277,
|
|
666
|
-
ExportAssignment = 278,
|
|
667
|
-
ExportDeclaration = 279,
|
|
668
|
-
NamedExports = 280,
|
|
669
|
-
NamespaceExport = 281,
|
|
670
|
-
ExportSpecifier = 282,
|
|
671
|
-
MissingDeclaration = 283,
|
|
672
|
-
ExternalModuleReference = 284,
|
|
673
|
-
JsxElement = 285,
|
|
674
|
-
JsxSelfClosingElement = 286,
|
|
675
|
-
JsxOpeningElement = 287,
|
|
676
|
-
JsxClosingElement = 288,
|
|
677
|
-
JsxFragment = 289,
|
|
678
|
-
JsxOpeningFragment = 290,
|
|
679
|
-
JsxClosingFragment = 291,
|
|
680
|
-
JsxAttribute = 292,
|
|
681
|
-
JsxAttributes = 293,
|
|
682
|
-
JsxSpreadAttribute = 294,
|
|
683
|
-
JsxExpression = 295,
|
|
684
|
-
JsxNamespacedName = 296,
|
|
685
|
-
CaseClause = 297,
|
|
686
|
-
DefaultClause = 298,
|
|
687
|
-
HeritageClause = 299,
|
|
688
|
-
CatchClause = 300,
|
|
689
|
-
ImportAttributes = 301,
|
|
690
|
-
ImportAttribute = 302,
|
|
691
|
-
PropertyAssignment = 303,
|
|
692
|
-
ShorthandPropertyAssignment = 304,
|
|
693
|
-
SpreadAssignment = 305,
|
|
694
|
-
EnumMember = 306,
|
|
695
|
-
SourceFile = 307,
|
|
696
|
-
JSDocTypeExpression = 308,
|
|
697
|
-
JSDocNameReference = 309,
|
|
698
|
-
JSDocAllType = 310,
|
|
699
|
-
JSDocNullableType = 311,
|
|
700
|
-
JSDocNonNullableType = 312,
|
|
701
|
-
JSDocOptionalType = 313,
|
|
702
|
-
JSDocVariadicType = 314,
|
|
703
|
-
JSDoc = 315,
|
|
704
|
-
JSDocText = 316,
|
|
705
|
-
JSDocTypeLiteral = 317,
|
|
706
|
-
JSDocSignature = 318,
|
|
707
|
-
JSDocLink = 319,
|
|
708
|
-
JSDocLinkCode = 320,
|
|
709
|
-
JSDocLinkPlain = 321,
|
|
710
|
-
JSDocUnknownTag = 322,
|
|
711
|
-
JSDocAugmentsTag = 323,
|
|
712
|
-
JSDocImplementsTag = 324,
|
|
713
|
-
JSDocDeprecatedTag = 325,
|
|
714
|
-
JSDocPublicTag = 326,
|
|
715
|
-
JSDocPrivateTag = 327,
|
|
716
|
-
JSDocProtectedTag = 328,
|
|
717
|
-
JSDocReadonlyTag = 329,
|
|
718
|
-
JSDocOverrideTag = 330,
|
|
719
|
-
JSDocCallbackTag = 331,
|
|
720
|
-
JSDocOverloadTag = 332,
|
|
721
|
-
JSDocParameterTag = 333,
|
|
722
|
-
JSDocReturnTag = 334,
|
|
723
|
-
JSDocThisTag = 335,
|
|
724
|
-
JSDocTypeTag = 336,
|
|
725
|
-
JSDocTemplateTag = 337,
|
|
726
|
-
JSDocTypedefTag = 338,
|
|
727
|
-
JSDocSeeTag = 339,
|
|
728
|
-
JSDocPropertyTag = 340,
|
|
729
|
-
JSDocThrowsTag = 341,
|
|
730
|
-
JSDocSatisfiesTag = 342,
|
|
731
|
-
JSDocImportTag = 343,
|
|
732
|
-
SyntaxList = 344,
|
|
733
|
-
JSTypeAliasDeclaration = 345,
|
|
734
|
-
JSImportDeclaration = 346,
|
|
735
|
-
NotEmittedStatement = 347,
|
|
736
|
-
PartiallyEmittedExpression = 348,
|
|
737
|
-
SyntheticReferenceExpression = 349,
|
|
738
|
-
NotEmittedTypeElement = 350,
|
|
739
|
-
Count = 351,
|
|
740
|
-
FirstAssignment = 63,
|
|
741
|
-
LastAssignment = 78,
|
|
742
|
-
FirstCompoundAssignment = 64,
|
|
743
|
-
LastCompoundAssignment = 78,
|
|
744
|
-
FirstReservedWord = 82,
|
|
745
|
-
LastReservedWord = 117,
|
|
746
|
-
FirstKeyword = 82,
|
|
747
|
-
LastKeyword = 166,
|
|
748
|
-
FirstFutureReservedWord = 118,
|
|
749
|
-
LastFutureReservedWord = 126,
|
|
750
|
-
FirstTypeNode = 183,
|
|
751
|
-
LastTypeNode = 206,
|
|
752
|
-
FirstPunctuation = 18,
|
|
753
|
-
LastPunctuation = 78,
|
|
754
|
-
FirstToken = 0,
|
|
755
|
-
LastToken = 166,
|
|
756
|
-
FirstLiteralToken = 8,
|
|
757
|
-
LastLiteralToken = 14,
|
|
758
|
-
FirstTemplateToken = 14,
|
|
759
|
-
LastTemplateToken = 17,
|
|
760
|
-
FirstBinaryOperator = 29,
|
|
761
|
-
LastBinaryOperator = 78,
|
|
762
|
-
FirstStatement = 244,
|
|
763
|
-
LastStatement = 260,
|
|
764
|
-
FirstNode = 167,
|
|
765
|
-
FirstJSDocNode = 308,
|
|
766
|
-
LastJSDocNode = 343,
|
|
767
|
-
FirstJSDocTagNode = 322,
|
|
768
|
-
LastJSDocTagNode = 343,
|
|
769
|
-
FirstContextualKeyword = 127,
|
|
770
|
-
LastContextualKeyword = 166,
|
|
771
|
-
LastUnaryOperator = 54,
|
|
772
|
-
FirstTriviaToken = 2,
|
|
773
|
-
LastTriviaToken = 6
|
|
774
|
-
}
|
|
775
|
-
//#endregion
|
|
776
|
-
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/ast/ast.generated.d.ts
|
|
777
|
-
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;
|
|
778
|
-
interface NodeBase extends Node {
|
|
779
|
-
readonly flags: NodeFlags;
|
|
780
|
-
}
|
|
781
|
-
interface StatementBase extends NodeBase {
|
|
782
|
-
readonly _statementBrand: any;
|
|
783
|
-
}
|
|
784
|
-
interface Token<TKind extends TokenSyntaxKind = TokenSyntaxKind> extends NodeBase {
|
|
785
|
-
readonly kind: TKind;
|
|
786
|
-
}
|
|
787
|
-
type Statement = StatementBase;
|
|
788
|
-
type EndOfFile = Token<SyntaxKind.EndOfFile>;
|
|
789
|
-
//#endregion
|
|
790
|
-
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/ast/spanMap.d.ts
|
|
791
|
-
/** Maps one half-open virtual range to one half-open original range. */
|
|
792
|
-
interface SpanMapSegment {
|
|
793
|
-
readonly virtualStart: number;
|
|
794
|
-
readonly virtualEnd: number;
|
|
795
|
-
readonly originalStart: number;
|
|
796
|
-
readonly originalEnd: number;
|
|
797
|
-
readonly kind: SpanMapKind;
|
|
798
|
-
readonly features?: SpanMapFeature;
|
|
799
|
-
}
|
|
800
|
-
/** Internal segment representation after omitted features have been normalized to `All`. */
|
|
801
|
-
type NormalizedSpanMapSegment = SpanMapSegment & {
|
|
802
|
-
readonly features: SpanMapFeature;
|
|
803
|
-
};
|
|
804
|
-
/** One virtual projection of an original position and its mapping fidelity. */
|
|
805
|
-
interface MappedPosition {
|
|
806
|
-
readonly position: number;
|
|
807
|
-
readonly fidelity: SpanMapFidelity;
|
|
808
|
-
}
|
|
809
|
-
/** One virtual projection of an original range and its mapping fidelity. */
|
|
810
|
-
interface MappedRange {
|
|
811
|
-
readonly range: ReadonlyTextRange;
|
|
812
|
-
readonly fidelity: SpanMapFidelity;
|
|
813
|
-
}
|
|
814
|
-
/** Provides bidirectional span-aware mapping between virtual and original text. */
|
|
815
|
-
declare class SpanMap {
|
|
816
|
-
readonly segments: readonly NormalizedSpanMapSegment[];
|
|
817
|
-
private originalIndex;
|
|
818
|
-
/** Copies and sorts segments by virtual start, normalizing omitted features to `All`. */
|
|
819
|
-
constructor(segments: readonly SpanMapSegment[]);
|
|
820
|
-
/** Reports whether a mapping is a precise, edit-safe projection through one verbatim segment. */
|
|
821
|
-
static isExact(fidelity: SpanMapFidelity): boolean;
|
|
822
|
-
/** Reports whether a mapping lies in one verbatim or atom segment. */
|
|
823
|
-
static isSingleSegment(fidelity: SpanMapFidelity): boolean;
|
|
824
|
-
/** Reports whether the input had no counterpart in the target text. */
|
|
825
|
-
static isNone(fidelity: SpanMapFidelity): boolean;
|
|
826
|
-
/**
|
|
827
|
-
* Maps a virtual range to original text. Gaps map to insertion points with `None` fidelity,
|
|
828
|
-
* and ranges crossing segment boundaries map their endpoints with `Approximate` fidelity.
|
|
829
|
-
*/
|
|
830
|
-
virtualToOriginalSpan(range: ReadonlyTextRange): MappedRange;
|
|
831
|
-
/** Maps a visible LS result only when every covered segment participates in `feature`. */
|
|
832
|
-
virtualToOriginalSpanForFeature(range: ReadonlyTextRange, feature: SpanMapFeature): MappedRange;
|
|
833
|
-
/** Maps a virtual position to original text, using `None` fidelity for synthesized gaps. */
|
|
834
|
-
virtualToOriginalPosition(position: number): MappedPosition;
|
|
835
|
-
virtualToOriginalPositionForFeature(position: number, feature: SpanMapFeature): MappedPosition;
|
|
836
|
-
/**
|
|
837
|
-
* Returns every virtual projection of an original position whose segment participates in `feature`.
|
|
838
|
-
* Segment ends are inclusive for point mapping, so adjacent spans may both produce projections.
|
|
839
|
-
* Results are ordered by virtual position; uncovered or disabled positions produce no results.
|
|
840
|
-
*/
|
|
841
|
-
originalToVirtualPositions(position: number, feature: SpanMapFeature): readonly MappedPosition[];
|
|
842
|
-
/**
|
|
843
|
-
* Returns every feature-compatible virtual projection of an original range.
|
|
844
|
-
* A range contained by one or more segments produces one exact or atom result per matching segment.
|
|
845
|
-
*
|
|
846
|
-
* A range that starts in one group and ends in another can have several possible virtual ranges. For
|
|
847
|
-
* example, suppose two original segments are each copied twice into the virtual text:
|
|
848
|
-
*
|
|
849
|
-
* ```text
|
|
850
|
-
* original: [ A ][ B ]
|
|
851
|
-
* [---) range from inside A to inside B
|
|
852
|
-
*
|
|
853
|
-
* virtual: [ A ][ B ] [ A ][ B ]
|
|
854
|
-
* ^ ^ ^ ^
|
|
855
|
-
* start end start end
|
|
856
|
-
* 1 3 11 13
|
|
857
|
-
* ```
|
|
858
|
-
*
|
|
859
|
-
* 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
|
|
860
|
-
* belongs with which copy of B. We choose the smallest range around each possible location, producing [1,3)
|
|
861
|
-
* and [11,13). We do not return [1,13), because it contains both smaller candidates and would include code
|
|
862
|
-
* that may be unrelated to the original range. These cross-group results have approximate fidelity.
|
|
863
|
-
*/
|
|
864
|
-
originalToVirtualSpans(range: ReadonlyTextRange, feature: SpanMapFeature): readonly MappedRange[];
|
|
865
|
-
/** Maps one range through an ordered segment index in the direction selected by `reverse`. */
|
|
866
|
-
private mapRange;
|
|
867
|
-
/** Maps one position through an ordered segment index in the direction selected by `reverse`. */
|
|
868
|
-
private mapPoint;
|
|
869
|
-
/** Returns the lazily built original-text interval index. */
|
|
870
|
-
private getOriginalIndex;
|
|
871
|
-
private virtualRangeSupportsFeature;
|
|
872
|
-
}
|
|
873
|
-
//#endregion
|
|
874
|
-
//#region ../../node_modules/.pnpm/typescript@7.1.0-dev.20260826.1/node_modules/typescript/dist/ast/ast.d.ts
|
|
875
|
-
type Path = string & {
|
|
876
|
-
__pathBrand: any;
|
|
877
|
-
};
|
|
878
|
-
interface TextRange {
|
|
879
|
-
pos: number;
|
|
880
|
-
end: number;
|
|
881
|
-
}
|
|
882
|
-
interface ReadonlyTextRange {
|
|
883
|
-
readonly pos: number;
|
|
884
|
-
readonly end: number;
|
|
885
|
-
}
|
|
886
|
-
interface NodeArray<T extends Node> extends ReadonlyArray<T>, ReadonlyTextRange {
|
|
887
|
-
hasTrailingComma?: boolean;
|
|
888
|
-
transformFlags: number;
|
|
889
|
-
}
|
|
890
|
-
interface Node extends ReadonlyTextRange {
|
|
891
|
-
readonly kind: SyntaxKind;
|
|
892
|
-
readonly flags: NodeFlags;
|
|
893
|
-
readonly parent: Node;
|
|
894
|
-
readonly jsDoc?: readonly Node[] | undefined;
|
|
895
|
-
forEachChild<T>(visitor: (node: Node) => T, visitArray?: (nodes: NodeArray<Node>) => T): T | undefined;
|
|
896
|
-
getSourceFile(): SourceFile;
|
|
897
|
-
getStart(sourceFile?: SourceFile, includeJsDocComment?: boolean): number;
|
|
898
|
-
getFullStart(): number;
|
|
899
|
-
getEnd(): number;
|
|
900
|
-
getWidth(sourceFile?: SourceFile): number;
|
|
901
|
-
getFullWidth(): number;
|
|
902
|
-
getLeadingTriviaWidth(sourceFile?: SourceFile): number;
|
|
903
|
-
getFullText(sourceFile?: SourceFile): string;
|
|
904
|
-
getText(sourceFile?: SourceFile): string;
|
|
905
|
-
}
|
|
906
|
-
interface FileReference extends TextRange {
|
|
907
|
-
readonly fileName: string;
|
|
908
|
-
readonly resolutionMode: number;
|
|
909
|
-
readonly preserve: boolean;
|
|
910
|
-
}
|
|
911
|
-
interface LineAndCharacter {
|
|
912
|
-
/** 0-based line number. */
|
|
913
|
-
readonly line: number;
|
|
914
|
-
/** 0-based character offset, in UTF-16 code units, from the start of the line. */
|
|
915
|
-
readonly character: number;
|
|
916
|
-
}
|
|
917
|
-
interface MappedDiagnosticDirective {
|
|
918
|
-
readonly originalRange: ReadonlyTextRange;
|
|
919
|
-
readonly virtualRange: ReadonlyTextRange;
|
|
920
|
-
readonly policy: DiagnosticDirectivePolicy;
|
|
921
|
-
readonly unusedCode: number;
|
|
922
|
-
}
|
|
923
|
-
interface SourceFile extends Node {
|
|
924
|
-
readonly kind: SyntaxKind.SourceFile;
|
|
925
|
-
readonly statements: NodeArray<Statement>;
|
|
926
|
-
readonly endOfFileToken: EndOfFile;
|
|
927
|
-
readonly text: string;
|
|
928
|
-
readonly originalText: string;
|
|
929
|
-
readonly spanMap: SpanMap | undefined;
|
|
930
|
-
/** Identity of the content mapper that produced this source file. */
|
|
931
|
-
readonly contentMapper?: string;
|
|
932
|
-
/** Filename used to determine the syntax and module semantics of the transformed content. */
|
|
933
|
-
readonly virtualFileName?: string;
|
|
934
|
-
/** Framework-specific diagnostic directives applied to the transformed content. */
|
|
935
|
-
readonly diagnosticDirectives?: readonly MappedDiagnosticDirective[];
|
|
936
|
-
/** Compiler-assigned filenames of supplemental outputs associated with this canonical source file. */
|
|
937
|
-
readonly supplementalSourceFileNames?: readonly string[];
|
|
938
|
-
/** Canonical source filename associated with this supplemental output, if this is supplemental. */
|
|
939
|
-
readonly canonicalSourceFileName?: string;
|
|
940
|
-
readonly fileName: string;
|
|
941
|
-
readonly path: Path;
|
|
942
|
-
readonly languageVariant: LanguageVariant;
|
|
943
|
-
readonly scriptKind: ScriptKind;
|
|
944
|
-
readonly isDeclarationFile: boolean;
|
|
945
|
-
readonly referencedFiles: readonly FileReference[];
|
|
946
|
-
readonly typeReferenceDirectives: readonly FileReference[];
|
|
947
|
-
readonly libReferenceDirectives: readonly FileReference[];
|
|
948
|
-
readonly imports: readonly Node[];
|
|
949
|
-
readonly moduleAugmentations: readonly Node[];
|
|
950
|
-
readonly ambientModuleNames: readonly string[];
|
|
951
|
-
readonly externalModuleIndicator: Node | true | undefined;
|
|
952
|
-
/** Returns the UTF-16 code unit offset of the start of each line. */
|
|
953
|
-
getLineStarts(): readonly number[];
|
|
954
|
-
/** Converts a UTF-16 code unit position into a 0-based line and character. */
|
|
955
|
-
getLineAndCharacterOfPosition(position: number): LineAndCharacter;
|
|
956
|
-
/** Converts a 0-based line and character into a UTF-16 code unit position. */
|
|
957
|
-
getPositionOfLineAndCharacter(line: number, character: number): number;
|
|
958
|
-
/** @internal */
|
|
959
|
-
tokenCache?: Map<string, Node>;
|
|
960
|
-
}
|
|
961
|
-
//#endregion
|
|
962
620
|
//#region src/builder.d.ts
|
|
963
621
|
/** Files a watcher knows moved since the previous setup. Omit this to retain filesystem discovery. */
|
|
964
622
|
interface BuilderSourceChanges {
|
|
@@ -1010,20 +668,12 @@ declare class Builder {
|
|
|
1010
668
|
private configGraphMtimes;
|
|
1011
669
|
/** Per-file source-scan results for `toCss`, valid while each file's mtime stands still. */
|
|
1012
670
|
private sourceScanCache;
|
|
1013
|
-
/**
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
/** Whether each file changed this pass kept its recipe surface; consulted by dependents. */
|
|
1018
|
-
private recipeSurfaceStable;
|
|
1019
|
-
/** Files this pass re-extracts because their bytes moved, as `sourcePath` spellings. */
|
|
1020
|
-
private changedThisPass;
|
|
1021
|
-
/** Whether this pass selected any owner through resolution-configuration changes. */
|
|
1022
|
-
private resolutionAffectedThisPass;
|
|
1023
|
-
/** Per-pass digests of re-read values, so N dependents of one edit digest each value once. */
|
|
1024
|
-
private readDigestMemo;
|
|
1025
|
-
/** Resolution ledger as it stood before this pass's first physical source mutation. */
|
|
671
|
+
/**
|
|
672
|
+
* Dependency edges as they stood before this pass's first source mutation, and the owners
|
|
673
|
+
* each changed file reached then — before re-extraction replaces the edges that found them.
|
|
674
|
+
*/
|
|
1026
675
|
private capturedLedger;
|
|
676
|
+
private capturedDependents;
|
|
1027
677
|
/**
|
|
1028
678
|
* Reload one edited source, keeping the closure the next extraction pass has to select.
|
|
1029
679
|
*
|
|
@@ -1037,9 +687,9 @@ declare class Builder {
|
|
|
1037
687
|
* Once per pass, not once per file: the first mutation is the boundary, and every later one
|
|
1038
688
|
* in the same event is already described by that snapshot. `refreshSourceState` consumes it.
|
|
1039
689
|
*/
|
|
1040
|
-
reloadSource: (filePath: string) =>
|
|
690
|
+
reloadSource: (filePath: string) => void;
|
|
1041
691
|
/** The deletion half of `reloadSource`, with the same snapshot obligation. */
|
|
1042
|
-
removeSource: (filePath: string) =>
|
|
692
|
+
removeSource: (filePath: string) => void;
|
|
1043
693
|
private captureResolutionLedger;
|
|
1044
694
|
/** @internal Current and missing resolver paths which can change the stylesheet. */
|
|
1045
695
|
getResolutionReadFiles: () => readonly string[];
|
|
@@ -1073,12 +723,13 @@ declare class Builder {
|
|
|
1073
723
|
/** Normalize the path identity shared by the Project ledger and file-owner keys. */
|
|
1074
724
|
private sourcePath;
|
|
1075
725
|
/**
|
|
1076
|
-
*
|
|
726
|
+
* Refresh changed sources, then select them and their transitive included consumers.
|
|
1077
727
|
*
|
|
1078
|
-
*
|
|
1079
|
-
*
|
|
1080
|
-
*
|
|
1081
|
-
*
|
|
728
|
+
* Consumers come from the native evaluator's read graph, which includes paths a consumer
|
|
729
|
+
* probed and did not find — so a file appearing reaches the importers that were waiting for
|
|
730
|
+
* it. The graph is read before anything is re-extracted: re-extraction replaces an owner's
|
|
731
|
+
* edges, and waiting would lose the very closure the rebuild needs. An integration that
|
|
732
|
+
* mutated sources earlier in the pass captured it then (`reloadSource`, `removeSource`).
|
|
1082
733
|
*/
|
|
1083
734
|
private invalidateChangedSources;
|
|
1084
735
|
/** Deterministic topological order, with current inventory order as the stable tie-break. */
|
|
@@ -1104,18 +755,8 @@ declare class Builder {
|
|
|
1104
755
|
emit(): Promise<void>;
|
|
1105
756
|
setupContext: (options: SetupContextOptions) => Promise<BambooContext>;
|
|
1106
757
|
getContextOrThrow: () => BambooContext;
|
|
1107
|
-
/**
|
|
1108
|
-
* The changed file's recipe surface: every declared `cva`/`sva` config, in declaration
|
|
1109
|
-
* order, plus the text of every export statement. A value edit inside a `css()` call moves
|
|
1110
|
-
* neither; a recipe config edit moves the first; an export alias or re-export edit — which
|
|
1111
|
-
* can re-route what a consumer's call resolves to without any declaration changing — moves
|
|
1112
|
-
* the second. `undefined` when any part cannot be pinned down, which disables skipping.
|
|
1113
|
-
*/
|
|
1114
|
-
private digestRecipeSurface;
|
|
1115
758
|
/** One canonical spelling for verification keys: absolute, forward slashes. */
|
|
1116
759
|
private absOwner;
|
|
1117
|
-
/** Whether every changed file this dependent reads kept both its values and its surface. */
|
|
1118
|
-
private dependentUnchangedByReads;
|
|
1119
760
|
getFileMeta: (file: string) => {
|
|
1120
761
|
mtime: number;
|
|
1121
762
|
isUnchanged: boolean;
|
|
@@ -1124,7 +765,7 @@ declare class Builder {
|
|
|
1124
765
|
changes: Map<string, FileMeta>;
|
|
1125
766
|
hasFilesChanged: boolean;
|
|
1126
767
|
};
|
|
1127
|
-
extractFile: (ctx: BambooContext, file: string) =>
|
|
768
|
+
extractFile: (ctx: BambooContext, file: string) => ParserResult | undefined;
|
|
1128
769
|
extract: () => void;
|
|
1129
770
|
/**
|
|
1130
771
|
* The finished stylesheet, as a string.
|
|
@@ -1243,4 +884,4 @@ declare const hasUncompilableSources: (options: {
|
|
|
1243
884
|
include?: readonly string[];
|
|
1244
885
|
}) => boolean;
|
|
1245
886
|
//#endregion
|
|
1246
|
-
export { BambooContext, Builder, type BuilderSetupOptions, type BuilderSourceChanges, type CssGenOptions, analyze, buildInfo, codegen, cssgen, debug, findViteConfig, generate, generatePackageExports, hasUncompilableSources, isStaticCompilerActive, loadConfigAndCreateContext, markStaticCompilerActive, setLogStream, setupConfig, setupGitIgnore, spec, startProfiling };
|
|
887
|
+
export { BambooContext, Builder, type BuilderSetupOptions, type BuilderSourceChanges, type CssGenOptions, ParserResult, SourceProject, type UnresolvedStyle, analyze, buildInfo, codegen, cssgen, debug, findViteConfig, generate, generatePackageExports, hasUncompilableSources, isStaticCompilerActive, loadConfigAndCreateContext, markStaticCompilerActive, setLogStream, setupConfig, setupGitIgnore, spec, startProfiling };
|