org.jetbrains.kotlin.resolve
Interface BindingTrace

All Superinterfaces:
DiagnosticSink
All Known Implementing Classes:
BindingTraceContext, ChainedTemporaryBindingTrace, DelegatingBindingTrace, ObservableBindingTrace, TemporaryBindingTrace

public interface BindingTrace
extends DiagnosticSink


Field Summary
 
Fields inherited from interface org.jetbrains.kotlin.diagnostics.DiagnosticSink
DO_NOTHING, THROW_EXCEPTION
 
Method Summary
<K,V> V
get(ReadOnlySlice<K,V> slice, K key)
           
 BindingContext getBindingContext()
           
<K,V> java.util.Collection<K>
getKeys(WritableSlice<K,V> slice)
           
 KotlinType getType(KtExpression expression)
          Expression type should be taken from EXPRESSION_TYPE_INFO slice
<K> void
record(WritableSlice<K,java.lang.Boolean> slice, K key)
           
<K,V> void
record(WritableSlice<K,V> slice, K key, V value)
           
 void recordType(KtExpression expression, KotlinType type)
          Expression type should be recorded into EXPRESSION_TYPE_INFO slice (either updated old or a new one)
 
Methods inherited from interface org.jetbrains.kotlin.diagnostics.DiagnosticSink
report
 

Method Detail

getBindingContext

@NotNull
BindingContext getBindingContext()

record

<K,V> void record(WritableSlice<K,V> slice,
                  K key,
                  V value)

record

<K> void record(WritableSlice<K,java.lang.Boolean> slice,
                K key)

get

@Nullable
<K,V> V get(ReadOnlySlice<K,V> slice,
                     K key)

getKeys

@NotNull
<K,V> java.util.Collection<K> getKeys(WritableSlice<K,V> slice)

getType

@Nullable
KotlinType getType(@NotNull
                            KtExpression expression)
Expression type should be taken from EXPRESSION_TYPE_INFO slice


recordType

void recordType(@NotNull
                KtExpression expression,
                @Nullable
                KotlinType type)
Expression type should be recorded into EXPRESSION_TYPE_INFO slice (either updated old or a new one)