Names

dotty.tools.dotc.core.Names$
object Names

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Names.type

Members list

Concise view

Type members

Classlikes

final case class DerivedName(underlying: TermName, info: NameInfo) extends TermName

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

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

Attributes

Graph
Supertypes
trait Product
trait Equals
class TermName
class Name
trait Showable
class Object
trait Matchable
class Any
abstract class Designator

A common superclass of Name and Symbol. After bootstrap, this should be just the type alias Name | Symbol

A common superclass of Name and Symbol. After bootstrap, this should be just the type alias Name | Symbol

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Name
class TermName
class TypeName
class Symbol
object NoSymbol.type
abstract class Name extends Designator with Showable

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.

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.

Attributes

Graph
Supertypes
trait Showable
class Object
trait Matchable
class Any
Known subtypes
final class SimpleName(val start: Int, val length: Int) extends TermName

A simple name is essentially an interned string

A simple name is essentially an interned string

Attributes

Graph
Supertypes
class TermName
class Name
trait Showable
class Object
trait Matchable
class Any
abstract class TermName extends Name

Names for terms, can be simple or derived

Names for terms, can be simple or derived

Attributes

Graph
Supertypes
class Name
trait Showable
class Object
trait Matchable
class Any
Known subtypes
final class TypeName(val toTermName: TermName) extends Name

Attributes

Graph
Supertypes
class Name
trait Showable
class Object
trait Matchable
class Any

Types

Things that can be turned into names with totermName and toTypeName Decorators defines implements these as extension methods for strings.

Things that can be turned into names with totermName and toTypeName Decorators defines implements these as extension methods for strings.

Attributes

Value members

Concrete methods

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.

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

Attributes

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.

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

Attributes

Create a term name from a string. See sliceToTermName in Decorators for a more efficient version which however requires a Context for its operation.

Create a term name from a string. See sliceToTermName in Decorators for a more efficient version which however requires a Context for its operation.

Attributes

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

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

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

Attributes

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.

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

Attributes

Create a type name from a string

Create a type name from a string

Attributes

Concrete fields

The term name represented by the empty string

The term name represented by the empty string

Attributes

The type name represented by the empty string

The type name represented by the empty string

Attributes

inline val InitialNameSize: 131072

Implicits

Implicits

implicit val NameOrdering: Ordering[Name]