-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Space: Replace showType & make Space Showable
Replace showType with a small tweak to RefinedPrinter, so the rest of the logic is followed. For instance, show infix types and tuples correctly. Also, make Space Showable, reusing the existing logic for Space, but additionally specifying the Space class name, which is important for following Space traces.
- Loading branch information
Showing
10 changed files
with
107 additions
and
174 deletions.
There are no files selected for viewing
234 changes: 87 additions & 147 deletions
234
compiler/src/dotty/tools/dotc/transform/patmat/Space.scala
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
14: Pattern Match Exhaustivity: _: Trait & Test.Alias1, _: Clazz & Test.Alias1 | ||
19: Pattern Match Exhaustivity: _: Trait & Test.Alias2 | ||
23: Pattern Match Exhaustivity: _: Trait & (Test.Alias2 & OpenTrait2){val x: Int} | ||
14: Pattern Match Exhaustivity: _: Trait & Alias1, _: Clazz & Alias1 | ||
19: Pattern Match Exhaustivity: _: Trait & Alias2 | ||
23: Pattern Match Exhaustivity: _: Trait & (Alias2 & OpenTrait2){val x: Int} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
19: Pattern Match Exhaustivity: _: TypeDef | ||
19: Pattern Match Exhaustivity: _: x$1.reflect.TypeDef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5: Pattern Match Exhaustivity: _: BTypes.ClassBType | ||
5: Pattern Match Exhaustivity: _: BTypes.this.ClassBType |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5: Pattern Match Exhaustivity: _: BTypes.ClassBType | ||
5: Pattern Match Exhaustivity: _: BTypes.this.ClassBType |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
34: Pattern Match Exhaustivity: bar.C() | ||
34: Pattern Match Exhaustivity: foo.bar.C() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3: Pattern Match Exhaustivity: _: Expr[Int] | ||
3: Pattern Match Exhaustivity: _: scala.quoted.Expr[Int] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
12: Pattern Match Exhaustivity: (_, FancyFoo(_)) | ||
12: Pattern Match Exhaustivity: (_, NonExhaustive#FancyFoo(_)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
10: Pattern Match Exhaustivity: _: a.Elem[_] | ||
10: Pattern Match Exhaustivity: _: a.Elem[?] |