[SyntaxParse] Prevent memory leak in Syntax parsing

Essentially re-applying b09f87594a
This commit is contained in:
Rintaro Ishizaki
2019-10-15 12:09:19 -07:00
parent 984f262a93
commit aeec682c90
25 changed files with 375 additions and 198 deletions

View File

@@ -189,6 +189,10 @@ private:
return getNodeHandler()(&node);
}
void discardRecordedNode(OpaqueSyntaxNode node) override {
// FIXME: This method should not be called at all.
}
std::pair<size_t, OpaqueSyntaxNode>
lookupNode(size_t lexerOffset, SyntaxKind kind) override {
auto NodeLookup = getNodeLookup();