pub struct TypescriptCode { /* private fields */ }Trait Implementations§
Source§impl Alterator for TypescriptCode
impl Alterator for TypescriptCode
Source§fn alterate(
node: &Node<'_>,
code: &[u8],
span: bool,
children: Vec<AstNode>,
) -> AstNode
fn alterate( node: &Node<'_>, code: &[u8], span: bool, children: Vec<AstNode>, ) -> AstNode
Creates a new
AST node containing the code associated to the node,
its span, and its children. Read moreSource§fn get_text_span(
node: &Node<'_>,
code: &[u8],
span: bool,
text: bool,
) -> (String, Span)
fn get_text_span( node: &Node<'_>, code: &[u8], span: bool, text: bool, ) -> (String, Span)
Gets the code as text and the span associated to a node.
Source§impl Cognitive for TypescriptCode
impl Cognitive for TypescriptCode
Source§impl Cyclomatic for TypescriptCode
impl Cyclomatic for TypescriptCode
Source§impl Halstead for TypescriptCode
impl Halstead for TypescriptCode
Source§impl LanguageInfo for TypescriptCode
impl LanguageInfo for TypescriptCode
Source§impl Loc for TypescriptCode
impl Loc for TypescriptCode
Source§impl Mi for TypescriptCode
impl Mi for TypescriptCode
Auto Trait Implementations§
impl Freeze for TypescriptCode
impl RefUnwindSafe for TypescriptCode
impl Send for TypescriptCode
impl Sync for TypescriptCode
impl Unpin for TypescriptCode
impl UnsafeUnpin for TypescriptCode
impl UnwindSafe for TypescriptCode
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