org.jetbrains.kotlin.resolve
Interface BindingTrace

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

public interface BindingTrace
extends DiagnosticSink


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jetbrains.kotlin.diagnostics.DiagnosticSink
DiagnosticSink.CollectAll
 
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)
           
 JetType getType(JetExpression 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(JetExpression expression, JetType 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
JetType getType(@NotNull
                         JetExpression expression)
Expression type should be taken from EXPRESSION_TYPE_INFO slice


recordType

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