Skip to content

Commit 5ca3f18

Browse files
committed
Unified: Add a case for constructors in bindingContext
1 parent 1912c4a commit 5ca3f18

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎unified/ql/lib/codeql/unified/internal/LocalNameBinding.qll‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,12 @@ private module LocalNameBindingInput implements LocalNameBindingInputSig<Locatio
286286
declaration = decl
287287
)
288288
or
289+
exists(ConstructorDeclaration decl |
290+
getChild(scope, _) = decl and
291+
pattern = decl.getNameNode() and
292+
declaration = decl
293+
)
294+
or
289295
exists(ImportDeclaration imprt |
290296
getChild(scope, _) = imprt and
291297
pattern = imprt.getPattern() and

0 commit comments

Comments
 (0)