Optimize imports

This commit is contained in:
Eike Kettner
2021-02-25 22:42:47 +01:00
parent e9ed998e3a
commit a80d73d5d2
12 changed files with 18 additions and 6 deletions

View File

@ -1,6 +1,7 @@
package docspell.query
import cats.data.{NonEmptyList => Nel}
import docspell.query.ItemQuery.Attr.{DateAttr, StringAttr}
/** A query evaluates to `true` or `false` given enough details about

View File

@ -1,9 +1,9 @@
package docspell.query
import docspell.query.internal.ExprParser
import scala.scalajs.js.annotation._
import docspell.query.internal.ExprParser
@JSExportTopLevel("DsItemQueryParser")
object ItemQueryParser {

View File

@ -1,6 +1,7 @@
package docspell.query.internal
import cats.parse.{Parser => P}
import docspell.query.ItemQuery.Attr
object AttrParser {

View File

@ -1,7 +1,7 @@
package docspell.query.internal
import cats.data.{NonEmptyList => Nel}
import cats.parse.{Parser0, Parser => P}
import cats.parse.{Parser => P, Parser0}
object BasicParser {
private[this] val whitespace: P[Unit] = P.charIn(" \t\r\n").void

View File

@ -2,6 +2,7 @@ package docspell.query.internal
import cats.implicits._
import cats.parse.{Numbers, Parser => P}
import docspell.query.Date
object DateParser {

View File

@ -1,6 +1,7 @@
package docspell.query.internal
import cats.parse.{Parser => P}
import docspell.query.ItemQuery._
object ExprParser {

View File

@ -1,6 +1,7 @@
package docspell.query.internal
import cats.parse.{Parser => P}
import docspell.query.ItemQuery._
object OperatorParser {

View File

@ -1,6 +1,7 @@
package docspell.query.internal
import cats.parse.{Parser => P}
import docspell.query.ItemQuery.Expr.CustomFieldMatch
import docspell.query.ItemQuery._

View File

@ -22,7 +22,7 @@ package docspell.query.internal
// modified, from
// https://github.com/typelevel/cats-parse/blob/e7a58ef15925358fbe7a4c0c1a204296e366a06c/bench/src/main/scala/cats/parse/bench/self.scala
import cats.parse.{Parser0 => P0, Parser => P}
import cats.parse.{Parser => P, Parser0 => P0}
object StringUtil {