getValueParameters() removed from ScriptDescriptor

This commit is contained in:
Andrey Breslav
2014-03-27 14:47:38 +04:00
parent 04f21eee50
commit bbf9523c04
4 changed files with 6 additions and 16 deletions
@@ -21,17 +21,12 @@ import org.jetbrains.jet.lang.descriptors.annotations.Annotated;
import org.jetbrains.jet.lang.descriptors.impl.ScriptCodeDescriptor;
import org.jetbrains.jet.lang.resolve.name.Name;
import java.util.List;
public interface ScriptDescriptor extends Annotated, DeclarationDescriptor, DeclarationDescriptorNonRoot {
String LAST_EXPRESSION_VALUE_FIELD_NAME = "rv";
Name NAME = Name.special("<script>");
int getPriority();
@NotNull
List<ValueParameterDescriptor> getValueParameters();
@NotNull
ScriptCodeDescriptor getScriptCodeDescriptor();
@@ -74,6 +74,7 @@ public class ScriptDescriptorImpl extends DeclarationDescriptorNonRootImpl imple
@NotNull List<? extends PropertyDescriptorImpl> properties,
@NotNull List<? extends FunctionDescriptor> functions
) {
assert valueParameters != null : "setValueParameters() must be called before this method";
scriptCodeDescriptor.initialize(implicitReceiver, valueParameters, returnType);
PropertyDescriptorImpl propertyDescriptor = PropertyDescriptorImpl.create(classDescriptor,
@@ -120,12 +121,6 @@ public class ScriptDescriptorImpl extends DeclarationDescriptorNonRootImpl imple
return priority;
}
@Override
@NotNull
public List<ValueParameterDescriptor> getValueParameters() {
return valueParameters;
}
@Override
@NotNull
public ScriptCodeDescriptor getScriptCodeDescriptor() {