Code coverage report for lib\dependencies\LabeledExportsDependency.js

Statements: 100% (11 / 11)      Branches: 100% (0 / 0)      Functions: 100% (3 / 3)      Lines: 100% (11 / 11)      Ignored: none     

All files » lib\dependencies\ » LabeledExportsDependency.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22        1   1 73 73 73 73   1   1   1   1 73    
/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/
var NullDependency = require("./NullDependency");
 
function LabeledExportsDependency(name, pos) {
	NullDependency.call(this);
	this.Class = LabeledExportsDependency;
	this.name = name;
	this.pos = pos;
}
module.exports = LabeledExportsDependency;
 
LabeledExportsDependency.prototype = Object.create(NullDependency.prototype);
 
LabeledExportsDependency.Template = function LabeledExportsDependencyTemplate() {};
 
LabeledExportsDependency.Template.prototype.apply = function(dep, source) {
	source.insert(dep.pos, "exports[" + JSON.stringify(dep.name) + "] = ");
};