Skip to content

Commit 5debb09

Browse files
committed
Explain isTyper field in Phase.
1 parent b37a2a8 commit 5debb09

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/dotty/tools/dotc/core/Phases.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,11 @@ object Phases {
291291
*/
292292
def relaxedTyping: Boolean = false
293293

294-
/** Overridden by FrontEnd */
294+
/** Is this phase the standard typerphase? True for FrontEnd, but
295+
* not for other first phases (such as FromTasty). The predicate
296+
* is tested in some places that perform checks and corrections. It's
297+
* different from isAfterTyper (and cheaper to test).
298+
*/
295299
def isTyper = false
296300

297301
def exists: Boolean = true

0 commit comments

Comments
 (0)