mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Rust: rename asFunction to getFunction
This commit is contained in:
@@ -5,7 +5,7 @@ import utils.test.InlineMadTest
|
||||
|
||||
module InlineMadTestConfig implements InlineMadTestConfigSig {
|
||||
string getCapturedModel(Function f) {
|
||||
exists(QualifiedCallable qc | f = qc.asFunction() | result = Heuristic::captureSink(qc))
|
||||
exists(QualifiedCallable qc | f = qc.getFunction() | result = Heuristic::captureSink(qc))
|
||||
}
|
||||
|
||||
string getKind() { result = "sink" }
|
||||
|
||||
@@ -6,7 +6,7 @@ import codeql.rust.dataflow.internal.ModelsAsData
|
||||
|
||||
module InlineMadTestConfig implements InlineMadTestConfigSig {
|
||||
string getCapturedModel(Function c) {
|
||||
exists(QualifiedCallable qc | c = qc.asFunction() | result = Heuristic::captureSource(qc))
|
||||
exists(QualifiedCallable qc | c = qc.getFunction() | result = Heuristic::captureSource(qc))
|
||||
}
|
||||
|
||||
string getKind() { result = "source" }
|
||||
|
||||
@@ -5,7 +5,7 @@ import utils.test.InlineMadTest
|
||||
|
||||
module InlineMadTestConfig implements InlineMadTestConfigSig {
|
||||
string getCapturedModel(Function f) {
|
||||
exists(QualifiedCallable qc | f = qc.asFunction() |
|
||||
exists(QualifiedCallable qc | f = qc.getFunction() |
|
||||
result = ContentSensitive::captureFlow(qc, _, _, _, _)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user