diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2013-07-27 01:38:45 -0700 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2013-07-27 14:09:39 -0700 |
commit | e5121c888239b3a18ea7b341981d41bb4c9a1c07 (patch) | |
tree | baf179d23d2901cae7a9400307e623f0472c42bd /test | |
parent | ced7214959c05eb5fcf55b79f4a6691d2d8dc987 (diff) | |
download | scala-e5121c888239b3a18ea7b341981d41bb4c9a1c07.tar.gz scala-e5121c888239b3a18ea7b341981d41bb4c9a1c07.tar.bz2 scala-e5121c888239b3a18ea7b341981d41bb4c9a1c07.zip |
Remove dependency on typer phase in ClassfileParser.
ClassfileParser depends on forcing infos during typer phase.
It's not entirely clear why this is needed (git blame doesn't
help much) but I decided to preserve the logic.
Therefore, I introduced an abstract method called
`lookupMemberAtTyperPhaseIfPossible` which preserves the original
semantics but is implemented outside of ClassfileParser so the
ClassfileParser itself doesn't need to depend on typer phase and
phase mutation utilities.
I removed `loaders` override in `test/files/presentation/doc`.
I would have to update it to implement the
`lookupMemberAtTyperPhaseIfPossible` method. However, the override
doesn't seem to be doing anything useful so I just removed it.
Diffstat (limited to 'test')
-rwxr-xr-x | test/files/presentation/doc/doc.scala | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/files/presentation/doc/doc.scala b/test/files/presentation/doc/doc.scala index c884b6425b..f2233f1828 100755 --- a/test/files/presentation/doc/doc.scala +++ b/test/files/presentation/doc/doc.scala @@ -51,10 +51,6 @@ object Test extends InteractiveTest { new Typer(context) with InteractiveTyper with ScaladocTyper } - override lazy val loaders = new scala.tools.nsc.symtab.SymbolLoaders { - val global: outer.type = outer - } - def chooseLink(links: List[LinkTo]): LinkTo = links.head def internalLink(sym: Symbol, site: Symbol) = None def toString(link: LinkTo) = link.toString |