@@ -1513,7 +1513,7 @@ namespace Sass {
1513
1513
return pSelector;
1514
1514
}
1515
1515
};
1516
- Node Extend::extendCompoundSelector (Compound_Selector_Ptr pSelector, std::set<Compound_Selector> & seen, bool isReplace) {
1516
+ Node Extend::extendCompoundSelector (Compound_Selector_Ptr pSelector, CompoundSelectorSet & seen, bool isReplace) {
1517
1517
1518
1518
DEBUG_EXEC (EXTEND_COMPOUND, printCompoundSelector (pSelector, " EXTEND COMPOUND: " ))
1519
1519
// TODO: Ruby has another loop here to skip certain members?
@@ -1638,13 +1638,13 @@ namespace Sass {
1638
1638
1639
1639
1640
1640
// RUBY??: next [] if seen.include?(sels)
1641
- if (seen.find (* pSels) != seen.end ()) {
1641
+ if (seen.find (pSels) != seen.end ()) {
1642
1642
continue ;
1643
1643
}
1644
1644
1645
1645
1646
- std::set<Compound_Selector> recurseSeen (seen);
1647
- recurseSeen.insert (* pSels);
1646
+ CompoundSelectorSet recurseSeen (seen);
1647
+ recurseSeen.insert (pSels);
1648
1648
1649
1649
1650
1650
DEBUG_PRINTLN (EXTEND_COMPOUND, " RECURSING DO EXTEND: " << complexSelectorToNode (pNewSelector))
@@ -1673,7 +1673,7 @@ namespace Sass {
1673
1673
1674
1674
1675
1675
// check if selector has something to be extended by subset_map
1676
- bool Extend::complexSelectorHasExtension (Complex_Selector_Ptr pComplexSelector, std::set<Compound_Selector> & seen) {
1676
+ bool Extend::complexSelectorHasExtension (Complex_Selector_Ptr pComplexSelector, CompoundSelectorSet & seen) {
1677
1677
1678
1678
bool hasExtension = false ;
1679
1679
@@ -1729,7 +1729,7 @@ namespace Sass {
1729
1729
the combinator and compound selector are one unit
1730
1730
next [[sseq_or_op]] unless sseq_or_op.is_a?(SimpleSequence)
1731
1731
*/
1732
- Node Extend::extendComplexSelector (Complex_Selector_Ptr pComplexSelector, std::set<Compound_Selector> & seen, bool isReplace, bool isOriginal) {
1732
+ Node Extend::extendComplexSelector (Complex_Selector_Ptr pComplexSelector, CompoundSelectorSet & seen, bool isReplace, bool isOriginal) {
1733
1733
1734
1734
Node complexSelector = complexSelectorToNode (pComplexSelector);
1735
1735
DEBUG_PRINTLN (EXTEND_COMPLEX, " EXTEND COMPLEX: " << complexSelector)
@@ -1851,7 +1851,7 @@ namespace Sass {
1851
1851
*/
1852
1852
// We get a selector list with has something to extend and a subset_map with
1853
1853
// all extenders. Pick the ones that match our selectors in the list.
1854
- Selector_List_Ptr Extend::extendSelectorList (Selector_List_Obj pSelectorList, bool isReplace, bool & extendedSomething, std::set<Compound_Selector> & seen) {
1854
+ Selector_List_Ptr Extend::extendSelectorList (Selector_List_Obj pSelectorList, bool isReplace, bool & extendedSomething, CompoundSelectorSet & seen) {
1855
1855
1856
1856
Selector_List_Obj pNewSelectors = SASS_MEMORY_NEW (Selector_List, pSelectorList->pstate (), pSelectorList->length ());
1857
1857
@@ -1902,9 +1902,9 @@ namespace Sass {
1902
1902
// process tails
1903
1903
while (cur) {
1904
1904
// process header
1905
- if (cur->head () && seen.find (* cur->head ()) == seen.end ()) {
1906
- std::set<Compound_Selector> recseen (seen);
1907
- recseen.insert (* cur->head ());
1905
+ if (cur->head () && seen.find (cur->head ()) == seen.end ()) {
1906
+ CompoundSelectorSet recseen (seen);
1907
+ recseen.insert (cur->head ());
1908
1908
// create a copy since we add multiple items if stuff get unwrapped
1909
1909
Compound_Selector_Obj cpy_head = SASS_MEMORY_NEW (Compound_Selector, cur->pstate ());
1910
1910
for (Simple_Selector_Obj hs : *cur->head ()) {
@@ -2016,7 +2016,7 @@ namespace Sass {
2016
2016
2017
2017
bool extendedSomething = false ;
2018
2018
2019
- std::set<Compound_Selector> seen;
2019
+ CompoundSelectorSet seen;
2020
2020
Selector_List_Obj pNewSelectorList = extendSelectorList (pObject->selector (), false , extendedSomething, seen);
2021
2021
2022
2022
if (extendedSomething && pNewSelectorList) {
0 commit comments