"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/src/extend/functions.dart" between
dart-sass-1.24.3.tar.gz and dart-sass-1.24.4.tar.gz

About: Dart Sass (Syntactically Awesome StyleSheets) is a CSS preprocessor (extension language), written in Dart, that adds "power and elegance" to the basic CSS language. There exist also LibSass, a Sass implementation written in C++. The original Ruby implementation of Sass reached its end of life as of 26 March 2019.

functions.dart  (dart-sass-1.24.3):functions.dart  (dart-sass-1.24.4)
skipping to change at line 525 skipping to change at line 525
.toList()); .toList());
/// Returns [complex], grouped into sub-lists such that no sub-list contains two /// Returns [complex], grouped into sub-lists such that no sub-list contains two
/// adjacent [ComplexSelector]s. /// adjacent [ComplexSelector]s.
/// ///
/// For example, `(A B > C D + E ~ > G)` is grouped into /// For example, `(A B > C D + E ~ > G)` is grouped into
/// `[(A) (B > C) (D + E ~ > G)]`. /// `[(A) (B > C) (D + E ~ > G)]`.
QueueList<List<ComplexSelectorComponent>> _groupSelectors( QueueList<List<ComplexSelectorComponent>> _groupSelectors(
Iterable<ComplexSelectorComponent> complex) { Iterable<ComplexSelectorComponent> complex) {
var groups = QueueList<List<ComplexSelectorComponent>>(); var groups = QueueList<List<ComplexSelectorComponent>>();
var iterator = complex.iterator..moveNext(); var iterator = complex.iterator;
while (iterator.current != null) { if (!iterator.moveNext()) return groups;
var group = <ComplexSelectorComponent>[]; var group = <ComplexSelectorComponent>[iterator.current];
do { groups.add(group);
while (iterator.moveNext()) {
if (group.last is Combinator || iterator.current is Combinator) {
group.add(iterator.current); group.add(iterator.current);
} while (iterator.moveNext() && } else {
(iterator.current is Combinator || group.last is Combinator)); group = [iterator.current];
groups.add(group); groups.add(group);
}
} }
return groups; return groups;
} }
/// Returns whether or not [compound] contains a `::root` selector. /// Returns whether or not [compound] contains a `::root` selector.
bool _hasRoot(CompoundSelector compound) => compound.components.any((simple) => bool _hasRoot(CompoundSelector compound) => compound.components.any((simple) =>
simple is PseudoSelector && simple is PseudoSelector &&
simple.isClass && simple.isClass &&
simple.normalizedName == 'root'); simple.normalizedName == 'root');
 End of changes. 2 change blocks. 
7 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)