Skip to content

Commit 754d603

Browse files
committed
Rename nme.scala_ to nme.scala
1 parent 9426bd8 commit 754d603

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

compiler/src/dotty/tools/dotc/core/Definitions.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class Definitions {
116116
val cls = denot.asClass.classSymbol
117117
val decls = newScope
118118
val arity = name.functionArity
119-
val paramNamePrefix = tpnme.scala_ ++ str.NAME_JOIN ++ name ++ str.EXPAND_SEPARATOR
119+
val paramNamePrefix = tpnme.scala ++ str.NAME_JOIN ++ name ++ str.EXPAND_SEPARATOR
120120
val argParamRefs = List.tabulate(arity) { i =>
121121
enterTypeParam(cls, paramNamePrefix ++ "T" ++ (i + 1).toString, Contravariant, decls).typeRef
122122
}
@@ -199,7 +199,7 @@ class Definitions {
199199
@tu lazy val OpsPackageVal: TermSymbol = ctx.newCompletePackageSymbol(RootClass, nme.OPS_PACKAGE).entered
200200
@tu lazy val OpsPackageClass: ClassSymbol = OpsPackageVal.moduleClass.asClass
201201

202-
@tu lazy val ScalaPackageVal: TermSymbol = ctx.requiredPackage(nme.scala_)
202+
@tu lazy val ScalaPackageVal: TermSymbol = ctx.requiredPackage(nme.scala)
203203
@tu lazy val ScalaMathPackageVal: TermSymbol = ctx.requiredPackage("scala.math")
204204
@tu lazy val ScalaPackageClass: ClassSymbol = {
205205
val cls = ScalaPackageVal.moduleClass.asClass
@@ -1370,7 +1370,7 @@ class Definitions {
13701370

13711371
// /** The `Class[?]` of a primitive value type name */
13721372
// def valueTypeNameToJavaType(name: TypeName)(implicit ctx: Context): Option[Class[?]] =
1373-
// valueTypeNamesToJavaType.get(if (name.firstPart eq nme.scala_) name.lastPart.toTypeName else name)
1373+
// valueTypeNamesToJavaType.get(if (name.firstPart eq nme.scala) name.lastPart.toTypeName else name)
13741374

13751375
type PrimitiveClassEnc = Int
13761376

compiler/src/dotty/tools/dotc/core/Denotations.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ object Denotations {
13561356
def isPackageFromCoreLibMissing: Boolean =
13571357
owner.symbol == defn.RootClass &&
13581358
(
1359-
selector == nme.scala_ || // if the scala package is missing, the stdlib must be missing
1359+
selector == nme.scala || // if the scala package is missing, the stdlib must be missing
13601360
selector == nme.scalaShadowing // if the scalaShadowing package is missing, the dotty library must be missing
13611361
)
13621362
if (owner.exists) {

compiler/src/dotty/tools/dotc/core/StdNames.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ object StdNames {
156156
final val Short: N = "Short"
157157
final val Unit: N = "Unit"
158158

159-
final val ScalaValueNames: scala.List[N] =
160-
scala.List(Byte, Char, Short, Int, Long, Float, Double, Boolean, Unit)
159+
final val ScalaValueNames: _root_.scala.List[N] =
160+
_root_.scala.List(Byte, Char, Short, Int, Long, Float, Double, Boolean, Unit)
161161

162162
// some types whose companions we utilize
163163
final val AnyRef: N = "AnyRef"
@@ -562,7 +562,7 @@ object StdNames {
562562
val runtimeMirror: N = "runtimeMirror"
563563
val s: N = "s"
564564
val sameElements: N = "sameElements"
565-
val scala_ : N = "scala"
565+
val scala : N = "scala"
566566
val scalaShadowing : N = "scalaShadowing"
567567
val selectDynamic: N = "selectDynamic"
568568
val selectOverloadedMethod: N = "selectOverloadedMethod"

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ object Parsers {
149149
ctx.error(msg, source.atSpan(span))
150150

151151
def unimplementedExpr(implicit ctx: Context): Select =
152-
Select(Select(rootDot(nme.scala_), nme.Predef), nme.???)
152+
Select(Select(rootDot(nme.scala), nme.Predef), nme.???)
153153
}
154154

155155
trait OutlineParserCommon extends ParserCommon {

compiler/src/dotty/tools/dotc/transform/PostTyper.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,8 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisPhase
379379
}
380380

381381
/** Transforms the rhs tree into a its default tree if it is in an `erased` val/def.
382-
* Performed to shrink the tree that is known to be erased later.
383-
*/
382+
* Performed to shrink the tree that is known to be erased later.
383+
*/
384384
private def normalizeErasedRhs(rhs: Tree, sym: Symbol)(implicit ctx: Context) =
385385
if (sym.isEffectivelyErased) dropInlines.transform(rhs) else rhs
386386
}

0 commit comments

Comments
 (0)