io.shiftleft.codepropertygraph.generated.neighboraccessors.JumpLabel.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codepropertygraph-domain-classes_3 Show documentation
Show all versions of codepropertygraph-domain-classes_3 Show documentation
codepropertygraph-domain-classes
package io.shiftleft.codepropertygraph.generated.neighboraccessors
import io.shiftleft.codepropertygraph.generated.nodes
import io.shiftleft.codepropertygraph.generated.language.*
final class AccessNeighborsForJumpLabel(val node: nodes.JumpLabel) extends AnyVal {
/** Traverse to CONTROL_STRUCTURE via AST IN edge.
*/
def _controlStructureViaAstIn: Iterator[nodes.ControlStructure] = astIn.collectAll[nodes.ControlStructure]
def astIn: Iterator[nodes.ControlStructure] = node._astIn.cast[nodes.ControlStructure]
}
final class AccessNeighborsForJumpLabelTraversal(val traversal: Iterator[nodes.JumpLabel]) extends AnyVal {
/** Traverse to CONTROL_STRUCTURE via AST IN edge.
*/
def _controlStructureViaAstIn: Iterator[nodes.ControlStructure] = traversal.flatMap(_._controlStructureViaAstIn)
def astIn: Iterator[nodes.ControlStructure] = traversal.flatMap(_.astIn)
}