File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
swift/ql/test/library-tests/ast Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 1- #-----| [ModuleDecl] __ObjC
2- #-----| [ModuleDecl] cfg
3- #-----| [ModuleDecl] declarations
4- #-----| [ModuleDecl] expressions
5- #-----| [ModuleDecl] patterns
6- #-----| [ModuleDecl] statements
71cfg.swift:
82# 1| [TopLevelCodeDecl] { ... }
93# 1| getBody(): [BraceStmt] { ... }
Original file line number Diff line number Diff line change @@ -10,5 +10,7 @@ import TestUtils
1010 * The hook to customize the entities printed by this query.
1111 */
1212class PrintAstConfigurationOverride extends PrintAstConfiguration {
13- override predicate shouldPrint ( Locatable e ) { super .shouldPrint ( e ) and toBeTested ( e ) }
13+ override predicate shouldPrint ( Locatable e ) {
14+ super .shouldPrint ( e ) and toBeTested ( e ) and not e instanceof ModuleDecl
15+ }
1416}
You can’t perform that action at this time.
0 commit comments