Names

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

Attributes

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

Members list

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

Supertypes
trait Serializable
trait Product
trait Equals
class TermName
class Name
trait Showable
class Designator
class Object
trait Matchable
class Any
Show all
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

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Name
class TermName
class DerivedName
class SimpleName
class TypeName
class Symbol
class ClassSymbol
object NoSymbol.type
Show all
abstract class Name extends Designator, Showable

A name is 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 is 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

Supertypes
trait Showable
class Designator
class Object
trait Matchable
class Any
Known subtypes
class TermName
class DerivedName
class SimpleName
class TypeName
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

Supertypes
class TermName
class Name
trait Showable
class Designator
class Object
trait Matchable
class Any
Show all
abstract class TermName extends Name

Names for terms, can be simple or derived

Names for terms, can be simple or derived

Attributes

Supertypes
class Name
trait Showable
class Designator
class Object
trait Matchable
class Any
Show all
Known subtypes
class DerivedName
class SimpleName
final class TypeName(val toTermName: TermName) extends Name

Attributes

Supertypes
class Name
trait Showable
class Designator
class Object
trait Matchable
class Any
Show all

Types

type PreName = Name | String

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

Things that can be turned into names with toTermName and toTypeName. Decorators 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]