Util

mill.api.internal.Util
object Util

Attributes

Source
Util.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Util.type

Members list

Value members

Concrete methods

def leftPad(s: String, targetLength: Int, char: Char): String

Attributes

Source
Util.scala
def renderSecondsSuffix(millis: Long): String

Attributes

Source
Util.scala
def scrapeColoredLineContent(renderedLines: Seq[String], unMappedPosLine: Int, fallback: => String): String

Scrape colored line content from Dotty/Zinc rendered output. Looks for lines matching the pattern <linenum> |<code> and extracts the code part.

Scrape colored line content from Dotty/Zinc rendered output. Looks for lines matching the pattern <linenum> |<code> and extracts the code part.

Value parameters

fallback

A fallback value if no matching line is found

renderedLines

The lines from the rendered error output

Attributes

Returns

The scraped line content or the fallback

Source
Util.scala