diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-10-13 20:14:45 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-10-13 20:14:45 +0400 |
commit | 1cb3af902c8f2e3f73e7c78781373f1ab5788772 (patch) | |
tree | 88aaa6a10f0da26d28e9c2792313a2a11cf28356 /src/Analysis/CompilerAPI.kt | |
parent | efd1947722587d15bf1c81a0fd7ca722a7bc6fa8 (diff) | |
download | dokka-1cb3af902c8f2e3f73e7c78781373f1ab5788772.tar.gz dokka-1cb3af902c8f2e3f73e7c78781373f1ab5788772.tar.bz2 dokka-1cb3af902c8f2e3f73e7c78781373f1ab5788772.zip |
Remove BindingContext and migrate to ResolveSession, discover symbols for {code ...} directive.
Diffstat (limited to 'src/Analysis/CompilerAPI.kt')
-rw-r--r-- | src/Analysis/CompilerAPI.kt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Analysis/CompilerAPI.kt b/src/Analysis/CompilerAPI.kt index 43d0304e..8216c549 100644 --- a/src/Analysis/CompilerAPI.kt +++ b/src/Analysis/CompilerAPI.kt @@ -46,8 +46,6 @@ fun JetCoreEnvironment.analyze(): ResolveSession { return resolverForProject.resolverForModule(module).lazyResolveSession } -fun BindingContext.getPackageFragment(file: JetFile): PackageFragmentDescriptor? = get(BindingContext.FILE_TO_PACKAGE_FRAGMENT, file) - fun DeclarationDescriptor.isUserCode() = when (this) { is PackageViewDescriptor -> false @@ -122,7 +120,7 @@ public fun getPropertyInnerScope(outerScope: JetScope, descriptor: PropertyDescr return propertyScope } -fun BindingContext.getResolutionScope(descriptor: DeclarationDescriptor): JetScope { +fun getResolutionScope(descriptor: DeclarationDescriptor): JetScope { when (descriptor) { is PackageFragmentDescriptor -> return getPackageInnerScope(descriptor) |