mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[libSyntax] Handle deferred node data in SyntaxParseActions
By now ParsedRawSyntaxNode does not have any knowledge about deferred node data anymore, which frees up SyntaxParseActions (and, in particular its sublass SyntaxTreeCreator) to perform optimisations to more efficiently create and record deferred nodes.
This commit is contained in:
@@ -176,9 +176,9 @@ private:
|
||||
return getNodeHandler()(&node);
|
||||
}
|
||||
|
||||
OpaqueSyntaxNode recordRawSyntax(SyntaxKind kind,
|
||||
ArrayRef<OpaqueSyntaxNode> elements,
|
||||
CharSourceRange range) override {
|
||||
OpaqueSyntaxNode
|
||||
recordRawSyntax(SyntaxKind kind,
|
||||
ArrayRef<OpaqueSyntaxNode> elements) override {
|
||||
CRawSyntaxNode node;
|
||||
auto numValue = serialization::getNumericValue(kind);
|
||||
node.kind = numValue;
|
||||
|
||||
Reference in New Issue
Block a user