src/ParsedExpression.php
public function compile(ContextFactory $factory, bool $wrapClosure = true, string $scoped = null): string
    {
        if (!$wrapClosure) {
            return (new Compiler($factory, ($scoped === null) ? '$ctx' : $scoped))->visit($this->exp);
        }

        if ($scoped) {
            return (new Compiler($factory, '$this->' . $scoped, false))->visit($this->exp);
        }

        return (new Compiler($factory))->visit($this->exp);
    }
public function compile(ContextFactory $factory, bool $wrapClosure = true, string $scoped = null): string
    {
        if (!$wrapClosure) {
            return (new Compiler($factory, ($scoped === null) ? '$ctx' : $scoped))->visit($this->exp);
        }

        if ($scoped) {
            return (new Compiler($factory, '$this->' . $scoped, false))->visit($this->exp);
        }

        return (new Compiler($factory))->visit($this->exp);
    }
{@inheritdoc}