Chore: Mark SourceCode getComments() method as deprecated (fixes #13293)#13296
Merged
kaicataldo merged 1 commit intoeslint:masterfrom May 19, 2020
Merged
Chore: Mark SourceCode getComments() method as deprecated (fixes #13293)#13296kaicataldo merged 1 commit intoeslint:masterfrom
kaicataldo merged 1 commit intoeslint:masterfrom
Conversation
kaicataldo
suggested changes
May 13, 2020
Member
kaicataldo
left a comment
There was a problem hiding this comment.
Given that SouceCode#getComments() is deprecated, we won't be accepting any more PRs to change the behavior. A PR updating the JSDoc block to include an @deprecated tag would be welcome, though!
Contributor
Author
Thank you, update PR! |
kaicataldo
reviewed
May 15, 2020
Member
kaicataldo
left a comment
There was a problem hiding this comment.
Can we change the commit message from Docs: to Chore:? We reserve Docs: for publicly visible documentation.
Otherwise, this LGTM!
Contributor
Author
|
Done! |
Contributor
Author
|
|
kaicataldo
approved these changes
May 19, 2020
Member
|
LGTM, thank you! |
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Prerequisites checklist
What is the purpose of this pull request? (put an "X" next to an item)
[x] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:
What changes did you make? (Give an overview)
Update source-code.js
getCommentsmethod:Program node exclude leading and trailing comments from our range, and i add special conditions, when given node has parent Program, leading and trailing comments tokens always belong to this node