Sha256: 122303b3870fc9c45b30dfeebeb0e79984cc644d29f946990218fb52a0632570

Contents?: true

Size: 736 Bytes

Versions: 11

Compression:

Stored size: 736 Bytes

Contents

#ifndef SASS_TO_STRING_H
#define SASS_TO_STRING_H

#include <string>

#include "operation.hpp"

namespace Sass {
  using namespace std;

  class Context;
  class Null;

  class To_String : public Operation_CRTP<string, To_String> {
    // import all the class-specific methods and override as desired
    using Operation<string>::operator();
    // override this to define a catch-all
    string fallback_impl(AST_Node* n);

    Context* ctx;
    bool in_declaration;

  public:
    To_String(Context* ctx = 0, bool in_declaration = true);
    virtual ~To_String();

    string operator()(Null* n);
    string operator()(String_Constant*);

    template <typename U>
    string fallback(U n) { return fallback_impl(n); }
  };
}

#endif

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
gulp_assets-1.0.0.pre.5 template/node_modules/gulp-sass/node_modules/node-sass/src/libsass/to_string.hpp
gulp_assets-1.0.0.pre.4 template/node_modules/gulp-sass/node_modules/node-sass/src/libsass/to_string.hpp
gulp_assets-1.0.0.pre.3 template/node_modules/gulp-sass/node_modules/node-sass/src/libsass/to_string.hpp
sassc-1.7.1 ext/libsass/to_string.hpp
sassc-1.7.0 ext/libsass/to_string.hpp
sassc-1.6.0 ext/libsass/to_string.hpp
sassc-1.5.1 ext/libsass/to_string.hpp
sassc-1.5.0 ext/libsass/to_string.hpp
sassc-1.4.0 ext/libsass/to_string.hpp
sassc-1.3.0 ext/libsass/to_string.hpp
sassc-1.2.0 ext/libsass/to_string.hpp