diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-10-20 12:53:17 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-10-20 12:53:17 +0200 |
commit | 8827d30048b9c50f47e62f69baf774363fdebc5d (patch) | |
tree | 9c683a39c053070f0907ff0e0ff1e68ae5b97518 /src/Analysis/AnalysisEnvironment.kt | |
parent | 75834b6ae1a719be0298cefe7420ee3f9b7cd2a1 (diff) | |
download | dokka-8827d30048b9c50f47e62f69baf774363fdebc5d.tar.gz dokka-8827d30048b9c50f47e62f69baf774363fdebc5d.tar.bz2 dokka-8827d30048b9c50f47e62f69baf774363fdebc5d.zip |
update Dokka to Kotlin 1.0-beta
Diffstat (limited to 'src/Analysis/AnalysisEnvironment.kt')
-rw-r--r-- | src/Analysis/AnalysisEnvironment.kt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Analysis/AnalysisEnvironment.kt b/src/Analysis/AnalysisEnvironment.kt index 4937bb89..561ac2f0 100644 --- a/src/Analysis/AnalysisEnvironment.kt +++ b/src/Analysis/AnalysisEnvironment.kt @@ -36,8 +36,8 @@ import org.jetbrains.kotlin.idea.caches.resolve.KotlinOutOfBlockCompletionModifi import org.jetbrains.kotlin.idea.caches.resolve.LibraryModificationTracker import org.jetbrains.kotlin.idea.resolve.ResolutionFacade import org.jetbrains.kotlin.name.Name -import org.jetbrains.kotlin.psi.JetDeclaration -import org.jetbrains.kotlin.psi.JetElement +import org.jetbrains.kotlin.psi.KtDeclaration +import org.jetbrains.kotlin.psi.KtElement import org.jetbrains.kotlin.resolve.BindingContext import org.jetbrains.kotlin.resolve.CompilerEnvironment import org.jetbrains.kotlin.resolve.jvm.JvmAnalyzerFacade @@ -91,6 +91,7 @@ public class AnalysisEnvironment(val messageCollector: MessageCollector, body: A override fun dependencies(): List<ModuleInfo> = listOf(this) } val resolverForProject = JvmAnalyzerFacade.setupResolverForProject( + "Dokka", projectContext, listOf(module), { ModuleContent(sourceFiles, GlobalSearchScope.allScope(environment.project)) }, @@ -166,11 +167,11 @@ class DokkaResolutionFacade(override val project: Project, override val moduleDescriptor: ModuleDescriptor, val resolverForModule: ResolverForModule) : ResolutionFacade { - override fun analyze(element: JetElement, bodyResolveMode: BodyResolveMode): BindingContext { + override fun analyze(element: KtElement, bodyResolveMode: BodyResolveMode): BindingContext { throw UnsupportedOperationException() } - override fun analyzeFullyAndGetResult(elements: Collection<JetElement>): AnalysisResult { + override fun analyzeFullyAndGetResult(elements: Collection<KtElement>): AnalysisResult { throw UnsupportedOperationException() } @@ -190,7 +191,7 @@ class DokkaResolutionFacade(override val project: Project, throw UnsupportedOperationException() } - override fun resolveToDescriptor(declaration: JetDeclaration): DeclarationDescriptor { + override fun resolveToDescriptor(declaration: KtDeclaration): DeclarationDescriptor { throw UnsupportedOperationException() } } |