We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ModuleDecl
PrintAst
1 parent 935e264 commit 7645d4dCopy full SHA for 7645d4d
2 files changed
swift/ql/test/library-tests/ast/PrintAst.expected
@@ -1,9 +1,3 @@
1
-#-----| [ModuleDecl] __ObjC
2
-#-----| [ModuleDecl] cfg
3
-#-----| [ModuleDecl] declarations
4
-#-----| [ModuleDecl] expressions
5
-#-----| [ModuleDecl] patterns
6
-#-----| [ModuleDecl] statements
7
cfg.swift:
8
# 1| [TopLevelCodeDecl] { ... }
9
# 1| getBody(): [BraceStmt] { ... }
swift/ql/test/library-tests/ast/PrintAst.ql
@@ -10,5 +10,7 @@ import TestUtils
10
* The hook to customize the entities printed by this query.
11
*/
12
class PrintAstConfigurationOverride extends PrintAstConfiguration {
13
- override predicate shouldPrint(Locatable e) { super.shouldPrint(e) and toBeTested(e) }
+ override predicate shouldPrint(Locatable e) {
14
+ super.shouldPrint(e) and toBeTested(e) and not e instanceof ModuleDecl
15
+ }
16
}
0 commit comments