mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +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. */
|
||||
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() {
|
||||
result = this.getChildTypeExpr(2)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user