AutoImports

dotty.tools.pc.AutoImports
object AutoImports

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object AutoImport

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
AutoImport.type
case class AutoImportEdits(nameEdit: Option[TextEdit], importEdit: Option[TextEdit])

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
class AutoImportsGenerator(val pos: SourcePosition, importPosition: AutoImportPosition, indexedContext: IndexedContext, renames: Symbol => Option[String])

AutoImportsGenerator generates TextEdits of auto-imports for the given symbols.

AutoImportsGenerator generates TextEdits of auto-imports for the given symbols.

Value parameters

importPosition

A position to insert new imports

indexedContext

A context of the position where the autoImport is invoked

pos

A source position where the autoImport is invoked

renames

A function that returns the name of the given symbol which is renamed on import statement.

Attributes

Supertypes
class Object
trait Matchable
class Any
object ImportSel

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
ImportSel.type
sealed trait ImportSel

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Direct
class Rename
object SymbolIdent

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait SymbolIdent

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Direct
class Select
case class SymbolImport(sym: Symbol, ident: SymbolIdent, importSel: Option[ImportSel])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object SymbolImport

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def generator(pos: SourcePosition, text: String, tree: Tree, comments: List[Comment], indexedContext: IndexedContext, config: PresentationCompilerConfig): AutoImportsGenerator

Returns AutoImportsGenerator

Returns AutoImportsGenerator

Value parameters

config

A presentation compiler config, this is used for renames

indexedContext

A context of the position where the autoImport is invoked

pos

A source position where the autoImport is invoked

text

Source text of the file

tree

A typed tree of the file

Attributes