Sha256: ed9c42bec9881bbc074cd10397b882bb88c32a471097e7b8c3788b4cef53c1b9
Contents?: true
Size: 657 Bytes
Versions: 7
Compression:
Stored size: 657 Bytes
Contents
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ function MappingsContext() { this.sources = []; this.sourcesContent = []; this.hasSourceContent = false; this.currentOriginalLine = 1; this.currentSource = 0; } module.exports = MappingsContext; MappingsContext.prototype.ensureSource = function(source, originalSource) { var idx = this.sources.indexOf(source); if(idx >= 0) return idx; idx = this.sources.length; this.sources.push(source); this.sourcesContent.push(originalSource); if(typeof originalSource === "string") this.hasSourceContent = true; return idx; };
Version data entries
7 entries across 7 versions & 3 rubygems