We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DataFlow::Node::getEnclosingCallable
1 parent 5bdfcc8 commit f5a4712Copy full SHA for f5a4712
csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll
@@ -65,7 +65,9 @@ abstract class NodeImpl extends Node {
65
66
private class ExprNodeImpl extends ExprNode, NodeImpl {
67
override DataFlowCallable getEnclosingCallableImpl() {
68
- result = this.getExpr().getEnclosingCallable()
+ result = this.getExpr().(CIL::Expr).getEnclosingCallable()
69
+ or
70
+ result = this.getControlFlowNodeImpl().getEnclosingCallable()
71
}
72
73
override DotNet::Type getTypeImpl() {
0 commit comments