-
Notifications
You must be signed in to change notification settings - Fork 140
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
Improve block comment parsing #2068
Conversation
if ok && options.parseDocStrings { | ||
commentEndOffset := endToken.EndPos.Offset | ||
|
||
contentWithPrefix := p.tokens.Input()[commentStartOffset : commentEndOffset-1] |
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.
No need to rebuild the block comment content with a string builder, we can get the source from the token stream
Codecov Report
@@ Coverage Diff @@
## master #2068 +/- ##
==========================================
+ Coverage 77.65% 77.66% +0.01%
==========================================
Files 303 302 -1
Lines 63163 63158 -5
==========================================
+ Hits 49047 49051 +4
+ Misses 12370 12360 -10
- Partials 1746 1747 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 6d7549e Collapsed results for better readability
|
Work towards #1884
Description
master
branchFiles changed
in the Github PR explorer