File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export default async function cmdInfo(args: InfoArgs) {
14
14
15
15
const agg = aggregateImports ( p ) ;
16
16
const block = createBlock ( ...agg . rest ) ;
17
- const analysis = analyzeBlock ( block , { nest : true } ) ;
17
+ const analysis = analyzeBlock ( block ) ;
18
18
resolveConst ( agg , analysis ) ;
19
19
20
20
console . info ( 'analysis:' , analysis . vars ) ;
Original file line number Diff line number Diff line change @@ -190,6 +190,11 @@ export type AnalyzeBlock = {
190
190
hasAwait : boolean ;
191
191
} ;
192
192
193
+ /**
194
+ * Analyze a block for its variable interactions.
195
+ *
196
+ * The `nest` argument is default `true`.
197
+ */
193
198
export function analyzeBlock ( b : acorn . BlockStatement , args ?: { nest ?: boolean } ) : AnalyzeBlock {
194
199
const out : AnalyzeBlock = { vars : new Map ( ) , hasNested : false , hasAwait : false } ;
195
200
const mark : MarkIdentifierFn = ( name , arg ) => {
You can’t perform that action at this time.
0 commit comments