Use return instead of break statements in build_node...

It makes it clearer that nothing comes after the switch block.