Debug output removed
This commit is contained in:
@@ -2,14 +2,9 @@ package org.jetbrains.jet.lang.resolve;
|
|||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.jet.lang.JetSemanticServices;
|
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.psi.*;
|
||||||
import org.jetbrains.jet.lang.types.*;
|
import org.jetbrains.jet.lang.types.*;
|
||||||
|
|
||||||
import java.io.FileNotFoundException;
|
|
||||||
import java.io.PrintStream;
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -230,21 +225,21 @@ public class TopDownAnalyzer {
|
|||||||
declaringScope.addFunctionDescriptor(descriptor);
|
declaringScope.addFunctionDescriptor(descriptor);
|
||||||
functions.put(function, descriptor);
|
functions.put(function, descriptor);
|
||||||
|
|
||||||
JetExpression bodyExpression = function.getBodyExpression();
|
// JetExpression bodyExpression = function.getBodyExpression();
|
||||||
if (bodyExpression != null) {
|
// if (bodyExpression != null) {
|
||||||
System.out.println("-------------");
|
// System.out.println("-------------");
|
||||||
JetControlFlowInstructionsGenerator instructionsGenerator = new JetControlFlowInstructionsGenerator(function);
|
// JetControlFlowInstructionsGenerator instructionsGenerator = new JetControlFlowInstructionsGenerator(function);
|
||||||
new JetControlFlowProcessor(semanticServices, trace, instructionsGenerator).generate(function, bodyExpression);
|
// new JetControlFlowProcessor(semanticServices, trace, instructionsGenerator).generate(function, bodyExpression);
|
||||||
Pseudocode pseudocode = instructionsGenerator.getPseudocode();
|
// Pseudocode pseudocode = instructionsGenerator.getPseudocode();
|
||||||
pseudocode.postProcess();
|
// pseudocode.postProcess();
|
||||||
pseudocode.dumpInstructions(System.out);
|
// pseudocode.dumpInstructions(System.out);
|
||||||
System.out.println("-------------");
|
// System.out.println("-------------");
|
||||||
try {
|
// try {
|
||||||
pseudocode.dumpGraph(new PrintStream("/Users/abreslav/work/cfg.dot"));
|
// pseudocode.dumpGraph(new PrintStream("/Users/abreslav/work/cfg.dot"));
|
||||||
} catch (FileNotFoundException e) {
|
// } catch (FileNotFoundException e) {
|
||||||
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
|
// e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
private void processProperty(WritableScope declaringScope, JetProperty property) {
|
private void processProperty(WritableScope declaringScope, JetProperty property) {
|
||||||
|
|||||||
Reference in New Issue
Block a user