TokenEditDistance

mdoc.internal.pos.TokenEditDistance
See theTokenEditDistance companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(original: IndexedSeq[Token], revised: IndexedSeq[Token]): TokenEditDistance

Build utility to map offsets between two slightly different strings.

Build utility to map offsets between two slightly different strings.

Value parameters

original

The original snapshot of a string, for example the latest semanticdb snapshot.

revised

The current snapshot of a string, for example open buffer in an editor.

Attributes

def apply(originalInput: Input, revisedInput: Input): Option[TokenEditDistance]
def fromInputs(original: Seq[Input], instrumented: Input): TokenEditDistance
def fromTokens(original: Seq[Tokens], instrumented: Input): TokenEditDistance
def fromTrees(original: Seq[Tree], instrumented: Input): TokenEditDistance

Concrete fields

Implicits

Implicits

implicit val dialect: Dialect