File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
compiler/src/scala/quoted/runtime/impl/printers Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ object SourceCode {
328328 }
329329 this
330330
331- case Ident ( " _ " ) =>
331+ case Wildcard ( ) =>
332332 this += " _"
333333
334334 case tree : Ident =>
@@ -896,13 +896,13 @@ object SourceCode {
896896 }
897897
898898 private def printPattern (pattern : Tree ): this .type = pattern match {
899- case Ident ( " _ " ) =>
899+ case Wildcard ( ) =>
900900 this += " _"
901901
902- case Bind (name, Ident ( " _ " )) =>
902+ case Bind (name, Wildcard ( )) =>
903903 this += name
904904
905- case Bind (name, Typed (Ident ( " _ " ), tpt)) =>
905+ case Bind (name, Typed (Wildcard ( ), tpt)) =>
906906 this += highlightValDef(name) += " : "
907907 printTypeTree(tpt)
908908
@@ -928,7 +928,7 @@ object SourceCode {
928928 case Alternatives (trees) =>
929929 inParens(printPatterns(trees, " | " ))
930930
931- case Typed (Ident ( " _ " ), tpt) =>
931+ case Typed (Wildcard ( ), tpt) =>
932932 this += " _: "
933933 printTypeTree(tpt)
934934
You can’t perform that action at this time.
0 commit comments