pub struct WatLanguage {}Implementations§
Source§impl WatLanguage
impl WatLanguage
Trait Implementations§
Source§impl Default for WatLanguage
impl Default for WatLanguage
Source§fn default() -> WatLanguage
fn default() -> WatLanguage
Returns the “default value” for a type. Read more
Source§impl Language for WatLanguage
impl Language for WatLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Dsl
const CATEGORY: LanguageCategory = LanguageCategory::Dsl
The category of the language.
Source§type TokenType = WatSyntaxKind
type TokenType = WatSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = WatSyntaxKind
type ElementType = WatSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<WatLanguage> for WatLexer<'config>
impl<'config> Lexer<WatLanguage> for WatLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
text: &'a S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<WatLanguage>,
) -> LexOutput<WatLanguage>
fn lex<'a, S: Source + ?Sized>( &self, text: &'a S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<WatLanguage>, ) -> LexOutput<WatLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<WatLanguage> for WatParser<'config>
impl<'config> Parser<WatLanguage> for WatParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<WatLanguage>,
) -> ParseOutput<'a, WatLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<WatLanguage>, ) -> ParseOutput<'a, WatLanguage>
The core parsing entry point. Read more
Auto Trait Implementations§
impl Freeze for WatLanguage
impl RefUnwindSafe for WatLanguage
impl Send for WatLanguage
impl Sync for WatLanguage
impl Unpin for WatLanguage
impl UnwindSafe for WatLanguage
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