mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Add pragma noinline to fix uselessUpcast check
This commit is contained in:
@@ -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" }
|
||||
|
||||
Reference in New Issue
Block a user