/var/www/vhosts/ihelp.ro/httpdocs/vendor/psy/psysh/src/CodeCleaner
NameSizeModeActions
AbstractClassPass.php23670644editdlrm
AssignThisVariablePass.php11140644editdlrm
CalledClassPass.php27360644editdlrm
CallTimePassByReferencePass.php16070644editdlrm
CodeCleanerPass.php4150644editdlrm
EmptyArrayDimFetchPass.php20250644editdlrm
ExitPass.php8590644editdlrm
FinalClassPass.php17810644editdlrm
FunctionContextPass.php15630644editdlrm
FunctionReturnInWriteContextPass.php27350644editdlrm
ImplicitReturnPass.php42370644editdlrm
InstanceOfPass.php19570644editdlrm
IssetPass.php14010644editdlrm
LabelContextPass.php26380644editdlrm
LeavePsyshAlonePass.php9920644editdlrm
ListPass.php33410644editdlrm
LoopContextPass.php36940644editdlrm
MagicConstantsPass.php10680644editdlrm
NamespaceAwarePass.php19600644editdlrm
NamespacePass.php24850644editdlrm
NoReturnValue.php8280644editdlrm
PassableByReferencePass.php42020644editdlrm
RequirePass.php46650644editdlrm
ReturnTypePass.php38080644editdlrm
StrictTypesPass.php27340644editdlrm
UseStatementPass.php45130644editdlrm
ValidClassNamePass.php100900644editdlrm
ValidConstructorPass.php40230644editdlrm
ValidFunctionNamePass.php24190644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/psy/psysh/src/CodeCleaner/LabelContextPass.php (2638B)
functionDepth = 0; $this->labelDeclarations = []; $this->labelGotos = []; } /** * @return int|Node|null Replacement node (or special return value) */ public function enterNode(Node $node) { if ($node instanceof FunctionLike) { $this->functionDepth++; return; } // node is inside function context if ($this->functionDepth !== 0) { return; } if ($node instanceof Goto_) { $this->labelGotos[\strtolower($node->name)] = $node->getLine(); } elseif ($node instanceof Label) { $this->labelDeclarations[\strtolower($node->name)] = $node->getLine(); } } /** * @param \PhpParser\Node $node * * @return int|Node|Node[]|null Replacement node (or special return value) */ public function leaveNode(Node $node) { if ($node instanceof FunctionLike) { $this->functionDepth--; } } /** * @return Node[]|null Array of nodes */ public function afterTraverse(array $nodes) { foreach ($this->labelGotos as $name => $line) { if (!isset($this->labelDeclarations[$name])) { $msg = "'goto' to undefined label '{$name}'"; throw new FatalErrorException($msg, 0, \E_ERROR, null, $line); } } } }