File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
packages/svelte/src/compiler/phases/2-analyze Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,15 @@ export function analyze_module(ast, options) {
243
243
}
244
244
}
245
245
246
- const analysis = { runes : true , tracing : false } ;
246
+ /** @type {Analysis } */
247
+ const analysis = {
248
+ module : { ast, scope, scopes } ,
249
+ name : options . filename ,
250
+ accessors : false ,
251
+ runes : true ,
252
+ immutable : true ,
253
+ tracing : false
254
+ } ;
247
255
248
256
walk (
249
257
/** @type {Node } */ ( ast ) ,
@@ -256,14 +264,7 @@ export function analyze_module(ast, options) {
256
264
visitors
257
265
) ;
258
266
259
- return {
260
- module : { ast, scope, scopes } ,
261
- name : options . filename ,
262
- accessors : false ,
263
- runes : true ,
264
- immutable : true ,
265
- tracing : analysis . tracing
266
- } ;
267
+ return analysis ;
267
268
}
268
269
269
270
/**
You can’t perform that action at this time.
0 commit comments