SymbolTable final class
Minn\Runtime\SymbolTable · public/minn/src/Minn/Runtime/SymbolTable.php · 69 lines
What a folder's PHP names, collected while its tokens are read: the functions it calls, the classes it references, and what it declares or guards itself, so the gate can subtract those before judging it.
Used by 1
Constants and properties
| private | array $calls | |
| private | array $classes | |
| private | array $declared | |
| private | array $declaredGlobal | |
| private | array $declaredClasses | |
| private | array $guarded |
Public
| method | call(string $name): void# | Notes a function called. |
| method | classRef(string $name): void# | Notes a class referenced. |
| method | declare(string $function): void# | Notes a function the folder declares, a method included: a call by that name is not a need. |
| method | declareGlobal(string $function): void# | Notes a function declared in the global scope, which the runtime must not already define. |
| method | declareClass(string $class): void# | Notes a class the folder declares. |
| method | guard(string $name): void# | A name an existence check protects: function_exists, class_exists, defined, and the rest. |
| method | toArray(bool $truncated): array# | The table as the gate reads it. @return array{calls: list<string>, classes: list<string>, declared: array<string, true>, declaredGlobal: array<string, true>, declaredClasses: array<string, true>, guarded: array<string, true>, truncated: bool} |
Nothing matches.