diff options
author | Martin Odersky <odersky@gmail.com> | 2006-06-02 18:04:28 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-06-02 18:04:28 +0000 |
commit | a15d1d617a9a9b6e262eaf6a7f6dd4e3a9dc8c37 (patch) | |
tree | 5eb17f8352d919769d4bbe7766714cb2b4311332 /src/compiler/scala/tools/nsc/symtab/SymbolTable.scala | |
parent | 5e34cf4f88844b16dcca5aadce9696c60802eebc (diff) | |
download | scala-a15d1d617a9a9b6e262eaf6a7f6dd4e3a9dc8c37.tar.gz scala-a15d1d617a9a9b6e262eaf6a7f6dd4e3a9dc8c37.tar.bz2 scala-a15d1d617a9a9b6e262eaf6a7f6dd4e3a9dc8c37.zip |
space leaks are plugged
Diffstat (limited to 'src/compiler/scala/tools/nsc/symtab/SymbolTable.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/SymbolTable.scala | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/SymbolTable.scala b/src/compiler/scala/tools/nsc/symtab/SymbolTable.scala index 74642f0eb7..eb9fb486e5 100644 --- a/src/compiler/scala/tools/nsc/symtab/SymbolTable.scala +++ b/src/compiler/scala/tools/nsc/symtab/SymbolTable.scala @@ -23,8 +23,19 @@ abstract class SymbolTable extends Names /** Are we compiling for the J2ME CLDC platform? */ def forCLDC: Boolean + /** A period is an ordinal number for a phase in a run. + * Phases in later runs have higher periods than phases in earlier runs. + * Later phases have higher periods than earlier phases in the same run. + */ + type Period = int + final val NoPeriod = 0 + + /** An ordinal number for compiler runs. First run has number 1. */ + type RunId = int + final val NoRunId = 0 + private var ph: Phase = NoPhase - private var period = 0 + private var period = NoPeriod def phase: Phase = ph @@ -35,21 +46,9 @@ abstract class SymbolTable extends Names period = (currentRunId << 8) + p.id } - /** An ordinal number for compiler runs. First run has number 1. */ - type RunId = int - - val NoRunId = 0 - /** The current compiler run identifier. */ def currentRunId: RunId - /** A period is an ordinal number for a phase in a run. - * Phases in later runs have higher periods than phases in earlier runs. - * Later phases have higher periods than earlier phases in the same run. - */ - type Period = int - val NoPeriod = -1 - /** The run identifier of the given period */ def runId(period: Period): RunId = period >> 8 |