Kahlan\Jit\Parser::_isCoverable PHP Method

_isCoverable() protected method

Checks if a specific line is coverable.
protected _isCoverable ( integer $index ) : boolean
$index integer The line to check.
return boolean
    protected function _isCoverable($index)
    {
        $coverable = false;
        foreach ($this->_root->lines['content'][$index]['nodes'] as $node) {
            if ($node->coverable && $node->lines['stop'] === $index) {
                $coverable = true;
            }
        }
        return $coverable;
    }