Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e70f17f

Browse files
committed
C#: Remove uses of deprecated ControlFlowGraph module
1 parent 03cf8ef commit e70f17f

4 files changed

Lines changed: 2 additions & 5 deletions

File tree

csharp/ql/src/semmle/code/csharp/controlflow/ControlFlowElement.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ class ControlFlowElement extends ExprOrStmtParent, @control_flow_element {
3737
* Gets a first control flow node executed within this element.
3838
*/
3939
Node getAControlFlowEntryNode() {
40-
result = ControlFlowGraph::Internal::getAControlFlowEntryNode(this).getAControlFlowNode()
40+
result = Internal::getAControlFlowEntryNode(this).getAControlFlowNode()
4141
}
4242

4343
/**
4444
* Gets a potential last control flow node executed within this element.
4545
*/
4646
Node getAControlFlowExitNode() {
47-
result = ControlFlowGraph::Internal::getAControlFlowExitNode(this).getAControlFlowNode()
47+
result = Internal::getAControlFlowExitNode(this).getAControlFlowNode()
4848
}
4949

5050
/**

csharp/ql/test/library-tests/csharp8/NullCoalescingControlFlow.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import csharp
2-
import semmle.code.csharp.controlflow.ControlFlowGraph
32

43
query predicate edges(ControlFlow::Node node1, ControlFlow::Node node2, string label, string value) {
54
label = "semmle.label" and

csharp/ql/test/library-tests/csharp8/UsingControlFlow.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import csharp
2-
import semmle.code.csharp.controlflow.ControlFlowGraph
32

43
query predicate edges(ControlFlow::Node node1, ControlFlow::Node node2, string label, string value) {
54
label = "semmle.label" and

csharp/ql/test/library-tests/standalone/controlflow/cfg.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import csharp
2-
import semmle.code.csharp.controlflow.ControlFlowGraph
32

43
/**
54
* A method call where the target is unknown.

0 commit comments

Comments
 (0)