pub struct TypeScriptParser;Expand description
TypeScript and JavaScript language parser.
Implementations§
Trait Implementations§
Source§impl Default for TypeScriptParser
impl Default for TypeScriptParser
Source§impl LanguageParser for TypeScriptParser
impl LanguageParser for TypeScriptParser
Source§fn extract_units(
&self,
tree: &Tree,
source: &str,
file_path: &Path,
) -> AcbResult<Vec<RawCodeUnit>>
fn extract_units( &self, tree: &Tree, source: &str, file_path: &Path, ) -> AcbResult<Vec<RawCodeUnit>>
Extract code units from a parsed tree.
Auto Trait Implementations§
impl Freeze for TypeScriptParser
impl RefUnwindSafe for TypeScriptParser
impl Send for TypeScriptParser
impl Sync for TypeScriptParser
impl Unpin for TypeScriptParser
impl UnsafeUnpin for TypeScriptParser
impl UnwindSafe for TypeScriptParser
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