// GetParentArgExprAsString gets the argIndex argument expression of parent func call as a string. func GetParentArgExprAsString(argIndex uint32) string { args := getParent2ArgExprAllAsAst() if args == nil { return "<expr not found>" } if argIndex >= uint32(len(args)) { return "<out of range>" } return printerutil.SprintAstBare(args[argIndex]) }
// GetParentArgExprAllAsString gets all argument expressions of parent func call as a string. func GetParentArgExprAllAsString() []string { args := getParent2ArgExprAllAsAst() if args == nil { return nil } out := make([]string, len(args)) for i := range args { out[i] = printerutil.SprintAstBare(args[i]) } return out }