MetalsInteractive

dotty.tools.pc.MetalsInteractive

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object ApplySelect

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object TreeApply

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
TreeApply.type

Value members

Concrete methods

def contextOfStat(stats: List[Tree], stat: Tree, exprOwner: Symbol, ctx: Context): Context
def enclosingSymbols(path: List[Tree], pos: SourcePosition, indexed: IndexedContext, skipCheckOnName: Boolean): List[Symbol]
def enclosingSymbolsWithExpressionType(path: List[Tree], pos: SourcePosition, indexed: IndexedContext, skipCheckOnName: Boolean): List[(Symbol, Type)]

Returns the list of tuple enclosing symbol and the symbol's expression type if possible.

Returns the list of tuple enclosing symbol and the symbol's expression type if possible.

Attributes

def isForSynthetic(gtree: Tree)(using Context): Boolean
def isOnName(path: List[Tree], sourcePos: SourcePosition, source: SourceFile)(using Context): Boolean

Check if the given sourcePos is on the name of enclosing tree.

Check if the given sourcePos is on the name of enclosing tree.

// For example, if the postion is on `foo`, returns true
def foo(x: Int) = { ... }
    ^

// On the other hand, it points to non-name position, return false.
def foo(x: Int) = { ... }
^

Value parameters

path
  • path to the position given by Interactive.pathTo

Attributes