mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Serialize the syntax tree in the EditorConsumer
This will allow us to switch to a more efficient serialization format in the future.
This commit is contained in:
@@ -92,7 +92,10 @@ class NullEditorConsumer : public EditorConsumer {
|
||||
}
|
||||
|
||||
bool handleSourceText(StringRef Text) override { return false; }
|
||||
bool handleSerializedSyntaxTree(StringRef Text) override { return false; }
|
||||
bool handleSyntaxTree(const swift::syntax::SourceFileSyntax &SyntaxTree,
|
||||
std::unordered_set<unsigned> ReusedNodeIds) override {
|
||||
return false;
|
||||
}
|
||||
|
||||
SyntaxTreeTransferMode syntaxTreeTransferMode() override {
|
||||
return SyntaxTreeTransferMode::Off;
|
||||
|
||||
Reference in New Issue
Block a user