forked from sass/libsass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
to_c.hpp
44 lines (33 loc) · 848 Bytes
/
to_c.hpp
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
36
37
38
39
40
41
42
43
44
#define SASS_TO_C
#ifndef SASS_OPERATION
#include "operation.hpp"
#endif
#ifndef SASS
#include "sass.h"
#endif
namespace Sass {
using namespace std;
class AST_Node;
class Boolean;
class Number;
class String_Constant;
class List;
class Null;
class To_C : public Operation_CRTP<Sass_Value, To_C> {
Sass_Value fallback_impl(AST_Node* n);
public:
To_C() { }
virtual ~To_C() { }
using Operation<Sass_Value>::operator();
Sass_Value operator()(Boolean*);
Sass_Value operator()(Number*);
Sass_Value operator()(Color*);
Sass_Value operator()(String_Constant*);
Sass_Value operator()(List*);
Sass_Value operator()(Null*);
Sass_Value operator()(Arguments*);
Sass_Value operator()(Argument*);
template <typename U>
Sass_Value fallback(U x) { return fallback_impl(x); }
};
}