()
| 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 | |
| 849 | export class ParserSpan extends Span { |
nothing calls this directly
no test coverage detected