Skip to content

Commit

Permalink
rebase squashed commits on top of main and fix style/lint issues - on…
Browse files Browse the repository at this point in the history
…e test is now failing - not done yet
  • Loading branch information
Goodwine committed Jun 1, 2022
1 parent 76822b1 commit 3696db4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/src/visitor/serialize.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1319,7 +1319,8 @@ class _SerializeVisitor
_buffer.writeCharCode($semicolon);
}

if (prePrevious_ == parent && _isTrailingComment(previous, prePrevious_)) {
if (prePrevious_ == parent &&
_isTrailingComment(previous, prePrevious_!)) {
_writeOptionalSpace();
} else {
_writeLineFeed();
Expand Down
2 changes: 1 addition & 1 deletion test/dart_api_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ a {
expect(compileStringAsync("""
@use 'sass:meta';
@include meta.load-css("other.scss");
""", loadPaths: [d.sandbox]), completion(equals("/**/\n/**/")));
""", loadPaths: [d.sandbox]), completion(equals("/**/ /**/")));

// Give the race condition time to appear.
await pumpEventQueue();
Expand Down
4 changes: 2 additions & 2 deletions test/output_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,12 @@ selector {
test("selector contains left brace", () {
expect(compileString("""@rule1;
@rule2;
selector[href*=\"{\"]
selector[href*="{"]
{ /* please don't move me */ }
@rule3;"""), equals("""@rule1;
@rule2;
selector[href*=\"{\"] { /* please don't move me */ }
selector[href*="{"] { /* please don't move me */ }
@rule3;"""));
});
Expand Down

0 comments on commit 3696db4

Please sign in to comment.