(cm)
| 118 | } |
| 119 | |
| 120 | function startLinting(cm) { |
| 121 | var state = cm.state.lint, options = state.options; |
| 122 | var passOptions = options.options || options; // Support deprecated passing of `options` property in options |
| 123 | if (options.async || options.getAnnotations.async) |
| 124 | options.getAnnotations(cm.getValue(), updateLinting, passOptions, cm); |
| 125 | else |
| 126 | updateLinting(cm, options.getAnnotations(cm.getValue(), passOptions, cm)); |
| 127 | } |
| 128 | |
| 129 | function updateLinting(cm, annotationsNotSorted) { |
| 130 | clearMarks(cm); |
no test coverage detected