pub struct SwiftLexer<'config> { /* private fields */ }Implementations§
Source§impl<'config> SwiftLexer<'config>
impl<'config> SwiftLexer<'config>
pub fn new(config: &'config SwiftLanguage) -> Self
Trait Implementations§
Source§impl<'config> Lexer<SwiftLanguage> for SwiftLexer<'config>
impl<'config> Lexer<SwiftLanguage> for SwiftLexer<'config>
Source§fn lex_incremental(
&self,
source: impl Source,
_changed: usize,
_cache: IncrementalCache<'_, SwiftLanguage>,
) -> LexOutput<SwiftLanguage>
fn lex_incremental( &self, source: impl Source, _changed: usize, _cache: IncrementalCache<'_, SwiftLanguage>, ) -> LexOutput<SwiftLanguage>
Tokenizes source text using an existing cache for incremental parsing. Read more
Source§fn lex(
&self,
source: impl Source,
) -> OakDiagnostics<Vec<Token<<L as Language>::SyntaxKind>>>
fn lex( &self, source: impl Source, ) -> OakDiagnostics<Vec<Token<<L as Language>::SyntaxKind>>>
Tokenizes the given source text into a sequence of tokens. Read more
Auto Trait Implementations§
impl<'config> Freeze for SwiftLexer<'config>
impl<'config> RefUnwindSafe for SwiftLexer<'config>
impl<'config> Send for SwiftLexer<'config>
impl<'config> Sync for SwiftLexer<'config>
impl<'config> Unpin for SwiftLexer<'config>
impl<'config> UnwindSafe for SwiftLexer<'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