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 {
328
328
}
329
329
this
330
330
331
- case Ident ( " _ " ) =>
331
+ case Wildcard ( ) =>
332
332
this += " _"
333
333
334
334
case tree : Ident =>
@@ -896,13 +896,13 @@ object SourceCode {
896
896
}
897
897
898
898
private def printPattern (pattern : Tree ): this .type = pattern match {
899
- case Ident ( " _ " ) =>
899
+ case Wildcard ( ) =>
900
900
this += " _"
901
901
902
- case Bind (name, Ident ( " _ " )) =>
902
+ case Bind (name, Wildcard ( )) =>
903
903
this += name
904
904
905
- case Bind (name, Typed (Ident ( " _ " ), tpt)) =>
905
+ case Bind (name, Typed (Wildcard ( ), tpt)) =>
906
906
this += highlightValDef(name) += " : "
907
907
printTypeTree(tpt)
908
908
@@ -928,7 +928,7 @@ object SourceCode {
928
928
case Alternatives (trees) =>
929
929
inParens(printPatterns(trees, " | " ))
930
930
931
- case Typed (Ident ( " _ " ), tpt) =>
931
+ case Typed (Wildcard ( ), tpt) =>
932
932
this += " _: "
933
933
printTypeTree(tpt)
934
934
You can’t perform that action at this time.
0 commit comments