Python: extend aiohttp model

This commit is contained in:
Taus
2023-10-10 14:48:11 +00:00
committed by Rasmus Wriedt Larsen
parent b5bffb2220
commit aa3f1cf3e1
2 changed files with 8 additions and 0 deletions

View File

@@ -431,6 +431,12 @@ class AiochClient extends FindSubclassesSpec {
override API::Node getAlreadyModeledClass() { result = Aioch::Client::subclassRef() }
}
class AiohttpView extends FindSubclassesSpec {
AiohttpView() { this = "aiohttp.web.View~Subclass" }
override API::Node getAlreadyModeledClass() { result = AiohttpWebModel::View::subclassRef() }
}
bindingset[fullyQualified]
predicate fullyQualifiedToYamlFormat(string fullyQualified, string type2, string path) {
exists(int firstDot | firstDot = fullyQualified.indexOf(".", 0, 0) |