All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.shiftleft.semanticcpg.language.dotextension.AstNodeDot.scala Maven / Gradle / Ivy

There is a newer version: 4.0.131
Show newest version
package io.shiftleft.semanticcpg.language.dotextension

import io.shiftleft.codepropertygraph.generated.nodes.AstNode
import io.shiftleft.semanticcpg.dotgenerator.DotAstGenerator
import io.shiftleft.semanticcpg.language.*

class AstNodeDot[NodeType <: AstNode](val traversal: Iterator[NodeType]) extends AnyVal {

  def dotAst: Iterator[String] = DotAstGenerator.dotAst(traversal)

  def plotDotAst(implicit viewer: ImageViewer): Unit = {
    Shared.plotAndDisplay(dotAst.l, viewer)
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy