Skip to content

Commit 1ecb660

Browse files
Apply suggestions from code review
Co-authored-by: Jonathan <jonathan@b-studios.de>
1 parent 2385953 commit 1ecb660

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_overviews/scala3-macros/tutorial/reflection.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ This will import all the types and modules (with extension methods) of the API.
2626
The full imported API can be found here: [Reflection](https://dotty.epfl.ch/api/scala/quoted/Quotes$reflectModule.html?query=trait%20reflectModule)
2727

2828
For example to find what is a `Term`, we can see in the hierarchy that it is a subtype of `Statement` which is a subtype of `Tree`.
29-
If we look into the [`TermMethods`](https://dotty.epfl.ch/api/scala/quoted/Quotes$reflectModule$TermMethods.html) we will find all the extension methods that are defined for `Term` such as `Term.tpe` which returns a `Type`.
30-
As it is a subtype of `Tree` we can also look into the [`TreeMethods`](https://dotty.epfl.ch/api/scala/quoted/Quotes$reflectModule$TreeMethods.html) to find more methods such as `Tree.pos`.
31-
Each type also a module with some _static-ish_ methods, for example in the [`TypeReprModule`](https://dotty.epfl.ch/api/scala/quoted/Quotes$reflectModule$TypeReprModule.html) we can find the method `TypeRepr.of[T]` with will create an instance of `Type` containing `T`.
29+
If we look into [`TermMethods`](https://dotty.epfl.ch/api/scala/quoted/Quotes$reflectModule$TermMethods.html) we will find all the extension methods that are defined for `Term` such as `Term.tpe` which returns a `Type`.
30+
As it is a subtype of `Tree` we can also look into [`TreeMethods`](https://dotty.epfl.ch/api/scala/quoted/Quotes$reflectModule$TreeMethods.html) to find more methods such as `Tree.pos`.
31+
Each type also includes a module with some _static-ish_ methods, for example in the [`TypeReprModule`](https://dotty.epfl.ch/api/scala/quoted/Quotes$reflectModule$TypeReprModule.html) we can find the method `TypeRepr.of[T]` with will create an instance of `Type` containing `T`.
3232

3333

3434
## Relation with expressions

0 commit comments

Comments
 (0)