mirror of
https://github.com/github/codeql.git
synced 2026-02-11 04:31:05 +01:00
Don't printAst ReservedWords
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user