package com.redhat.ceylon.compiler.typechecker.model;

import java.util.ArrayList;
import java.util.List;

public class ParameterList {
    
    private List<Parameter> parameters = new ArrayList<Parameter>(2);
    private boolean supportsNamedParameters = true;
    private boolean first;
    
    public List<Parameter> getParameters() {
        return parameters;
    }
    
    @Override
    public String toString() {
        return "ParameterList" + parameters.toString();
    }

    public boolean isNamedParametersSupported() {
        return supportsNamedParameters;
    }

    public void setNamedParametersSupported(boolean supportsNamedParameters) {
        this.supportsNamedParameters = supportsNamedParameters;
    }
    
    public boolean hasSequencedParameter() {
        return !parameters.isEmpty() && 
                parameters.get(parameters.size()-1).isSequenced();
    }
    
    public boolean isFirst() {
		return first;
	}
    
    public void setFirst(boolean first) {
		this.first = first;
	}
    
}

@@ -256,16 +256,73 @@
 = true;%0A
+    private boolean supportsPositionalParameters = true;%0A
     priv
@@ -779,32 +779,309 @@
 ers;%0A    %7D%0A    %0A
+    public boolean isPositionalParametersSupported() %7B%0A        return supportsPositionalParameters;%0A    %7D%0A%0A    public void setPositionalParametersSupported(boolean supportsPositionalParameters) %7B%0A        this.supportsPositionalParameters = supportsPositionalParameters;%0A    %7D%0A%0A
     public boole

Add ParameterList.isPositionalParametersSupported() in aid of #1123