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

Method tokenInfo

src/ide.ts:2424–2431  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2422 }
2423
2424 tokenInfo() {
2425 let doc = this.editor.cm.getDoc();
2426 let cursor = doc.getCursor();
2427 let spans = this.editor.findSpansAt(cursor).filter((span) => span instanceof Spans.ParserSpan);
2428 if(spans.length && this.onTokenInfo) {
2429 this.onTokenInfo(this, spans[0].source.id);
2430 }
2431 }
2432
2433 monitorInputState() {
2434 window.addEventListener("mousedown", this.updateMouseInputState);

Callers 2

EditorClass · 0.80
handleEventFunction · 0.80

Calls 3

getDocMethod · 0.80
getCursorMethod · 0.80
findSpansAtMethod · 0.80

Tested by

no test coverage detected