@@ -783,7 +783,7 @@ object Parsers {
783783 def functionRest (params : List [Tree ]): Tree =
784784 atSpan(start, accept(ARROW )) {
785785 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)
787787 else Function (params, t)
788788 }
789789 def funArgTypesRest (first : Tree , following : () => Tree ) = {
@@ -2090,7 +2090,7 @@ object Parsers {
20902090
20912091 // begin paramClause
20922092 inParens {
2093- val isContextual = impliedMods.is(Contextual )
2093+ val isContextual = impliedMods.is(Given )
20942094 if (in.token == RPAREN && ! prefix && ! isContextual) Nil
20952095 else {
20962096 def funArgMods (mods : Modifiers ): Modifiers =
@@ -2123,10 +2123,10 @@ object Parsers {
21232123 val initialMods =
21242124 if (in.token == GIVEN ) {
21252125 in.nextToken()
2126- Modifiers (Contextual | Implicit )
2126+ Modifiers (Given | Implicit )
21272127 }
21282128 else EmptyModifiers
2129- val isContextual = initialMods.is(Contextual )
2129+ val isContextual = initialMods.is(Given )
21302130 newLineOptWhenFollowedBy(LPAREN )
21312131 if (in.token == LPAREN ) {
21322132 if (ofInstance && ! isContextual)
@@ -2137,14 +2137,14 @@ object Parsers {
21372137 firstClause = firstClause,
21382138 initialMods = initialMods)
21392139 val lastClause =
2140- params.nonEmpty && params.head.mods.flags.is(Implicit , butNot = Contextual )
2140+ params.nonEmpty && params.head.mods.flags.is(Implicit , butNot = Given )
21412141 params :: (if (lastClause) Nil else recur(firstClause = false , nparams + params.length))
21422142 }
21432143 else if (isContextual) {
21442144 val tps = commaSeparated(refinedType)
21452145 var counter = nparams
21462146 def nextIdx = { counter += 1 ; counter }
2147- val params = tps.map(makeSyntheticParameter(nextIdx, _, Contextual | Implicit ))
2147+ val params = tps.map(makeSyntheticParameter(nextIdx, _, Given | Implicit ))
21482148 params :: recur(firstClause = false , nparams + params.length)
21492149 }
21502150 else Nil
@@ -2438,7 +2438,7 @@ object Parsers {
24382438 objectDef(start, posMods(start, mods | Case | Module ))
24392439 case ENUM =>
24402440 enumDef(start, mods, atSpan(in.skipToken()) { Mod .Enum () })
2441- case INSTANCE =>
2441+ case IMPLIED =>
24422442 instanceDef(start, mods, atSpan(in.skipToken()) { Mod .Instance () })
24432443 case _ =>
24442444 syntaxErrorOrIncomplete(ExpectedStartOfTopLevelDefinition ())
0 commit comments