Identifier#
- class scubatrace.Identifier(node: Node, statement: Statement)#
Bases:
object
An identifier in the source code.
- property definitions: list[Identifier]#
Identifiers that define this identifier.
- property end_column: int#
The ending column number of the identifier in the file.
- property end_line: int#
The ending line number of the identifier in the file.
- property function#
The function that contains this identifier, if applicable.
- property is_left_value: bool#
Checks if the identifier is a left value (e.g., a variable that can be assigned a value).
- property is_right_value: bool#
Checks if the identifier is a right value (e.g., a variable that is used to retrieve a value).
- property is_taint_from_entry: bool#
Checks if the variables of the statement are tainted from the parameters of the function.
- property name: str#
The name of the identifier.
- node: Node#
The tree-sitter node representing the identifier.
- property post_data_dependents: list[Identifier]#
Identifiers that are data dependents of this identifier in the forward direction.
This means they are used after this identifier in the code.
- property pre_data_dependents: list[Identifier]#
Identifiers that are data dependents of this identifier in the backward direction.
This means they are modified before this identifier in the code.
- property references: list[Identifier]#
Identifiers that reference this identifier.
- property signature: str#
A unique signature for the identifier.
- property start_column: int#
The starting column number of the identifier in the file.
- property start_line: int#
The starting line number of the identifier in the file.
- property text: str#
The text of the identifier.