/* * Copyright (c) 2023, Dan Klishch * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace JSSpecCompiler { bool contains_empty_text(XML::Node const* node); Optional get_attribute_by_name(XML::Node const* node, StringView attribute_name); Optional get_text_contents(XML::Node const* node); Optional get_single_child_with_tag(XML::Node const* element, StringView tag_name); }