pub struct TypeScriptSymbol {Show 13 fields
pub name: String,
pub kind: TypeScriptSymbolKind,
pub byte_start: usize,
pub byte_end: usize,
pub line_start: usize,
pub line_end: usize,
pub col_start: usize,
pub col_end: usize,
pub parameters: Vec<String>,
pub container_path: String,
pub fully_qualified: String,
pub is_async: bool,
pub is_exported: bool,
}Expand description
Represents a TypeScript symbol with its byte and line/col spans.
Fields§
§name: StringLocal symbol name (e.g., User).
kind: TypeScriptSymbolKindSymbol kind (interface, type, enum, namespace, class, function, etc.).
byte_start: usizeStart byte offset.
byte_end: usizeEnd byte offset.
line_start: usizeStart line (1-based).
line_end: usizeEnd line (1-based).
col_start: usizeStart column (0-based, in bytes).
col_end: usizeEnd column (0-based, in bytes).
parameters: Vec<String>Function/method parameters (for functions and methods).
container_path: StringClass/module path (e.g., Outer.Inner).
fully_qualified: StringFully qualified name (e.g., Outer.Inner.method).
is_async: boolWhether this is an async function.
is_exported: boolWhether this is exported (export keyword).
Trait Implementations§
Source§impl Clone for TypeScriptSymbol
impl Clone for TypeScriptSymbol
Source§fn clone(&self) -> TypeScriptSymbol
fn clone(&self) -> TypeScriptSymbol
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeScriptSymbol
impl Debug for TypeScriptSymbol
Source§impl PartialEq for TypeScriptSymbol
impl PartialEq for TypeScriptSymbol
Source§impl Symbol for TypeScriptSymbol
impl Symbol for TypeScriptSymbol
Source§fn byte_start(&self) -> usize
fn byte_start(&self) -> usize
Get the start byte offset.
Source§fn line_start(&self) -> usize
fn line_start(&self) -> usize
Get the start line (1-based).
Source§fn fully_qualified(&self) -> &str
fn fully_qualified(&self) -> &str
Get the fully qualified name (e.g.,
module::foo).impl StructuralPartialEq for TypeScriptSymbol
Auto Trait Implementations§
impl Freeze for TypeScriptSymbol
impl RefUnwindSafe for TypeScriptSymbol
impl Send for TypeScriptSymbol
impl Sync for TypeScriptSymbol
impl Unpin for TypeScriptSymbol
impl UnsafeUnpin for TypeScriptSymbol
impl UnwindSafe for TypeScriptSymbol
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more