mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
add a constructor to HtmlDocumentImpl
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user