implicit final class XtensionPatchLSP extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- XtensionPatchLSP
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new XtensionPatchLSP(patch: patch.Patch)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val patch: patch.Patch
-
def
toString(): String
- Definition Classes
- Any
-
def
toTextEdits(implicit ctx: rule.RuleCtx, index: SemanticdbIndex): List[TextEdit]
Converts a scalafix.Patch to precise languageserver.types.TextEdit.
Converts a scalafix.Patch to precise languageserver.types.TextEdit.
We could take a shortcut and apply the patch to a String and return one large TextEdit that replaces the whole file. However, in scalafix we treat each token individually so we can provide more precise changes.