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
7
1
cfg.swift:
8
2
# 1| [TopLevelCodeDecl] { ... }
9
3
# 1| getBody(): [BraceStmt] { ... }
Original file line number Diff line number Diff line change @@ -10,5 +10,7 @@ import TestUtils
10
10
* The hook to customize the entities printed by this query.
11
11
*/
12
12
class 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
+ }
14
16
}
You can’t perform that action at this time.
0 commit comments