package dotty.tools.dotc.util

Constructors

Members

[+] final object Attachment

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

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

[+] final object Chars

Contains constants and classifier methods for characters

Contains constants and classifier methods for characters

[+] final object CommentParsing

The comment parsing in dotc is used by both the comment cooking and the dottydoc tool.

The comment cooking is used to expand comments with <invalid inhe...

The comment parsing in dotc is used by both the comment cooking and the dottydoc tool.

The comment cooking is used to expand comments with <invalid inheritdoc annotation> and @define annotations. The rest of the comment is untouched and later handled by dottydoc.

[+] final object DiffUtil
[+] class DotClass

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

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

[+] final object FreshNameCreator
[+] trait FreshNameCreator
[+] class HashSet

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

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

[+] final object HashSet

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

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

[+] class LRUCache

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...

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.

[+] final object LRUCache
[+] final object NameTransformer

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

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

[+] @sharable final object NoSource
[+] @sharable final object NoSourcePosition

A sentinel for a non-existing source position

A sentinel for a non-existing source position

[+] final 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 st...

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.

[+] final object Property

Defines a key type with which to tag properties, such as attachments or context properties

Defines a key type with which to tag properties, such as attachments or context properties

[+] final object ScriptSourceFile
[+] abstract class Set

A common class for lightweight sets.

A common class for lightweight sets.

[+] final object ShowPickled
[+] abstract class SimpleMap
[+] final object SimpleMap
[+] final class SixteenNibbles

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

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

[+] final object SixteenNibbles
[+] case class SourceFile
[+] final object SourceFile
[+] case class SourcePosition

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

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

[+] final object SourcePosition

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

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

[+] @sharable final object Stats
[+] final object Util
[+] final object common

Common values hoisted out for performance

Common values hoisted out for performance