function Parser::parseClassElementName
Parses a property name. The returned value is an array where there first element is the property name and the second element is a boolean indicating if it's a computed property
Return value
array|null
2 calls to Parser::parseClassElementName()
- Parser::parseFieldDefinition in vendor/
mck89/ peast/ lib/ Peast/ Syntax/ Parser.php - Parses a field definition
- Parser::parseMethodDefinition in vendor/
mck89/ peast/ lib/ Peast/ Syntax/ Parser.php - Parses a method definition
File
-
vendor/
mck89/ peast/ lib/ Peast/ Syntax/ Parser.php, line 2528
Class
- Parser
- Parser class
Namespace
Peast\SyntaxCode
protected function parseClassElementName() {
if ($this->features->privateMethodsAndFields && ($name = $this->parsePrivateIdentifier())) {
return array(
$name,
false,
);
}
return $this->parsePropertyName();
}