summaryrefslogtreecommitdiff
path: root/test/files/presentation/doc/doc.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/presentation/doc/doc.scala')
-rwxr-xr-xtest/files/presentation/doc/doc.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/presentation/doc/doc.scala b/test/files/presentation/doc/doc.scala
index 475d92b861..21eabeb284 100755
--- a/test/files/presentation/doc/doc.scala
+++ b/test/files/presentation/doc/doc.scala
@@ -35,11 +35,17 @@ object Test extends InteractiveTest {
Test.this.settings
}
} with Global(settings, compilerReporter) with MemberLookupBase with CommentFactoryBase {
+ outer =>
+
val global: this.type = this
def chooseLink(links: List[LinkTo]): LinkTo = links.head
def internalLink(sym: Symbol, site: Symbol) = None
def toString(link: LinkTo) = link.toString
+ override lazy val analyzer = new {
+ val global: outer.type = outer
+ } with doc.ScaladocAnalyzer
+
def getComment(sym: Symbol, source: SourceFile) = {
val docResponse = new Response[(String, String, Position)]
askDocComment(sym, sym.owner, source, docResponse)