diff options
author | Martin Odersky <odersky@gmail.com> | 2015-02-23 17:22:00 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-03-18 11:14:09 +0100 |
commit | 499aeaf70d4126e673698af35b155f826f78f9a2 (patch) | |
tree | 28835bc6bc7c63ab3130473cdc0c56504fb3e549 /src/dotty/tools/dotc/util/Positions.scala | |
parent | f16b12c3a58bdd692089c23288a45a80f14332ab (diff) | |
download | dotty-499aeaf70d4126e673698af35b155f826f78f9a2.tar.gz dotty-499aeaf70d4126e673698af35b155f826f78f9a2.tar.bz2 dotty-499aeaf70d4126e673698af35b155f826f78f9a2.zip |
Add hooks for unpickling positions to trees.
Diffstat (limited to 'src/dotty/tools/dotc/util/Positions.scala')
-rw-r--r-- | src/dotty/tools/dotc/util/Positions.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/util/Positions.scala b/src/dotty/tools/dotc/util/Positions.scala index 46e4f4ee7..dc34e87b3 100644 --- a/src/dotty/tools/dotc/util/Positions.scala +++ b/src/dotty/tools/dotc/util/Positions.scala @@ -15,6 +15,9 @@ object Positions { private val StartEndMask: Long = (1L << StartEndBits) - 1 private val SyntheticPointDelta = (1 << (64 - StartEndBits * 2)) - 1 + /** The maximal representable offset in a position */ + val MaxOffset = StartEndMask + /** A position indicates a range between a start offset and an end offset. * Positions can be synthetic or source-derived. A source-derived position * has in addition a point lies somewhere between start and end. The point |