Unverified Commit 5a538553 authored by sschneiders's avatar sschneiders Committed by GitHub
Browse files

replaced system prints with logger debug output

parent 532e7310
......@@ -152,7 +152,7 @@ public class EmbeddedMontiArcSymbolTableCreator extends EmbeddedMontiArcSymbolTa
return;
}
// creates all instances which are created through the top level component
//System.out.println("endVisit of " + node.getComponent().getSymbol().get().getFullName()); //,"MontiArcSymbolTableCreator");
Log.debug("endVisit of " + node.getComponent().getSymbol().get().getFullName(),"SymbolTableCreator:"); //,"MontiArcSymbolTableCreator");
// new Error().printStackTrace();
instanceSymbolCreator.createInstances(
(ComponentSymbol) (Log.errorIfNull(node.getComponent().getSymbol().orElse(null)))
......@@ -422,7 +422,7 @@ public class EmbeddedMontiArcSymbolTableCreator extends EmbeddedMontiArcSymbolTa
} else if (portName.getPortArray().get().getLowerbound().isPresent()) {
names = getmnPortNameParts(name, portName);
} else {
//System.out.println(portName.toString());
Log.debug(portName.toString(),"PortName:");
int size = countPortArrayInstances(name, portName.getCompName().orElse(null), portName.getCompArray().orElse(null));
Log.debug("Size" + size, "PortNameParts");
......@@ -476,7 +476,7 @@ public class EmbeddedMontiArcSymbolTableCreator extends EmbeddedMontiArcSymbolTa
present = curScope.resolve(portName + "[" + (counter + 1) + "]", PortSymbol.KIND).isPresent();
if (present) ++counter;
else {
//System.out.println(curScope.toString());
Log.debug(curScope.toString(),"CurScope:");
Log.debug("Could not resolve " + portName + "[" + (counter + 1) + "]", "countPortArrayInstances");
}
}
......@@ -484,7 +484,7 @@ public class EmbeddedMontiArcSymbolTableCreator extends EmbeddedMontiArcSymbolTa
//TODO
present = true;
Log.debug("compInstanceName: " + compName, "Resolving");
//System.out.println(compName);
Log.debug(compName,"ComponentName");
ComponentInstanceSymbol symbol;
symbol = curScope.<ComponentInstanceSymbol>resolve(compName, ComponentInstanceSymbol.KIND).get();
for (PortSymbol portSymbol : symbol.getComponentType().getAllPorts()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment