mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Merge pull request #1462 from hvitved/csharp/controlflowgraph-depr
C#: Remove uses of deprecated `ControlFlowGraph` module
This commit is contained in:
@@ -37,14 +37,14 @@ class ControlFlowElement extends ExprOrStmtParent, @control_flow_element {
|
||||
* Gets a first control flow node executed within this element.
|
||||
*/
|
||||
Node getAControlFlowEntryNode() {
|
||||
result = ControlFlowGraph::Internal::getAControlFlowEntryNode(this).getAControlFlowNode()
|
||||
result = Internal::getAControlFlowEntryNode(this).getAControlFlowNode()
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a potential last control flow node executed within this element.
|
||||
*/
|
||||
Node getAControlFlowExitNode() {
|
||||
result = ControlFlowGraph::Internal::getAControlFlowExitNode(this).getAControlFlowNode()
|
||||
result = Internal::getAControlFlowExitNode(this).getAControlFlowNode()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import csharp
|
||||
import semmle.code.csharp.controlflow.ControlFlowGraph
|
||||
|
||||
query predicate edges(ControlFlow::Node node1, ControlFlow::Node node2, string label, string value) {
|
||||
label = "semmle.label" and
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import csharp
|
||||
import semmle.code.csharp.controlflow.ControlFlowGraph
|
||||
|
||||
query predicate edges(ControlFlow::Node node1, ControlFlow::Node node2, string label, string value) {
|
||||
label = "semmle.label" and
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import csharp
|
||||
import semmle.code.csharp.controlflow.ControlFlowGraph
|
||||
|
||||
/**
|
||||
* A method call where the target is unknown.
|
||||
|
||||
Reference in New Issue
Block a user