File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
javascript/ql/src/semmle/javascript Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ class ArgumentsVariable extends Variable {
217217/** An identifier that refers to a variable, either in a declaration or in a variable access. */
218218class VarRef extends @varref, Identifier , BindingPattern , LexicalRef {
219219 /** Gets the variable this identifier refers to. */
220- Variable getVariable ( ) { none ( ) } // Overriden in VarAccess and VarDecl
220+ override Variable getVariable ( ) { none ( ) } // Overriden in VarAccess and VarDecl
221221
222222 override string getName ( ) { result = Identifier .super .getName ( ) }
223223
@@ -316,6 +316,9 @@ class BindingPattern extends @pattern, Expr {
316316 /** Gets the name of this binding pattern if it is an identifier. */
317317 string getName ( ) { none ( ) }
318318
319+ /** Gets the variable this binding pattern refers to if it is an identifier. */
320+ Variable getVariable ( ) { none ( ) }
321+
319322 /** Gets a variable reference in binding position within this pattern. */
320323 VarRef getABindingVarRef ( ) { none ( ) }
321324
You can’t perform that action at this time.
0 commit comments