Documentation

Parser

Tags
template

Table of Contents

Methods

getHandledTokenClass()  : TToken>
Get the token class that this parser handles
parseCurrentContext()  : TToken|LintError|null
Parses a tokenizer current context and returns a token or an error if applicable.

Methods

getHandledTokenClass()

Get the token class that this parser handles

public getHandledTokenClass() : TToken>
Return values
TToken>

parseCurrentContext()

Parses a tokenizer current context and returns a token or an error if applicable.

public parseCurrentContext(TokenizerContext $tokenizerContext) : TToken|LintError|null
Parameters
$tokenizerContext : TokenizerContext

The context of the tokenizer to parse.

Return values
TToken|LintError|null

A token if parsing is successful, an error if there is an issue, or null if no action is taken.


        
On this page

Search results