Skip to content

Commit 549ab86

Browse files
committed
Fix some indentation.
1 parent 2d9ee2f commit 549ab86

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

compiler/src/dotty/tools/dotc/transform/CheckUnused.scala

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -833,23 +833,24 @@ object CheckUnused:
833833
end UnusedData
834834

835835
private object UnusedData:
836-
enum ScopeType:
837-
case Local
838-
case Template
839-
case ReplWrapper
840-
case Other
841-
842-
object ScopeType:
843-
/** return the scope corresponding to the enclosing scope of the given tree */
844-
def fromTree(tree: tpd.Tree)(using Context): ScopeType = tree match
845-
case tree: tpd.Template => if tree.symbol.name.isReplWrapperName then ReplWrapper else Template
846-
case _:tpd.Block => Local
847-
case _ => Other
848-
849-
case class UnusedSymbol(pos: SrcPos, name: Name, warnType: WarnTypes)
850-
/** A container for the results of the used elements analysis */
851-
case class UnusedResult(warnings: Set[UnusedSymbol])
852-
object UnusedResult:
853-
val Empty = UnusedResult(Set.empty)
836+
enum ScopeType:
837+
case Local
838+
case Template
839+
case ReplWrapper
840+
case Other
841+
842+
object ScopeType:
843+
/** return the scope corresponding to the enclosing scope of the given tree */
844+
def fromTree(tree: tpd.Tree)(using Context): ScopeType = tree match
845+
case tree: tpd.Template => if tree.symbol.name.isReplWrapperName then ReplWrapper else Template
846+
case _:tpd.Block => Local
847+
case _ => Other
848+
849+
case class UnusedSymbol(pos: SrcPos, name: Name, warnType: WarnTypes)
850+
/** A container for the results of the used elements analysis */
851+
case class UnusedResult(warnings: Set[UnusedSymbol])
852+
object UnusedResult:
853+
val Empty = UnusedResult(Set.empty)
854+
end UnusedData
854855

855856
end CheckUnused

0 commit comments

Comments
 (0)