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

Co-Authored-By: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
Asger F
2020-04-14 14:40:21 +01:00
committed by GitHub
parent 3515a2b412
commit c178eecd43

View File

@@ -321,8 +321,8 @@ class LocalVariable extends Variable {
/**
* Gets the location of a declaration of this variable.
*
* If the variable has multiple declarations, an arbitrary one is used.
* 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.
*/
Location getLocation() {
result =