File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
test/library-tests/controlflow/graph Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,9 @@ private module Cached {
140
140
}
141
141
142
142
private Expr getAChildExpr ( ExprOrStmtParent parent ) {
143
- result = parent .getAChildExpr ( ) or
143
+ result = parent .getAChildExpr ( ) and
144
+ not result = parent .( DeclarationWithGetSetAccessors ) .getExpressionBody ( )
145
+ or
144
146
result = parent .( AssignOperation ) .getExpandedAssignment ( )
145
147
}
146
148
@@ -159,7 +161,7 @@ private module Cached {
159
161
160
162
private predicate parent ( ControlFlowElement child , ExprOrStmtParent parent ) {
161
163
child = getAChild ( parent ) and
162
- not child instanceof Callable
164
+ not child = any ( Callable c ) . getBody ( )
163
165
}
164
166
165
167
/** Holds if the enclosing body of `cfe` is `body`. */
Original file line number Diff line number Diff line change @@ -4882,17 +4882,11 @@ nodeEnclosing
4882
4882
| cflow.cs:306:60:310:5 | exit get__getter | cflow.cs:306:60:310:5 | get__getter |
4883
4883
| cflow.cs:306:60:310:5 | exit get__getter (normal) | cflow.cs:306:60:310:5 | get__getter |
4884
4884
| cflow.cs:307:5:310:5 | {...} | cflow.cs:306:60:310:5 | (...) => ... |
4885
- | cflow.cs:307:5:310:5 | {...} | cflow.cs:306:60:310:5 | get__getter |
4886
4885
| cflow.cs:308:9:308:21 | ... ...; | cflow.cs:306:60:310:5 | (...) => ... |
4887
- | cflow.cs:308:9:308:21 | ... ...; | cflow.cs:306:60:310:5 | get__getter |
4888
4886
| cflow.cs:308:16:308:20 | Object x = ... | cflow.cs:306:60:310:5 | (...) => ... |
4889
- | cflow.cs:308:16:308:20 | Object x = ... | cflow.cs:306:60:310:5 | get__getter |
4890
4887
| cflow.cs:308:20:308:20 | access to parameter o | cflow.cs:306:60:310:5 | (...) => ... |
4891
- | cflow.cs:308:20:308:20 | access to parameter o | cflow.cs:306:60:310:5 | get__getter |
4892
4888
| cflow.cs:309:9:309:17 | return ...; | cflow.cs:306:60:310:5 | (...) => ... |
4893
- | cflow.cs:309:9:309:17 | return ...; | cflow.cs:306:60:310:5 | get__getter |
4894
4889
| cflow.cs:309:16:309:16 | access to local variable x | cflow.cs:306:60:310:5 | (...) => ... |
4895
- | cflow.cs:309:16:309:16 | access to local variable x | cflow.cs:306:60:310:5 | get__getter |
4896
4890
blockEnclosing
4897
4891
| AccessorCalls.cs:5:23:5:25 | enter get_Item | AccessorCalls.cs:5:23:5:25 | get_Item |
4898
4892
| AccessorCalls.cs:5:33:5:35 | enter set_Item | AccessorCalls.cs:5:33:5:35 | set_Item |
You can’t perform that action at this time.
0 commit comments