/* * Copyright (c) 2020-2021, the SerenityOS developers. * Copyright (c) 2021-2023, Sam Atkins * * SPDX-License-Identifier: BSD-2-Clause */ #include namespace Web::CSS::Parser { Block::Block(Token token, Vector&& values) : m_token(move(token)) , m_values(move(values)) { } Block::~Block() = default; ErrorOr Block::to_string() const { StringBuilder builder; TRY(builder.try_append(m_token.bracket_string())); TRY(builder.try_join(' ', m_values)); TRY(builder.try_append(m_token.bracket_mirror_string())); return builder.to_string(); } }