[SourceKit] Move all options into a common options struct

With more options coming for incremental syntax parsing, the list of
arguments will grow way to large and unhandy, so just extract them into
one common struct.
This commit is contained in:
Alex Hoppen
2018-06-27 13:54:37 -07:00
parent 059d5d2396
commit 6e12a634a1
6 changed files with 82 additions and 100 deletions

View File

@@ -2027,7 +2027,6 @@ void SwiftEditorDocument::reportDocumentStructure(SourceFile &SrcFile,
//===----------------------------------------------------------------------===//
void SwiftLangSupport::editorOpen(StringRef Name, llvm::MemoryBuffer *Buf,
bool EnableSyntaxMap,
EditorConsumer &Consumer,
ArrayRef<const char *> Args) {
@@ -2084,7 +2083,8 @@ void SwiftLangSupport::editorClose(StringRef Name, bool RemoveCache) {
// EditorReplaceText
//===----------------------------------------------------------------------===//
void SwiftLangSupport::editorReplaceText(StringRef Name, llvm::MemoryBuffer *Buf,
void SwiftLangSupport::editorReplaceText(StringRef Name,
llvm::MemoryBuffer *Buf,
unsigned Offset, unsigned Length,
EditorConsumer &Consumer) {
auto EditorDoc = EditorDocuments.getByUnresolvedName(Name);