Skip to content

Commit

Permalink
revert function reporter refactor as it fails tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bburns632 committed May 3, 2024
1 parent 52722dd commit e0b321f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/FunctionReporter.R
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ FunctionReporter <- R6::R6Class(
# Check if expression x is from _$_
if (identical(xList[[1]], quote(`$`))) {
# Check if expression x is of form self$foo, private$foo, or super$foo
if (xList[[2]] %in% c(quote(self), quote(private), quote(super))) {
if (identical(xList[[2]], quote(self)) || identical(xList[[2]], quote(private)) || identical(xList[[2]], quote(super))) {
# We want to keep those together because they could refer to the class'
# methods. So expression is not listable
listable <- FALSE
Expand Down

0 comments on commit e0b321f

Please sign in to comment.