add a constructor to HtmlDocumentImpl

This commit is contained in:
Valentin Fondaratov
2014-10-10 14:52:53 +04:00
parent 4211ca6f14
commit 0e3e0f1624
@@ -16,6 +16,7 @@
package com.intellij.psi.impl.source.html;
import com.intellij.psi.impl.source.xml.XmlDocumentImpl;
import com.intellij.psi.tree.IElementType;
import com.intellij.psi.xml.XmlElementType;
import com.intellij.psi.xml.XmlTag;
@@ -27,6 +28,10 @@ public class HtmlDocumentImpl extends XmlDocumentImpl {
super(XmlElementType.HTML_DOCUMENT);
}
public HtmlDocumentImpl(IElementType type) {
super(type);
}
@Override
public XmlTag getRootTag() {
return (XmlTag)findElementByTokenType(XmlElementType.HTML_TAG);