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

analyze() public method

some expressions are common between two then / else block
public analyze ( )
    public function analyze()
    {
        $this->atomIs('Ifthen')->outIs('THEN')->atomIs('Sequence')->outIs('ELEMENT')->_as('results')->savePropertyAs('fullcode', 'expression')->inIs('ELEMENT')->inIs('THEN')->outIs('ELSE')->atomIs('Sequence')->outIs('ELEMENT')->samePropertyAs('fullcode', 'expression')->back('results');
        $this->prepareQuery();
    }
CommonAlternatives