File tree Expand file tree Collapse file tree 1 file changed +19
-18
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +19
-18
lines changed Original file line number Diff line number Diff 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
849850end CheckUnused
You can’t perform that action at this time.
0 commit comments