File tree 1 file changed +5
-4
lines changed
docs/docs/reference/metaprogramming 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ title: "TASTy Inspection"
4
4
---
5
5
6
6
``` scala
7
- libraryDependencies += " ch.epfl.lamp " %% " scala3-tasty-inspector" % scalaVersion.value
7
+ libraryDependencies += " org.scala-lang " %% " scala3-tasty-inspector" % scalaVersion.value
8
8
```
9
9
10
10
TASTy files contain the full typed tree of a class including source positions
@@ -13,7 +13,6 @@ information from the code. To avoid the hassle of working directly with the TAST
13
13
file we provide the ` TastyInspector ` which loads the contents and exposes it
14
14
through the TASTy reflect API.
15
15
16
-
17
16
## Inspecting TASTy files
18
17
19
18
To inspect the TASTy Reflect trees of a TASTy file a consumer can be defined in
@@ -46,10 +45,12 @@ scalac -d out Test.scala
46
45
scala -with-compiler -classpath out Test
47
46
```
48
47
49
-
50
48
## Template project
49
+
51
50
Using sbt version ` 1.1.5+ ` , do:
52
- ```
51
+
52
+ ``` shell
53
53
sbt new scala/scala3-tasty-inspector.g8
54
54
```
55
+
55
56
in the folder where you want to clone the template.
You can’t perform that action at this time.
0 commit comments