From 92536168e9fda4005a8eff54e5ca72cc70fb32e4 Mon Sep 17 00:00:00 2001 From: Felix Mulder Date: Wed, 21 Sep 2016 15:02:30 +0200 Subject: Separate `ContextDocstrings` from `Context` and make it pluggable --- dottydoc/test/BaseTest.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dottydoc/test/BaseTest.scala') diff --git a/dottydoc/test/BaseTest.scala b/dottydoc/test/BaseTest.scala index 4dff1d4d1..dff112a7f 100644 --- a/dottydoc/test/BaseTest.scala +++ b/dottydoc/test/BaseTest.scala @@ -1,12 +1,12 @@ package dotty.tools package dottydoc -import dotc.core.Contexts -import Contexts.{ Context, ContextBase, FreshContext, DocContext, DocBase } +import dotc.core.Contexts.{ Context, ContextBase, FreshContext } +import dotc.core.Comments.{ ContextDoc, ContextDocstrings } import dotc.util.SourceFile import dotc.core.Phases.Phase import dotc.typer.FrontEnd -import dottydoc.core.DocASTPhase +import dottydoc.core.{ DocASTPhase, ContextDottydoc } import model.Package import dotty.tools.dottydoc.util.syntax._ @@ -20,7 +20,7 @@ trait DottyTest { ctx.setSetting(ctx.settings.language, List("Scala2")) ctx.setSetting(ctx.settings.YnoInline, true) ctx.setSetting(ctx.settings.YkeepComments, true) - ctx.setProperty(DocContext, new DocBase) + ctx.setProperty(ContextDoc, new ContextDottydoc) base.initialize()(ctx) ctx } -- cgit v1.2.3