mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Shared: Do not use @kind graph for CFG test output
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,20 +1,8 @@
|
||||
/**
|
||||
* @kind graph
|
||||
*/
|
||||
|
||||
import swift
|
||||
import codeql.swift.controlflow.ControlFlowGraph
|
||||
|
||||
class MyRelevantNode extends ControlFlowNode {
|
||||
MyRelevantNode() { this.getScope().getLocation().getFile().getName().matches("%swift/ql/test%") }
|
||||
|
||||
private AstNode asAstNode() { result = this.getAstNode().asAstNode() }
|
||||
|
||||
string getOrderDisambiguation() {
|
||||
result = concat([this.asAstNode().getAPrimaryQlClass(), this.asAstNode().toString()], ",")
|
||||
or
|
||||
not exists(this.asAstNode()) and result = ""
|
||||
}
|
||||
}
|
||||
|
||||
import codeql.swift.controlflow.internal.ControlFlowGraphImpl::TestOutput<MyRelevantNode>
|
||||
|
||||
Reference in New Issue
Block a user