Skip to content

Commit 22cd8c1

Browse files
oderskyallanrenucci
authored andcommitted
Remove quotes around soft modifier names
1 parent 3498ec5 commit 22cd8c1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ object StdNames {
435435
val implicitConversions: N = "implicitConversions"
436436
val implicitly: N = "implicitly"
437437
val in: N = "in"
438-
val `inline`: N = "inline"
438+
val inline: N = "inline"
439439
val info: N = "info"
440440
val inlinedEquals: N = "inlinedEquals"
441441
val internal: N = "internal"
@@ -478,7 +478,7 @@ object StdNames {
478478
val notify_ : N = "notify"
479479
val null_ : N = "null"
480480
val ofDim: N = "ofDim"
481-
val `opaque`: N = "opaque"
481+
val opaque: N = "opaque"
482482
val origin: N = "origin"
483483
val prefix : N = "prefix"
484484
val productArity: N = "productArity"

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -1740,8 +1740,8 @@ object Parsers {
17401740
case SEALED => Mod.Sealed()
17411741
case IDENTIFIER =>
17421742
name match {
1743-
case nme.`inline` => Mod.Inline()
1744-
case nme.`opaque` => Mod.Opaque()
1743+
case nme.inline => Mod.Inline()
1744+
case nme.opaque => Mod.Opaque()
17451745
}
17461746
}
17471747

@@ -1955,7 +1955,7 @@ object Parsers {
19551955
}
19561956
}
19571957
else {
1958-
if (isIdent(nme.`inline`) && in.isSoftModifierInParamModifierPosition)
1958+
if (isIdent(nme.inline) && in.isSoftModifierInParamModifierPosition)
19591959
mods = addModifier(mods)
19601960
mods = atPos(start) { mods | Param }
19611961
}

0 commit comments

Comments
 (0)