(hint, cm, options, callback)
| 13801 | } |
| 13802 | |
| 13803 | function fetchHints(hint, cm, options, callback) { |
| 13804 | if (hint.async) { |
| 13805 | hint(cm, callback, options) |
| 13806 | } else { |
| 13807 | var result = hint(cm, options) |
| 13808 | if (result && result.then) result.then(callback) |
| 13809 | else callback(result) |
| 13810 | } |
| 13811 | } |
| 13812 | |
| 13813 | function resolveAutoHints(cm, pos) { |
| 13814 | var helpers = cm.getHelpers(pos, "hint"), |
no test coverage detected