mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
C#: Use shared logic in NodeGraph.ql test
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,11 +1,9 @@
|
||||
/**
|
||||
* @kind graph
|
||||
*/
|
||||
|
||||
import csharp
|
||||
import Common
|
||||
import semmle.code.csharp.controlflow.internal.ControlFlowGraphImplShared::TestOutput
|
||||
|
||||
query predicate edges(
|
||||
SourceControlFlowNode node, SourceControlFlowNode successor, string attr, string val
|
||||
) {
|
||||
exists(ControlFlow::SuccessorType t | successor = node.getASuccessorByType(t) |
|
||||
attr = "semmle.label" and
|
||||
val = t.toString()
|
||||
)
|
||||
}
|
||||
private class MyRelevantNode extends RelevantNode, SourceControlFlowNode { }
|
||||
|
||||
Reference in New Issue
Block a user