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

io.joern.fuzzyc2cpg.ast.CodeLocation.scala Maven / Gradle / Ivy

There is a newer version: 1.1.911
Show newest version
package io.joern.fuzzyc2cpg.ast

object CodeLocation {
  def apply: CodeLocation = new CodeLocation()
}

case class CodeLocation(
  startLine: Option[Int] = None,
  startPos: Option[Int] = None,
  startIndex: Option[Int] = None,
  endIndex: Option[Int] = None,
  endLine: Option[Int] = None,
  endPos: Option[Int] = None
) {

  override def toString: String =
    String.format("%d:%d:%d:%d:%d:%d", startLine, startPos, startIndex, endIndex, endLine, endPos)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy