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

io.shiftleft.semanticcpg.dotgenerator.DotCfgGenerator.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 DotCfgGenerator {

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

  def dotCfg(method: Method): String = {
    val cfg = new CfgGenerator().generate(method)
    DotSerializer.dotGraph(Option(method), cfg)
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy