mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SourceKit] Fix compile error on Ubuntu 14
This commit is contained in:
@@ -1791,8 +1791,9 @@ void SwiftEditorDocument::readSyntaxInfo(EditorConsumer &Consumer) {
|
|||||||
Impl.ParserDiagnostics = Impl.SyntaxInfo->getDiagnostics();
|
Impl.ParserDiagnostics = Impl.SyntaxInfo->getDiagnostics();
|
||||||
|
|
||||||
if (Consumer.syntaxTreeEnabled()) {
|
if (Consumer.syntaxTreeEnabled()) {
|
||||||
|
std::unordered_set<unsigned> ReusedNodeIds;
|
||||||
Consumer.handleSyntaxTree(Impl.SyntaxInfo->getSourceFile().getSyntaxRoot(),
|
Consumer.handleSyntaxTree(Impl.SyntaxInfo->getSourceFile().getSyntaxRoot(),
|
||||||
/*ReusedNodeIds=*/{});
|
ReusedNodeIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
SwiftSyntaxMap NewMap = SwiftSyntaxMap(Impl.SyntaxMap.Tokens.size() + 16);
|
SwiftSyntaxMap NewMap = SwiftSyntaxMap(Impl.SyntaxMap.Tokens.size() + 16);
|
||||||
|
|||||||
Reference in New Issue
Block a user