Skip to content

Commit

Permalink
Rename listIsSuperslector (#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
robocoder committed Aug 24, 2020
1 parent fca32e8 commit 330d93c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/ast/selector/list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class SelectorList extends Selector {
/// That is, whether this matches every element that [other] matches, as well
/// as possibly additional elements.
bool isSuperselector(SelectorList other) =>
listIsSuperslector(components, other.components);
listIsSuperselector(components, other.components);

int get hashCode => listHash(components);

Expand Down
4 changes: 2 additions & 2 deletions lib/src/extend/functions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ bool _hasRoot(CompoundSelector compound) => compound.components.any((simple) =>
///
/// That is, whether [list1] matches every element that [list2] matches, as well
/// as possibly additional elements.
bool listIsSuperslector(
bool listIsSuperselector(
List<ComplexSelector> list1, List<ComplexSelector> list2) =>
list2.every((complex1) =>
list1.any((complex2) => complex2.isSuperselector(complex1)));
Expand Down Expand Up @@ -763,7 +763,7 @@ bool _selectorPseudoIsSuperselector(
} else if (simple2 is PseudoSelector &&
simple2.name == pseudo1.name &&
simple2.selector != null) {
return listIsSuperslector(simple2.selector.components, [complex]);
return listIsSuperselector(simple2.selector.components, [complex]);
} else {
return false;
}
Expand Down

0 comments on commit 330d93c

Please sign in to comment.