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

Breadcrumb

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

function FunctionHelper::getAllFunctionOrMethodPointers

*

Return value

Generator<int>

1 call to FunctionHelper::getAllFunctionOrMethodPointers()
FunctionHelper::getAllFunctionNames in vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/FunctionHelper.php
*

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/FunctionHelper.php, line 558

Class

FunctionHelper
@internal

Namespace

SlevomatCodingStandard\Helpers

Code

private static function getAllFunctionOrMethodPointers(File $phpcsFile, int &$previousFunctionPointer) : Generator {
    do {
        $nextFunctionPointer = TokenHelper::findNext($phpcsFile, T_FUNCTION, $previousFunctionPointer + 1);
        if ($nextFunctionPointer === null) {
            break;
        }
        $previousFunctionPointer = $nextFunctionPointer;
        (yield $nextFunctionPointer);
    } while (true);
}

API Navigation

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