File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
python/ql/lib/semmle/python/dataflow/new/internal Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 9
9
10
10
private import python
11
11
private import semmle.python.dataflow.new.DataFlow
12
+ private import semmle.python.dataflow.new.internal.DataFlowPrivate as DataFlowPrivate
12
13
13
14
/**
14
15
* INTERNAL: Do not use.
@@ -66,7 +67,12 @@ string prettyNodeForInlineTest(DataFlow::Node node) {
66
67
result = "[post]" + prettyExpr ( e )
67
68
)
68
69
or
70
+ exists ( Expr e | e = node .( DataFlowPrivate:: SyntheticPreUpdateNode ) .getPostUpdateNode ( ) .asExpr ( ) |
71
+ result = "[pre]" + prettyExpr ( e )
72
+ )
73
+ or
69
74
not exists ( node .asExpr ( ) ) and
70
75
not exists ( node .( DataFlow:: PostUpdateNode ) .getPreUpdateNode ( ) .asExpr ( ) ) and
76
+ not exists ( node .( DataFlowPrivate:: SyntheticPreUpdateNode ) .getPostUpdateNode ( ) .asExpr ( ) ) and
71
77
result = node .toString ( )
72
78
}
You can’t perform that action at this time.
0 commit comments