Sha256: 5c0af7b0e0a2c8b541b4519d2e8be73da9f8986e1d9ea11aa6837b2f3528b88a

Contents?: true

Size: 746 Bytes

Versions: 14

Compression:

Stored size: 746 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 warn(string msg, ParserState pstate)
  {
    cerr << "Warning: " << msg<< endl;
  }

  void warn(string msg, ParserState pstate, Backtrace* bt)
  {
    Backtrace top(bt, pstate, "");
    msg += top.to_string();
    warn(msg, pstate);
  }

  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 += "\n" + top.to_string();
    error(msg, pstate);
  }

}

Version data entries

14 entries across 14 versions & 2 rubygems

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