12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #pragma once
- #include <iostream>
- #ifndef SASS_AST
- #include "ast.hpp"
- #endif
- #ifndef SASS_OPERATION
- #include "operation.hpp"
- #endif
- namespace Sass {
- using namespace std;
- struct Context;
- class Remove_Placeholders : public Operation_CRTP<void, Remove_Placeholders> {
- Context& ctx;
- void fallback_impl(AST_Node* n) {};
- public:
- Remove_Placeholders(Context&);
- virtual ~Remove_Placeholders() { }
- using Operation<void>::operator();
- void operator()(Block*);
- void operator()(Ruleset*);
- void operator()(Media_Block*);
- void operator()(At_Rule*);
- template <typename T>
- void clean_selector_list(T r);
- template <typename U>
- void fallback(U x) { return fallback_impl(x); }
- };
- }
|