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

Breadcrumb

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

function Parser::parseFromClause

Parses the from keyword and the following string in import and export declarations

Return value

Node\StringLiteral|null

2 calls to Parser::parseFromClause()
Parser::parseExportDeclaration in vendor/mck89/peast/lib/Peast/Syntax/Parser.php
Parses an export declaration
Parser::parseImportDeclaration in vendor/mck89/peast/lib/Peast/Syntax/Parser.php
Parses an import declaration

File

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

Class

Parser
Parser class

Namespace

Peast\Syntax

Code

protected function parseFromClause() {
    if ($this->scanner
        ->consume("from")) {
        if ($spec = $this->parseStringLiteral()) {
            return $spec;
        }
        $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