path, false, new MockIncrementalScheduler(), Document.createEmpty());
}
public static DocumentParser createDocumentParser(PathUtil path, boolean setupRealParser,
IncrementalScheduler scheduler, Document document) {
Parser parser = setupRealParser ? CodeMirror2.getParser(path)
: new MockParser(SyntaxType.syntaxTypeByFilePath(path));
return DocumentParser.create(document, parser, scheduler);
}