File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
javascript/ql/src/semmle/javascript Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ class LocalVariable extends Variable {
322
322
* Gets the ___location of a declaration of this variable.
323
323
*
324
324
* If the variable has multiple declarations, an arbitrary one is used.
325
- * If it has no declaration, the ___location of its declaring scope is used.
325
+ * If it has no declaration, the entry point of its declaring container is used.
326
326
*/
327
327
Location getLocation ( ) {
328
328
result =
@@ -333,7 +333,7 @@ class LocalVariable extends Variable {
333
333
)
334
334
or
335
335
not exists ( getADeclaration ( ) ) and
336
- result = getDeclaringContainer ( ) .getLocation ( )
336
+ result = getDeclaringContainer ( ) .getEntry ( ) . getLocation ( )
337
337
}
338
338
}
339
339
You can’t perform that action at this time.
0 commit comments