Dotty Documentation

0.1.1-bin-SNAPSHOT

object Names

[-] Constructors

[-] Members

[+] final case class DerivedName

A term name that's derived from an underlying name and that adds info to it.

[+] object DerivedName

A term name that's derived from an underlying name and that adds info to it.

[+] abstract class Name

A name if either a term name or a type name. Term names can be simple or derived. A simple term name is essentially an interned string stored in a name table. A derived term name adds a tag, and possibly a number or a further simple name to some other name.

[+] trait PreName

A common class for things that can be turned into names. Instances are both names and strings, the latter via a decorator.

[+] final class SimpleName

A simple name is essentiall an interned string

[+] abstract class TermName

Names for terms, can be simple or derived

[+] final class TypeName
[+] val EmptyTermName : TermName

The term name represented by the empty string

[+] val EmptyTypeName : TypeName

The type name represented by the empty string

[+] private final val InitialHashSize : 32768
[+] private final val InitialNameSize : 131072
[+] implicit val NameOrdering : Ordering [ Name ]
[+] @sharable var chrs : Array [ Char ]

Memory to store all names sequentially.

[+] private final val fillFactor : 0.7
[+] @sharable private var nc : Int

The number of characters filled.

[+] @sharable private var size : Int

The number of defined names.

[+] @sharable private var table : Array [ SimpleName ]

Hashtable for finding term names quickly.

[+] @sharable def chrs_= ( x$1: Array [ Char ] ) : Unit

Memory to store all names sequentially.

[+] implicit def eqName : Eq [ Name, Name ]
[+] private def equals ( index: Int , cs: Array [ Char ] , offset: Int , len: Int ) : Boolean

Is (the ASCII representation of) name at given index equal to cs[offset..offset+len-1]?

[+] private def hashValue ( cs: Array [ Char ] , offset: Int , len: Int ) : Int

The hash of a name made of from characters cs[offset..offset+len-1].

[+] @sharable private def nc_= ( x$1: Int ) : Unit

The number of characters filled.

[+] @sharable private def size_= ( x$1: Int ) : Unit

The number of defined names.

[+] @sharable private def table_= ( x$1: Array [ SimpleName ] ) : Unit

Hashtable for finding term names quickly.

[+] def termName ( cs: Array [ Char ] , offset: Int , len: Int ) : SimpleName

Create a term name from the characters in cs[offset..offset+len-1]. Assume they are already encoded.

[+] def termName ( bs: Array [ Byte ] , offset: Int , len: Int ) : SimpleName

Create a term name from the UTF8 encoded bytes in bs[offset..offset+len-1]. Assume they are already encoded.

[+] def termName ( s: String ) : SimpleName

Create a term name from a string, without encoding operators

[+] def typeName ( cs: Array [ Char ] , offset: Int , len: Int ) : TypeName
[+] def typeName ( bs: Array [ Byte ] , offset: Int , len: Int ) : TypeName

Create a type name from the UTF8 encoded bytes in bs[offset..offset+len-1]. Assume they are already encoded.

[+] def typeName ( s: String ) : TypeName

Create a type name from a string, without encoding operators