PHPSA\Compiler\Statement\SwitchSt::compile PHP Метод

compile() публичный Метод

public compile ( PhpParser\Node\Stmt\Switch_ $stmt, Context $context ) : CompiledExpression
$stmt PhpParser\Node\Stmt\Switch_
$context PHPSA\Context
Результат PHPSA\CompiledExpression
    public function compile($stmt, Context $context)
    {
        $context->getExpressionCompiler()->compile($stmt->cond);
        foreach ($stmt->cases as $case) {
            \PHPSA\nodeVisitorFactory($case, $context);
        }
    }
SwitchSt