Fix analysis.

This commit is contained in:
Natalie Weizenbaum 2016-08-14 20:19:27 -07:00
parent 4f4188fd12
commit e38d290191
2 changed files with 3 additions and 2 deletions

View File

@ -213,7 +213,8 @@ bool _selectorPseudoIsSuperselector(PseudoSelector pseudo1,
return pseudos.any((pseudo2) {
return pseudo1.selector.isSuperselector(pseudo2.selector);
}) || pseudo1.selector.components.any((complex1) {
var complex2 = (parents?.toList() ?? [])..add(compound2);
var complex2 = (parents?.toList() ?? <ComplexSelectorComponent>[])
..add(compound2);
return complexIsSuperselector(complex1.components, complex2);
});

View File

@ -58,7 +58,7 @@ List/*<T>*/ longestCommonSubsequence/*<T>*/(List/*<T>*/ list1,
list1.length + 1, (_) => new List.filled(list2.length + 1, 0),
growable: false);
var selections = new List.generate(
var selections = new List<List/*<T>*/>.generate(
list1.length, (_) => new List/*<T>*/(list2.length),
growable: false);