ApplicableToTypes

dotty.tools.dotc.typer.Applications.ApplicableToTypes
class ApplicableToTypes(methRef: TermRef, args: List[Type], resultType: Type, argMatch: ArgMatch)(using x$5: Context) extends TestApplication[Type]

Subclass of Application for applicability tests with value argument types.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Inherited types

type Result = Unit

Attributes

Inherited from:
TestApplication
type TypedArg = Arg

The type of typed arguments: either tpd.Tree or Type

The type of typed arguments: either tpd.Tree or Type

Attributes

Inherited from:
TestApplication

Value members

Concrete methods

def argType(arg: Type, formal: Type): Type

The type of the given argument

The type of the given argument

Attributes

If all args have primitive numeric types, make sure it's the same one

If all args have primitive numeric types, make sure it's the same one

Attributes

def isVarArg(arg: Type): Boolean

Is this an argument of the form expr: _* or a RepeatedParamType derived from such an argument?

Is this an argument of the form expr: _* or a RepeatedParamType derived from such an argument?

Attributes

def treeToArg(arg: Tree): Type

Turn a typed tree into an argument

Turn a typed tree into an argument

Attributes

def typeOfArg(arg: Type): Type

Inherited methods

final def addArg(arg: TypedArg, formal: Type): Unit

Check that argument corresponds to type formal and possibly add it to the list of adapted arguments

Check that argument corresponds to type formal and possibly add it to the list of adapted arguments

Attributes

Inherited from:
TestApplication

Attributes

Inherited from:
TestApplication

The kind of application that gets typed

The kind of application that gets typed

Attributes

Inherited from:
TestApplication
protected def argOK(arg: TypedArg, formal: Type): Boolean

Attributes

Inherited from:
TestApplication
def fail(msg: Message): Unit

Signal failure with given message at position of the application itself

Signal failure with given message at position of the application itself

Attributes

Inherited from:
TestApplication
def fail(msg: Message, arg: Type): Unit

Signal failure with given message at position of given argument

Signal failure with given message at position of given argument

Attributes

Inherited from:
TestApplication
protected def init(): Unit

Attributes

Inherited from:
Application

Is sym a constructor of a Java-defined annotation?

Is sym a constructor of a Java-defined annotation?

Attributes

Inherited from:
Application
protected def liftFun(): Unit

If constructing trees, pull out all parts of the function which are not idempotent into separate prefix definitions

If constructing trees, pull out all parts of the function which are not idempotent into separate prefix definitions

Attributes

Inherited from:
Application
def makeVarArg(n: Int, elemFormal: Type): Unit

If constructing trees, turn last n processed arguments into a SeqLiteral tree with element type elemFormal.

If constructing trees, turn last n processed arguments into a SeqLiteral tree with element type elemFormal.

Attributes

Inherited from:
TestApplication
def matchArgs(args: List[Type], formals: List[Type], n: Int): Unit

Match re-ordered arguments against formal parameters

Match re-ordered arguments against formal parameters

Attributes

n

The position of the first parameter in formals in methType.

Inherited from:
Application
protected def methodType: MethodType

Attributes

Inherited from:
Application
protected def needLiftFun: Boolean

Whether liftFun is needed? It is the case if default arguments are used.

Whether liftFun is needed? It is the case if default arguments are used.

Attributes

Inherited from:
Application
def ok: Boolean

Attributes

Inherited from:
Application
def ok_=(x: Boolean): Unit

Attributes

Inherited from:
Application
def reorder[T <: Untyped](args: List[Tree[T]]): List[Tree[T]]

Re-order arguments to correctly align named arguments

Re-order arguments to correctly align named arguments

Attributes

Inherited from:
Application

The application was successful

The application was successful

Attributes

Inherited from:
Application
def typedArg(arg: Type, formal: Type): Arg

Given an original argument and the type of the corresponding formal parameter, produce a typed argument.

Given an original argument and the type of the corresponding formal parameter, produce a typed argument.

Attributes

Inherited from:
TestApplication

Inherited fields

Attributes

Inherited from:
Application
lazy val methType: Type

The function's type after widening and instantiating polytypes with TypeParamRefs in constraint set

The function's type after widening and instantiating polytypes with TypeParamRefs in constraint set

Attributes

Inherited from:
Application

The current function part, which might be affected by lifting.

The current function part, which might be affected by lifting.

Attributes

Inherited from:
TestApplication
lazy val orderedArgs: List[Type]

The arguments re-ordered so that each named argument matches the same-named formal parameter.

The arguments re-ordered so that each named argument matches the same-named formal parameter.

Attributes

Inherited from:
Application