File: remove_placeholders.hpp

package info (click to toggle)
golang-github-wellington-go-libsass 0.9.2%2Bgit20181130.4ef5b9d-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,128 kB
  • sloc: cpp: 28,607; ansic: 839; makefile: 44
file content (35 lines) | stat: -rw-r--r-- 742 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef SASS_REMOVE_PLACEHOLDERS_H
#define SASS_REMOVE_PLACEHOLDERS_H

#pragma once

#include "ast.hpp"
#include "operation.hpp"

namespace Sass {


    class Remove_Placeholders : public Operation_CRTP<void, Remove_Placeholders> {

        void fallback_impl(AST_Node_Ptr n) {}

    public:
      Selector_List_Ptr remove_placeholders(Selector_List_Ptr);

    public:
        Remove_Placeholders();
        ~Remove_Placeholders() { }

        void operator()(Block_Ptr);
        void operator()(Ruleset_Ptr);
        void operator()(Media_Block_Ptr);
        void operator()(Supports_Block_Ptr);
        void operator()(Directive_Ptr);

        template <typename U>
        void fallback(U x) { return fallback_impl(x); }
    };

}

#endif