Skip to content

Commit

Permalink
Refactor SymUtils
Browse files Browse the repository at this point in the history
 - Move to core package. It was for historical reasons in transform because
   it was originally intended as a collection of type operations that were
   were useful in transform phases. But it's now used from everywhere.
 - Make a base class of Types, so that it does not need to be imported explicitly.

Also: move isDerivedValueClass to SymUtils

[Cherry-picked 125321e][modified]
  • Loading branch information
WojciechMazur committed Jun 24, 2024
1 parent dbdaf17 commit 840dbb2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions compiler/src/dotty/tools/dotc/core/SymUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,6 @@ class SymUtils:
self.hasAnnotation(defn.ExperimentalAnnot)
|| isDefaultArgumentOfExperimentalMethod
|| (!self.is(Package) && self.owner.isInExperimentalScope)
|| self.topLevelClass.ownersIterator.exists(p =>
p.is(Package) && p.owner.isRoot && p.name == tpnme.dotty)

/** The declared self type of this class, as seen from `site`, stripping
* all refinements for opaque types.
Expand Down

0 comments on commit 840dbb2

Please sign in to comment.