Skip to content

Commit

Permalink
Add a comment for the default value of the rename function.
Browse files Browse the repository at this point in the history
[Cherry-picked b23da16]
  • Loading branch information
noti0na1 authored and WojciechMazur committed Jun 28, 2024
1 parent 989cf1b commit 2c8480d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/src/dotty/tools/dotc/core/Scopes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ object Scopes {

/** The scope that keeps only those symbols from this scope that match the
* given predicates, renamed with the given rename function.
* If renaming is not needed for a symbol, the rename function should return `null`.
* If all symbols match and none are renamed, returns the scope itself, otherwise
* a copy with the matching and renamed symbols.
*/
Expand Down

0 comments on commit 2c8480d

Please sign in to comment.