Parser.php
protected function createElement(array $token = null)
    {

        $node = $this->createNode('element', $token);
        $node->tag = null;
        $node->attributes = [];
        $node->assignments = [];

        return $node;
    }
protected function createElement(array $token = null)
    {

        $node = $this->createNode('element', $token);
        $node->tag = null;
        $node->attributes = [];
        $node->assignments = [];

        return $node;
    }
protected function createElement ( array $ token = null ) { $ node = $ this -> createNode ( 'element' , $ token ) ; $ node -> tag = null ; $ node -> attributes = [ ] ; $ node -> assignments = [ ] ; return $ node ; }
Creates an element-node with the properties it should have consistently.

This will create the following properties on the Node instance:

@todo Do this for a bunch of other elements as well, maybe all, maybe a centralized way?

@param array|null $token the token to relate this element to

@return Node the newly created element-node
Creates an element - node with the properties it should have consistently .