MtagsEnrichments

dotty.tools.pc.utils.MtagsEnrichments

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited classlikes

implicit class XtensionCompletionItemData(item: CompletionItem)

Attributes

Inherited from:
CommonMtagsEnrichments
Supertypes
class Object
trait Matchable
class Any
implicit class XtensionEitherCross[A, B](either: Either[A, B])

Attributes

Inherited from:
CommonMtagsEnrichments
Supertypes
class Object
trait Matchable
class Any
implicit class XtensionJEitherCross[A, B](either: Either[A, B])

Attributes

Inherited from:
CommonMtagsEnrichments
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
CommonMtagsEnrichments
Supertypes
class Object
trait Matchable
class Any
implicit class XtensionLspPosition(pos: Position)

Attributes

Inherited from:
CommonMtagsEnrichments
Supertypes
class Object
trait Matchable
class Any
implicit class XtensionLspRange(range: Range)

Attributes

Inherited from:
CommonMtagsEnrichments
Supertypes
class Object
trait Matchable
class Any
implicit class XtensionNIOPath(path: Path)

Attributes

Inherited from:
CommonMtagsEnrichments
Supertypes
class Object
trait Matchable
class Any
implicit class XtensionOptionScala[T](opt: Option[T])

Attributes

Inherited from:
CommonMtagsEnrichments
Supertypes
class Object
trait Matchable
class Any
implicit class XtensionOptionalJava[T](opt: Optional[T])

Attributes

Inherited from:
CommonMtagsEnrichments
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
CommonMtagsEnrichments
Supertypes
class Object
trait Matchable
class Any
implicit class XtensionStringDoc(doc: String)

Attributes

Inherited from:
CommonMtagsEnrichments
Supertypes
class Object
trait Matchable
class Any
implicit class XtensionText(text: String)

Attributes

Inherited from:
CommonMtagsEnrichments
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
CommonMtagsEnrichments
Supertypes
class Object
trait Matchable
class Any

Extensions

Extensions

extension (denot: Denotation)
def allSymbols: List[Symbol]
extension (driver: InteractiveDriver)
def localContext(params: OffsetParams): Context
def sourcePosition(params: OffsetParams, isZeroExtent: Boolean): SourcePosition
extension (imp: Import)
def selector(span: Span)(using Context): Option[Symbol]
extension (name: Name)(using Context)
extension (path: List[Tree])
def expandRangeToEnclosingApply(pos: SourcePosition)(using Context): List[Tree]
extension (pos: SourcePosition)
def adjust(text: Array[Char], forRename: Boolean)(using Context): (SourcePosition, Boolean)

Attributes

Returns

(adjusted position, should strip backticks)

def encloses(other: SourcePosition): Boolean
def focusAt(point: Int): SourcePosition
def offsetToPos(offset: Int): Position
def toLocation: Option[Location]
def toLsp: Range
def withEnd(end: Int): SourcePosition
def withStart(end: Int): SourcePosition
extension (pos: RangeParams)
def encloses(other: SourcePosition): Boolean
extension (s: String)
def backticked(backtickSoftKeyword: Boolean): String
extension (search: SymbolSearch)
def symbolDocumentation(symbol: Symbol)(using Context): Option[SymbolDocumentation]
extension (sel: Select)
def isForComprehensionMethod(using Context): Boolean
extension (span: Span)
def isCorrect(text: Array[Char]): Boolean
extension (sym: Symbol)(using Context)
def companion: Symbol
def fullNameBackticked(backtickSoftKeyword: Boolean): String
def fullNameBackticked(exclusions: Set[String]): String
def nameBackticked(backtickSoftKeyword: Boolean): String
def nameBackticked(exclusions: Set[String]): String
def withUpdatedTpe(tpe: Type): Symbol
extension (text: Array[Char])
extension (tpe: Type)
def metalsDealias(using Context): Type
extension (tree: Tree)
def children(using Context): List[Tree]
def enclosedChildren(span: Span)(using Context): List[Tree]

Returns the children of the tree that overlap with the given span.

Returns the children of the tree that overlap with the given span.

Attributes

def isInfix(using ctx: Context): Boolean
def qual: Tree
def seenFrom(sym: Symbol)(using Context): (Type, Symbol)

Implicits

Inherited implicits

final implicit def XtensionCompletionItemData(item: CompletionItem): XtensionCompletionItemData

Attributes

Inherited from:
CommonMtagsEnrichments
final implicit def XtensionEitherCross[A, B](either: Either[A, B]): XtensionEitherCross[A, B]

Attributes

Inherited from:
CommonMtagsEnrichments
final implicit def XtensionJEitherCross[A, B](either: Either[A, B]): XtensionJEitherCross[A, B]

Attributes

Inherited from:
CommonMtagsEnrichments

Attributes

Inherited from:
CommonMtagsEnrichments
final implicit def XtensionLspPosition(pos: Position): XtensionLspPosition

Attributes

Inherited from:
CommonMtagsEnrichments
final implicit def XtensionLspRange(range: Range): XtensionLspRange

Attributes

Inherited from:
CommonMtagsEnrichments
final implicit def XtensionNIOPath(path: Path): XtensionNIOPath

Attributes

Inherited from:
CommonMtagsEnrichments
final implicit def XtensionOptionScala[T](opt: Option[T]): XtensionOptionScala[T]

Attributes

Inherited from:
CommonMtagsEnrichments

Attributes

Inherited from:
CommonMtagsEnrichments

Attributes

Inherited from:
CommonMtagsEnrichments

Attributes

Inherited from:
CommonMtagsEnrichments
final implicit def XtensionText(text: String): XtensionText

Attributes

Inherited from:
CommonMtagsEnrichments