summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
diff options
context:
space:
mode:
authorDen Shabalin <den.shabalin@gmail.com>2013-08-08 18:53:42 +0200
committerDen Shabalin <den.shabalin@gmail.com>2013-08-14 11:45:47 +0200
commit5439c4c9aa9ef03c061fa9c2c4689a722729b8f9 (patch)
tree165a208cadc93b505ef5e501358340f32da4606d /src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
parent834e29ff7f2047054e4af4c05311943bcbe480a7 (diff)
downloadscala-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/scala/tools/nsc/ast/parser/Parsers.scala')
0 files changed, 0 insertions, 0 deletions