HEAD UPS! Global move: experiments -> kotlin-native

This commit is contained in:
Vasily Levchenko
2016-09-28 13:22:36 +03:00
parent 541f9ac1e7
commit 0eaaa58ed9
49 changed files with 1 additions and 1 deletions
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="KotlinJavaRuntime (3)" level="project" />
<orderEntry type="module" module-name="frontend" />
</component>
</module>
+11
View File
@@ -0,0 +1,11 @@
buildscript {
ext.kotlin_version = '1.0.3'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.0.3"
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
@@ -0,0 +1,19 @@
package org.jetbrains.kotlin.bc.analyze
import org.jetbrains.kotlin.analyzer.AnalysisResult
import org.jetbrains.kotlin.config.CompilerConfiguration
import org.jetbrains.kotlin.context.ModuleContext
import org.jetbrains.kotlin.psi.KtFile
import org.jetbrains.kotlin.resolve.BindingTrace
import kotlin.reflect.jvm.internal.impl.descriptors.PackagePartProvider
fun analyze(moduleContext: ModuleContext,
files:Collection<KtFile>,
trace:BindingTrace,
configuration: CompilerConfiguration,
packagePartProvider: PackagePartProvider) : AnalysisResult {
val bindingContext = trace.bindingContext
val module = moduleContext.module
return AnalysisResult.success(bindingContext, module)
}