add Type to MkHasUnderlyingType

This commit is contained in:
Erik Krogh Kristensen
2021-03-18 15:16:31 +01:00
parent 8b931626ce
commit 7180a1ed52

View File

@@ -423,6 +423,8 @@ module API {
*/
MkHasUnderlyingType(string moduleName, string exportName) {
any(TypeAnnotation n).hasQualifiedName(moduleName, exportName)
or
any(Type t).hasUnderlyingType(moduleName, exportName)
} or
MkSyntheticCallbackArg(DataFlow::Node src, int bound, DataFlow::InvokeNode nd) {
trackUseNode(src, true, bound).flowsTo(nd.getCalleeNode())