Skip to content

Instantly share code, notes, and snippets.

@xeno-by
Created August 26, 2012 14:14
Show Gist options
  • Save xeno-by/3479963 to your computer and use it in GitHub Desktop.
Save xeno-by/3479963 to your computer and use it in GitHub Desktop.
import Flags._
import base.Attachments
import scala.annotation.tailrec
trait Symbols extends api.Symbols { self: SymbolTable =>
import definitions._
import SymbolsStats._
protected var ids = 0
val emptySymbolArray = new Array[Symbol](0)
protected def nextId() = { ids += 1; ids }
/** Used for deciding in the IDE whether we can interrupt the compiler */
//protected var activeLocks = 0
/** Used for debugging only */
//protected var lockedSyms = collection.immutable.Set[Symbol]()
/** Used to keep track of the recursion depth on locked symbols */
private var recursionTable = immutable.Map.e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment