We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3515a2b commit c178eecCopy full SHA for c178eec
javascript/ql/src/semmle/javascript/Variables.qll
@@ -321,8 +321,8 @@ class LocalVariable extends Variable {
321
/**
322
* Gets the location of a declaration of this variable.
323
*
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.
+ * If the variable has one or more declarations, the location of the first declaration is used.
+ * If the variable has no declaration, the entry point of its declaring container is used.
326
*/
327
Location getLocation() {
328
result =
0 commit comments