mirror of
https://github.com/github/codeql.git
synced 2026-03-30 20:28:15 +02:00
Expand isTypeExprTopDown
We should be using all subtypes of `FieldBase`. This allows us to find more type expressions, and is also simpler to evaluate.
This commit is contained in:
@@ -2145,20 +2145,12 @@ private predicate isTypeExprTopDown(Expr e) {
|
||||
or
|
||||
e = any(ArrayTypeExpr ae).getElement()
|
||||
or
|
||||
e = any(FieldDecl f).getTypeExpr()
|
||||
or
|
||||
e = any(ParameterDecl pd).getTypeExpr()
|
||||
e = any(FieldBase fb).getTypeExpr()
|
||||
or
|
||||
e = any(TypeParamDecl tpd).getTypeConstraintExpr()
|
||||
or
|
||||
e = any(TypeParamDecl tpd).getNameExpr(_)
|
||||
or
|
||||
e = any(ReceiverDecl rd).getTypeExpr()
|
||||
or
|
||||
e = any(ResultVariableDecl rvd).getTypeExpr()
|
||||
or
|
||||
e = any(MethodSpec md).getTypeExpr()
|
||||
or
|
||||
e = any(MapTypeExpr mt).getKeyTypeExpr()
|
||||
or
|
||||
e = any(MapTypeExpr mt).getValueTypeExpr()
|
||||
|
||||
Reference in New Issue
Block a user