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

Method clear

src/ide/spans.ts:887–905  ·  view source on GitHub ↗
(origin:string = "+delete")

Source from the content-addressed store, hash-verified

885 }
886
887 clear(origin:string = "+delete") {
888 if(!this.marker) return;
889
890 // If the line is still in the document, clear its classes.
891 let loc = this.find();
892 if(loc) {
893 clearLineClasses(loc.from.line, loc.to.line, this.editor, this);
894 }
895 super.clear(origin);
896 if(this.annotation) {
897 this.annotation.clear();
898 this.annotation = undefined;
899 }
900
901 if(this.commentWidget) {
902 this.commentWidget.clear();
903 this.commentElem.textContent = "";
904 }
905 }
906
907 refresh() {
908 let loc = this.find();

Callers 1

refreshMethod · 0.95

Calls 3

clearLineClassesFunction · 0.85
findMethod · 0.65
clearMethod · 0.65

Tested by

no test coverage detected