You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: autoexit.go
    path of file: ./repos/lgo/converter
    
    the code of the file until where you have to start completion: // This file defines injectAutoExitToFile, which injects core.ExitIfCtxDone to interrupt lgo code
//
// Basic rules:
// - Injects ExitIfCtxDone between two heavy statements (== function calls).
// - Does not inject ExitIfCtxDone in 
    
func (v *selectCommExprRecorder) Visit(node ast.Node) ast.Visitor {
	sel, ok := node.(*ast.SelectStmt)
	if !ok {
		return v
	}
	for _, cas := range sel.Body.List {
		comm := cas.(*ast.CommClause).Comm
		if comm == nil {
			continue
		}
		if assign, ok := comm.(*ast.AssignStmt); ok {
			for _, expr := range assign.Rhs {
				v.m[expr] = true
			}
		}
		if expr, ok := comm.(*ast.ExprStmt); ok {
			v.m[expr.X] = true
		}
	}
	return v
}