[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

@ -2789,6 +2789,9 @@ impl SemanticSyntaxContext for SemanticIndexBuilder<'_, '_> {
fn in_loop_context(&self) -> bool {
self.current_scope_info().current_loop.is_some()
}
fn is_bound_parameter(&self, _name: &str) -> bool {
false
}
}
#[derive(Copy, Clone, Debug, PartialEq)]