MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / onSelectLine

Method onSelectLine

static/panes/editor.ts:1688–1692  ·  view source on GitHub ↗
(id: number, lineNum: number)

Source from the content-addressed store, hash-verified

1686 }
1687
1688 onSelectLine(id: number, lineNum: number): void {
1689 if (Number(id) === this.id) {
1690 this.editor.setSelection(new monaco.Selection(lineNum - 1, 0, lineNum, 0));
1691 }
1692 }
1693
1694 // Returns a half-segment [a, b) for the token on the line lineNum
1695 // that spans across the column.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected