/**
* @param node
*/
private void addToCallHierarchy(final IExecutionNode node) {
final ExecutionNodeUsage usage = new ExecutionNodeUsage(node);
log.trace("building usage for desc: " + node.getDescription() + " line: " + node.getLine());
List<ExecutionNodeUsage> immediateParents = callerHierarchy.get(usage);
if (immediateParents == null){
log.trace("no uses already for node...");
immediateParents = new ArrayList<ExecutionNodeUsage>();
callerHierarchy.put(usage, immediateParents);
}
else {
log.trace("got existing usages of node: ");
for (final ExecutionNodeUsage u : immediateParents){
log.trace("already found: " + u.toString());
}
}
log.trace("adding used by descr: " + node.getParent().getDescription() + " line: " + node.getParent().getLine());
immediateParents.add(new ExecutionNodeUsage(node.getParent()));
}