-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fixed SyntaxNode AttributeError. #582
Fixed SyntaxNode AttributeError. #582
Conversation
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.
Just tested this branch and it does fix the issue.
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.
There's still one new test failure, but it's almost there.
@tjlaboss you are suddenly very motivated to get this merged :). |
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.
Two small improvements
Description
This is a fix for an AttributeError when adding a leading comment to an
Importance
that invokesSyntaxNode._grab_beginning_comment
which previously was only implemented forPaddingNode
. This implements it forSyntaxNodeBase
andSyntaxNode
which should cover all other use cases.This also adds a final check to ensure no extra blank lines are being added.
Fixes #580
Checklist