mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
JS: Allow PropAccess when guessing name
This commit is contained in:
@@ -229,7 +229,7 @@ class ClassExpr extends @classexpr, ClassDefinition, Expr {
|
||||
result = p.getName()
|
||||
)
|
||||
or
|
||||
exists(AssignExpr assign, DotExpr prop |
|
||||
exists(AssignExpr assign, PropAccess prop |
|
||||
this = assign.getRhs().getUnderlyingValue() and
|
||||
prop = assign.getLhs() and
|
||||
result = prop.getPropertyName()
|
||||
|
||||
@@ -67,7 +67,7 @@ class Function extends @function, Parameterized, TypeParameterized, StmtContaine
|
||||
result = p.getName()
|
||||
)
|
||||
or
|
||||
exists(AssignExpr assign, DotExpr prop |
|
||||
exists(AssignExpr assign, PropAccess prop |
|
||||
this = assign.getRhs().getUnderlyingValue() and
|
||||
prop = assign.getLhs() and
|
||||
result = prop.getPropertyName()
|
||||
|
||||
Reference in New Issue
Block a user