CallGraphAnalyzer
MMO\doc · 1 symbol · generated 30 Sep 2026
CallGraphAnalyzer
CallGraphAnalyzer.php:14Best-effort static call-graph scanner.
- Namespace
MMO\doc
Index
| NAME_TOKENS | ||
| importCache | ||
| tokenCache | ||
| candidateNames($raw, $currentNs, $useMap, $isFunction) | ||
| getFileImports($file, $tokens) | ||
| getFileTokens($file) | ||
| indexSymbols($reflections) | ||
| isIgnorable($token) | ||
| nextSignificant($tokens, $i) | ||
| parseImports($tokens) | Parse every use ...; import in a file (plain, aliased, and grouped use A\{B, C as D} forms, including use function/use const). | |
| parseUseList($tokens, $i, $prefix, $kind, $classes, $functions) | Parses a comma-separated use name list (recursing once for a prefix\{...} group). | |
| prevSignificant($tokens, $i) | ||
| resolveClassName($raw, $currentNs, $useClasses, $known) | ||
| resolveFunctionCall($raw, $currentNs, $useFunctions, $known) | ||
| resolveMethod($classFqn, $method, $known) | Resolve $classFqn::$method/$classFqn->$method to its actual declaring symbol, if that declaring class is itself indexed. | |
| scan($reflections) | ||
| scanFunction($ref, $known) |
Constants1
NAME_TOKENS
Properties2
importCache
- Type
- array
tokenCache
- Type
- array
Methods14
candidateNames($raw, $currentNs, $useMap, $isFunction)
CallGraphAnalyzer.php:147getFileImports($file, $tokens)
CallGraphAnalyzer.php:200getFileTokens($file)
CallGraphAnalyzer.php:196indexSymbols($reflections)
CallGraphAnalyzer.php:50isIgnorable($token)
CallGraphAnalyzer.php:204nextSignificant($tokens, $i)
CallGraphAnalyzer.php:208parseImports($tokens)
CallGraphAnalyzer.php:224Parse every use ...; import in a file (plain, aliased, and grouped use A\{B, C as D} forms, including use function/use const). Only class and function imports are kept (constants aren't callable).
parseUseList($tokens, $i, $prefix, $kind, $classes, $functions)
CallGraphAnalyzer.php:246Parses a comma-separated use name list (recursing once for a prefix\{...} group). @return int index just past the list
prevSignificant($tokens, $i)
CallGraphAnalyzer.php:214resolveClassName($raw, $currentNs, $useClasses, $known)
CallGraphAnalyzer.php:172resolveFunctionCall($raw, $currentNs, $useFunctions, $known)
CallGraphAnalyzer.php:165resolveMethod($classFqn, $method, $known)
CallGraphAnalyzer.php:181Resolve $classFqn::$method/$classFqn->$method to its actual declaring symbol, if that declaring class is itself indexed.
scan($reflections)
CallGraphAnalyzer.php:26scanFunction($ref, $known)
CallGraphAnalyzer.php:66| $ref | ReflectionFunctionAbstract | |
| $known | array | |
| returns | array |