Update go/ql/lib/semmle/go/frameworks/GoMicro.qll

Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com>
This commit is contained in:
Mathew Payne
2023-07-12 12:59:45 +01:00
committed by GitHub
parent 7f6067de42
commit e951720573

View File

@@ -86,12 +86,9 @@ module GoMicro {
*/
class ClientServiceType extends NamedType {
ClientServiceType() {
exists(ServiceInterfaceType i, TypeEntity te |
this.implements(i) and
this.getName().regexpMatch("(?i).*Service") and
te.getType() = this and
te.getDeclaration().getLocation().getFile() instanceof ProtocGeneratedFile
)
this.implements(any(ServiceInterfaceType i)) and
this.getName().regexpMatch("(?i).*Service") and
this.hasLocationInfo(any(ProtocGeneratedFile f).getAbsolutePath(), _, _, _, _)
}
}