aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yson/node/node_builder.h
diff options
context:
space:
mode:
authormonster <monster@yandex-team.ru>2022-02-10 16:47:19 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:19 +0300
commitdd76ae1f6213d065375ab296699f764faafbe5bd (patch)
tree075a4553d0011d8f92752c0891794febb15912cf /library/cpp/yson/node/node_builder.h
parentf02a874a7290593efbe4b3aeae69a04b46c1cc86 (diff)
downloadydb-dd76ae1f6213d065375ab296699f764faafbe5bd.tar.gz
Restoring authorship annotation for <monster@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yson/node/node_builder.h')
-rw-r--r--library/cpp/yson/node/node_builder.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/library/cpp/yson/node/node_builder.h b/library/cpp/yson/node/node_builder.h
index 69800016e0..35bb256a5e 100644
--- a/library/cpp/yson/node/node_builder.h
+++ b/library/cpp/yson/node/node_builder.h
@@ -1,23 +1,23 @@
-#pragma once
-
+#pragma once
+
#include "node.h"
-
+
#include <library/cpp/json/json_reader.h>
#include <library/cpp/yson/consumer.h>
-#include <util/generic/stack.h>
-
-namespace NYT {
-
-////////////////////////////////////////////////////////////////////////////////
-
-class TNodeBuilder
+#include <util/generic/stack.h>
+
+namespace NYT {
+
+////////////////////////////////////////////////////////////////////////////////
+
+class TNodeBuilder
: public ::NYson::TYsonConsumerBase
-{
-public:
- TNodeBuilder(TNode* node);
-
+{
+public:
+ TNodeBuilder(TNode* node);
+
void OnStringScalar(TStringBuf) override;
void OnInt64Scalar(i64) override;
void OnUint64Scalar(ui64) override;
@@ -33,14 +33,14 @@ public:
void OnBeginAttributes() override;
void OnEndAttributes() override;
void OnNode(TNode node);
-
-private:
+
+private:
TStack<TNode*> Stack_;
-
-private:
- inline void AddNode(TNode node, bool pop);
-};
-
-////////////////////////////////////////////////////////////////////////////////
-
-} // namespace NYT
+
+private:
+ inline void AddNode(TNode node, bool pop);
+};
+
+////////////////////////////////////////////////////////////////////////////////
+
+} // namespace NYT