Add expression type string to the REPL API

PR-1131
This commit is contained in:
vitaly.khudobakhshov
2017-06-09 15:21:55 +02:00
committed by Ilya Chernikov
parent 8783f7a94e
commit d165ea9ea7
4 changed files with 25 additions and 8 deletions
@@ -16,11 +16,9 @@
package org.jetbrains.kotlin.types.expressions.typeInfoFactory
import org.jetbrains.kotlin.psi.KtExpression
import org.jetbrains.kotlin.resolve.calls.context.ResolutionContext
import org.jetbrains.kotlin.resolve.calls.smartcasts.DataFlowInfo
import org.jetbrains.kotlin.types.KotlinType
import org.jetbrains.kotlin.types.expressions.DataFlowAnalyzer
import org.jetbrains.kotlin.types.expressions.KotlinTypeInfo
/*
@@ -38,4 +36,4 @@ fun createTypeInfo(type: KotlinType?, context: ResolutionContext<*>): KotlinType
fun noTypeInfo(dataFlowInfo: DataFlowInfo): KotlinTypeInfo = createTypeInfo(null, dataFlowInfo)
fun noTypeInfo(context: ResolutionContext<*>): KotlinTypeInfo = noTypeInfo(context.dataFlowInfo)
fun noTypeInfo(context: ResolutionContext<*>): KotlinTypeInfo = noTypeInfo(context.dataFlowInfo)