Add pragma noinline to fix uselessUpcast check

This commit is contained in:
Tamas Vajk
2021-08-10 13:24:30 +02:00
parent 91bd3d1a11
commit 51661bfa62

View File

@@ -313,6 +313,7 @@ class ExtensionMethod extends Method {
override predicate isStatic() { any() }
/** Gets the type being extended by this method. */
pragma[noinline]
Type getExtendedType() { result = getParameter(0).getType() }
override string getAPrimaryQlClass() { result = "ExtensionMethod" }