-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12971 from dotty-staging/add-rechecker
Add recheck phase
- Loading branch information
Showing
18 changed files
with
446 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package dotty.tools.dotc | ||
package transform | ||
|
||
import core.Phases.Phase | ||
import core.DenotTransformers.IdentityDenotTransformer | ||
import core.Contexts.{Context, ctx} | ||
|
||
/** A phase that precedes the rechecker and that allows installing | ||
* new types for local symbols. | ||
*/ | ||
class PreRecheck extends Phase, IdentityDenotTransformer: | ||
|
||
def phaseName: String = "preRecheck" | ||
|
||
override def isEnabled(using Context) = next.isEnabled | ||
|
||
override def changesBaseTypes: Boolean = true | ||
|
||
def run(using Context): Unit = () | ||
|
||
override def isCheckable = false |
Oops, something went wrong.