@@ -701,10 +701,10 @@ self =>
701701 tree match {
702702 case Ident (name) =>
703703 removeAsPlaceholder(name)
704- makeParam(name, TypeTree () setPos o2p(tree.pos.endOrPoint))
704+ makeParam(name.toTermName , TypeTree () setPos o2p(tree.pos.endOrPoint))
705705 case Typed (Ident (name), tpe) if tpe.isType => // get the ident!
706706 removeAsPlaceholder(name)
707- makeParam(name, tpe)
707+ makeParam(name.toTermName , tpe)
708708 case _ =>
709709 syntaxError(tree.pos, " not a legal formal parameter" , false )
710710 makeParam(nme.ERROR , errorTypeTree setPos o2p(tree.pos.endOrPoint))
@@ -783,7 +783,7 @@ self =>
783783 val rPos = top.pos
784784 val end = if (rPos.isDefined) rPos.endOrPoint else opPos.endOrPoint
785785 top = atPos(start, opinfo.offset, end) {
786- makeBinop(isExpr, opinfo.operand, opinfo.operator, top, opPos)
786+ makeBinop(isExpr, opinfo.operand, opinfo.operator.toTermName , top, opPos)
787787 }
788788 }
789789 top
@@ -1306,7 +1306,7 @@ self =>
13061306 val cond = condExpr()
13071307 newLinesOpt()
13081308 val body = expr()
1309- makeWhile(lname, cond, body)
1309+ makeWhile(lname.toTermName , cond, body)
13101310 }
13111311 }
13121312 parseWhile
@@ -1318,7 +1318,7 @@ self =>
13181318 if (isStatSep) in.nextToken()
13191319 accept(WHILE )
13201320 val cond = condExpr()
1321- makeDoWhile(lname, body, cond)
1321+ makeDoWhile(lname.toTermName , body, cond)
13221322 }
13231323 }
13241324 parseDo
@@ -1477,7 +1477,7 @@ self =>
14771477 def prefixExpr (): Tree = {
14781478 if (isUnaryOp) {
14791479 atPos(in.offset) {
1480- val name = nme.toUnaryName(rawIdent())
1480+ val name = nme.toUnaryName(rawIdent().toTermName )
14811481 if (name == nme.UNARY_- && isNumericLit)
14821482 simpleExprRest(atPos(in.offset)(literal(isNegated = true )), canApply = true )
14831483 else
@@ -1515,7 +1515,7 @@ self =>
15151515 val pname = freshName(" x$" )
15161516 in.nextToken()
15171517 val id = atPos(start) (Ident (pname))
1518- val param = atPos(id.pos.focus){ makeSyntheticParam(pname) }
1518+ val param = atPos(id.pos.focus){ makeSyntheticParam(pname.toTermName ) }
15191519 placeholderParams = param :: placeholderParams
15201520 id
15211521 case LPAREN =>
@@ -2136,7 +2136,7 @@ self =>
21362136 expr()
21372137 } else EmptyTree
21382138 atPos(start, if (name == nme.ERROR ) start else nameOffset) {
2139- ValDef ((mods | implicitmod | bynamemod) withAnnotations annots, name, tpt, default)
2139+ ValDef ((mods | implicitmod | bynamemod) withAnnotations annots, name.toTermName , tpt, default)
21402140 }
21412141 }
21422142 def paramClause (): List [ValDef ] = {
@@ -2696,7 +2696,7 @@ self =>
26962696 atPos(start, if (name == nme.ERROR ) start else nameOffset) {
26972697 val mods1 = if (in.token == SUBTYPE ) mods | Flags .DEFERRED else mods
26982698 val template = templateOpt(mods1, name, NoMods , Nil , tstart)
2699- ModuleDef (mods1, name, template)
2699+ ModuleDef (mods1, name.toTermName , template)
27002700 }
27012701 }
27022702
0 commit comments