InferredMethodProvider

dotty.tools.pc.InferredMethodProvider
final class InferredMethodProvider(params: OffsetParams, driver: InteractiveDriver, config: PresentationCompilerConfig, symbolSearch: SymbolSearch)(using x$5: ReportContext)

Tries to calculate edits needed to create a method that will fix missing symbol in all the places that it is possible such as:

  • apply inside method invocation method(.., nonExistent(param), ...) and method(.., nonExistent, ...)
  • method in val definition val value: DefinedType = nonExistent(param) and val value: DefinedType = nonExistent
  • simple method call nonExistent(param) and nonExistent
  • method call inside a container container.nonExistent(param) and container.nonExistent

Value parameters

config

presentation compiler configuration

driver

Scala 3 interactive compiler driver

params

position and actual source

symbolSearch

symbol search

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Classlikes

case class AdjustTypeOpts(text: String, adjustedEndPos: Position)

Attributes

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

Value members

Concrete methods

def inferredMethodEdits(adjustOpt: Option[AdjustTypeOpts]): List[TextEdit]