From 8c9df3bca6885ffa025dd92b00aebec5bafff9c2 Mon Sep 17 00:00:00 2001 From: Max Medvedev Date: Fri, 4 Jul 2025 18:13:43 +0200 Subject: [PATCH] cleanup XmlBuilder GitOrigin-RevId: 704186146c485bab65730b1a43e8d1ebb15edd7d --- .../impl/source/parsing/xml/XmlBuilder.java | 46 +++++++++++++------ 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/xml/xml-parser/src/com/intellij/psi/impl/source/parsing/xml/XmlBuilder.java b/xml/xml-parser/src/com/intellij/psi/impl/source/parsing/xml/XmlBuilder.java index f528cb59d816..e1020355adc7 100644 --- a/xml/xml-parser/src/com/intellij/psi/impl/source/parsing/xml/XmlBuilder.java +++ b/xml/xml-parser/src/com/intellij/psi/impl/source/parsing/xml/XmlBuilder.java @@ -9,7 +9,39 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; public interface XmlBuilder { - void doctype(final @Nullable CharSequence publicId, final @Nullable CharSequence systemId, final int startOffset, final int endOffset); + void doctype(@Nullable CharSequence publicId, + @Nullable CharSequence systemId, + int startOffset, + int endOffset); + + ProcessingOrder startTag(CharSequence localName, + String namespace, + int startOffset, + int endOffset, + int headerEndOffset); + + void endTag(CharSequence localName, + String namespace, + int startOffset, + int endOffset); + + void attribute(CharSequence name, + CharSequence value, + int startOffset, + int endOffset); + + void textElement(CharSequence display, + CharSequence physical, + int startOffset, + int endOffset); + + void entityRef(CharSequence ref, + int startOffset, + int endOffset); + + void error(@NotNull String message, + int startOffset, + int endOffset); enum ProcessingOrder { TAGS, @@ -17,16 +49,4 @@ public interface XmlBuilder { TAGS_AND_ATTRIBUTES, TAGS_AND_ATTRIBUTES_AND_TEXTS } - - ProcessingOrder startTag(CharSequence localName, String namespace, int startoffset, int endoffset, final int headerEndOffset); - - void endTag(CharSequence localName, String namespace, int startoffset, int endoffset); - - void attribute(CharSequence name, CharSequence value, int startoffset, int endoffset); - - void textElement(CharSequence display, CharSequence physical, int startoffset, int endoffset); - - void entityRef(CharSequence ref, int startOffset, int endOffset); - - void error(@NotNull String message, int startOffset, int endOffset); } \ No newline at end of file