HEAD UPS! Global move: experiments -> kotlin-native
This commit is contained in:
@@ -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>
|
||||
@@ -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'
|
||||
+19
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user