Sha256: 0821bf30d0ead14466ec6804956573810e248916d93cdd64afeffc52eddfbd0f

Contents?: true

Size: 643 Bytes

Versions: 6

Compression:

Stored size: 643 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)
  : ctx(ctx) { }
  To_String::~To_String() { }

  inline string To_String::fallback_impl(AST_Node* n)
  {
    Emitter emitter(ctx);
    Inspect i(emitter);
    i.in_declaration_list = true;
    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

6 entries across 6 versions & 1 rubygems

Version Path
sassc-1.1.2 ext/libsass/to_string.cpp
sassc-1.1.1 ext/libsass/to_string.cpp
sassc-1.1.0 ext/libsass/to_string.cpp
sassc-1.0.0 ext/libsass/to_string.cpp
sassc-0.0.11 ext/libsass/to_string.cpp
sassc-0.0.10 ext/libsass/to_string.cpp