CodeDumper

io.shiftleft.semanticcpg.codedumper.CodeDumper
object CodeDumper

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
CodeDumper.type

Members list

Value members

Concrete methods

def arrow(locationFullName: Option[String]): CharSequence
def code(filename: String, startLine: Integer, endLine: Integer, lineToHighlight: Option[Integer], locationFullName: Option[String]): String

For a given filename, startLine, and endLine, return the corresponding code by reading it from the file. If lineToHighlight is defined, then a line containing an arrow (as a source code comment) is included right before that line.

For a given filename, startLine, and endLine, return the corresponding code by reading it from the file. If lineToHighlight is defined, then a line containing an arrow (as a source code comment) is included right before that line.

Attributes

def dump(location: NewLocation, language: Option[String], rootPath: Option[String], highlight: Boolean, withArrow: Boolean): String

Dump string representation of code at given location.

Dump string representation of code at given location.

Attributes