1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00

JSSpecCompiler: Remove ParseError

This commit is contained in:
Dan Klishch 2024-01-20 19:48:32 -05:00 committed by Andrew Kaster
parent 9a2337f7ad
commit 94f5086b93
7 changed files with 1 additions and 107 deletions

View file

@ -6,18 +6,11 @@
#pragma once
#include <AK/StringView.h>
#include <LibXML/Forward.h>
#include "Parser/ParseError.h"
namespace JSSpecCompiler {
struct IgnoreComments {
ParseErrorOr<void> operator()(XML::Node::Comment const&) { return {}; }
};
inline constexpr IgnoreComments ignore_comments {};
bool contains_empty_text(XML::Node const* node);
Optional<StringView> get_attribute_by_name(XML::Node const* node, StringView attribute_name);