mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[incrParse] Fix parsing of nodes covering no source text
This commit is contained in:
@@ -171,7 +171,8 @@ void SyntaxParsingContext::addSyntax(Syntax Node) {
|
||||
|
||||
void SyntaxParsingContext::createNodeInPlace(SyntaxKind Kind, size_t N) {
|
||||
if (N == 0) {
|
||||
Storage.push_back(createSyntaxAs(Kind, {}));
|
||||
if (!shallBeOmittedWhenNoChildren(Kind))
|
||||
Storage.push_back(createSyntaxAs(Kind, {}));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user