dotty.tools.dotc

util

package util

Visibility
  1. Public
  2. All

Type Members

  1. class DotClass extends AnyRef

    Adds standard functionality to a class.

    Adds standard functionality to a class. For now: Just the unsupported method.

  2. trait FreshNameCreator extends AnyRef

  3. class HashSet[T >: Null <: AnyRef] extends Set[T]

    A hash set that allows some privileged protected access to its internals

  4. class LRUCache[Key >: Null <: AnyRef, Value >: Null] extends AnyRef

    A least-recently-used cache for Key -> Value computations It currently keeps the last 8 associations, but this can be changed to anywhere between 2 and 16 by changing LRUCache.Retained.

    A least-recently-used cache for Key -> Value computations It currently keeps the last 8 associations, but this can be changed to anywhere between 2 and 16 by changing LRUCache.Retained.

    Implementation: We keep a ring of eight places, linked with the next data structure. The ring models a priority queue. last points to the last element of the queue, and next(last) to the first one. Lookups compare keys sequentially from first to last. Elements with successful lookup get promoted to be first in the queue. Elements are evicted at the last position.

  5. abstract class Set[T >: Null] extends AnyRef

    A common class for lightweight sets.

  6. abstract class SimpleMap[K <: AnyRef, +V >: Null <: AnyRef] extends (K) ⇒ V

  7. final class SixteenNibbles extends AnyVal

    An efficient implementation of sequences of 16 indexed elements with values 0..15 in a single Long.

  8. case class SourceFile(file: AbstractFile, content: Array[Char]) extends interfaces.SourceFile with Product with Serializable

  9. case class SourcePosition(source: SourceFile, pos: Position) extends interfaces.SourcePosition with Product with Serializable

    A source position is comprised of a position in a source file

Value Members

  1. object Attachment

    A class inheriting from Attachment.Container supports adding, removing and lookup of attachments.

    A class inheriting from Attachment.Container supports adding, removing and lookup of attachments. Attachments are typed key/value pairs.

  2. object Chars

    Contains constants and classifier methods for characters

  3. object DiffUtil

  4. object FreshNameCreator

  5. object LRUCache

  6. object NameTransformer

    Provides functions to encode and decode Scala symbolic names.

    Provides functions to encode and decode Scala symbolic names. Also provides some constants.

  7. object NoSource extends SourceFile

    Annotations
    @sharable()
  8. object NoSourcePosition extends SourcePosition

    A sentinel for a non-existing source position

    A sentinel for a non-existing source position

    Annotations
    @sharable()
  9. object Positions

    Position format in little endian: Start: unsigned 26 Bits (works for source files up to 64M) End: unsigned 26 Bits Point: unsigned 12 Bits relative to start NoPosition encoded as -1L (this is a normally invalid position because point would lie beyond end.

  10. object ScriptSourceFile

  11. object ShowPickled

  12. object SimpleMap

  13. object SixteenNibbles

  14. object Stats

    Annotations
    @sharable()
  15. object Util

  16. object common

    Common values hoisted out for performance

Ungrouped