BuiltInsReferenceResolver: cleanup and convert to service

This commit is contained in:
Dmitry Jemerov
2015-07-30 18:14:26 +02:00
parent 79bbb820bd
commit 1c3f30bd8e
5 changed files with 60 additions and 87 deletions
@@ -80,7 +80,7 @@ public fun closeAndDeleteProject(): Unit =
ApplicationManager.getApplication().runWriteAction() { LightPlatformTestCase.closeAndDeleteProject() }
public fun unInvalidateBuiltins(project: Project, runnable: RunnableWithException) {
val builtInsSources = project.getComponent<org.jetbrains.kotlin.idea.references.BuiltInsReferenceResolver>(javaClass<BuiltInsReferenceResolver>())!!.builtInsSources!!
val builtInsSources = BuiltInsReferenceResolver.getInstance(project).builtInsSources!!
runnable.run()