[SourceKit] Pass Text around more.

This helps de-couple us from the Swift Editor Document.
This commit is contained in:
John Regner
2016-02-28 10:37:53 -08:00
parent 8f728f31ad
commit 3283a8cc03
2 changed files with 10 additions and 11 deletions

View File

@@ -88,7 +88,7 @@ public:
void formatText(unsigned Line, unsigned Length, EditorConsumer &Consumer);
void expandPlaceholder(unsigned Offset, unsigned Length,
EditorConsumer &Consumer);
StringRef getTrimmedTextForLine(unsigned Line);
StringRef getTrimmedTextForLine(unsigned Line, StringRef Text);
size_t getExpandedIndentForLine(unsigned LineIndex);
const swift::ide::CodeFormatOptions &getFormatOptions();