Skip to content

Commit 0c1f090

Browse files
committed
Fix some indentation.
1 parent 803dff7 commit 0c1f090

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

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

+19-18
Original file line numberDiff line numberDiff line change
@@ -827,23 +827,24 @@ object CheckUnused:
827827
end UnusedData
828828

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

849850
end CheckUnused

0 commit comments

Comments
 (0)