Skip to content

Commit

Permalink
Reformat switch cases
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeandres committed Feb 6, 2022
1 parent 86c6bed commit fc1fba6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/src/dotty/tools/dotc/ast/MainProxies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ object MainProxies {
case dd: DefDef if dd.name.is(DefaultGetterName) && dd.name.firstPart == funSymbol.name =>
val DefaultGetterName.NumberedInfo(index) = dd.name.info
List(index -> dd.symbol)
case _ => List()
case _ => Nil
}).toMap
case _ => Map.empty
}
Expand Down Expand Up @@ -194,7 +194,7 @@ object MainProxies {
def extractArgs(args: List[tpd.Tree]): List[Tree] =
args.flatMap {
case Typed(SeqLiteral(varargs, _), _) => varargs.map(arg => TypedSplice(arg))
case arg @ Select(_, name) if name.is(DefaultGetterName) => List() // Ignore default values, they will be added later by the compiler
case arg: Select if arg.name.is(DefaultGetterName) => Nil // Ignore default values, they will be added later by the compiler
case arg => List(TypedSplice(arg))
}

Expand Down

0 comments on commit fc1fba6

Please sign in to comment.