pub struct VampireLanguage {
pub comment_config: CommentConfig,
pub string_config: StringConfig,
pub whitespace_config: WhitespaceConfig,
}Fields§
§comment_config: CommentConfig§string_config: StringConfig§whitespace_config: WhitespaceConfigTrait Implementations§
Source§impl Default for VampireLanguage
impl Default for VampireLanguage
Source§impl Language for VampireLanguage
impl Language for VampireLanguage
Source§type SyntaxKind = VampireSyntaxKind
type SyntaxKind = VampireSyntaxKind
The kind kind type used to represent different kind and node types in the language. Read more
Source§impl<'config> Lexer<VampireLanguage> for VampireLexer<'config>
impl<'config> Lexer<VampireLanguage> for VampireLexer<'config>
Source§fn lex_incremental(
&self,
source: impl Source,
changed: usize,
cache: IncrementalCache<'_, VampireLanguage>,
) -> LexOutput<VampireLanguage>
fn lex_incremental( &self, source: impl Source, changed: usize, cache: IncrementalCache<'_, VampireLanguage>, ) -> LexOutput<VampireLanguage>
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 Freeze for VampireLanguage
impl RefUnwindSafe for VampireLanguage
impl Send for VampireLanguage
impl Sync for VampireLanguage
impl Unpin for VampireLanguage
impl UnwindSafe for VampireLanguage
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