|
Packit Service |
7770af |
#ifndef SASS_TO_C_H
|
|
Packit Service |
7770af |
#define SASS_TO_C_H
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
#include "ast_fwd_decl.hpp"
|
|
Packit Service |
7770af |
#include "operation.hpp"
|
|
Packit Service |
7770af |
#include "sass/values.h"
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
namespace Sass {
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
class To_C : public Operation_CRTP<union Sass_Value*, To_C> {
|
|
Packit Service |
7770af |
// override this to define a catch-all
|
|
Packit Service |
7770af |
union Sass_Value* fallback_impl(AST_Node_Ptr n);
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
public:
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
To_C() { }
|
|
Packit Service |
7770af |
~To_C() { }
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
union Sass_Value* operator()(Boolean_Ptr);
|
|
Packit Service |
7770af |
union Sass_Value* operator()(Number_Ptr);
|
|
Packit Service |
7770af |
union Sass_Value* operator()(Color_Ptr);
|
|
Packit Service |
7770af |
union Sass_Value* operator()(String_Constant_Ptr);
|
|
Packit Service |
7770af |
union Sass_Value* operator()(String_Quoted_Ptr);
|
|
Packit Service |
7770af |
union Sass_Value* operator()(Custom_Warning_Ptr);
|
|
Packit Service |
7770af |
union Sass_Value* operator()(Custom_Error_Ptr);
|
|
Packit Service |
7770af |
union Sass_Value* operator()(List_Ptr);
|
|
Packit Service |
7770af |
union Sass_Value* operator()(Map_Ptr);
|
|
Packit Service |
7770af |
union Sass_Value* operator()(Null_Ptr);
|
|
Packit Service |
7770af |
union Sass_Value* operator()(Arguments_Ptr);
|
|
Packit Service |
7770af |
union Sass_Value* operator()(Argument_Ptr);
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
// dispatch to fallback implementation
|
|
Packit Service |
7770af |
union Sass_Value* fallback(AST_Node_Ptr x)
|
|
Packit Service |
7770af |
{ return fallback_impl(x); }
|
|
Packit Service |
7770af |
};
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
}
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
#endif
|