Skip to content

Commit 5e525e3

Browse files
committed
remove useless se
1 parent 51d8d73 commit 5e525e3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

app/cmd/info.ts

+4-5
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ export default async function cmdInfo(args: InfoArgs) {
1717
const analysis = analyzeBlock(block);
1818
resolveConst(agg, analysis);
1919

20-
console.info('analysis:', analysis.vars);
21-
2220
const toplevelVars = new Map<string, VarInfo>();
2321
const nestedVars = new Map<string, VarInfo>();
2422
for (const [cand, info] of analysis.vars) {
@@ -30,8 +28,9 @@ export default async function cmdInfo(args: InfoArgs) {
3028

3129
console.info('#', JSON.stringify(relativize(args.path)));
3230

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!');
3534

3635
console.info('\nImports:');
3736
for (const { name, info } of agg.mod.importSources()) {
@@ -62,7 +61,7 @@ export default async function cmdInfo(args: InfoArgs) {
6261
} else if (!agg.localConst.has(e.name)) {
6362
suffix = ` (mutable, may change)`;
6463
} else {
65-
suffix = ` (const)`;
64+
suffix = ` (immutable)`;
6665
}
6766
console.info(`- ${left}${suffix}`);
6867
}

0 commit comments

Comments
 (0)