Compile-time constants

This commit is contained in:
Andrey Breslav
2011-08-03 14:05:07 +04:00
parent 7b27ac1766
commit 4c8aec3b1b
91 changed files with 1271 additions and 331 deletions
@@ -6,10 +6,12 @@ import org.jetbrains.jet.lang.ErrorHandler;
import org.jetbrains.jet.lang.ErrorHandlerWithRegions;
import org.jetbrains.jet.lang.JetDiagnostic;
import org.jetbrains.jet.lang.descriptors.*;
import org.jetbrains.jet.lang.descriptors.annotations.AnnotationDescriptor;
import org.jetbrains.jet.lang.psi.*;
import org.jetbrains.jet.lang.resolve.BindingContext;
import org.jetbrains.jet.lang.resolve.BindingTrace;
import org.jetbrains.jet.lang.resolve.JetScope;
import org.jetbrains.jet.lang.resolve.constants.CompileTimeConstant;
import org.jetbrains.jet.lang.types.JetType;
import java.util.Collection;
@@ -45,6 +47,16 @@ public class JetTestUtils {
public void recordTypeResolution(@NotNull JetTypeReference typeReference, @NotNull JetType type) {
}
@Override
public void recordAnnotationResolution(@NotNull JetAnnotationEntry annotationEntry, @NotNull AnnotationDescriptor annotationDescriptor) {
}
@Override
public void recordCompileTimeValue(@NotNull JetExpression expression, @NotNull CompileTimeConstant<?> value) {
}
@Override
public void recordBlock(JetFunctionLiteralExpression expression) {
}
@@ -130,6 +142,16 @@ public class JetTestUtils {
throw new UnsupportedOperationException(); // TODO
}
@Override
public AnnotationDescriptor getAnnotationDescriptor(JetAnnotationEntry annotationEntry) {
throw new UnsupportedOperationException(); // TODO
}
@Override
public CompileTimeConstant<?> getCompileTimeValue(JetExpression expression) {
throw new UnsupportedOperationException(); // TODO
}
@Override
public VariableDescriptor getVariableDescriptor(JetProperty declaration) {
throw new UnsupportedOperationException(); // TODO