Let inspect() print nested, empty, bracketed lists. (#1547)

Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
This commit is contained in:
Awjin Ahn 2021-12-10 15:01:16 -08:00 committed by GitHub
parent c59fee03c9
commit 1798a7c275
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
## 1.45.1
* **Potentially breaking bug fix:** Fix a bug where `inspect()` was not
properly printing nested, empty, bracketed lists.
## 1.45.0
### JS API

View File

@ -31,7 +31,8 @@ class SassList extends Value {
/// @nodoc
@internal
bool get isBlank => asList.every((element) => element.isBlank);
bool get isBlank =>
!hasBrackets && asList.every((element) => element.isBlank);
List<Value> get asList => _contents;

View File

@ -10,7 +10,7 @@ environment:
sdk: '>=2.12.0 <3.0.0'
dependencies:
sass: 1.45.0
sass: 1.45.1
dependency_overrides:
sass: {path: ../..}

View File

@ -1,5 +1,5 @@
name: sass
version: 1.45.0
version: 1.45.1-dev
description: A Sass implementation in Dart.
homepage: https://github.com/sass/dart-sass