while (current.next != null) {
while (current != null) {
    private static void receiveOnly(FlatNode node) throws Exception    {	FileWriter fw = new FileWriter("sw" + Layout.getTile(node.contents) + ".s");		fw.write("#  Switch code for a filter with no pushes\n");	fw.write(getHeader());		SwitchScheduleNode current = (SwitchScheduleNode)switchReceiveCode.get(node);	while (current.next != null) {	    fw.write(current.toAssembly(node, false));	    current = current.next;	}	fw.write("\tj\tsw_begin\n\n");	fw.write(getTrailer());	fw.close();    }