Add goto nodes for AST.