pub struct PhpParser<'config> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'config> Parser<PhpLanguage> for PhpParser<'config>
impl<'config> Parser<PhpLanguage> for PhpParser<'config>
Source§fn parse<'s, S: Source + ?Sized>(
&self,
text: &'s S,
edits: &[TextEdit],
cache: &'s mut impl ParseCache<PhpLanguage>,
) -> ParseOutput<'s, PhpLanguage>
fn parse<'s, S: Source + ?Sized>( &self, text: &'s S, edits: &[TextEdit], cache: &'s mut impl ParseCache<PhpLanguage>, ) -> ParseOutput<'s, PhpLanguage>
The core parsing entry point. Read more
Source§impl<'config> Pratt<PhpLanguage> for PhpParser<'config>
impl<'config> Pratt<PhpLanguage> for PhpParser<'config>
Source§fn primary<'a, S: Source + ?Sized>(
&self,
state: &mut ParserState<'a, PhpLanguage, S>,
) -> &'a GreenNode<'a, PhpLanguage>
fn primary<'a, S: Source + ?Sized>( &self, state: &mut ParserState<'a, PhpLanguage, S>, ) -> &'a GreenNode<'a, PhpLanguage>
Parses a primary expression (e.g., literals, identifiers, group).
Source§fn prefix<'a, S: Source + ?Sized>(
&self,
state: &mut ParserState<'a, PhpLanguage, S>,
) -> &'a GreenNode<'a, PhpLanguage>
fn prefix<'a, S: Source + ?Sized>( &self, state: &mut ParserState<'a, PhpLanguage, S>, ) -> &'a GreenNode<'a, PhpLanguage>
Handles prefix operators and primary expressions. Read more
Source§fn infix<'a, S: Source + ?Sized>(
&self,
state: &mut ParserState<'a, PhpLanguage, S>,
left: &'a GreenNode<'a, PhpLanguage>,
min_precedence: u8,
) -> Option<&'a GreenNode<'a, PhpLanguage>>
fn infix<'a, S: Source + ?Sized>( &self, state: &mut ParserState<'a, PhpLanguage, S>, left: &'a GreenNode<'a, PhpLanguage>, min_precedence: u8, ) -> Option<&'a GreenNode<'a, PhpLanguage>>
Handles infix and postfix operators. Read more
Auto Trait Implementations§
impl<'config> Freeze for PhpParser<'config>
impl<'config> RefUnwindSafe for PhpParser<'config>
impl<'config> Send for PhpParser<'config>
impl<'config> Sync for PhpParser<'config>
impl<'config> Unpin for PhpParser<'config>
impl<'config> UnwindSafe for PhpParser<'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