@@ -428,6 +428,32 @@ object Contexts {
428428 " Context(\n " +
429429 (outersIterator map ( ctx => s " owner = ${ctx.owner}, scope = ${ctx.scope}, import = ${iinfo(ctx)}" ) mkString " \n " )
430430 }
431+
432+ def typerPhase = base.typerPhase
433+ def sbtExtractDependenciesPhase = base.sbtExtractDependenciesPhase
434+ def picklerPhase = base.picklerPhase
435+ def refchecksPhase = base.refchecksPhase
436+ def patmatPhase = base.patmatPhase
437+ def elimRepeatedPhase = base.elimRepeatedPhase
438+ def extensionMethodsPhase = base.extensionMethodsPhase
439+ def explicitOuterPhase = base.explicitOuterPhase
440+ def gettersPhase = base.gettersPhase
441+ def erasurePhase = base.erasurePhase
442+ def elimErasedValueTypePhase = base.elimErasedValueTypePhase
443+ def lambdaLiftPhase = base.lambdaLiftPhase
444+ def flattenPhase = base.flattenPhase
445+ def genBCodePhase = base.genBCodePhase
446+ def phases = base.phases
447+
448+ def settings = base.settings
449+ def definitions = base.definitions
450+ def platform = base.platform
451+ def pendingUnderlying = base.pendingUnderlying
452+ def uniqueNamedTypes = base.uniqueNamedTypes
453+ def uniques = base.uniques
454+ def nextId = base.nextId
455+
456+ def initialize ()(implicit ctx : Context ) = base.initialize()(ctx)
431457 }
432458
433459 /** A condensed context provides only a small memory footprint over
@@ -520,7 +546,7 @@ object Contexts {
520546 /** A class defining the initial context with given context base
521547 * and set of possible settings.
522548 */
523- private class InitialContext (val base : ContextBase , settings : SettingGroup ) extends FreshContext {
549+ private class InitialContext (val base : ContextBase , settingsGroup : SettingGroup ) extends FreshContext {
524550 outer = NoContext
525551 period = InitialPeriod
526552 mode = Mode .None
@@ -529,7 +555,7 @@ object Contexts {
529555 tree = untpd.EmptyTree
530556 typeAssigner = TypeAssigner
531557 moreProperties = Map .empty
532- store = initialStore.updated(settingsStateLoc, settings .defaultState)
558+ store = initialStore.updated(settingsStateLoc, settingsGroup .defaultState)
533559 typeComparer = new TypeComparer (this )
534560 searchHistory = new SearchHistory (0 , Map ())
535561 gadt = EmptyGADTMap
@@ -684,17 +710,6 @@ object Contexts {
684710 else assert(thread == Thread .currentThread(), " illegal multithreaded access to ContextBase" )
685711 }
686712
687- object Context {
688-
689- /** Implicit conversion that injects all printer operations into a context */
690- implicit def toPrinter (ctx : Context ): Printer = ctx.printer
691-
692- /** implicit conversion that injects all ContextBase members into a context */
693- implicit def toBase (ctx : Context ): ContextBase = ctx.base
694-
695- // @sharable val theBase = new ContextBase // !!! DEBUG, so that we can use a minimal context for reporting even in code that normally cannot access a context
696- }
697-
698713 class GADTMap (initBounds : SimpleIdentityMap [Symbol , TypeBounds ]) extends util.DotClass {
699714 private [this ] var myBounds = initBounds
700715 def setBounds (sym : Symbol , b : TypeBounds ): Unit =
0 commit comments