ext/libsass/src/extend.hpp in sassc-1.11.1 vs ext/libsass/src/extend.hpp in sassc-1.11.2
- old
+ new
@@ -11,39 +11,37 @@
namespace Sass {
class Context;
class Node;
- typedef Subset_Map<std::string, std::pair<Sequence_Selector*, SimpleSequence_Selector*> > ExtensionSubsetMap;
-
class Extend : public Operation_CRTP<void, Extend> {
Context& ctx;
- ExtensionSubsetMap& subset_map;
+ Subset_Map& subset_map;
- void fallback_impl(AST_Node* n) { }
+ void fallback_impl(AST_Node_Ptr n) { }
public:
static Node subweave(Node& one, Node& two, Context& ctx);
- static CommaSequence_Selector* extendSelectorList(CommaSequence_Selector* pSelectorList, Context& ctx, ExtensionSubsetMap& subset_map, bool isReplace, bool& extendedSomething, std::set<SimpleSequence_Selector>& seen);
- static CommaSequence_Selector* extendSelectorList(CommaSequence_Selector* pSelectorList, Context& ctx, ExtensionSubsetMap& subset_map, bool isReplace, bool& extendedSomething);
- static CommaSequence_Selector* extendSelectorList(CommaSequence_Selector* pSelectorList, Context& ctx, ExtensionSubsetMap& subset_map, bool isReplace = false) {
+ static Selector_List_Ptr extendSelectorList(Selector_List_Obj pSelectorList, Context& ctx, Subset_Map& subset_map, bool isReplace, bool& extendedSomething, std::set<Compound_Selector>& seen);
+ static Selector_List_Ptr extendSelectorList(Selector_List_Obj pSelectorList, Context& ctx, Subset_Map& subset_map, bool isReplace, bool& extendedSomething);
+ static Selector_List_Ptr extendSelectorList(Selector_List_Obj pSelectorList, Context& ctx, Subset_Map& subset_map, bool isReplace = false) {
bool extendedSomething = false;
return extendSelectorList(pSelectorList, ctx, subset_map, isReplace, extendedSomething);
}
- static CommaSequence_Selector* extendSelectorList(CommaSequence_Selector* pSelectorList, Context& ctx, ExtensionSubsetMap& subset_map, std::set<SimpleSequence_Selector>& seen) {
+ static Selector_List_Ptr extendSelectorList(Selector_List_Obj pSelectorList, Context& ctx, Subset_Map& subset_map, std::set<Compound_Selector>& seen) {
bool isReplace = false;
bool extendedSomething = false;
return extendSelectorList(pSelectorList, ctx, subset_map, isReplace, extendedSomething, seen);
}
- Extend(Context&, ExtensionSubsetMap&);
+ Extend(Context&, Subset_Map&);
~Extend() { }
- void operator()(Block*);
- void operator()(Ruleset*);
- void operator()(Supports_Block*);
- void operator()(Media_Block*);
- void operator()(Directive*);
+ void operator()(Block_Ptr);
+ void operator()(Ruleset_Ptr);
+ void operator()(Supports_Block_Ptr);
+ void operator()(Media_Block_Ptr);
+ void operator()(Directive_Ptr);
template <typename U>
void fallback(U x) { return fallback_impl(x); }
};