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
commit 6812aa00ca
Notes: github-actions[bot] 2025-06-30 17:40:39 +00:00

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)