mirror of
https://github.com/github/codeql.git
synced 2026-04-22 23:35:14 +02:00
Java: Replace ControlFlowNode.asCall with Call.getControlFlowNode.
This commit is contained in:
@@ -960,6 +960,9 @@ class ThisConstructorInvocationStmt extends Stmt, ConstructorCall, @constructori
|
||||
/** Gets the immediately enclosing statement of this constructor invocation. */
|
||||
override Stmt getEnclosingStmt() { result = this }
|
||||
|
||||
/** Gets the `ControlFlowNode` corresponding to this call. */
|
||||
override ControlFlowNode getControlFlowNode() { result = Stmt.super.getControlFlowNode() }
|
||||
|
||||
override string pp() { result = "this(...)" }
|
||||
|
||||
override string toString() { result = "this(...)" }
|
||||
@@ -1001,6 +1004,9 @@ class SuperConstructorInvocationStmt extends Stmt, ConstructorCall, @superconstr
|
||||
/** Gets the immediately enclosing statement of this constructor invocation. */
|
||||
override Stmt getEnclosingStmt() { result = this }
|
||||
|
||||
/** Gets the `ControlFlowNode` corresponding to this call. */
|
||||
override ControlFlowNode getControlFlowNode() { result = Stmt.super.getControlFlowNode() }
|
||||
|
||||
override string pp() { result = "super(...)" }
|
||||
|
||||
override string toString() { result = "super(...)" }
|
||||
|
||||
Reference in New Issue
Block a user