Skip to content

Commit c178eec

Browse files
asgerferik-krogh
andauthored
Update javascript/ql/src/semmle/javascript/Variables.qll
Co-Authored-By: Erik Krogh Kristensen <[email protected]>
1 parent 3515a2b commit c178eec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/src/semmle/javascript/Variables.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ class LocalVariable extends Variable {
321321
/**
322322
* Gets the location of a declaration of this variable.
323323
*
324-
* If the variable has multiple declarations, an arbitrary one is used.
325-
* If it has no declaration, the entry point of its declaring container is used.
324+
* If the variable has one or more declarations, the location of the first declaration is used.
325+
* If the variable has no declaration, the entry point of its declaring container is used.
326326
*/
327327
Location getLocation() {
328328
result =

0 commit comments

Comments
 (0)