Rename API name predicate

This commit is contained in:
Benjamin Muskalla
2021-09-07 14:17:13 +02:00
parent 51475d2fb0
commit 22df141761
5 changed files with 7 additions and 7 deletions

View File

@@ -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)
}
/**

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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