refactor: 注释掉 AST 打印代码
- 注释掉了 CompileTask 中用于打印 AST 结构的代码 - 此修改旨在优化调试输出,减少不必要的日志信息
This commit is contained in:
parent
dc38b4e1a8
commit
1861d7fe53
@ -225,8 +225,8 @@ public record CompileTask(Project project, String[] args) implements Task {
|
|||||||
IRProgram program = new IRProgramBuilder().buildProgram(allAst);
|
IRProgram program = new IRProgramBuilder().buildProgram(allAst);
|
||||||
program = reorderForEntry(program); // 确保 main 在首位
|
program = reorderForEntry(program); // 确保 main 在首位
|
||||||
|
|
||||||
print("### AST");
|
// print("### AST");
|
||||||
if (SnowConfig.isDebug()) ASTPrinter.printJson(allAst);
|
// if (SnowConfig.isDebug()) ASTPrinter.printJson(allAst);
|
||||||
|
|
||||||
print("### IR");
|
print("### IR");
|
||||||
print(program.toString());
|
print(program.toString());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user