pub struct JavaScriptLexer<'config> { /* private fields */ }Expand description
JavaScript lexer.
Implementations§
Source§impl<'config> JavaScriptLexer<'config>
impl<'config> JavaScriptLexer<'config>
Sourcepub fn new(config: &'config JavaScriptLanguage) -> Self
pub fn new(config: &'config JavaScriptLanguage) -> Self
Creates a new JavaScript lexer.
Trait Implementations§
Source§impl<'config> Clone for JavaScriptLexer<'config>
impl<'config> Clone for JavaScriptLexer<'config>
Source§fn clone(&self) -> JavaScriptLexer<'config>
fn clone(&self) -> JavaScriptLexer<'config>
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<'config> Debug for JavaScriptLexer<'config>
impl<'config> Debug for JavaScriptLexer<'config>
Source§impl<'config> Lexer<JavaScriptLanguage> for JavaScriptLexer<'config>
impl<'config> Lexer<JavaScriptLanguage> for JavaScriptLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
text: &S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<JavaScriptLanguage>,
) -> LexOutput<JavaScriptLanguage>
fn lex<'a, S: Source + ?Sized>( &self, text: &S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<JavaScriptLanguage>, ) -> LexOutput<JavaScriptLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Auto Trait Implementations§
impl<'config> Freeze for JavaScriptLexer<'config>
impl<'config> RefUnwindSafe for JavaScriptLexer<'config>
impl<'config> Send for JavaScriptLexer<'config>
impl<'config> Sync for JavaScriptLexer<'config>
impl<'config> Unpin for JavaScriptLexer<'config>
impl<'config> UnsafeUnpin for JavaScriptLexer<'config>
impl<'config> UnwindSafe for JavaScriptLexer<'config>
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