Exakat\Analyzer\Structures\BailOutEarly::analyze PHP Method

analyze() public method

public analyze ( )
    public function analyze()
    {
        $bailout = array('Return', 'Continue', 'Break');
        // if ($a) { return; } else { not return; }
        $this->atomIs('Ifthen')->outIs('THEN')->outWithRank('ELEMENT', 'last')->atomIs($bailout)->back('first')->outIs('ELSE')->outWithRank('ELEMENT', 'last')->atomIsNot($bailout)->back('first');
        $this->prepareQuery();
        // if ($a) { not return; } else { return; }
        $this->atomIs('Ifthen')->outIs('THEN')->outWithRank('ELEMENT', 'last')->atomIsNot($bailout)->back('first')->outIs('ELSE')->outWithRank('ELEMENT', 'last')->atomIs($bailout)->back('first');
        $this->prepareQuery();
    }
BailOutEarly