Skip to content

Commit

Permalink
added some code which should always fail when testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ikuraj committed Aug 8, 2012
1 parent c6a1ce1 commit 47bdee4
Showing 1 changed file with 13 additions and 0 deletions.
Expand Up @@ -33,6 +33,7 @@ TODO:
*/


object InnerFinder extends ((ScalaCompilationUnit, Int) => java.util.List[ICompletionProposal]) with HasLogger {
def apply(scu: ScalaCompilationUnit, position: Int): java.util.List[ICompletionProposal] = {
import java.util.Collections.{ emptyList => javaEmptyList }
Expand Down Expand Up @@ -61,6 +62,18 @@ object InnerFinder extends ((ScalaCompilationUnit, Int) => java.util.List[ICompl
} // else builder is already prepared

compiler.askReload(scu, getNewContent(position, oldContent))

val response = new compiler.Response[compiler.Tree]
compiler.askType(sourceFile, false, response)
val typed = response.get

val tree = typed.fold(identity, throw _)

println("ivaaaaan1" + tree.symbol.info)
println("ivaaaaan2" + tree.symbol.info)
println("ivaaaaan2" + tree.symbol.info)
println("ivaaaaan3" + tree.symbol.rawInfo)


var results = List.empty[Output]
try {
Expand Down

0 comments on commit 47bdee4

Please sign in to comment.