@@ -17,8 +17,6 @@ export default async function cmdInfo(args: InfoArgs) {
17
17
const analysis = analyzeBlock ( block ) ;
18
18
resolveConst ( agg , analysis ) ;
19
19
20
- console . info ( 'analysis:' , analysis . vars ) ;
21
-
22
20
const toplevelVars = new Map < string , VarInfo > ( ) ;
23
21
const nestedVars = new Map < string , VarInfo > ( ) ;
24
22
for ( const [ cand , info ] of analysis . vars ) {
@@ -30,8 +28,9 @@ export default async function cmdInfo(args: InfoArgs) {
30
28
31
29
console . info ( '#' , JSON . stringify ( relativize ( args . path ) ) ) ;
32
30
33
- const sideEffects = toplevelFind . immediateAccess ;
34
- console . info ( '\nSide-effects:' , sideEffects ? 'Unknown' : 'No!' ) ;
31
+ // TODO: not useful right now
32
+ // const sideEffects = toplevelFind.immediateAccess;
33
+ // console.info('\nSide-effects:', sideEffects ? 'Unknown' : 'No!');
35
34
36
35
console . info ( '\nImports:' ) ;
37
36
for ( const { name, info } of agg . mod . importSources ( ) ) {
@@ -62,7 +61,7 @@ export default async function cmdInfo(args: InfoArgs) {
62
61
} else if ( ! agg . localConst . has ( e . name ) ) {
63
62
suffix = ` (mutable, may change)` ;
64
63
} else {
65
- suffix = ` (const )` ;
64
+ suffix = ` (immutable )` ;
66
65
}
67
66
console . info ( `- ${ left } ${ suffix } ` ) ;
68
67
}
0 commit comments