mirror of
https://github.com/github/codeql.git
synced 2026-04-23 15:55:18 +02:00
C#: Do not print compiler generated statements.
This commit is contained in:
@@ -27,7 +27,8 @@ class PrintAstConfiguration extends TPrintAstConfiguration {
|
||||
}
|
||||
|
||||
private predicate shouldPrint(Element e, Location l) {
|
||||
exists(PrintAstConfiguration config | config.shouldPrint(e, l))
|
||||
exists(PrintAstConfiguration config | config.shouldPrint(e, l)) and
|
||||
not e.(Stmt).isCompilerGenerated()
|
||||
}
|
||||
|
||||
private predicate isImplicitExpression(ControlFlowElement element) {
|
||||
|
||||
Reference in New Issue
Block a user