subcomponent.scala
来自「JAVA 语言的函数式编程扩展」· SCALA 代码 · 共 36 行
SCALA
36 行
/* NSC -- new Scala compiler * Copyright 2005-2007 LAMP/EPFL * @author Martin Odersky */// $Id: SubComponent.scala 13899 2008-02-06 13:55:18Z odersky $package scala.tools.nsc/** An nsc sub-component. * * @author Martin Odersky */abstract class SubComponent { /** The global environment; overridden by instantiation in Global. */ val global: Global /** The name of the phase */ val phaseName: String /** New flags defined by the phase which are not valid before */ def phaseNewFlags: Long = 0 /** The phase factory */ def newPhase(prev: Phase): Phase /** The phase defined by this subcomponent. Can be called only after phase is installed by newPhase. */// lazy val ownPhase: Phase = global.currentRun.phaseNamed(phaseName) /** A standard phase template */ abstract class StdPhase(prev: Phase) extends global.GlobalPhase(prev) { def name = phaseName override def newFlags = phaseNewFlags }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?