File tree 1 file changed +19
-18
lines changed
compiler/src/dotty/tools/dotc/transform
1 file changed +19
-18
lines changed Original file line number Diff line number Diff line change @@ -833,23 +833,24 @@ object CheckUnused:
833
833
end UnusedData
834
834
835
835
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
854
855
855
856
end CheckUnused
You can’t perform that action at this time.
0 commit comments