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

Breadcrumb

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

function Parser::parseModuleExportName

Parses an export name

Return value

Node\Identifier|Node\StringLiteral|null

3 calls to Parser::parseModuleExportName()
Parser::parseExportDeclaration in vendor/mck89/peast/lib/Peast/Syntax/Parser.php
Parses an export declaration
Parser::parseExportSpecifier in vendor/mck89/peast/lib/Peast/Syntax/Parser.php
Parses an export specifier
Parser::parseImportSpecifier in vendor/mck89/peast/lib/Peast/Syntax/Parser.php
Parses an import specifier

File

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

Class

Parser
Parser class

Namespace

Peast\Syntax

Code

protected function parseModuleExportName() {
    if ($name = $this->parseIdentifier(static::$identifierName)) {
        return $name;
    }
    elseif ($this->features->arbitraryModuleNSNames && ($name = $this->parseStringLiteral())) {
        return $name;
    }
    return null;
}

API Navigation

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