From a97cad116c128ed8cafb27bda47a54450dd4b4d0 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Fri, 1 Apr 2011 14:11:42 +0400 Subject: [PATCH] Debug output removed --- .../jet/lang/resolve/TopDownAnalyzer.java | 35 ++++++++----------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/idea/src/org/jetbrains/jet/lang/resolve/TopDownAnalyzer.java b/idea/src/org/jetbrains/jet/lang/resolve/TopDownAnalyzer.java index a40150373e9..8424d2ead48 100644 --- a/idea/src/org/jetbrains/jet/lang/resolve/TopDownAnalyzer.java +++ b/idea/src/org/jetbrains/jet/lang/resolve/TopDownAnalyzer.java @@ -2,14 +2,9 @@ package org.jetbrains.jet.lang.resolve; import org.jetbrains.annotations.NotNull; import org.jetbrains.jet.lang.JetSemanticServices; -import org.jetbrains.jet.lang.cfg.JetControlFlowProcessor; -import org.jetbrains.jet.lang.cfg.pseudocode.JetControlFlowInstructionsGenerator; -import org.jetbrains.jet.lang.cfg.pseudocode.Pseudocode; import org.jetbrains.jet.lang.psi.*; import org.jetbrains.jet.lang.types.*; -import java.io.FileNotFoundException; -import java.io.PrintStream; import java.util.*; /** @@ -230,21 +225,21 @@ public class TopDownAnalyzer { declaringScope.addFunctionDescriptor(descriptor); functions.put(function, descriptor); - JetExpression bodyExpression = function.getBodyExpression(); - if (bodyExpression != null) { - System.out.println("-------------"); - JetControlFlowInstructionsGenerator instructionsGenerator = new JetControlFlowInstructionsGenerator(function); - new JetControlFlowProcessor(semanticServices, trace, instructionsGenerator).generate(function, bodyExpression); - Pseudocode pseudocode = instructionsGenerator.getPseudocode(); - pseudocode.postProcess(); - pseudocode.dumpInstructions(System.out); - System.out.println("-------------"); - try { - pseudocode.dumpGraph(new PrintStream("/Users/abreslav/work/cfg.dot")); - } catch (FileNotFoundException e) { - e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. - } - } +// JetExpression bodyExpression = function.getBodyExpression(); +// if (bodyExpression != null) { +// System.out.println("-------------"); +// JetControlFlowInstructionsGenerator instructionsGenerator = new JetControlFlowInstructionsGenerator(function); +// new JetControlFlowProcessor(semanticServices, trace, instructionsGenerator).generate(function, bodyExpression); +// Pseudocode pseudocode = instructionsGenerator.getPseudocode(); +// pseudocode.postProcess(); +// pseudocode.dumpInstructions(System.out); +// System.out.println("-------------"); +// try { +// pseudocode.dumpGraph(new PrintStream("/Users/abreslav/work/cfg.dot")); +// } catch (FileNotFoundException e) { +// e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. +// } +// } } private void processProperty(WritableScope declaringScope, JetProperty property) { -- GitLab