PositionOffsetConversion

ammonite.util.PositionOffsetConversion$

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def extraOffset(ignoreSections: Seq[(Int, Int)], idx: Int): Int

Removes sections delimited by ignoreSections from offset idx

Removes sections delimited by ignoreSections from offset idx

Attributes

def offsetToPos(content: String): Int => Position

Converts a character offset from beginning of content to a Position

Converts a character offset from beginning of content to a Position

Attributes

def scalaPosToScPos(scCode: String, startLineInSc: Int, startPosInSc: Int, scalaCode: String, startOffsetInScala: Int): (Int, Int) => Option[(Int, Int)]
def sections(input: String, start: String, end: String): Array[(Int, Int)]

Returns the start and end indices of sections delimited by start and end in input

Returns the start and end indices of sections delimited by start and end in input

Attributes