func insertContext(f *ast.File, call *ast.CallExpr, ctx *ast.Ident) {
	if ctx == nil {
		// context is unknown, so use a plain "ctx".
		ctx = ast.NewIdent("ctx")
	} else {
		// Create a fresh *ast.Ident so we drop the position information.
		ctx = ast.NewIdent(ctx.Name)
	}

	call.Args = append([]ast.Expr{ctx}, call.Args...)
}
func insertContext(f *ast.File, call *ast.CallExpr, ctx *ast.Ident) {
	if ctx == nil {
		
		ctx = ast.NewIdent("ctx")
	} else {
		
		ctx = ast.NewIdent(ctx.Name)
	}

	call.Args = append([]ast.Expr{ctx}, call.Args...)
}
func insertContext ( f * ast . File , call * ast . CallExpr , ctx * ast . Ident ) { if ctx == nil { // context is unknown, so use a plain "ctx". ctx = ast . NewIdent ( " " ) } else { // Create a fresh *ast.Ident so we drop the position information. ctx = ast . NewIdent ( ctx . Name ) } call . Args = append ( [ ] ast . Expr { ctx } , call . Args ... ) }
// ctx may be nil.
ctx may be nil .