Sha256: 1c9a42e18a4e17b0783b040de0fc586084f13031a42137a054c5d876568d7550

Contents?: true

Size: 1.12 KB

Versions: 6

Compression:

Stored size: 1.12 KB

Contents

#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> {
    // import all the class-specific methods and override as desired
    using Operation<union Sass_Value*>::operator();
    // override this to define a catch-all
    union Sass_Value* fallback_impl(AST_Node* n);

  public:

    To_C() { }
    virtual ~To_C() { }

    union Sass_Value* operator()(Boolean*);
    union Sass_Value* operator()(Number*);
    union Sass_Value* operator()(Color*);
    union Sass_Value* operator()(String_Constant*);
    union Sass_Value* operator()(String_Quoted*);
    union Sass_Value* operator()(Custom_Warning*);
    union Sass_Value* operator()(Custom_Error*);
    union Sass_Value* operator()(List*);
    union Sass_Value* operator()(Map*);
    union Sass_Value* operator()(Null*);
    union Sass_Value* operator()(Arguments*);
    union Sass_Value* operator()(Argument*);

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

}

#endif

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sassc-1.8.3 ext/libsass/src/to_c.hpp
sassc-1.8.2 ext/libsass/src/to_c.hpp
sassc-1.8.1 ext/libsass/src/to_c.hpp
sassc-1.8.0 ext/libsass/src/to_c.hpp
sassc-1.8.0.pre2 ext/libsass/src/to_c.hpp
sassc-1.8.0.pre1 ext/libsass/src/to_c.hpp