AK: Add SourceGenerator mapping clone method

This is useful when you want to build an independent string using
the same names and replacements as an existing generator.
This commit is contained in:
Bastiaan van der Plaat 2025-04-30 21:08:14 +02:00 committed by Andrew Kaster
parent 41a6ebfba2
commit 6812aa00ca

View File

@ -66,6 +66,8 @@ public:
return result.release_value();
}
[[nodiscard]] MappingType clone_mapping() const { return MUST(m_mapping.clone()); }
StringView as_string_view() const { return m_builder.string_view(); }
void append(StringView pattern)