File tree 1 file changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/ast
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -161,8 +161,8 @@ object DesugarEnums {
161
161
val (tagMeth, scaffolding) = enumTagMeth(CaseKind .Object )
162
162
val impl1 = cpy.Template (impl)(body =
163
163
impl.body ++ List (tagMeth, toStringMeth) ++ registerCall)
164
- val vdef = ValDef (name, TypeTree (), New (impl1)).withMods(mods | Final ).withPos(pos)
165
- flatTree(scaffolding ::: vdef :: Nil ).withPos(pos.startPos )
164
+ val vdef = ValDef (name, TypeTree (), New (impl1)).withMods(mods | Final )
165
+ flatTree(scaffolding ::: vdef :: Nil ).withPos(pos)
166
166
}
167
167
168
168
/** Expand a simple enum case */
@@ -175,7 +175,7 @@ object DesugarEnums {
175
175
else {
176
176
val (tag, scaffolding) = nextEnumTag(CaseKind .Simple )
177
177
val creator = Apply (Ident (nme.DOLLAR_NEW ), List (Literal (Constant (tag)), Literal (Constant (name.toString))))
178
- val vdef = ValDef (name, enumClassRef, creator).withMods(mods | Final ).withPos(pos)
179
- flatTree(scaffolding ::: vdef :: Nil ).withPos(pos.startPos )
178
+ val vdef = ValDef (name, enumClassRef, creator).withMods(mods | Final )
179
+ flatTree(scaffolding ::: vdef :: Nil ).withPos(pos)
180
180
}
181
181
}
You can’t perform that action at this time.
0 commit comments