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
Print owner of bind symbol with -Yprint-debug-owners (#16854)
Compiling with `-Yprint-debug-owners` now prints the owners of `Bind`
trees.
#### Before
```scala
class Foo() extends Object() {
[owner = class Foo]def fooImpl: Int =
1:Int match {
case x @ y @ _:Int => 0
}
}
```
#### After
```scala
class Foo() extends Object() {
[owner = class Foo]def fooImpl: Int =
1:Int match {
case [owner = method fooImpl]x @ [owner = method fooImpl]y @ _:Int => 0
}
}
```
keywordText("given ").provided(tree.symbol.isOneOf(GivenOrImplicit) &&!homogenizedView) ~// Used for scala.quoted.Type in quote patterns (not pickled)
574
+
toTextOwner(bind) ~keywordText("given ").provided(tree.symbol.isOneOf(GivenOrImplicit) &&!homogenizedView) ~// Used for scala.quoted.Type in quote patterns (not pickled)
0 commit comments