aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yson_pull/event.cpp
diff options
context:
space:
mode:
authorMikhail Borisov <borisov.mikhail@gmail.com>2022-02-10 16:45:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:40 +0300
commit5d50718e66d9c037dc587a0211110b7d25a66185 (patch)
treee98df59de24d2ef7c77baed9f41e4875a2fef972 /library/cpp/yson_pull/event.cpp
parenta6a92afe03e02795227d2641b49819b687f088f8 (diff)
downloadydb-5d50718e66d9c037dc587a0211110b7d25a66185.tar.gz
Restoring authorship annotation for Mikhail Borisov <borisov.mikhail@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/yson_pull/event.cpp')
-rw-r--r--library/cpp/yson_pull/event.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/library/cpp/yson_pull/event.cpp b/library/cpp/yson_pull/event.cpp
index f7d5014608..b7ede494b6 100644
--- a/library/cpp/yson_pull/event.cpp
+++ b/library/cpp/yson_pull/event.cpp
@@ -1,18 +1,18 @@
-#include "event.h"
-
+#include "event.h"
+
#include <library/cpp/yson_pull/detail/cescape.h>
-
-#include <util/stream/output.h>
-
-using namespace NYsonPull;
-
+
+#include <util/stream/output.h>
+
+using namespace NYsonPull;
+
template <>
void Out<TEvent>(IOutputStream& out, const TEvent& value) {
- out << '(' << value.Type();
- if (value.Type() == EEventType::Scalar) {
- out << ' ' << value.AsScalar();
- } else if (value.Type() == EEventType::Key) {
- out << ' ' << NYsonPull::NDetail::NCEscape::quote(value.AsString());
- }
- out << ')';
-}
+ out << '(' << value.Type();
+ if (value.Type() == EEventType::Scalar) {
+ out << ' ' << value.AsScalar();
+ } else if (value.Type() == EEventType::Key) {
+ out << ' ' << NYsonPull::NDetail::NCEscape::quote(value.AsString());
+ }
+ out << ')';
+}