aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yson
diff options
context:
space:
mode:
authorkostik <kostik@yandex-team.ru>2022-02-10 16:49:22 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:22 +0300
commitf7619e21ba894db354477390e8fe96256a6eb14a (patch)
treeb69d940766676eea8fd8d90570ed4f2783014d58 /library/cpp/yson
parenta6f6b22bda21d53d07bd2e0ff63a2b2abf69ede9 (diff)
downloadydb-f7619e21ba894db354477390e8fe96256a6eb14a.tar.gz
Restoring authorship annotation for <kostik@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yson')
-rw-r--r--library/cpp/yson/parser.cpp14
-rw-r--r--library/cpp/yson/parser.h10
-rw-r--r--library/cpp/yson/parser_detail.h8
3 files changed, 16 insertions, 16 deletions
diff --git a/library/cpp/yson/parser.cpp b/library/cpp/yson/parser.cpp
index 783f9b90479..95cfbb13b1f 100644
--- a/library/cpp/yson/parser.cpp
+++ b/library/cpp/yson/parser.cpp
@@ -161,19 +161,19 @@ namespace NYson {
TYsonListParser::TYsonListParser(
NYT::NYson::IYsonConsumer* consumer,
IInputStream* stream,
- bool enableLinePositionInfo,
+ bool enableLinePositionInfo,
TMaybe<ui64> memoryLimit)
: Impl(new TImpl(consumer, stream, enableLinePositionInfo, memoryLimit))
- {
- }
-
+ {
+ }
+
TYsonListParser::~TYsonListParser() {
}
-
+
bool TYsonListParser::Parse() {
return Impl->Parse();
}
-
+
////////////////////////////////////////////////////////////////////////////////
-
+
} // namespace NYson
diff --git a/library/cpp/yson/parser.h b/library/cpp/yson/parser.h
index dce35a8cd40..c83fd921f4e 100644
--- a/library/cpp/yson/parser.h
+++ b/library/cpp/yson/parser.h
@@ -61,23 +61,23 @@ namespace NYson {
TMaybe<ui64> memoryLimit = Nothing());
~TYsonListParser();
-
+
bool Parse(); // Returns false, if there is no more list items
-
+
private:
class TImpl;
THolder<TImpl> Impl;
};
-
+
////////////////////////////////////////////////////////////////////////////////
-
+
void ParseYsonStringBuffer(
const TStringBuf& buffer,
NYT::NYson::IYsonConsumer* consumer,
EYsonType type = ::NYson::EYsonType::Node,
bool enableLinePositionInfo = false,
TMaybe<ui64> memoryLimit = Nothing());
-
+
////////////////////////////////////////////////////////////////////////////////
} // namespace NYson
diff --git a/library/cpp/yson/parser_detail.h b/library/cpp/yson/parser_detail.h
index 44223caf125..c4820f5ca71 100644
--- a/library/cpp/yson/parser_detail.h
+++ b/library/cpp/yson/parser_detail.h
@@ -58,7 +58,7 @@ namespace NYson {
TBase::SkipCharToken(EndAttributesSymbol);
Consumer->OnEndAttributes();
}
-
+
void ParseMap() {
Consumer->OnBeginMap();
ParseMapFragment(EndMapSymbol);
@@ -323,11 +323,11 @@ namespace NYson {
class TStatelessYsonParserImplBase {
public:
virtual void Parse(const TStringBuf& data, EYsonType type = ::NYson::EYsonType::Node) = 0;
-
+
virtual ~TStatelessYsonParserImplBase() {
- }
+ }
};
-
+
template <class TConsumer, bool EnableLinePositionInfo>
class TStatelessYsonParserImpl
: public TStatelessYsonParserImplBase {