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

Breadcrumb

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

function Parser::parseExportClause

Parses an export clause

Return value

Node\ExportSpecifier[]|null

1 call to Parser::parseExportClause()
Parser::parseExportDeclaration in vendor/mck89/peast/lib/Peast/Syntax/Parser.php
Parses an export declaration

File

vendor/mck89/peast/lib/Peast/Syntax/Parser.php, line 2123

Class

Parser
Parser class

Namespace

Peast\Syntax

Code

protected function parseExportClause() {
    if ($this->scanner
        ->consume("{")) {
        $list = array();
        while ($spec = $this->parseExportSpecifier()) {
            $list[] = $spec;
            if (!$this->scanner
                ->consume(",")) {
                break;
            }
        }
        if ($this->scanner
            ->consume("}")) {
            return $list;
        }
        $this->error();
    }
    return null;
}

API Navigation

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