pub struct PhpLanguage;Trait Implementations§
Source§impl<'config> Builder<PhpLanguage> for PhpBuilder<'config>
impl<'config> Builder<PhpLanguage> for PhpBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<PhpLanguage>,
) -> BuildOutput<PhpLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<PhpLanguage>, ) -> BuildOutput<PhpLanguage>
Builds the structure from the source text.
Source§impl Debug for PhpLanguage
impl Debug for PhpLanguage
Source§impl Default for PhpLanguage
impl Default for PhpLanguage
Source§fn default() -> PhpLanguage
fn default() -> PhpLanguage
Returns the “default value” for a type. Read more
Source§impl HoverProvider<PhpLanguage> for PhpHoverProvider
impl HoverProvider<PhpLanguage> for PhpHoverProvider
Source§impl Language for PhpLanguage
impl Language for PhpLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = PhpSyntaxKind
type TokenType = PhpSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = PhpSyntaxKind
type ElementType = PhpSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<PhpLanguage> for PhpLexer<'config>
impl<'config> Lexer<PhpLanguage> for PhpLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<PhpLanguage>,
) -> LexOutput<PhpLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<PhpLanguage>, ) -> LexOutput<PhpLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<PhpLanguage> for PhpParser<'config>
impl<'config> Parser<PhpLanguage> for PhpParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<PhpLanguage>,
) -> ParseOutput<'a, PhpLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<PhpLanguage>, ) -> ParseOutput<'a, 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 Freeze for PhpLanguage
impl RefUnwindSafe for PhpLanguage
impl Send for PhpLanguage
impl Sync for PhpLanguage
impl Unpin for PhpLanguage
impl UnwindSafe for PhpLanguage
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