MCPcopy
hub / github.com/mozilla/source-map / addMappingWithCode

Method addMappingWithCode

lib/source-node.js:162–179  ·  view source on GitHub ↗
(mapping, code)

Source from the content-addressed store, hash-verified

160 return node;
161
162 function addMappingWithCode(mapping, code) {
163 if (mapping === null || mapping.source === undefined) {
164 node.add(code);
165 } else {
166 const source = aRelativePath
167 ? util.join(aRelativePath, mapping.source)
168 : mapping.source;
169 node.add(
170 new SourceNode(
171 mapping.originalLine,
172 mapping.originalColumn,
173 source,
174 code,
175 mapping.name
176 )
177 );
178 }
179 }
180 }
181
182 /**

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected