function Parser::parseJSXAttributes
Parses a jsx attributes list
Return value
\Peast\Syntax\Node\Node[]|null
1 call to Parser::parseJSXAttributes()
- Parser::parseJSXElement in vendor/
mck89/ peast/ lib/ Peast/ Syntax/ JSX/ Parser.php - Parses a jsx element
File
-
vendor/
mck89/ peast/ lib/ Peast/ Syntax/ JSX/ Parser.php, line 321
Class
- Parser
- JSX parser trait
Namespace
Peast\Syntax\JSXCode
protected function parseJSXAttributes() {
$attributes = array();
while (($attr = $this->parseJSXSpreadAttribute()) || ($attr = $this->parseJSXAttribute())) {
$attributes[] = $attr;
}
return count($attributes) ? $attributes : null;
}