Commit 4d33dbf
committed
Make quoted.Type fully contextual
Type is designed to be a contextual value. As such we should be able to use it without needing to name it and use it explicitly. Now that quoted pattterns provide the name of the type we can do this.
* Replaced methods `show`/`showAnsiColored` by equivalent methods in `object Type`
* Remove `unseal`, it can be replaced directly with `TypeRepr.of` in most cases
__Migration__
* `Type[T].show` -> `Type.show[T]`
* `Type[T].unseal.tpe` -> `TypeRepr.of[T]`
* `Type[T].unseal` -> `TypeTree.of[T]`1 parent f2d546c commit 4d33dbf
File tree
47 files changed
+165
-170
lines changed- community-build/community-projects
- compiler/src/dotty/tools/dotc/quoted
- library
- src-bootstrapped/scala/quoted
- src-non-bootstrapped/scala/quoted
- src/scala/tasty
- tests
- neg-macros
- delegate-match-1
- delegate-match-2
- delegate-match-3
- pos-macros
- i8521
- i9251
- i9518
- i9894
- run-custom-args/run-macros-erased/reflect-isFunctionType
- run-macros
- flops-rewrite-3
- flops-rewrite
- gestalt-type-toolbox-reflect
- i7987
- i8007
- i8514b
- i8514
- i8520
- i9206
- no-symbol
- quote-matcher-runtime
- quote-type-matcher-2
- quote-type-matcher
- refined-selectable-macro
- string-context-implicits
- tasty-construct-types
- tasty-dealias
- tasty-extractors-types
- tasty-indexed-map
- tasty-macro-positions
- tasty-subtyping
- type-show
- run-staging
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
47 files changed
+165
-170
lines changedLines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1001 | 1001 | | |
1002 | 1002 | | |
1003 | 1003 | | |
1004 | | - | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
1005 | 1008 | | |
1006 | 1009 | | |
1007 | 1010 | | |
| |||
1568 | 1571 | | |
1569 | 1572 | | |
1570 | 1573 | | |
1571 | | - | |
1572 | | - | |
| 1574 | + | |
| 1575 | + | |
1573 | 1576 | | |
1574 | 1577 | | |
1575 | 1578 | | |
| |||
2640 | 2643 | | |
2641 | 2644 | | |
2642 | 2645 | | |
2643 | | - | |
| 2646 | + | |
2644 | 2647 | | |
2645 | 2648 | | |
2646 | 2649 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
8 | 7 | | |
9 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | | - | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 19 | + | |
| 20 | + | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
29 | | - | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments