Signatures

dotty.tools.dotc.util.Signatures$
object Signatures

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

case class Param(name: String, tpe: String, doc: Option[String], isImplicit: Boolean)

Represent a method's parameter.

Represent a method's parameter.

Attributes

doc

The documentation of this parameter

isImplicit

Is this parameter implicit?

name

The name of the parameter

tpe

The type of the parameter

Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Signature(name: String, tparams: List[String], paramss: List[List[Param]], returnType: Option[String], doc: Option[String], denot: Option[SingleDenotation])

Represent a method signature.

Represent a method signature.

Attributes

denot

The function denotation

doc

The documentation for this method.

name

The name of the method

paramss

The parameter lists of this method

returnType

The return type of this method, if this is not a constructor.

tparams

The type parameters and their bounds

Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def computeSignatureHelp(path: List[Tree], span: Span)(using Context): (Int, Int, List[Signature])

Computes call info (current parameter index, function index, functions) for a method call.

Computes call info (current parameter index, function index, functions) for a method call.

Attributes

path

The path to the function application

span

The position of the cursor

Returns:

A triple containing the index of the parameter being edited, the index of the function being called, the list of overloads of this function).

def signatureHelp(path: List[Tree], pos: Span)(using Context): (Int, Int, List[Signature])

Extract (current parameter index, function index, functions) method call for given position.

Extract (current parameter index, function index, functions) method call for given position.

Attributes

path

The path to the function application

span

The position of the cursor

Returns:

A triple containing the index of the parameter being edited, the index of functeon being called, the list of overloads of this function).

Deprecated methods

def callInfo(path: List[Tree], span: Span)(using Context): (Int, Int, List[SingleDenotation])

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

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

Attributes

path

The path to the function application

span

The position of the cursor

Returns:

A triple containing the index of the parameter being edited, the index of the function being called, the list of overloads of this function).

Deprecated
true

Attributes

Deprecated
true