Signatures

dotty.tools.dotc.util.Signatures
object Signatures

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Signatures.type

Members list

Type members

Classlikes

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

Represent a method's parameter.

Represent a method's parameter.

Value parameters

doc

The documentation of this parameter

isImplicit

Is this parameter implicit?

isReordered

Is the parameter reordered in its parameter list?

name

The name of the parameter

tpe

The type of the parameter

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Param
class Object
trait Matchable
class Any
Show all
sealed trait Param

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class MethodParam
class TypeParam
case class Signature(name: String, paramss: List[List[Param]], returnType: Option[String], doc: Option[String], denot: Option[SingleDenotation])

Represent a method signature.

Represent a method signature.

Value parameters

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

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class TypeParam(tpe: String, doc: Option[String]) extends Param

Represent a type parameter.

Represent a type parameter.

Value parameters

doc

The documentation of this parameter

tpe

The type of the parameter

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Param
class Object
trait Matchable
class Any
Show all

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.

Value parameters

path

The path to the function application

span

The position of the cursor

Attributes

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 isEnclosingApply(tree: Tree, span: Span)(using Context): Boolean
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.

Value parameters

path

The path to the function application

pos

The position of the cursor

Attributes

Returns

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