Definition at line 329 of file DynamicParser.h.
folly::DynamicParser::ParserStack::ParserStack |
( |
const folly::dynamic * |
input | ) |
|
|
inlineexplicit |
folly::DynamicParser::ParserStack::ParserStack |
( |
const ParserStack & |
| ) |
|
|
delete |
folly::DynamicParser::ParserStack::ParserStack |
( |
ParserStack && |
| ) |
|
|
delete |
folly::dynamic & folly::DynamicParser::ParserStack::errors |
( |
bool |
allow_non_string_keys | ) |
|
|
noexcept |
Definition at line 144 of file DynamicParser.cpp.
References folly::dynamic::object().
Referenced by folly::DynamicParser::reportError().
147 CHECK(!
subErrors_.empty()) <<
"Internal bug: out of suberrors";
149 auto& nested = (*
subErrors_.back())[
"nested"];
150 if (nested.isNull()) {
155 insertAtKey(&nested, allow_non_string_keys, *suberror_key);
156 if (my_errors.isNull()) {
161 unmaterializedSubErrorKeys_.clear();
static ObjectMaker object()
std::vector< folly::dynamic * > subErrors_
std::vector< const folly::dynamic * > unmaterializedSubErrorKeys_
const folly::dynamic & folly::DynamicParser::ParserStack::key |
( |
| ) |
const |
|
inline |
Definition at line 315 of file DynamicParser-inl.h.
317 throw DynamicParserLogicError(
"Only call key() inside parsing callbacks.");
const folly::dynamic * key_
Definition at line 130 of file DynamicParser.cpp.
References folly::gen::guard(), k, and v.
134 DynamicParser::ParserStack::PopGuard
guard{
this};
const folly::dynamic * key_
const folly::dynamic * value_
GuardImpl guard(ErrorHandler &&handler)
std::vector< const folly::dynamic * > unmaterializedSubErrorKeys_
Definition at line 165 of file DynamicParser.cpp.
168 throw DynamicParserLogicError(
169 "Do not releaseErrors() while parsing: ",
const folly::dynamic * key_
std::vector< folly::dynamic * > subErrors_
folly::dynamic releaseErrorsImpl()
std::vector< const folly::dynamic * > unmaterializedSubErrorKeys_
folly::dynamic folly::DynamicParser::ParserStack::releaseErrorsImpl |
( |
| ) |
|
|
private |
Definition at line 183 of file DynamicParser.cpp.
References folly::gen::move.
185 throw DynamicParserLogicError(
"Do not releaseErrors() twice");
constexpr detail::Map< Move > move
const folly::dynamic * value_
folly::dynamic & errors(bool allow_non_string_keys) noexcept
void folly::DynamicParser::ParserStack::throwErrors |
( |
| ) |
|
const folly::dynamic & folly::DynamicParser::ParserStack::value |
( |
| ) |
const |
|
inline |
Definition at line 322 of file DynamicParser-inl.h.
324 throw DynamicParserLogicError(
325 "Parsing nullptr, or parsing after releaseErrors()");
const folly::dynamic * value_
std::vector<folly::dynamic*> folly::DynamicParser::ParserStack::subErrors_ |
|
private |
std::vector<const folly::dynamic*> folly::DynamicParser::ParserStack::unmaterializedSubErrorKeys_ |
|
private |
The documentation for this struct was generated from the following files: