Skip to content

CodeLocation

Source code in docs_src/capo_securityagent/types/code_location.py
class CodeLocation(TypedDict, closed=True):
    file_path: "str"
    """<p>The absolute path to the file containing the code location.</p>"""
    line_start: NotRequired["int"]
    """<p>The starting line number of the code location.</p>"""
    line_end: NotRequired["int"]
    """<p>The ending line number of the code location.</p>"""
    label: NotRequired["str"]
    """<p>The role of this location in the vulnerability, such as source or sink.</p>"""

file_path instance-attribute

file_path: str

The absolute path to the file containing the code location.

label instance-attribute

label: NotRequired[str]

The role of this location in the vulnerability, such as source or sink.

line_end instance-attribute

line_end: NotRequired[int]

The ending line number of the code location.

line_start instance-attribute

line_start: NotRequired[int]

The starting line number of the code location.