Rich Harris 8 months ago
parent 46a004eef2
commit 76314039ea

@ -245,7 +245,17 @@ export function analyze_module(ast, options) {
} }
} }
const analysis = { runes: true, tracing: false }; /** @type {Analysis} */
const analysis = {
module: { ast, scope, scopes, is_async },
name: options.filename,
accessors: false,
runes: true,
immutable: true,
tracing: false,
async_deriveds: new Set(),
context_preserving_awaits: new Set()
};
walk( walk(
/** @type {Node} */ (ast), /** @type {Node} */ (ast),
@ -258,16 +268,7 @@ export function analyze_module(ast, options) {
visitors visitors
); );
return { return analysis;
module: { ast, scope, scopes, is_async },
name: options.filename,
accessors: false,
runes: true,
immutable: true,
tracing: analysis.tracing,
async_deriveds: new Set(),
context_preserving_awaits: new Set()
};
} }
/** /**

Loading…
Cancel
Save