diff options
author | Martin Odersky <odersky@gmail.com> | 2016-10-20 14:58:57 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-10-20 14:58:57 +0200 |
commit | 3e545d7378568bc853b7ee865dbf42fd65bafe12 (patch) | |
tree | c719652de05bc9c19f0d35cd8bd0db8ed30f5fb8 /src/dotty/tools/dotc/ast | |
parent | be29c982e43261873a57149371a2d75966d14802 (diff) | |
download | dotty-3e545d7378568bc853b7ee865dbf42fd65bafe12.tar.gz dotty-3e545d7378568bc853b7ee865dbf42fd65bafe12.tar.bz2 dotty-3e545d7378568bc853b7ee865dbf42fd65bafe12.zip |
Maintain point for positions of definitions
This is needed to figure out where the defined name is in a
definition.
Diffstat (limited to 'src/dotty/tools/dotc/ast')
-rw-r--r-- | src/dotty/tools/dotc/ast/Positioned.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/ast/Positioned.scala b/src/dotty/tools/dotc/ast/Positioned.scala index f6793a309..bb6817603 100644 --- a/src/dotty/tools/dotc/ast/Positioned.scala +++ b/src/dotty/tools/dotc/ast/Positioned.scala @@ -24,7 +24,7 @@ abstract class Positioned extends DotClass with Product { * positions in children. */ protected def setPos(pos: Position): Unit = { - curPos = pos + setPosUnchecked(pos) if (pos.exists) setChildPositions(pos.toSynthetic) } |