FunctionOrMethod

dotty.tools.dotc.cc.FunctionOrMethod

An extractor for all kinds of function types as well as method and poly types. It includes aliases of function types such as =>. TODO: Can we do without?

Attributes

Returns

1st half: The argument types or empty if this is a type function 2nd half: The result type

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def unapply(tp: Type)(using Context): Option[(List[Type], Type)]