(pos:Position, type?:string)
| 1091 | } |
| 1092 | |
| 1093 | findSpansAt(pos:Position, type?:string):Span[] { |
| 1094 | let doc = this.cm.getDoc(); |
| 1095 | let marks:SpanMarker[] = doc.findMarksAt(pos); |
| 1096 | let spans:Span[] = []; |
| 1097 | for(let mark of marks) { |
| 1098 | if(mark.span && (!type || mark.span.source.type === type)) { |
| 1099 | spans.push(mark.span); |
| 1100 | } |
| 1101 | } |
| 1102 | return spans; |
| 1103 | } |
| 1104 | |
| 1105 | /** Create a new Span representing the given source in the document. */ |
| 1106 | markSpan(from:Position, to:Position, source:any) { |
no test coverage detected