PassConfig

class PassConfig Compiler Pass Configuration. This class has a default configuration embedded. Constants TYPE_AFTER_REMOVING TYPE_BEFORE_OPTIMIZATION TYPE_BEFORE_REMOVING TYPE_OPTIMIZE TYPE_REMOVE Methods __construct() array getPasses() Returns all passes in order to be processed. addPass(CompilerPassInterface $pass, string $type = self::TYPE_BEFORE_OPTIMIZATION) Adds a pass. array getAfterRemovingPasses() Gets all passes for the AfterRemoving pass.

ParserInterface

interface ParserInterface CSS selector parser interface. This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Methods SelectorNode[] parse(string $source) Parses given selector source into an array of tokens. Details SelectorNode[] parse(string $source) Parses given selector source into an array of tokens. Parameters string $source Return Value SelectorNode[]

ParserCacheInterface::save()

save(string $key, ParsedExpression $expression) Saves an expression in the cache. Parameters string $key The cache key ParsedExpression $expression A ParsedExpression instance to store in the cache

ParserCacheInterface::fetch()

ParsedExpression|null fetch(string $key) Fetches an expression from the cache. Parameters string $key The cache key Return Value ParsedExpression|null

ParserCacheInterface

interface ParserCacheInterface Methods save(string $key, ParsedExpression $expression) Saves an expression in the cache. ParsedExpression|null fetch(string $key) Fetches an expression from the cache. Details save(string $key, ParsedExpression $expression) Saves an expression in the cache. Parameters string $key The cache key ParsedExpression $expression A ParsedExpression instance to store in the cache ParsedExpr

Parser::parseSeries()

static array parseSeries(array $tokens) Parses the arguments for ":nth-child()" and friends. Parameters array $tokens Return Value array Exceptions SyntaxErrorException

Parser::parsePrimaryExpression()

parsePrimaryExpression()

Parser::parsePostfixExpression()

parsePostfixExpression($node) Parameters $node

Parser::parseHashExpression()

parseHashExpression()

Parser::parseExpression()

parseExpression($precedence) Parameters $precedence