MCPcopy
hub / github.com/witheve/Eve / getSpanBySourceId

Method getSpanBySourceId

src/ide.ts:1063–1067  ·  view source on GitHub ↗
(id:string)

Source from the content-addressed store, hash-verified

1061 //-------------------------------------------------------
1062
1063 getSpanBySourceId(id:string):Span|undefined {
1064 for(let span of this.getAllSpans()) {
1065 if(span.source.id === id) return span;
1066 }
1067 }
1068
1069 getAllSpans(type?:string):Span[] {
1070 let doc = this.cm.getDoc();

Callers 3

IDEClass · 0.80
updateActionsMethod · 0.80
attachViewMethod · 0.80

Calls 1

getAllSpansMethod · 0.95

Tested by

no test coverage detected