Merge pull request #27132 from rintaro/syntaxparse-parsedrawsyntax-moveonly

[SyntaxParse] Prevent memory leak in Syntax parsing
This commit is contained in:
Rintaro Ishizaki
2019-09-14 01:06:15 +02:00
committed by GitHub
24 changed files with 474 additions and 297 deletions

View File

@@ -190,6 +190,10 @@ public:
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();