org.ensime.noddy.BackCompat.scala Maven / Gradle / Ivy
The newest version!
// Copyright: 2010 - 2016 Rory Graves, Sam Halliday
// License: http://www.apache.org/licenses/LICENSE-2.0
package org.ensime.noddy
import scala.reflect.internal.util.Position
trait BackCompat {
implicit class RichPosition(pos: Position) {
def startOrCursor: Int = pos.start
def endOrCursor: Int = pos.end
}
}