Sha256: 436ff613c8f3bb38ef35e2a5cf1d90dc914a529610caa3c05cc6b634e5a79912

Contents?: true

Size: 701 Bytes

Versions: 11

Compression:

Stored size: 701 Bytes

Contents

#include <cmath>
#include <sstream>
#include <iomanip>
#include <iostream>

#include "ast.hpp"
#include "inspect.hpp"
#include "context.hpp"
#include "to_string.hpp"

namespace Sass {
  using namespace std;

  To_String::To_String(Context* ctx, bool in_declaration)
  : ctx(ctx), in_declaration(in_declaration) { }
  To_String::~To_String() { }

  inline string To_String::fallback_impl(AST_Node* n)
  {
    Emitter emitter(ctx);
    Inspect i(emitter);
    i.in_declaration = in_declaration;
    n->perform(&i);
    return i.get_buffer();
  }

  inline string To_String::operator()(String_Constant* s)
  {
    return s->value();
  }

  inline string To_String::operator()(Null* n)
  { return ""; }
}

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.cpp
gulp_assets-1.0.0.pre.4 template/node_modules/gulp-sass/node_modules/node-sass/src/libsass/to_string.cpp
gulp_assets-1.0.0.pre.3 template/node_modules/gulp-sass/node_modules/node-sass/src/libsass/to_string.cpp
sassc-1.7.1 ext/libsass/to_string.cpp
sassc-1.7.0 ext/libsass/to_string.cpp
sassc-1.6.0 ext/libsass/to_string.cpp
sassc-1.5.1 ext/libsass/to_string.cpp
sassc-1.5.0 ext/libsass/to_string.cpp
sassc-1.4.0 ext/libsass/to_string.cpp
sassc-1.3.0 ext/libsass/to_string.cpp
sassc-1.2.0 ext/libsass/to_string.cpp