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

Method clear

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

Source from the content-addressed store, hash-verified

970 }
971
972 clear(origin:string = "+delete") {
973 if(!this.marker) return;
974
975 // If the line is still in the document, clear its classes.
976 let loc = this.find();
977 if(loc) {
978 clearLineClasses(loc.from.line, loc.to.line, this.editor, this);
979 }
980 super.clear(origin);
981
982 if(this.commentWidget) {
983 this.commentWidget.clear();
984 this.commentElem.textContent = "";
985 }
986 }
987
988 refresh() {
989 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