File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 10
10
11
11
import ast.Ast
12
12
private import codeql.Locations
13
+ import ast.internal.AstNodes
13
14
14
15
/**
15
16
* The query can extend this class to control which nodes are printed.
@@ -20,7 +21,7 @@ class PrintAstConfiguration extends string {
20
21
/**
21
22
* Holds if the given node should be printed.
22
23
*/
23
- predicate shouldPrintNode ( AstNode n ) { any ( ) }
24
+ predicate shouldPrintNode ( AstNode n ) { not exists ( toMock ( n ) ) }
24
25
}
25
26
26
27
/**
Original file line number Diff line number Diff line change @@ -161,8 +161,6 @@ nodes
161
161
| Foo.qll:30:10:30:27 | assume_small_delta | semmle.order | 80 |
162
162
| Foo.qll:31:3:31:14 | NewTypeBranch TPathNodeMid | semmle.label | [NewTypeBranch] NewTypeBranch TPathNodeMid |
163
163
| Foo.qll:31:3:31:14 | NewTypeBranch TPathNodeMid | semmle.order | 81 |
164
- | file://:0:0:0:0 | Module EquivalenceRelation | semmle.label | [Module] Module EquivalenceRelation |
165
- | file://:0:0:0:0 | Module QlBuiltins | semmle.label | [Module] Module QlBuiltins |
166
164
| file://:0:0:0:0 | abs | semmle.label | [BuiltinPredicate] abs |
167
165
| file://:0:0:0:0 | abs | semmle.label | [BuiltinPredicate] abs |
168
166
| file://:0:0:0:0 | acos | semmle.label | [BuiltinPredicate] acos |
@@ -411,7 +409,6 @@ edges
411
409
| Foo.qll:30:3:30:28 | annotation | Foo.qll:30:10:30:27 | assume_small_delta | semmle.order | 80 |
412
410
| Foo.qll:31:3:31:14 | NewTypeBranch TPathNodeMid | Foo.qll:30:3:30:28 | annotation | semmle.label | getAnAnnotation() |
413
411
| Foo.qll:31:3:31:14 | NewTypeBranch TPathNodeMid | Foo.qll:30:3:30:28 | annotation | semmle.order | 79 |
414
- | file://:0:0:0:0 | Module QlBuiltins | file://:0:0:0:0 | Module EquivalenceRelation | semmle.label | getAMember() |
415
412
| printAst.ql:1:1:1:28 | Import | printAst.ql:1:18:1:28 | printAstAst | semmle.label | getModuleExpr() |
416
413
| printAst.ql:1:1:1:28 | Import | printAst.ql:1:18:1:28 | printAstAst | semmle.order | 84 |
417
414
| printAst.ql:1:1:1:29 | TopLevel | printAst.ql:1:1:1:28 | Import | semmle.label | getAnImport() |
You can’t perform that action at this time.
0 commit comments