Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Parser.php

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\JSX

Code

protected function parseJSXAttributes() {
    $attributes = array();
    while (($attr = $this->parseJSXSpreadAttribute()) || ($attr = $this->parseJSXAttribute())) {
        $attributes[] = $attr;
    }
    return count($attributes) ? $attributes : null;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal