You are here

private function Translator::parseSelectors in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/css-selector/XPath/Translator.php \Symfony\Component\CssSelector\XPath\Translator::parseSelectors()

Parameters

string $css:

Return value

SelectorNode[]

1 call to Translator::parseSelectors()
Translator::cssToXPath in vendor/symfony/css-selector/XPath/Translator.php
Translates a CSS selector to an XPath expression.

File

vendor/symfony/css-selector/XPath/Translator.php, line 287

Class

Translator
XPath expression translator interface.

Namespace

Symfony\Component\CssSelector\XPath

Code

private function parseSelectors($css) {
  foreach ($this->shortcutParsers as $shortcut) {
    $tokens = $shortcut
      ->parse($css);
    if (!empty($tokens)) {
      return $tokens;
    }
  }
  return $this->mainParser
    ->parse($css);
}