io.shiftleft.queryprimitives.steps.Implicits.scala Maven / Gradle / Ivy
package io.shiftleft.queryprimitives.steps
import gremlin.scala._
import shapeless.HList
object Implicits {
implicit class GremlinScalaDeco[End, Labels <: HList](raw: GremlinScala.Aux[End, Labels]) {
/* in some cases we cannot statically determine the type of the node, e.g. when traversing
* from a known nodeType via AST edges, so we have to cast */
def cast[NodeType]: GremlinScala.Aux[NodeType, Labels] =
raw.asInstanceOf[GremlinScala.Aux[NodeType, Labels]]
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy