MCPcopy
hub / github.com/midrender/revideo / lines

Function lines

packages/2d/src/lib/components/CodeBlock.ts:530–537  ·  view source on GitHub ↗
(from: number, to?: number)

Source from the content-addressed store, hash-verified

528 * will cover only one line.
529 */
530export function lines(from: number, to?: number): CodeRange[] {
531 return [
532 [
533 [from, 0],
534 [to ?? from, Infinity],
535 ],
536 ];
537}
538
539/**
540 * Create a selection range that highlights the given word.

Callers 2

code-block.tsxFile · 0.90
CodeBlockClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected