A TypeScript symbol representing a code element with advanced manipulation capabilities. This class extends Symbol and Exportable to provide TypeScript-specific functionality for managing code symbols. It offers methods for handling imports, comments, code refactoring, and file operations like moving symbols between files while maintaining their dependencies and references. The class provides functionality for managing both inline and block comments, setting and retrieving import strings, and maintaining semicolon presence. It includes capabilities for moving symbols between files with options to handle dependencies and import strategy selection.
str | None
str
str
str | None
bool
bool
bool
str | None
str
SymbolType
str
bool
bool
None
str
None
int | None
str
bool
int
bool
None
Union[list[str], str]
bool
list[str]
bool
str | None, optional
str | None, optional
bool, optional
str
str
bool
str
bool, optional
bool, optional
int, optional
bool, optional
None
str
bool
bool
int
bool
bool
None
bool
bool
bool
str
None
None
bool
int
bool
None
str
int
tuple[NodeId, NodeId]
str
str
int, optional
bool, optional
int, optional
int
regex_pattern
, similar to python’s re.search().
str
bool
bool
str
bool, optional
bool, optional
None
str
bool, optional
bool, optional
TSNode | None, optional
None
str
None