summaryrefslogtreecommitdiff
path: root/src/reflect/scala/reflect/internal/StdAttachments.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2016-05-31 15:19:49 +1000
committerJason Zaugg <jzaugg@gmail.com>2016-05-31 15:49:33 +1000
commit7b132f39b82e4fc47cd95eadce9e3f22da8c8d82 (patch)
treeb4f07a4be51dd1e92e8fdfc0b6756bc4946065e3 /src/reflect/scala/reflect/internal/StdAttachments.scala
parent8f567bc9c01e29624f5b7fcce40a0ee7fe261c08 (diff)
downloadscala-7b132f39b82e4fc47cd95eadce9e3f22da8c8d82.tar.gz
scala-7b132f39b82e4fc47cd95eadce9e3f22da8c8d82.tar.bz2
scala-7b132f39b82e4fc47cd95eadce9e3f22da8c8d82.zip
Avoid tree sharing with substituteThis
The underlying transformer has a by-name parameter for the to provide the `to` tree, but this was strict in the layers of API above. Tree sharing is frowned upon in general as it leads to cross talk when, e.g., the erasure typechecker mutates the `tpe` field of the shared tree in different context.
Diffstat (limited to 'src/reflect/scala/reflect/internal/StdAttachments.scala')
0 files changed, 0 insertions, 0 deletions