@Override public DataFlowNode getDataFlowNode() { if (this.dataFlowNode == null) { if (this.parent != null) { return parent.getDataFlowNode(); } return null; // TODO wise? } return dataFlowNode; }
private void computeNow(Node node) { DataFlowNode inode = node.getDataFlowNode(); List<VariableAccess> undefinitions = markUsages(inode); // all variables are first in state undefinition DataFlowNode firstINode = inode.getFlow().get(0); firstINode.setVariableAccess(undefinitions); // all variables are getting undefined when leaving scope DataFlowNode lastINode = inode.getFlow().get(inode.getFlow().size() - 1); lastINode.setVariableAccess(undefinitions); }
private void computeNow(Node node) { DataFlowNode inode = node.getDataFlowNode(); List<VariableAccess> undefinitions = markUsages(inode); // all variables are first in state undefinition DataFlowNode firstINode = inode.getFlow().get(0); firstINode.setVariableAccess(undefinitions); // all variables are getting undefined when leaving scope DataFlowNode lastINode = inode.getFlow().get(inode.getFlow().size() - 1); lastINode.setVariableAccess(undefinitions); }
List<DataFlowNode> flow = node.getDataFlowNode().getFlow(); FontMetrics fm = g.getFontMetrics(); int halfFontHeight = fm.getAscent() / 2;
@Override public DataFlowNode getDataFlowNode() { if (this.dataFlowNode == null) { if (this.parent != null) { return parent.getDataFlowNode(); } return null; // TODO wise? } return dataFlowNode; }
private void computeNow(Node node) { DataFlowNode inode = node.getDataFlowNode(); List<VariableAccess> undefinitions = markUsages(inode); // all variables are first in state undefinition DataFlowNode firstINode = inode.getFlow().get(0); firstINode.setVariableAccess(undefinitions); // all variables are getting undefined when leaving scope DataFlowNode lastINode = inode.getFlow().get(inode.getFlow().size() - 1); lastINode.setVariableAccess(undefinitions); }
List<DataFlowNode> flow = node.getDataFlowNode().getFlow(); FontMetrics fm = g.getFontMetrics(); int halfFontHeight = fm.getAscent() / 2;