INNER CODE UNIT · JavaScript

lineStart

tradingview/lightweight-charts · website/plugins/docs-markdown/index.js:489

		const lineStart = newline + 1;
		const indent = measureIndent(ctx.source, lineStart, to);
		if (indent !== null && !isClaimed(lineStart)) {
			lineStarts.push(lineStart);
			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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…