* next {@link TokenType#GT}, {@link TokenType#SLASH_GT}, or {@link TokenType#EOF}.
*
* @return a collection of zero or more attributes (not {@code null}, contains no {@code null}s)
*/
private List<XmlAttributeNode> parseAttributes() {
TokenType type = currentToken.getType();
if (type == GT || type == SLASH_GT || type == EOF) {
return XmlTagNode.NO_ATTRIBUTES;
}
ArrayList<XmlAttributeNode> attributes = new ArrayList<XmlAttributeNode>();
while (type != GT && type != SLASH_GT && type != EOF) {