AK: Make SourceGenerator move constructible

This makes us able to return one from a function
This commit is contained in:
Hendiadyoin1 2022-02-22 19:20:08 +01:00 committed by Andreas Kling
parent 6672c19c93
commit 14caecefb1
Notes: sideshowbarker 2024-07-17 16:36:57 +09:00

View File

@ -33,6 +33,8 @@ public:
{
}
SourceGenerator(SourceGenerator&&) = default;
SourceGenerator fork() { return SourceGenerator { m_builder, m_mapping, m_opening, m_closing }; }
void set(StringView key, String value) { m_mapping.set(key, value); }