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<'config> Builder<VampireLanguage> for VampireBuilder<'config>
impl<'config> Builder<VampireLanguage> for VampireBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl BuilderCache<VampireLanguage>,
) -> BuildOutput<VampireLanguage>
fn build<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl BuilderCache<VampireLanguage>, ) -> BuildOutput<VampireLanguage>
Builds the structure from the source text.
Source§impl Default for VampireLanguage
impl Default for VampireLanguage
Source§impl Language for VampireLanguage
impl Language for VampireLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = VampireSyntaxKind
type TokenType = VampireSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = VampireSyntaxKind
type ElementType = VampireSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§type TypedRoot = VampireRoot
type TypedRoot = VampireRoot
The root type for the parsed tree that represents the top-level structure of the language. Read more
Source§impl<'config> Lexer<VampireLanguage> for VampireLexer<'config>
impl<'config> Lexer<VampireLanguage> for VampireLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
text: &'a S,
_edits: &[TextEdit],
_cache: &'a mut impl LexerCache<VampireLanguage>,
) -> LexOutput<VampireLanguage>
fn lex<'a, S: Source + ?Sized>( &self, text: &'a S, _edits: &[TextEdit], _cache: &'a mut impl LexerCache<VampireLanguage>, ) -> LexOutput<VampireLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<VampireLanguage> for VampireParser<'config>
impl<'config> Parser<VampireLanguage> for VampireParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<VampireLanguage>,
) -> ParseOutput<'a, VampireLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<VampireLanguage>, ) -> ParseOutput<'a, VampireLanguage>
The core parsing entry point. 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