Region

io.shiftleft.semanticcpg.sarif.SarifSchema.Region
trait Region

A region within an artifact where a result was detected.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Region

Members list

Value members

Abstract methods

def endColumn: Option[Int]

Attributes

Returns

The column number of the character following the end of the region.

def endLine: Option[Int]

Attributes

Returns

The line number of the last character in the region.

def snippet: Option[ArtifactContent]

Attributes

Returns

The portion of the artifact contents within the specified region.

def startColumn: Option[Int]

Attributes

Returns

The column number of the first character in the region.

def startLine: Option[Int]

Attributes

Returns

The line number of the first character in the region.

Concrete methods

def isEmpty: Boolean

Attributes

Returns

true if startLine is empty and larger than 0, as this is the main required property.