-
-
Notifications
You must be signed in to change notification settings - Fork 755
fix(semantic): define a variable in a function expression whose name is the same as the function name which is considered a redeclaration #10077
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
graphite-app
merged 1 commit into
main
from
03-27-fix_semantic_define_a_variable_in_a_function_expression_whose_name_is_the_same_as_the_function_name_which_is_considered_a_redeclaration
Mar 28, 2025
Merged
fix(semantic): define a variable in a function expression whose name is the same as the function name which is considered a redeclaration #10077
graphite-app
merged 1 commit into
main
from
03-27-fix_semantic_define_a_variable_in_a_function_expression_whose_name_is_the_same_as_the_function_name_which_is_considered_a_redeclaration
Mar 28, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Mar 27, 2025
Member
Author
abe9931 to
fd0b8eb
Compare
CodSpeed Instrumentation Performance ReportMerging #10077 will create unknown performance changesComparing Summary
Benchmarks breakdown
|
Contributor
Merge activity
|
…is the same as the function name which is considered a redeclaration (#10077) ```js (function n(n) {})() ``` The function `n` symbol will insert into the function itself scope, which causes param `n` to be considered a redeclaration, but it is not.
9e5ecec to
cd1f035
Compare
fd0b8eb to
6687f5b
Compare
Base automatically changed from
03-26-refactor_semantic_store_symbol_information_as_the_first_entry_in_symbol_declarations_when_it_is_redeclared
to
main
March 28, 2025 04:28
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

The function
nsymbol will insert into the function itself scope, which causes paramnto be considered a redeclaration, but it is not.