scala.tools.nsc.doc.doclet.Indexer.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala-compiler Show documentation
Show all versions of scala-compiler Show documentation
Compiler for the SubScript extension of the Scala Programming Language
The newest version!
package scala.tools.nsc
package doc
package doclet
/** A `Generator` may implement the `Indexer` trait to gain access to pre-calculated indexing information */
trait Indexer extends Generator with Universer {
protected var indexField: Index = null
def index: Index = indexField
def setIndex(i: Index) {
assert(indexField == null)
indexField = i
}
checks += { () =>
indexField != null
}
}