create StringValue only for primitive compile time values

This commit is contained in:
Natalia Ukhorskaya
2013-11-22 16:07:21 +04:00
parent 9593edc6e7
commit e6923ba29e
5 changed files with 142 additions and 3 deletions
@@ -46,7 +46,7 @@ public abstract class AbstractAnnotationDescriptorResolveTest extends JetLiteFix
private static final FqName NAMESPACE = new FqName("test");
private BindingContext context;
protected BindingContext context;
@Override
protected JetCoreEnvironment createEnvironment() {
@@ -115,7 +115,7 @@ public abstract class AbstractAnnotationDescriptorResolveTest extends JetLiteFix
}
@NotNull
private static PropertyDescriptor getPropertyDescriptor(@NotNull NamespaceDescriptor namespaceDescriptor, @NotNull String name) {
protected static PropertyDescriptor getPropertyDescriptor(@NotNull NamespaceDescriptor namespaceDescriptor, @NotNull String name) {
Name propertyName = Name.identifier(name);
JetScope memberScope = namespaceDescriptor.getMemberScope();
Collection<VariableDescriptor> properties = memberScope.getProperties(propertyName);