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

Version Path
ilog-0.4.1 node_modules/source-list-map/lib/MappingsContext.js
ilog-0.4.0 node_modules/source-list-map/lib/MappingsContext.js
ilog-0.3.3 node_modules/source-list-map/lib/MappingsContext.js
lanes-0.8.0 node_modules/source-list-map/lib/MappingsContext.js
gulp_assets-1.0.0.pre.5 template/node_modules/webpack/node_modules/webpack-core/node_modules/source-list-map/lib/MappingsContext.js
gulp_assets-1.0.0.pre.4 template/node_modules/webpack/node_modules/webpack-core/node_modules/source-list-map/lib/MappingsContext.js
gulp_assets-1.0.0.pre.3 template/node_modules/webpack/node_modules/webpack-core/node_modules/source-list-map/lib/MappingsContext.js