MCPcopy Index your code
hub / github.com/mozilla/source-map / setSourceContent

Method setSourceContent

lib/source-node.js:303–305  ·  view source on GitHub ↗

* Set the source content for a source file. This will be added to the SourceMapGenerator * in the sourcesContent field. * * @param aSourceFile The filename of the source file * @param aSourceContent The content of the source file

(aSourceFile, aSourceContent)

Source from the content-addressed store, hash-verified

301 * @param aSourceContent The content of the source file
302 */
303 setSourceContent(aSourceFile, aSourceContent) {
304 this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;
305 }
306
307 /**
308 * Walk over the tree of SourceNodes. The walking function is called for each

Calls

no outgoing calls

Tested by

no test coverage detected