Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5157236 commit d1cc2ccCopy full SHA for d1cc2cc
1 file changed
csharp/ql/src/semmle/code/csharp/controlflow/internal/ControlFlowGraphImpl.qll
@@ -62,7 +62,7 @@ module ControlFlowTree {
62
Range() { this = getAChild*(any(CfgScope scope)) }
63
}
64
65
- private Element getAChild(Element p) {
+ Element getAChild(Element p) {
66
result = p.getAChild() or
67
result = p.(AssignOperation).getExpandedAssignment()
68
@@ -1334,7 +1334,7 @@ module Statements {
1334
/** Gets a child of `cfe` that is in CFG scope `scope`. */
1335
pragma[noinline]
1336
private ControlFlowElement getAChildInScope(ControlFlowElement cfe, Callable scope) {
1337
- result = [cfe.getAChild(), cfe.(AssignOperation).getExpandedAssignment()] and
+ result = ControlFlowTree::getAChild(cfe) and
1338
scope = result.getEnclosingCallable()
1339
1340
0 commit comments