assertEquals("variable set", createStringSet(
"aaa", "bbb", "ccc", "ddd", "eee", "fff"), createNameSet(proposals));
Document document = helper.editor.getDocument();
Remover remover = document.getLineListenerRegistrar().add(new Document.LineListener() {
@Override
public void onLineAdded(Document document, int lineNumber, JsonArray<Line> addedLines) {
}
@Override
public void onLineRemoved(Document document, int lineNumber,
JsonArray<Line> removedLines) {
JsonArray<TaggableLine> deletedLines = JsonCollections.createArray();
for (final Line line : removedLines.asIterable()) {
deletedLines.add(line);
}
analyzer.onLinesDeleted(deletedLines);
}
});
LineFinder lineFinder = document.getLineFinder();
LineInfo line2 = lineFinder.findLine(2);
LineInfo line4 = lineFinder.findLine(4);
String textToDelete = LineUtils.getText(line2.line(), 0, line4.line(), 0);
helper.editor.getEditorDocumentMutator().deleteText(line2.line(), 2, 0, textToDelete.length());
remover.remove();
JsonArray<IncrementalScheduler.Task> parseRequests = helper.parseScheduler.requests;
assertEquals("reparse scheduled", 1, parseRequests.size());
parseRequests.get(0).run(50);