MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / parseOptions

Function parseOptions

static/js/codemirror/addon/lint/lint.js:39–43  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

37 }
38
39 function parseOptions(options) {
40 if (options instanceof Function) return {getAnnotations: options};
41 else if (!options || !options.getAnnotations) throw new Error("Required option 'getAnnotations' missing (lint addon)");
42 return options;
43 }
44
45 function clearMarks(cm) {
46 var state = cm._lintState;

Callers 1

lint.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected