Sha256: e1af07da3f99f49f04c82406e36297a1146bb4267025f405115e3a363fc9578d
Contents?: true
Size: 1.22 KB
Versions: 2
Compression:
Stored size: 1.22 KB
Contents
#ifndef SASS_SOURCE_MAP_H #define SASS_SOURCE_MAP_H #include <string> #include <vector> #include "ast_fwd_decl.hpp" #include "base64vlq.hpp" #include "position.hpp" #include "mapping.hpp" #define VECTOR_PUSH(vec, ins) vec.insert(vec.end(), ins.begin(), ins.end()) #define VECTOR_UNSHIFT(vec, ins) vec.insert(vec.begin(), ins.begin(), ins.end()) namespace Sass { class Context; class OutputBuffer; class SourceMap { public: std::vector<size_t> source_index; SourceMap(); SourceMap(const std::string& file); void append(const Offset& offset); void prepend(const Offset& offset); void append(const OutputBuffer& out); void prepend(const OutputBuffer& out); void add_open_mapping(AST_Node* node); void add_close_mapping(AST_Node* node); std::string render_srcmap(Context &ctx); ParserState remap(const ParserState& pstate); private: std::string serialize_mappings(); std::vector<Mapping> mappings; Position current_position; public: std::string file; private: Base64VLQ base64vlq; }; class OutputBuffer { public: OutputBuffer(void) : buffer(""), smap() { } public: std::string buffer; SourceMap smap; }; } #endif
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sassc-1.8.3 | ext/libsass/src/source_map.hpp |
sassc-1.8.2 | ext/libsass/src/source_map.hpp |