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

caliban.parsing.adt.LocationInfo.scala Maven / Gradle / Ivy

The newest version!
package caliban.parsing.adt

import caliban.ResponseValue
import caliban.ResponseValue.ObjectValue
import caliban.Value.IntValue

case class LocationInfo(column: Int, line: Int) {
  def toResponseValue: ResponseValue =
    ObjectValue(List("line" -> IntValue(line), "column" -> IntValue(column)))
}

object LocationInfo {
  val origin: LocationInfo = LocationInfo(0, 0)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy