mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Rename API name predicate
This commit is contained in:
@@ -29,10 +29,10 @@ class ExternalAPI extends Callable {
|
||||
/**
|
||||
* Gets information about the external API in the form expected by the CSV modeling framework.
|
||||
*/
|
||||
string asHumanReadbleString(ExternalAPI api) {
|
||||
string getApiName() {
|
||||
result =
|
||||
api.getDeclaringType().getPackage() + "." + api.getDeclaringType().getSourceDeclaration() +
|
||||
"#" + api.getName() + paramsString(api)
|
||||
this.getDeclaringType().getPackage() + "." + this.getDeclaringType().getSourceDeclaration() +
|
||||
"#" + this.getName() + paramsString(this)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -19,4 +19,4 @@ where
|
||||
c.getCallee().getSourceDeclaration() = api and
|
||||
not c.getFile() instanceof GeneratedFile
|
||||
)
|
||||
select api.asHumanReadbleString(api) as apiname, usages order by usages desc
|
||||
select api.getApiName() as apiname, usages order by usages desc
|
||||
|
||||
@@ -19,4 +19,4 @@ where
|
||||
c.getCallee().getSourceDeclaration() = api and
|
||||
not c.getFile() instanceof GeneratedFile
|
||||
)
|
||||
select api.asHumanReadbleString(api) as apiname, usages order by usages desc
|
||||
select api.getApiName() as apiname, usages order by usages desc
|
||||
|
||||
@@ -19,4 +19,4 @@ where
|
||||
c.getCallee().getSourceDeclaration() = api and
|
||||
not c.getFile() instanceof GeneratedFile
|
||||
)
|
||||
select api.asHumanReadbleString(api) as apiname, usages order by usages desc
|
||||
select api.getApiName() as apiname, usages order by usages desc
|
||||
|
||||
@@ -19,4 +19,4 @@ where
|
||||
c.getCallee().getSourceDeclaration() = api and
|
||||
not c.getFile() instanceof GeneratedFile
|
||||
)
|
||||
select api.asHumanReadbleString(api) as apiname, usages order by usages desc
|
||||
select api.getApiName() as apiname, usages order by usages desc
|
||||
|
||||
Reference in New Issue
Block a user