/* * Copyright (c) 2020-2021, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Web::CSS { class DeclarationOrAtRule { friend class Parser; public: explicit DeclarationOrAtRule(AtStyleRule at); explicit DeclarationOrAtRule(StyleDeclarationRule declaration); ~DeclarationOrAtRule(); enum class DeclarationType { At, Declaration, }; String to_string() const; private: DeclarationType m_type; AtStyleRule m_at; StyleDeclarationRule m_declaration; }; }