diff options
author | Martin Odersky <odersky@gmail.com> | 2012-12-18 15:11:25 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2012-12-18 15:12:20 +0100 |
commit | 789d15e6d5d98880dd64c8b55b9c2456f020b46b (patch) | |
tree | eb5dff77ffca9a1267161c2ece36c0fab45de453 /src/dotty/tools/dotc/core/Periods.scala | |
parent | 4481a057fb5906c002788642aaad34a6cf1124ef (diff) | |
download | dotty-789d15e6d5d98880dd64c8b55b9c2456f020b46b.tar.gz dotty-789d15e6d5d98880dd64c8b55b9c2456f020b46b.tar.bz2 dotty-789d15e6d5d98880dd64c8b55b9c2456f020b46b.zip |
(1) Moved logic from ClassDenotation to ClassInfoType. (2) Tweaks to other types. (3) FlagSet is now a value class.
Diffstat (limited to 'src/dotty/tools/dotc/core/Periods.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Periods.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/Periods.scala b/src/dotty/tools/dotc/core/Periods.scala index 61dedb015..c2779b4f7 100644 --- a/src/dotty/tools/dotc/core/Periods.scala +++ b/src/dotty/tools/dotc/core/Periods.scala @@ -96,4 +96,8 @@ object Periods { /** The interval consisting of given run id, and lo/hi phase ids */ final def intervalOf(rid: RunId, loPid: PhaseId, hiPid: PhaseId): Interval = periodOf(rid, hiPid) | (hiPid - loPid) + + /** The interval consisting of all periods of given run id */ + def allPeriods(rid: RunId): Interval = intervalOf(rid, 0, PhaseMask) + }
\ No newline at end of file |