All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dotty.tools.dotc.ExpressionCompiler.scala Maven / Gradle / Ivy

package dotty.tools.dotc

import dotty.tools.dotc.core.Contexts.Context
import dotty.tools.dotc.core.Phases.Phase
import dotty.tools.dotc.evaluation.*

class ExpressionCompiler(using ExpressionContext)(using Context) extends Compiler:

  override protected def frontendPhases: List[List[Phase]] =
    val parser :: others = super.frontendPhases: @unchecked
    parser :: List(InsertExpression()) :: others

  override protected def picklerPhases: List[List[Phase]] =
    super.picklerPhases :+ List(ExtractExpression())

  override protected def transformPhases: List[List[Phase]] =
    super.transformPhases :+ List(ResolveReflectEval())




© 2015 - 2025 Weber Informatics LLC | Privacy Policy