AutoImports
dotty.tools.pc.AutoImports
object AutoImports
Attributes
- Graph
-
- Supertypes
- Self type
-
AutoImports.type
Members list
Type members
Classlikes
object AutoImport
Attributes
- Supertypes
- Self type
-
AutoImport.type
Attributes
- Companion
- object
- Supertypes
object AutoImportEdits
Attributes
- Companion
- class
- Supertypes
- Self type
-
AutoImportEdits.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
object ImportSel
object SymbolIdent
Attributes
- Companion
- trait
- Supertypes
- Self type
-
SymbolIdent.type
Attributes
- Companion
- object
- Supertypes
object SymbolImport
Attributes
- Companion
- class
- Supertypes
- Self type
-
SymbolImport.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
In this article