Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/css-selector/XPath/Extension/FunctionExtension.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
109 // -n means -1n | 109 // -n means -1n |
110 // -1n+6 means elements 6 and previous | 110 // -1n+6 means elements 6 and previous |
111 } | 111 } |
112 | 112 |
113 /** | 113 /** |
114 * @param XPathExpr $xpath | |
115 * @param FunctionNode $function | |
116 * | |
117 * @return XPathExpr | 114 * @return XPathExpr |
118 */ | 115 */ |
119 public function translateNthLastChild(XPathExpr $xpath, FunctionNode $function) | 116 public function translateNthLastChild(XPathExpr $xpath, FunctionNode $function) |
120 { | 117 { |
121 return $this->translateNthChild($xpath, $function, true); | 118 return $this->translateNthChild($xpath, $function, true); |
122 } | 119 } |
123 | 120 |
124 /** | 121 /** |
125 * @param XPathExpr $xpath | |
126 * @param FunctionNode $function | |
127 * | |
128 * @return XPathExpr | 122 * @return XPathExpr |
129 */ | 123 */ |
130 public function translateNthOfType(XPathExpr $xpath, FunctionNode $function) | 124 public function translateNthOfType(XPathExpr $xpath, FunctionNode $function) |
131 { | 125 { |
132 return $this->translateNthChild($xpath, $function, false, false); | 126 return $this->translateNthChild($xpath, $function, false, false); |
133 } | 127 } |
134 | 128 |
135 /** | 129 /** |
136 * @param XPathExpr $xpath | |
137 * @param FunctionNode $function | |
138 * | |
139 * @return XPathExpr | 130 * @return XPathExpr |
140 * | 131 * |
141 * @throws ExpressionErrorException | 132 * @throws ExpressionErrorException |
142 */ | 133 */ |
143 public function translateNthLastOfType(XPathExpr $xpath, FunctionNode $function) | 134 public function translateNthLastOfType(XPathExpr $xpath, FunctionNode $function) |
148 | 139 |
149 return $this->translateNthChild($xpath, $function, true, false); | 140 return $this->translateNthChild($xpath, $function, true, false); |
150 } | 141 } |
151 | 142 |
152 /** | 143 /** |
153 * @param XPathExpr $xpath | |
154 * @param FunctionNode $function | |
155 * | |
156 * @return XPathExpr | 144 * @return XPathExpr |
157 * | 145 * |
158 * @throws ExpressionErrorException | 146 * @throws ExpressionErrorException |
159 */ | 147 */ |
160 public function translateContains(XPathExpr $xpath, FunctionNode $function) | 148 public function translateContains(XPathExpr $xpath, FunctionNode $function) |
174 Translator::getXpathLiteral($arguments[0]->getValue()) | 162 Translator::getXpathLiteral($arguments[0]->getValue()) |
175 )); | 163 )); |
176 } | 164 } |
177 | 165 |
178 /** | 166 /** |
179 * @param XPathExpr $xpath | |
180 * @param FunctionNode $function | |
181 * | |
182 * @return XPathExpr | 167 * @return XPathExpr |
183 * | 168 * |
184 * @throws ExpressionErrorException | 169 * @throws ExpressionErrorException |
185 */ | 170 */ |
186 public function translateLang(XPathExpr $xpath, FunctionNode $function) | 171 public function translateLang(XPathExpr $xpath, FunctionNode $function) |