Don't printAst ReservedWords

This commit is contained in:
Taus
2021-05-26 14:28:33 +00:00
committed by GitHub
parent a4603a49a1
commit 9b8acdb37f

View File

@@ -18,7 +18,10 @@ class PrintAstConfiguration extends string {
/**
* Holds if the given node should be printed.
*/
predicate shouldPrintNode(AstNode n) { not n instanceof LineComment }
predicate shouldPrintNode(AstNode n) {
not n instanceof LineComment and
not n instanceof ReservedWord
}
}
/**