-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R6 Methods in FunctionReporter #128
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jayqi
changed the title
WIP: R6 Methods in FunctionReporter
R6 Methods in FunctionReporter
Nov 17, 2018
bburns632
reviewed
Nov 20, 2018
jayqi
force-pushed
the
feature/r6-methods
branch
from
November 20, 2018 23:59
626ac1c
to
5654fac
Compare
jameslamb
requested changes
Nov 23, 2018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome! I added a few comments
@jameslamb Addressed your comments! Thanks for reviewing. |
jameslamb
approved these changes
Nov 24, 2018
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #123
Summary of changes:
FunctionReporter
. Some design choices/constraints:classname
attribute. This is because theclassname
attribute 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
.milne
for 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/testdata
directory.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 theinitialize
method for that class?FunctionReporter
has noinitialize
method, so would we link the edge to theinitialize
method inherited up the ancestor sequence? But actually none of its ancestors have aninitialize
method defined -- they're all using the vanilla one built-in to R6. So there isn't even a node right now for it.