Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upR6 Methods in FunctionReporter #128
Conversation
|
This is awesome! I added a few comments |
|
@jameslamb Addressed your comments! Thanks for reviewing. |
|
This is good with me! Will leave it to @bburns632 to do one more pass and and smash merge, since this is a decent-sized PR |


Resolves #123
Summary of changes:
FunctionReporter. Some design choices/constraints:classnameattribute. This is because theclassnameattribute is not required to be defined and also not required to match the generator object name, though people conventionally do assign one with the same name.<classname>$<methodtype>$<methodname>, e.g.,FunctionReporter$private_methods$extract_nodes.milnefor testing R6 classesChanged the .gitignore entries for data files to only exclude data files in package root. Want to be able to commit test data in tests.Added .gitignore exclusion for csv files intests/testthat/testdatadirectory.Not addressed in this PR. Maybe for discussion in issues after merging.
FunctionReporter$new()inDefaultReporters? Not clear the right way to represent these. Does that edge link to theinitializemethod for that class?FunctionReporterhas noinitializemethod, so would we link the edge to theinitializemethod inherited up the ancestor sequence? But actually none of its ancestors have aninitializemethod defined -- they're all using the vanilla one built-in to R6. So there isn't even a node right now for it.