MCPcopy Create free account
hub / github.com/witheve/Eve / refresh

Method refresh

src/ide/spans.ts:831–846  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

829 }
830
831 refresh() {
832 let loc = this.find();
833 if(!loc) return this.clear();
834
835 if(!this.annotation) {
836 this.annotation = this.editor.cm.annotateScrollbar({className: `scrollbar-annotation ${this.source.kind}`});
837 }
838 if(loc) {
839 this.annotation.update([loc]);
840 if(!this.hidden) {
841 updateLineClasses(loc.from.line, loc.to.line, this.editor, this);
842 } else {
843 clearLineClasses(loc.from.line, loc.to.line, this.editor, this);
844 }
845 }
846 }
847}
848
849export class ParserSpan extends Span {

Callers

nothing calls this directly

Calls 6

clearMethod · 0.95
clearLineClassesFunction · 0.85
annotateScrollbarMethod · 0.80
updateLineClassesFunction · 0.70
findMethod · 0.65
updateMethod · 0.65

Tested by

no test coverage detected