C#: Address more review comments.

This commit is contained in:
Anders Schack-Mulligen
2025-10-22 15:50:10 +02:00
parent c44e6fc3f0
commit f172e36eee
2 changed files with 2 additions and 1 deletions

View File

@@ -40,6 +40,7 @@ class ControlFlowElement extends ExprOrStmtParent, @control_flow_element {
*/
Nodes::ElementNode getAControlFlowNode() { result.getAstNode() = this }
/** Gets the control flow node for this element. */
ControlFlow::Node getControlFlowNode() { result.getAstNode() = this }
/** Gets the basic block in which this element occurs. */

View File

@@ -34,7 +34,7 @@ private Expr maybeNullExpr(Expr reason) {
or
result.(AssignExpr).getRValue() = maybeNullExpr(reason)
or
result.(Cast).getExpr() = maybeNullExpr(reason)
result.(CastExpr).getExpr() = maybeNullExpr(reason)
or
result =
any(ConditionalExpr ce |