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.
1 parent 732ef92 commit aa2abf7Copy full SHA for aa2abf7
1 file changed
csharp/ql/src/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll
@@ -1354,14 +1354,12 @@ abstract class ReturnNode extends Node {
1354
private module ReturnNodes {
1355
/**
1356
* A data-flow node that represents an expression returned by a callable,
1357
- * either using a (`yield`) `return` statement or an expression body (`=>`).
+ * either using a `return` statement or an expression body (`=>`).
1358
*/
1359
class ExprReturnNode extends ReturnNode, ExprNode {
1360
ExprReturnNode() {
1361
exists(DotNet::Callable c, DotNet::Expr e | e = this.getExpr() |
1362
- c.canReturn(e)
1363
- or
1364
- c.(Callable).canYieldReturn(e)
+ c.canReturn(e) and not c.(Modifiable).isAsync()
1365
)
1366
}
1367
0 commit comments