mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
docs(traverse): correct code comment (#5604)
`name_is_unique` originally searched through references, but it doesn't any more, so this comment is outdated.
This commit is contained in:
parent
97e99bd167
commit
2e24a15075
1 changed files with 1 additions and 2 deletions
|
|
@ -178,8 +178,7 @@ impl TraverseScoping {
|
|||
///
|
||||
/// This function is fairly expensive, because it aims to replicate Babel's output.
|
||||
/// `name_is_unique` method below searches through every single binding in the entire program
|
||||
/// and does a string comparison on each. It also searches through every reference in entire program
|
||||
/// (though it will avoid string comparison on most of them).
|
||||
/// and does a string comparison on each.
|
||||
/// If the first name tried is already in use, it will repeat that entire search with a new name,
|
||||
/// potentially multiple times.
|
||||
///
|
||||
|
|
|
|||
Loading…
Reference in a new issue