Sha256: d518542c2c4f78f44b3f15d0718dab3972bbce2e7605ac8f7dac4b6c6dd88638

Contents?: true

Size: 526 Bytes

Versions: 2

Compression:

Stored size: 526 Bytes

Contents

#include "prelexer.hpp"
#include "backtrace.hpp"
#include "error_handling.hpp"

namespace Sass {

  Sass_Error::Sass_Error(Type type, ParserState pstate, string message)
  : type(type), pstate(pstate), message(message)
  { }

  void error(string msg, ParserState pstate)
  {
    throw Sass_Error(Sass_Error::syntax, pstate, msg);
  }

  void error(string msg, ParserState pstate, Backtrace* bt)
  {

    Backtrace top(bt, pstate, "");
    msg += top.to_string();

    throw Sass_Error(Sass_Error::syntax, pstate, msg);
  }

}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sassc-1.0.0 ext/libsass/error_handling.cpp
sassc-0.0.11 ext/libsass/error_handling.cpp