Tale\Jade\Parser::handleIndent PHP Method

handleIndent() protected method

The $_level will be increased by 1 for each If there's no $_last element (which is set on a newLine), we do nothing (because there's nothing to indent into) The $_last node is set as the $_currentParent node and acts as a parent-node for further created nodes (They get appended in handleNewLine) import-nodes can't be indented into, because they can't have children (poor imports :'( ) The opposite of this is, obviously, handleOutdent with -tokens
protected handleIndent ( array $token = null )
$token array the -token
    protected function handleIndent(array $token = null)
    {
        $this->level++;
        if (!$this->last) {
            return;
        }
        if (in_array($this->last->type, ['import', 'expression', 'doctype'])) {
            $this->throwException('The ' . $this->last->type . ' instruction can\'t have any children', $token);
        }
        $this->currentParent = $this->last;
    }