pub struct CSharpLanguage;Expand description
C# 语言实现
Trait Implementations§
Source§impl Clone for CSharpLanguage
impl Clone for CSharpLanguage
Source§fn clone(&self) -> CSharpLanguage
fn clone(&self) -> CSharpLanguage
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 Debug for CSharpLanguage
impl Debug for CSharpLanguage
Source§impl Default for CSharpLanguage
impl Default for CSharpLanguage
Source§fn default() -> CSharpLanguage
fn default() -> CSharpLanguage
Returns the “default value” for a type. Read more
Source§impl Hash for CSharpLanguage
impl Hash for CSharpLanguage
Source§impl Language for CSharpLanguage
impl Language for CSharpLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = CSharpTokenType
type TokenType = CSharpTokenType
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = CSharpElementType
type ElementType = CSharpElementType
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<CSharpLanguage> for CSharpLexer<'config>
impl<'config> Lexer<CSharpLanguage> for CSharpLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
text: &S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<CSharpLanguage>,
) -> LexOutput<CSharpLanguage>
fn lex<'a, S: Source + ?Sized>( &self, text: &S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<CSharpLanguage>, ) -> LexOutput<CSharpLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<CSharpLanguage> for CSharpParser<'config>
impl<'config> Parser<CSharpLanguage> for CSharpParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<CSharpLanguage>,
) -> ParseOutput<'a, CSharpLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<CSharpLanguage>, ) -> ParseOutput<'a, CSharpLanguage>
The core parsing entry point. Read more
Source§impl PartialEq for CSharpLanguage
impl PartialEq for CSharpLanguage
Source§impl<'config> Pratt<CSharpLanguage> for CSharpParser<'config>
impl<'config> Pratt<CSharpLanguage> for CSharpParser<'config>
Source§fn primary<'a, S: Source + ?Sized>(
&self,
state: &mut ParserState<'a, CSharpLanguage, S>,
) -> &'a GreenNode<'a, CSharpLanguage>
fn primary<'a, S: Source + ?Sized>( &self, state: &mut ParserState<'a, CSharpLanguage, S>, ) -> &'a GreenNode<'a, CSharpLanguage>
Parses a primary expression (e.g., literals, identifiers, group).
Source§fn prefix<'a, S: Source + ?Sized>(
&self,
state: &mut ParserState<'a, CSharpLanguage, S>,
) -> &'a GreenNode<'a, CSharpLanguage>
fn prefix<'a, S: Source + ?Sized>( &self, state: &mut ParserState<'a, CSharpLanguage, S>, ) -> &'a GreenNode<'a, CSharpLanguage>
Handles prefix operators and primary expressions. Read more
Source§fn infix<'a, S: Source + ?Sized>(
&self,
state: &mut ParserState<'a, CSharpLanguage, S>,
left: &'a GreenNode<'a, CSharpLanguage>,
min_precedence: u8,
) -> Option<&'a GreenNode<'a, CSharpLanguage>>
fn infix<'a, S: Source + ?Sized>( &self, state: &mut ParserState<'a, CSharpLanguage, S>, left: &'a GreenNode<'a, CSharpLanguage>, min_precedence: u8, ) -> Option<&'a GreenNode<'a, CSharpLanguage>>
Handles infix and postfix operators. Read more
impl Copy for CSharpLanguage
impl Eq for CSharpLanguage
impl StructuralPartialEq for CSharpLanguage
Auto Trait Implementations§
impl Freeze for CSharpLanguage
impl RefUnwindSafe for CSharpLanguage
impl Send for CSharpLanguage
impl Sync for CSharpLanguage
impl Unpin for CSharpLanguage
impl UnwindSafe for CSharpLanguage
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