MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / signalOrigin

Method signalOrigin

src/common/debug.ts:60–70  ·  view source on GitHub ↗
(offset: number)

Source from the content-addressed store, hash-verified

58 }
59
60 signalOrigin(offset: number): SignalOrigin {
61 const [line, column] = this.getLinecol(offset);
62 return {
63 url: this.url,
64 source: this.source,
65 offset: offset,
66 line,
67 column,
68 around: this.sourceAround(line, column),
69 };
70 }
71
72 chalkGutter(s: string): string {
73 return terminal.renderSpan({ content: s, weight: 'thin' });

Callers 1

parseCortexFunction · 0.95

Calls 2

getLinecolMethod · 0.95
sourceAroundMethod · 0.95

Tested by

no test coverage detected