DiffUtil

dotty.tools.dotc.util.DiffUtil$
object DiffUtil

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
DiffUtil.type

Members list

Value members

Concrete methods

def mkColoredCodeDiff(code: String, lastCode: String, printDiffDel: Boolean): String
def mkColoredLineDiff(expected: Seq[String], actual: Seq[String]): String

Return a colored diff between the tokens of every line in expected and actual. Each line of output contains the expected value on the left and the actual value on the right.

Return a colored diff between the tokens of every line in expected and actual. Each line of output contains the expected value on the left and the actual value on the right.

Value parameters

actual

The actual lines

expected

The expected lines

Attributes

Returns

A string with one element of expected and actual on each lines, where differences are highlighted.

def mkColoredLineDiff(expected: String, actual: String, expectedSize: Int): String
def mkColoredTypeDiff(found: String, expected: String): (String, String, Double)

Attributes

Returns

a tuple of the (found, expected, changedPercentage) diffs as strings

Concrete fields

val EOF: String