summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AK/SourceGenerator.h6
1 files changed, 6 insertions, 0 deletions
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;