fix: remove unused applyCon from AST
This commit is contained in:
parent
6d1c0b7a87
commit
e9ed197782
@ -183,13 +183,6 @@ object ast {
|
|||||||
// Parser bridges
|
// Parser bridges
|
||||||
case class Position(line: Int, column: Int, offset: Int)
|
case class Position(line: Int, column: Int, offset: Int)
|
||||||
|
|
||||||
private def applyCon[A, B](
|
|
||||||
con: ((Int, Int), Int, Int) => A => B
|
|
||||||
)(ops: => Parsley[A]): Parsley[B] =
|
|
||||||
(pos, offset, withWidth(ops)).zipped.map { (pos, off, res) =>
|
|
||||||
con(pos, off, res._2)(res._1)
|
|
||||||
}
|
|
||||||
|
|
||||||
trait ParserSingletonBridgePos[+A] extends ErrorBridge {
|
trait ParserSingletonBridgePos[+A] extends ErrorBridge {
|
||||||
protected def con(pos: (Int, Int), offset: Int): A
|
protected def con(pos: (Int, Int), offset: Int): A
|
||||||
infix def from(op: Parsley[?]): Parsley[A] = error((pos, offset).zipped(con) <~ op)
|
infix def from(op: Parsley[?]): Parsley[A] = error((pos, offset).zipped(con) <~ op)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user