A class that represents a TypeScript assignment statement in a codebase, such as const x = 1
or const { a: b } = myFunc()
.
This includes potentially multiple Assignments via statement.assignments
, which represent each assignment of a value to a variable within this statement.
For example, assigning to a destructured object, or assigning multiple values to multiple variables in a single statement.
str
NodeId
str
int
NodeType
str
TSNode
Editable
with new_src
.
str
bool
int
bool
None
Union[list[str], str]
bool
list[str]
bool
str
bool
str
bool, optional
bool, optional
int, optional
bool, optional
None
str
bool
bool
int
bool
None
bool
None
bool
int
bool
None
str
str
int, optional
bool, optional
int, optional
int
regex_pattern
, similar to python’s re.search().
str
bool
bool
str
None