Welcome to mirror list, hosted at ThFree Co, Russian Federation.

to_c.hpp « src « libsass « src « node-sass « node_modules - github.com/austingebauer/devise.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a5331e3bf16092e2b441b65362e05efa62b51cb5 (plain)
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
#ifndef SASS_TO_C_H
#define SASS_TO_C_H

#include "ast_fwd_decl.hpp"
#include "operation.hpp"
#include "sass/values.h"

namespace Sass {

  class To_C : public Operation_CRTP<union Sass_Value*, To_C> {
    // override this to define a catch-all
    union Sass_Value* fallback_impl(AST_Node_Ptr n);

  public:

    To_C() { }
    ~To_C() { }

    union Sass_Value* operator()(Boolean_Ptr);
    union Sass_Value* operator()(Number_Ptr);
    union Sass_Value* operator()(Color_Ptr);
    union Sass_Value* operator()(String_Constant_Ptr);
    union Sass_Value* operator()(String_Quoted_Ptr);
    union Sass_Value* operator()(Custom_Warning_Ptr);
    union Sass_Value* operator()(Custom_Error_Ptr);
    union Sass_Value* operator()(List_Ptr);
    union Sass_Value* operator()(Map_Ptr);
    union Sass_Value* operator()(Null_Ptr);
    union Sass_Value* operator()(Arguments_Ptr);
    union Sass_Value* operator()(Argument_Ptr);

    // dispatch to fallback implementation
    union Sass_Value* fallback(AST_Node_Ptr x)
    { return fallback_impl(x); }
  };

}

#endif