WordPress at a glance
function is not described

Automattic\Jetpack\Autoloader

AutoloadGenerator::parseAutoloads() public WC 1.0

Compiles an ordered list of namespace => path mappings

{} It's a method of the class: AutoloadGenerator{}

No Hooks.

Return

Array. The list of path mappings.

Usage

$AutoloadGenerator = new AutoloadGenerator();
$AutoloadGenerator->parseAutoloads( $packageMap, $mainPackage );
$packageMap(array) (required)
Array of array(package, installDir-relative-to-composer.json).
$mainPackage(Packageinterface) (required)
Main package instance.

Code of AutoloadGenerator::parseAutoloads() WC 5.3.0

<?php
public function parseAutoloads( array $packageMap, PackageInterface $mainPackage ) {
	$rootPackageMap = array_shift( $packageMap );

	$sortedPackageMap   = $this->sortPackageMap( $packageMap );
	$sortedPackageMap[] = $rootPackageMap;
	array_unshift( $packageMap, $rootPackageMap );

	$psr0     = $this->parseAutoloadsType( $packageMap, 'psr-0', $mainPackage );
	$psr4     = $this->parseAutoloadsType( $packageMap, 'psr-4', $mainPackage );
	$classmap = $this->parseAutoloadsType( array_reverse( $sortedPackageMap ), 'classmap', $mainPackage );
	$files    = $this->parseAutoloadsType( $sortedPackageMap, 'files', $mainPackage );

	krsort( $psr0 );
	krsort( $psr4 );

	return array(
		'psr-0'    => $psr0,
		'psr-4'    => $psr4,
		'classmap' => $classmap,
		'files'    => $files,
	);
}