summaryrefslogtreecommitdiffstats
path: root/library/cpp/yson/json/yson2json_adapter.h
diff options
context:
space:
mode:
authorqkrorlqr <[email protected]>2022-02-10 16:47:20 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:47:20 +0300
commit9b89266638b10d40309e31dcb7caa2fc52b2aefd (patch)
treeaaf0d6ece270940a4f208e4202e4a37a15ce05b7 /library/cpp/yson/json/yson2json_adapter.h
parent47af3b5bf148ddab250833ec454d30d7c4930c31 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yson/json/yson2json_adapter.h')
-rw-r--r--library/cpp/yson/json/yson2json_adapter.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/library/cpp/yson/json/yson2json_adapter.h b/library/cpp/yson/json/yson2json_adapter.h
index da1bf5ba709..e95212254b5 100644
--- a/library/cpp/yson/json/yson2json_adapter.h
+++ b/library/cpp/yson/json/yson2json_adapter.h
@@ -10,17 +10,17 @@ namespace NYT {
class TYson2JsonCallbacksAdapter
: public NJson::TJsonCallbacks {
public:
- class TState {
- private:
- // Stores current context stack
- // If true - we are in a list
- // If false - we are in a map
- TStack<bool> ContextStack;
-
- friend class TYson2JsonCallbacksAdapter;
- };
-
- public:
+ class TState {
+ private:
+ // Stores current context stack
+ // If true - we are in a list
+ // If false - we are in a map
+ TStack<bool> ContextStack;
+
+ friend class TYson2JsonCallbacksAdapter;
+ };
+
+ public:
TYson2JsonCallbacksAdapter(::NYson::TYsonConsumerBase* impl, bool throwException = false);
bool OnNull() override;
@@ -35,19 +35,19 @@ namespace NYT {
bool OnCloseMap() override;
bool OnMapKey(const TStringBuf& val) override;
- TState State() const {
- return State_;
- }
-
- void Reset(const TState& state) {
- State_ = state;
- }
-
+ TState State() const {
+ return State_;
+ }
+
+ void Reset(const TState& state) {
+ State_ = state;
+ }
+
private:
void WrapIfListItem();
private:
::NYson::TYsonConsumerBase* Impl_;
- TState State_;
+ TState State_;
};
}