@@ -783,7 +783,7 @@ object Parsers {
783
783
def functionRest (params : List [Tree ]): Tree =
784
784
atSpan(start, accept(ARROW )) {
785
785
val t = typ()
786
- if (imods.is(Implicit | Contextual | Erased )) new FunctionWithMods (params, t, imods)
786
+ if (imods.is(Implicit | Given | Erased )) new FunctionWithMods (params, t, imods)
787
787
else Function (params, t)
788
788
}
789
789
def funArgTypesRest (first : Tree , following : () => Tree ) = {
@@ -2090,7 +2090,7 @@ object Parsers {
2090
2090
2091
2091
// begin paramClause
2092
2092
inParens {
2093
- val isContextual = impliedMods.is(Contextual )
2093
+ val isContextual = impliedMods.is(Given )
2094
2094
if (in.token == RPAREN && ! prefix && ! isContextual) Nil
2095
2095
else {
2096
2096
def funArgMods (mods : Modifiers ): Modifiers =
@@ -2123,10 +2123,10 @@ object Parsers {
2123
2123
val initialMods =
2124
2124
if (in.token == GIVEN ) {
2125
2125
in.nextToken()
2126
- Modifiers (Contextual | Implicit )
2126
+ Modifiers (Given | Implicit )
2127
2127
}
2128
2128
else EmptyModifiers
2129
- val isContextual = initialMods.is(Contextual )
2129
+ val isContextual = initialMods.is(Given )
2130
2130
newLineOptWhenFollowedBy(LPAREN )
2131
2131
if (in.token == LPAREN ) {
2132
2132
if (ofInstance && ! isContextual)
@@ -2137,14 +2137,14 @@ object Parsers {
2137
2137
firstClause = firstClause,
2138
2138
initialMods = initialMods)
2139
2139
val lastClause =
2140
- params.nonEmpty && params.head.mods.flags.is(Implicit , butNot = Contextual )
2140
+ params.nonEmpty && params.head.mods.flags.is(Implicit , butNot = Given )
2141
2141
params :: (if (lastClause) Nil else recur(firstClause = false , nparams + params.length))
2142
2142
}
2143
2143
else if (isContextual) {
2144
2144
val tps = commaSeparated(refinedType)
2145
2145
var counter = nparams
2146
2146
def nextIdx = { counter += 1 ; counter }
2147
- val params = tps.map(makeSyntheticParameter(nextIdx, _, Contextual | Implicit ))
2147
+ val params = tps.map(makeSyntheticParameter(nextIdx, _, Given | Implicit ))
2148
2148
params :: recur(firstClause = false , nparams + params.length)
2149
2149
}
2150
2150
else Nil
@@ -2438,7 +2438,7 @@ object Parsers {
2438
2438
objectDef(start, posMods(start, mods | Case | Module ))
2439
2439
case ENUM =>
2440
2440
enumDef(start, mods, atSpan(in.skipToken()) { Mod .Enum () })
2441
- case INSTANCE =>
2441
+ case IMPLIED =>
2442
2442
instanceDef(start, mods, atSpan(in.skipToken()) { Mod .Instance () })
2443
2443
case _ =>
2444
2444
syntaxErrorOrIncomplete(ExpectedStartOfTopLevelDefinition ())
0 commit comments