Packages

final class Diff[A] extends TokenEditDistance

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Diff
  2. TokenEditDistance
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Diff(matching: Array[MatchingToken[A]], originalInput: VirtualFile, revisedInput: VirtualFile)(implicit ops: TokenOps[A])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  14. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  15. def toOriginal(revisedOffset: Int): Either[EmptyResult, meta.Position]
    Definition Classes
    DiffTokenEditDistance
  16. def toOriginal(revisedLine: Int, revisedColumn: Int): Either[EmptyResult, meta.Position]
    Definition Classes
    DiffTokenEditDistance
  17. final def toOriginalStrict(range: semanticdb.Range): Option[semanticdb.Range]
    Definition Classes
    TokenEditDistance
  18. def toRevised(originalOffset: Int): Either[EmptyResult, meta.Position]
    Definition Classes
    DiffTokenEditDistance
  19. def toRevised(originalLine: Int, originalColumn: Int): Either[EmptyResult, meta.Position]
    Definition Classes
    DiffTokenEditDistance
  20. def toRevised(range: org.eclipse.lsp4j.Range, adjustWithinToken: Boolean = false, fallbackToNearest: Boolean = true): Option[org.eclipse.lsp4j.Range]

    Converts a range position in the original document to a range position in the revised document.

    Converts a range position in the original document to a range position in the revised document.

    This method behaves differently from the other toRevised in a few ways: - it should only return None in the case when the sources don't tokenize. When the original token is removed in the revised document, we find instead the nearest token in the original document instead. This behaviour can be toggled off by providing value of false for fallbackToNearest.

    If adjustWithinToken is true and the original and revised range are both contained within a single (matching) token, then adjust the returned range to match the start/end offsets of the input range with respect to the token.

    Definition Classes
    DiffTokenEditDistance
  21. final def toRevised(scalaDiagnostic: ScalaDiagnostic, adjustWithinToken: Boolean, fallbackToNearest: Boolean): Option[ScalaDiagnostic]

    Converts a bsp diagnostic in the original document to the revised document.

    Converts a bsp diagnostic in the original document to the revised document. None will be returned if conversion of any of the diagnostic's underlying text edits cannot be revised.

    Definition Classes
    TokenEditDistance
  22. final def toRevised(scalaAction: ScalaAction, adjustWithinToken: Boolean, fallbackToNearest: Boolean): Option[ScalaAction]
    Definition Classes
    TokenEditDistance
  23. final def toRevised(textEdit: TextEdit, adjustWithinToken: Boolean, fallbackToNearest: Boolean): Option[TextEdit]
    Definition Classes
    TokenEditDistance
  24. final def toRevised(pos: org.eclipse.lsp4j.Position): Either[EmptyResult, meta.Position]
    Definition Classes
    TokenEditDistance
  25. final def toRevisedStrict(range: semanticdb.Range): Option[semanticdb.Range]
    Definition Classes
    TokenEditDistance
  26. def toString(): String
    Definition Classes
    Diff → AnyRef → Any
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from TokenEditDistance

Inherited from AnyRef

Inherited from Any

Ungrouped