Sha256: 87a0705ea90a0e22eaf5439286913c82d7a8dd7497abad29818325afa9ea90b4

Contents?: true

Size: 955 Bytes

Versions: 25

Compression:

Stored size: 955 Bytes

Contents

#ifndef SASS_TO_VALUE_H
#define SASS_TO_VALUE_H

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

namespace Sass {

  class To_Value : public Operation_CRTP<Value*, To_Value> {

  private:

    Context& ctx;

  public:

    To_Value(Context& ctx)
    : ctx(ctx)
    { }
    ~To_Value() { }
    using Operation<Value*>::operator();

    Value* operator()(Argument*);
    Value* operator()(Boolean*);
    Value* operator()(Number*);
    Value* operator()(Color_RGBA*);
    Value* operator()(Color_HSLA*);
    Value* operator()(String_Constant*);
    Value* operator()(String_Quoted*);
    Value* operator()(Custom_Warning*);
    Value* operator()(Custom_Error*);
    Value* operator()(List*);
    Value* operator()(Map*);
    Value* operator()(Null*);
    Value* operator()(Function*);

    // convert to string via `To_String`
    Value* operator()(Selector_List*);
    Value* operator()(Binary_Expression*);

  };

}

#endif

Version data entries

25 entries across 16 versions & 2 rubygems

Version Path
sassc-2.1.0.pre3 ext/libsass/src/to_value.hpp
sassc-2.1.0.pre2-x86_64-linux ext/libsass/src/to_value.hpp
sassc-2.1.0.pre2 ext/libsass/src/to_value.hpp
sassc-2.1.0.pre1-x86_64-linux ext/libsass/src/to_value.hpp
sassc-2.1.0.pre1 ext/libsass/src/to_value.hpp