mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove method used only by jade
This commit is contained in:
+7
-10
@@ -425,17 +425,14 @@ public class XmlHighlightVisitor extends XmlElementVisitor implements HighlightV
|
||||
if (tag == null) return;
|
||||
|
||||
final String name = attribute.getName();
|
||||
PsiElement prevLeaf = PsiTreeUtil.prevLeaf(attribute);
|
||||
|
||||
if (XmlExtension.getExtension(attribute.getContainingFile()).needWhitespaceBeforeAttribute()) {
|
||||
PsiElement prevLeaf = PsiTreeUtil.prevLeaf(attribute);
|
||||
|
||||
if (!(prevLeaf instanceof PsiWhiteSpace)) {
|
||||
TextRange textRange = attribute.getTextRange();
|
||||
HighlightInfoType type = tag instanceof HtmlTag ? HighlightInfoType.WARNING : HighlightInfoType.ERROR;
|
||||
String description = XmlErrorMessages.message("attribute.should.be.preceded.with.space");
|
||||
HighlightInfo info = HighlightInfo.newHighlightInfo(type).range(textRange.getStartOffset(), textRange.getStartOffset()).descriptionAndTooltip(description).create();
|
||||
addToResults(info);
|
||||
}
|
||||
if (!(prevLeaf instanceof PsiWhiteSpace)) {
|
||||
TextRange textRange = attribute.getTextRange();
|
||||
HighlightInfoType type = tag instanceof HtmlTag ? HighlightInfoType.WARNING : HighlightInfoType.ERROR;
|
||||
String description = XmlErrorMessages.message("attribute.should.be.preceded.with.space");
|
||||
HighlightInfo info = HighlightInfo.newHighlightInfo(type).range(textRange.getStartOffset(), textRange.getStartOffset()).descriptionAndTooltip(description).create();
|
||||
addToResults(info);
|
||||
}
|
||||
|
||||
if (attribute.isNamespaceDeclaration() || XmlUtil.XML_SCHEMA_INSTANCE_URI.equals(attribute.getNamespace())) {
|
||||
|
||||
@@ -164,10 +164,6 @@ public abstract class XmlExtension {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean needWhitespaceBeforeAttribute() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean useXmlTagInsertHandler() {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user