You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/contributing/debugging.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ But you can also do:
88
88
assertPositioned(tree.reporting(s"Tree is: $result"))
89
89
```
90
90
91
-
`def (a: A)reporting(f: given WrappedResult[T] => String, p: Printer = Printers.default): A` is defined on all types. The function `f` can be written without the argument since the argument is `given`. The `result` variable is a part of the `WrapperResult` – a tiny framework powering the `reporting` function. Basically, whenever you are using `reporting` on an object`A`, you can use the `result: A` variable from this function and it will be equal to the objectyou are calling `reporting` on.
91
+
`def (a: A).reporting(f: given WrappedResult[T] => String, p: Printer = Printers.default): A` is defined on all types. The function `f` can be written without the argument since the argument is `given`. The `result` variable is a part of the `WrapperResult` – a tiny framework powering the `reporting` function. Basically, whenever you are using `reporting` on an object`A`, you can use the `result: A` variable from this function and it will be equal to the objectyou are calling `reporting` on.
92
92
93
93
##Printing out trees after phases
94
94
To print out the trees you are compiling after the FrontEnd (scanner, parser, namer, typer) phases:
0 commit comments