MCPcopy Index your code
hub / github.com/prettier/prettier / fixSourceSpan

Function fixSourceSpan

src/language-html/parse/postprocess.js:213–220  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

211}
212
213function fixSourceSpan(node) {
214 if (node.sourceSpan && node.endSourceSpan) {
215 node.sourceSpan = new ParseSourceSpan(
216 node.sourceSpan.start,
217 node.endSourceSpan.end,
218 );
219 }
220}
221
222function normalizeName(node, parseOptions) {
223 if (node.kind === "element") {

Callers 1

visitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…