Skip to content

Commit c0d9db1

Browse files
committed
Add comment
1 parent 53187ea commit c0d9db1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/src/dotty/tools/dotc/parsing/Scanners.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,9 @@ object Scanners {
13591359

13601360
case class InBraces(var width: IndentWidth | Null, outer: Region)
13611361
extends IndentSignificantRegion {
1362-
override def indentWidth =
1362+
// The indent width starts out as `null` when the opening brace is encountered
1363+
// It is then adjusted when the next token on a new line is encountered.
1364+
override def indentWidth: IndentWidth =
13631365
if width == null then IndentWidth.Zero else width
13641366
}
13651367

0 commit comments

Comments
 (0)