INNER CODE UNIT · JavaScript
common
tradingview/lightweight-charts · website/plugins/docs-markdown/index.js:493
common = Math.min(common, indent);
}
newline = ctx.source.indexOf('\n', lineStart);
}
if (common === 0 || common === Number.MAX_SAFE_INTEGER) {
return;
}
for (const lineStart of lineStarts) {
ctx.edits.push({ start: lineStart, end: lineStart + common });
}
}
/**
* Edits are applied left to right; where two start together the widest wins, so
* a component's replacement swallows the edits collected inside it.
*
* @param {string} source
* @param {Edit[]} edits