Commit d2400b4
committed
Implement Reflection API directly
Revert to the original design with abstract modules that are implemented directly.
We had to move the implementations to the compiler interface with one of the iterations of extension methods.
The current extension methods are again compatible with this design.
CompilerInterface is kept for the internal methods that are only available in the stdlib.
* Now Reflection contains the full user-facing API
* CompilerInterface only contains internal methods used in the stdlib
* tasty.refelct.Types was merged into Reflection
* QuoteContextImpl implements every member directly
* All members of tasty are lazily initialized using object
* Fix defn.NullClass
* Fix typo in Flags.Accessor
* Rename Scala2X to Scala2x to follow dotty conventions1 parent 03a02de commit d2400b4
File tree
11 files changed
+4512
-4985
lines changed- compiler/src/dotty/tools/dotc
- quoted
- reflect
- transform
- library
- src-bootstrapped/scala/quoted
- src/scala
- internal/tasty
- tasty
- reflect
- tests/run-macros
11 files changed
+4512
-4985
lines changedLines changed: 2610 additions & 3 deletions
Large diffs are not rendered by default.
Lines changed: 0 additions & 2115 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 62 | + | |
| 63 | + | |
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
| |||
0 commit comments