Skip to content

Commit b23da16

Browse files
committed
Add a comment for the default value of the rename function.
1 parent 64319eb commit b23da16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/src/dotty/tools/dotc/core/Scopes.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ object Scopes {
160160

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

0 commit comments

Comments
 (0)