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

Method constructor

lib/source-node.js:36–45  ·  view source on GitHub ↗
(aLine, aColumn, aSource, aChunks, aName)

Source from the content-addressed store, hash-verified

34 */
35class SourceNode {
36 constructor(aLine, aColumn, aSource, aChunks, aName) {
37 this.children = [];
38 this.sourceContents = {};
39 this.line = aLine == null ? null : aLine;
40 this.column = aColumn == null ? null : aColumn;
41 this.source = aSource == null ? null : aSource;
42 this.name = aName == null ? null : aName;
43 this[isSourceNode] = true;
44 if (aChunks != null) this.add(aChunks);
45 }
46
47 /**
48 * Creates a SourceNode from generated code and a SourceMapConsumer.

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected