(view: EditorView)
| 96 | decorator?: MatchDecorator; |
| 97 | decorations: DecorationSet; |
| 98 | constructor(view: EditorView) { |
| 99 | if (regexp) { |
| 100 | this.decorator = linkDecorator(regexp, match, handle, anchor); |
| 101 | this.decorations = this.decorator.createDeco(view); |
| 102 | } else { |
| 103 | this.decorations = hyperLinkDecorations(view, anchor); |
| 104 | } |
| 105 | } |
| 106 | update(update: ViewUpdate) { |
| 107 | if (update.docChanged || update.viewportChanged) { |
| 108 | if (regexp && this.decorator) { |
nothing calls this directly
no test coverage detected