[syntax-errors] Name is parameter and global (#20426)

## Summary

<!-- What's the purpose of the change? What does it do, and why? -->
This PR implements a new semantic syntax error where name is parameter &
global.

## Test Plan

<!-- How was it tested? -->
I have written inline test as directed in #17412

---------

Signed-off-by: 11happy <soni5happy@gmail.com>
Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
This commit is contained in:
Bhuminjay Soni 2025-10-21 22:21:16 +05:30 committed by GitHub
parent e1cada1ec3
commit 3dd78e711e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 143 additions and 0 deletions

View file

@ -575,6 +575,10 @@ impl SemanticSyntaxContext for SemanticSyntaxCheckerVisitor<'_> {
fn in_loop_context(&self) -> bool {
true
}
fn is_bound_parameter(&self, _name: &str) -> bool {
false
}
}
impl Visitor<'_> for SemanticSyntaxCheckerVisitor<'_> {