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 @@ -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
855856end CheckUnused
You can’t perform that action at this time.
0 commit comments