From 0e3e0f1624fce8fbf05b7d55b1a9eec324420ff4 Mon Sep 17 00:00:00 2001 From: Valentin Fondaratov Date: Fri, 10 Oct 2014 14:44:23 +0400 Subject: [PATCH] add a constructor to HtmlDocumentImpl --- .../com/intellij/psi/impl/source/html/HtmlDocumentImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xml/xml-psi-impl/src/com/intellij/psi/impl/source/html/HtmlDocumentImpl.java b/xml/xml-psi-impl/src/com/intellij/psi/impl/source/html/HtmlDocumentImpl.java index 864a854b69f5..55e7e801f012 100644 --- a/xml/xml-psi-impl/src/com/intellij/psi/impl/source/html/HtmlDocumentImpl.java +++ b/xml/xml-psi-impl/src/com/intellij/psi/impl/source/html/HtmlDocumentImpl.java @@ -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);