From 6b20496758ce235ee279526c64dee1575b29e433 Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Tue, 22 Feb 2022 19:21:33 +0100 Subject: [PATCH] AK: Add `appendln` helper to SourceGenerator --- AK/SourceGenerator.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AK/SourceGenerator.h b/AK/SourceGenerator.h index 53c6367b36..00dfc3ca1f 100644 --- a/AK/SourceGenerator.h +++ b/AK/SourceGenerator.h @@ -77,6 +77,12 @@ public: } } + void appendln(StringView pattern) + { + append(pattern); + m_builder.append('\n'); + } + private: StringBuilder& m_builder; MappingType m_mapping;