[Syntax] Add round-trip syntax test driver and stdlib roundtrip test

This commit is contained in:
David Farler
2017-02-14 16:53:04 -08:00
parent 9627c5eafd
commit 71346dc5c1
6 changed files with 175 additions and 4 deletions

View File

@@ -194,12 +194,9 @@ int doFullParseRoundTrip(const StringRef InputFilename) {
if (NewNode.hasValue()) {
NewNode.getValue().print(llvm::outs());
auto Symbol = Sema.getNodeForSyntax(NewNode.getValue());
assert(Symbol.hasValue());
}
}
Sema.dumpSyntaxMap();
if (Tokens.back().first->getTokenKind() == tok::eof) {
Tokens.back().first->print(llvm::outs());
}