-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #417 preserve location of trailing loud comments.
parent 1a5102b author Nick Behrens <nbehrens@google.com> 1571200514 -0700 committer Carlos Israel Ortiz García <goodwine@google.com> 1654024100 -0700 Delete now unused _indent helper method in serialize.dart. Update lib/src/visitor/serialize.dart to stop using old-style int-based for loop. Co-Authored-By: Natalie Weizenbaum <nweiz@google.com> Address PR feedback. Revert parser changes. Instead look at node span line numbers to determine whether a loud comment is trailing. Add some more test cases. Remove TODO in _isTrailingComment helper and add a better comment in there. Revert one unintentional chunk of edits to lib/src/parse/sass.dart from commit d937f87. Address some review feedback Update lib/src/visitor/serialize.dart to use var instead of CssNode as for loop variable. Co-Authored-By: Natalie Weizenbaum <nweiz@google.com> Addressing review feedback Remove some now irrelevant comments after last commit. Add some comments on some code I'd like some feedback on in the PR. Fix typo in recently added comment. Remove dupe impl of beforeChildren from CssStylesheet and some other minor cleanup. Rewrite _visitChildren to be simpler. Remove duplicate math import. Restore for loop in visitChildren to how it used to be. Comment cleanup. Don't add a trailing newline after an only-child trailing comment Minor style tweaks Short-circuit _isTrailingComment in compressed mode Update isTrailingComment to handle case where parent node contains left braces that don't open a child block. Address PR feedback, fixing indexing issue in isTrailingComment. Fix isTrailingComment to handle mixins that include loud comments.
- Loading branch information
1 parent
46c2c9b
commit 76822b1
Showing
2 changed files
with
202 additions
and
34 deletions.
There are no files selected for viewing
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
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