[incrParse] Allow information about node reused be outputted

This commit is contained in:
Alex Hoppen
2018-05-02 15:42:50 -07:00
parent db52819d94
commit 186feb6f0e
3 changed files with 36 additions and 3 deletions

View File

@@ -35,6 +35,9 @@ llvm::Optional<Syntax> SyntaxParsingCache::lookUpFrom(Syntax Node,
// token's leading trivia
if (!NodeEdited) {
if (ReuseLog) {
(*ReuseLog) << "Reused " << Kind << " at offset " << Position << '\n';
}
return Node;
}
}