Revert "Merge pull request #27230 from rintaro/syntaxparsse-rdar55421369"

This reverts commit b09f87594a, reversing
changes made to d0b7ecab00.
This commit is contained in:
Rintaro Ishizaki
2019-10-14 12:47:23 -07:00
parent 8768832f24
commit 00613db8db
27 changed files with 328 additions and 500 deletions

View File

@@ -174,9 +174,3 @@ SyntaxTreeCreator::lookupNode(size_t lexerOffset, syntax::SyntaxKind kind) {
raw.resetWithoutRelease();
return {length, opaqueN};
}
void SyntaxTreeCreator::discardRecordedNode(OpaqueSyntaxNode opaqueN) {
if (!opaqueN)
return;
static_cast<RawSyntax *>(opaqueN)->Release();
}