All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lsp.HumanPosition.scala Maven / Gradle / Ivy

package lsp

import core.parsers.editorParsers.Position

object HumanPosition {
  implicit def toPosition(position: HumanPosition): Position = new Position(position.line - 1, position.character - 1)
  implicit def fromPosition(position: Position): HumanPosition = new HumanPosition(position.line + 1, position.character + 1)
}

case class HumanPosition(line: Int, character: Int) {}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy