public static function compileDynamic(&$context, $name) {
        if (!$context['flags']['runpart']) {
            return;
        }

        $func = static::compile($context, $context['usedPartial'][$name], $name);

        if (!isset($context['partialCode'][$name]) && $func) {
            $context['partialCode'][$name] = "'$name' => $func";
        }

        return $func;
    }
public static function compileDynamic(&$context, $name) {
        if (!$context['flags']['runpart']) {
            return;
        }

        $func = static::compile($context, $context['usedPartial'][$name], $name);

        if (!isset($context['partialCode'][$name]) && $func) {
            $context['partialCode'][$name] = "'$name' => $func";
        }

        return $func;
    }
public static function compileDynamic ( & $ context , $ name ) { if ( ! $ context [ 'flags' ] [ 'runpart' ] ) { return ; } $ func = static :: compile ( $ context , $ context [ 'usedPartial' ] [ $ name ] , $ name ) ; if ( ! isset ( $ context [ 'partialCode' ] [ $ name ] ) && $ func ) { $ context [ 'partialCode' ] [ $ name ] = "'$name' => $func" ; } return $ func ; }
compile partial as closure, stored in context

@param array<string,array|string|integer> $context Current context of compiler progress.
@param string $name partial name

@return string|null $code compiled PHP code when success
compile partial as closure stored in context