NameOps

object NameOps
class Object
trait Matchable
class Any

Type members

Classlikes

object compactify

Extensions

Extensions

extension (name: N)
def adjustIfModuleClass[N <: Name](flags: FlagSet): N

If flags is a ModuleClass but not a Package, add module class suffix

If flags is a ModuleClass but not a Package, add module class suffix

def compactified[N <: Name](using Context): TermName

If name length exceeds allowable limit, replace part of it by hash

If name length exceeds allowable limit, replace part of it by hash

def errorName[N <: Name]: N
def expandedName[N <: Name](base: Symbol, kind: QualifiedNameKind)(using Context): N

The expanded name. This is the fully qualified name of base with ExpandPrefixName as separator, followed by kind and the name.

The expanded name. This is the fully qualified name of base with ExpandPrefixName as separator, followed by kind and the name.

def freshened[N <: Name](using Context): N
def functionArity[N <: Name]: Int

The name of the generic runtime operation corresponding to an array operation

The name of the generic runtime operation corresponding to an array operation

Is an context function name, i.e one of ContextFunctionN or ErasedContextFunctionN for N >= 0

Is an context function name, i.e one of ContextFunctionN or ErasedContextFunctionN for N >= 0

Is an erased function name, i.e. one of ErasedFunctionN, ErasedContextFunctionN for N >= 0

Is an erased function name, i.e. one of ErasedFunctionN, ErasedContextFunctionN for N >= 0

def isFunction[N <: Name]: Boolean

Is a function name, i.e one of FunctionXXL, FunctionN, ContextFunctionN, ErasedFunctionN, ErasedContextFunctionN for N >= 0

Is a function name, i.e one of FunctionXXL, FunctionN, ContextFunctionN, ErasedFunctionN, ErasedContextFunctionN for N >= 0

is this the name of an object enclosing packagel-level definitions?

is this the name of an object enclosing packagel-level definitions?

Is a function name

Is a function name

  • FunctionN for N >= 0

Is a synthetic function name, i.e. one of

Is a synthetic function name, i.e. one of

  • FunctionN for N > 22
  • ContextFunctionN for N >= 0
  • ErasedFunctionN for N >= 0
  • ErasedContextFunctionN for N >= 0

Is name of a variable pattern?

Is name of a variable pattern?

def matchesTargetName[N <: Name](other: Name): Boolean

Do two target names match? An empty target name matchws any other name.

Do two target names match? An empty target name matchws any other name.

Convert this module name to corresponding module class name

Convert this module name to corresponding module class name

The name of the primitive runtime operation corresponding to an array operation

The name of the primitive runtime operation corresponding to an array operation

Convert this module class name to corresponding source module name

Convert this module class name to corresponding source module name

def specializedFor[N <: Name](classTargs: List[Type], classTargsNames: List[Name], methodTargs: List[Type], methodTarsNames: List[Name])(using Context): N

This method is to be used on type parameters from a class, since this method does sorting based on their names

This method is to be used on type parameters from a class, since this method does sorting based on their names

def specializedFunction[N <: Name](ret: Type, args: List[Type])(using Context): N

Use for specializing function names ONLY and use it if you are not creating specialized name from type parameters. The order of names will be:

Use for specializing function names ONLY and use it if you are not creating specialized name from type parameters. The order of names will be:

<return type><first type><second type><...>

If name ends in module class suffix, drop it. This method needs to work on mangled as well as unmangled names because it is also called from the backend.

If name ends in module class suffix, drop it. This method needs to work on mangled as well as unmangled names because it is also called from the backend.

def unexpandedName[N <: Name]: N

Revert the expanded name.

Revert the expanded name.

def unmangle[N <: Name](kind: NameKind): N
def unmangle[N <: Name](kinds: List[NameKind]): N
def unmangleClassName[N <: Name]: N
extension (name: TermName)

The name unary_x for a prefix operator x

The name unary_x for a prefix operator x