File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
javascript/ql/src/LanguageFeatures Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,12 @@ class RootDestructuringPattern extends BindingPattern {
3535 /** Gets the first occurrence of the conflicting binding `name`. */
3636 VarDecl getFirstClobberedVarDecl ( string name ) {
3737 hasConflictingBindings ( name ) and
38- result = min ( VarDecl decl | decl = getABindingVarRef ( ) and decl .getName ( ) = name | decl order by decl .getLocation ( ) .getStartLine ( ) , decl .getLocation ( ) .getStartColumn ( ) )
38+ result =
39+ min ( VarDecl decl |
40+ decl = getABindingVarRef ( ) and decl .getName ( ) = name
41+ |
42+ decl order by decl .getLocation ( ) .getStartLine ( ) , decl .getLocation ( ) .getStartColumn ( )
43+ )
3944 }
4045
4146 /** Holds if variables in this pattern may resemble type annotations. */
5459 w = p .getABindingVarRef ( ) and
5560 w .getName ( ) = n and
5661 v != w and
57- if p .resemblesTypeAnnotation ( ) then
58- message = "The pattern variable '" + n + "' appears to be a type, but is a variable previously bound $@."
59- else
60- message = "Repeated binding of pattern variable '" + n + "' previously bound $@."
62+ if p .resemblesTypeAnnotation ( )
63+ then
64+ message =
65+ "The pattern variable '" + n +
66+ "' appears to be a type, but is a variable previously bound $@."
67+ else message = "Repeated binding of pattern variable '" + n + "' previously bound $@."
6168select w , message , v , "here"
You can’t perform that action at this time.
0 commit comments