Jade\Compiler\TagVisitor::initTagName PHP Метод

initTagName() защищенный Метод

protected initTagName ( Jade\Nodes\Tag $tag )
$tag Jade\Nodes\Tag
    protected function initTagName(Tag $tag)
    {
        if (isset($tag->buffer)) {
            if (preg_match('`^[a-z][a-zA-Z0-9]+(?!\\()`', $tag->name)) {
                $tag->name = '$' . $tag->name;
            }
            $tag->name = trim($this->createCode('echo ' . $tag->name . ';'));
        }
    }