PcRenameProvider

dotty.tools.pc.PcRenameProvider
final class PcRenameProvider(driver: InteractiveDriver, params: OffsetParams, name: Option[String]) extends PcCollector[TextEdit]

Attributes

Graph
Supertypes
class PcCollector[TextEdit]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def canRenameSymbol(sym: Symbol)(using Context): Boolean
def collect(parent: Option[Tree])(tree: Tree | EndMarker, toAdjust: SourcePosition, sym: Option[Symbol]): TextEdit
def prepareRename(): Option[Range]
def rename(): List[TextEdit]

Inherited methods

def result(): List[TextEdit]

Attributes

Inherited from:
PcCollector
def resultAllOccurences(): Set[TextEdit]

Attributes

Inherited from:
PcCollector
def resultWithSought(): List[TextEdit]

Attributes

Inherited from:
PcCollector
def soughtSymbols(path: List[Tree]): Option[(Set[Symbol], SourcePosition)]

Attributes

Inherited from:
PcCollector
def symbolAlternatives(sym: Symbol): Set[Symbol]

Attributes

Inherited from:
PcCollector
def traverseSought(filter: Tree => Boolean, soughtFilter: (Symbol => Boolean) => Boolean): Set[TextEdit]

Attributes

Inherited from:
PcCollector

Concrete fields

Inherited fields

val compilatonUnitContext: FreshContext

Attributes

Inherited from:
PcCollector
lazy val extensionMethods: Option[ExtMethods]

Attributes

Inherited from:
PcCollector
val filePath: Path

Attributes

Inherited from:
PcCollector
val offset: Int

Attributes

Inherited from:
PcCollector

Attributes

Inherited from:
PcCollector
val path: List[Tree]

Attributes

Inherited from:
PcCollector
val pos: SourcePosition

Attributes

Inherited from:
PcCollector
val rawPath: List[Tree]

Attributes

Inherited from:
PcCollector
val source: SourceFile

Attributes

Inherited from:
PcCollector

Attributes

Inherited from:
PcCollector
val text: Array[Char]

Attributes

Inherited from:
PcCollector
val unit: CompilationUnit

Attributes

Inherited from:
PcCollector
val uri: URI

Attributes

Inherited from:
PcCollector

Givens

Inherited givens

given ctx: Context

Attributes

Inherited from:
PcCollector

Extensions

Inherited extensions

extension (span: Span)

Attributes

Inherited from:
PcCollector