diff options
author | Den Shabalin <den.shabalin@gmail.com> | 2013-08-08 18:53:42 +0200 |
---|---|---|
committer | Den Shabalin <den.shabalin@gmail.com> | 2013-08-14 11:45:47 +0200 |
commit | 5439c4c9aa9ef03c061fa9c2c4689a722729b8f9 (patch) | |
tree | 165a208cadc93b505ef5e501358340f32da4606d /src/compiler | |
parent | 834e29ff7f2047054e4af4c05311943bcbe480a7 (diff) | |
download | scala-5439c4c9aa9ef03c061fa9c2c4689a722729b8f9.tar.gz scala-5439c4c9aa9ef03c061fa9c2c4689a722729b8f9.tar.bz2 scala-5439c4c9aa9ef03c061fa9c2c4689a722729b8f9.zip |
SI-7731 make CannotHaveAttrs more consistent
Previously setPos, pos_=, setType, tpe_= all behaved inconsistently
between each other even though they all represent similar
attributes that cannot be changed on CannotHaveAttrs trees.
In order to simplify handling of such trees in compiler code each
of these fields now supports assignment to its current default
value: NoType for tpe and NoPosition for pos. Such assignments
don't mutate underlying trees.
Diffstat (limited to 'src/compiler')
0 files changed, 0 insertions, 0 deletions