Kahlan\Jit\Parser::_codeNode PHP Method

_codeNode() protected method

Build a code node.
protected _codeNode ( $type = null, $coverable = false )
    protected function _codeNode($type = null, $coverable = false)
    {
        $body = $this->_states['body'];
        if ($body === '') {
            return;
        }
        $node = new NodeDef($body, $type ?: $this->_codeType());
        return $this->_contextualize($node, $coverable);
    }