mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user