mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
Update javascript/ql/src/semmle/javascript/Variables.qll
Co-Authored-By: asger-semmle <42069257+asger-semmle@users.noreply.github.com>
This commit is contained in:
@@ -500,7 +500,7 @@ class VariableDeclarator extends Expr, @vardeclarator {
|
|||||||
/** Gets the expression specifying the initial value of the declared variable(s), if any. */
|
/** Gets the expression specifying the initial value of the declared variable(s), if any. */
|
||||||
Expr getInit() { result = this.getChildExpr(1) }
|
Expr getInit() { result = this.getChildExpr(1) }
|
||||||
|
|
||||||
/** Gets the TypeScript type annotation for the declared variable or binding pattern. */
|
/** Gets the type annotation for the declared variable or binding pattern. */
|
||||||
TypeAnnotation getTypeAnnotation() {
|
TypeAnnotation getTypeAnnotation() {
|
||||||
result = this.getChildTypeExpr(2)
|
result = this.getChildTypeExpr(2)
|
||||||
or
|
or
|
||||||
|
|||||||
Reference in New Issue
Block a user