Dotty Documentation

0.12.0-bin-SNAPSHOT

object Signatures
extends Object

[-] Constructors

[-] Members

[+] case class Param

Represent a method's parameter.

[+] object Param

Represent a method's parameter.

[+] case class Signature

Represent a method signature.

[+] object Signature

Represent a method signature.

[+] private def alternativesFromError ( err: ErrorType , params: List [ Tree ] ) ( implicit ctx: Context ) : ( Int, List [ SingleDenotation ] )

Inspect err to determine, if it is an error related to application of an overloaded function, what were the possible alternatives.

If several alternatives are found, determines what is the best suited alternatives given the parameters params: The alternative that has the most formal parameters matching the given arguments is chosen.

[+] def callInfo ( path: List [ Tree ] , pos: Position ) ( implicit ctx: Context ) : ( Int, Int, List [ SingleDenotation ] )

Extract (current parameter index, function index, functions) out of a method call.

[+] private def countParams ( tree: Tree ) : Int

The number of parameters that are applied in tree.

This handles currying, so for an application such as foo(1, 2)(3), the result of countParams should be 3.

[+] def toSignature ( denot: SingleDenotation ) ( implicit ctx: Context ) : Option [ Signature ]