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

io.shiftleft.semanticcpg.dotgenerator.DotCdgGenerator.scala Maven / Gradle / Ivy

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

import io.shiftleft.codepropertygraph.generated.nodes.Method

object DotCdgGenerator {

  def dotCdg(traversal: Iterator[Method]): Iterator[String] =
    traversal.map(dotCdg)

  def dotCdg(method: Method): String = {
    val cdg = new CdgGenerator().generate(method)
    DotSerializer.dotGraph(Option(method), cdg)
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy