diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-11 15:49:47 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-11 15:49:47 +0400 |
commit | ba96795f4eff615578f72c29a2f29b7111c8de8c (patch) | |
tree | 4f27da2a4160d2dc145489683c366c7ad7502d15 /src/CompilerAPI.kt | |
parent | bdbdbd8986c0b16da69a4beced3cfd274dfd9086 (diff) | |
download | dokka-ba96795f4eff615578f72c29a2f29b7111c8de8c.tar.gz dokka-ba96795f4eff615578f72c29a2f29b7111c8de8c.tar.bz2 dokka-ba96795f4eff615578f72c29a2f29b7111c8de8c.zip |
Improving API, setting up playground, preparing for processing data.
Diffstat (limited to 'src/CompilerAPI.kt')
-rw-r--r-- | src/CompilerAPI.kt | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/CompilerAPI.kt b/src/CompilerAPI.kt index b68c0354..756cd915 100644 --- a/src/CompilerAPI.kt +++ b/src/CompilerAPI.kt @@ -13,13 +13,6 @@ import org.jetbrains.jet.lang.resolve.* import org.jetbrains.jet.lang.psi.* import org.jetbrains.jet.analyzer.* -private fun getClasspath(paths: KotlinPaths): MutableList<File> { - val classpath = arrayListOf<File>() - classpath.addAll(PathUtil.getJdkClassesRoots()) - classpath.add(paths.getRuntimePath()) - return classpath -} - private fun getAnnotationsPath(paths: KotlinPaths, arguments: K2JVMCompilerArguments): MutableList<File> { val annotationsPath = arrayListOf<File>() annotationsPath.add(paths.getJdkAnnotationsPath()) @@ -55,4 +48,6 @@ private fun JetCoreEnvironment.analyze(messageCollector: MessageCollector): Bind return exhaust!!.getBindingContext() } -fun AnalyzerWithCompilerReport.analyzeAndReport(files: List<JetFile>, analyser: () -> AnalyzeExhaust) = analyzeAndReport(analyser, files)
\ No newline at end of file +fun AnalyzerWithCompilerReport.analyzeAndReport(files: List<JetFile>, analyser: () -> AnalyzeExhaust) = analyzeAndReport(analyser, files) + +fun BindingContext.getPackageFragment(file: JetFile) = get(BindingContext.FILE_TO_PACKAGE_FRAGMENT, file) |