CodeDumper

io.shiftleft.semanticcpg.codedumper.CodeDumper$
object CodeDumper

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def code(filename: String, startLine: Integer, endLine: Integer, lineToHighlight: Option[Integer]): 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): String

Dump string representation of code at given location.

Dump string representation of code at given location.

Attributes

Concrete fields

val arrow: CharSequence