mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
C#: Address more review comments.
This commit is contained in:
@@ -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. */
|
||||
|
||||
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user