@@ -3079,35 +3079,13 @@ object Parsers {
3079
3079
3080
3080
/* -------- PARAMETERS ------------------------------------------- */
3081
3081
3082
- /** DefParamClause ::= DefTypeParamClause
3083
- * | DefTermParamClause
3084
- * | UsingParamClause
3085
- */
3086
- def typeOrTermParamClause (
3087
- ownerKind : ParamOwner ,
3088
- nparams : Int , // number of parameters preceding this clause
3089
- ofClass : Boolean = false , // owner is a class
3090
- ofCaseClass : Boolean = false , // owner is a case class
3091
- prefix : Boolean = false , // clause precedes name of an extension method
3092
- givenOnly : Boolean = false , // only given parameters allowed
3093
- firstClause : Boolean = false // clause is the first in regular list of clauses
3094
- ): List [TypeDef ] | List [ValDef ] =
3095
- if (in.token == LPAREN )
3096
- termParamClause(nparams, ofClass, ofCaseClass, prefix, givenOnly, firstClause)
3097
- else if (in.token == LBRACKET )
3098
- typeParamClause(ownerKind)
3099
- else
3100
- Nil
3101
-
3102
- end typeOrTermParamClause
3103
-
3104
3082
/** DefParamClauses ::= DefParamClause { DefParamClause } -- and two DefTypeParamClause cannot be adjacent
3083
+ * DefParamClause ::= DefTypeParamClause
3084
+ * | DefTermParamClause
3085
+ * | UsingParamClause
3105
3086
*/
3106
3087
def typeOrTermParamClauses (
3107
3088
ownerKind : ParamOwner ,
3108
- ofClass : Boolean = false ,
3109
- ofCaseClass : Boolean = false ,
3110
- givenOnly : Boolean = false ,
3111
3089
numLeadParams : Int = 0
3112
3090
): List [List [TypeDef ] | List [ValDef ]] =
3113
3091
@@ -3118,9 +3096,6 @@ object Parsers {
3118
3096
val paramsStart = in.offset
3119
3097
val params = termParamClause(
3120
3098
numLeadParams,
3121
- ofClass = ofClass,
3122
- ofCaseClass = ofCaseClass,
3123
- givenOnly = givenOnly,
3124
3099
firstClause = firstClause)
3125
3100
val lastClause = params.nonEmpty && params.head.mods.flags.is(Implicit )
3126
3101
params :: (
0 commit comments