Sha256: 198302a31496022a2c86148186ee07f568aaaaed1c6f145c3b3f9cf8dda39745

Contents?: true

Size: 667 Bytes

Versions: 8

Compression:

Stored size: 667 Bytes

Contents

#define SASS_SOURCE_MAP

#include <vector>

#ifndef SASS_MAPPING
#include "mapping.hpp"
#endif

#ifndef SASS_AST
#include "ast.hpp"
#endif

#ifndef SASSS_BASE64VLQ
#include "base64vlq.hpp"
#endif



namespace Sass {
  using std::vector;

  struct Context;

  class SourceMap {

  public:
    vector<size_t> source_index;
    SourceMap(const string& file);

    void remove_line();
    void update_column(const string& str);
    void add_mapping(AST_Node* node);

    string generate_source_map(Context &ctx);

  private:

    string serialize_mappings();

    vector<Mapping> mappings;
    Position current_position;
    string file;
    Base64VLQ base64vlq;
  };

}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sassc-0.0.9 ext/libsass/source_map.hpp
sassc-0.0.8 ext/libsass/source_map.hpp
sassc-0.0.7 ext/libsass/source_map.hpp
sassc-0.0.6 ext/libsass/source_map.hpp
sassc-0.0.5 ext/libsass/source_map.hpp
sassc-0.0.4 ext/libsass/source_map.hpp
sassc-0.0.2 ext/libsass/source_map.hpp
sassc-0.0.1 ext/libsass/source_map.hpp