From be79585f0e81b27ce3dc6b94f1f502ff86dcef68 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 12 Apr 2015 17:34:09 +0200 Subject: Pass "isImplicit" flag to Handler::fieldStart --- src/core/parser/stack/Handler.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/core/parser/stack/Handler.hpp') diff --git a/src/core/parser/stack/Handler.hpp b/src/core/parser/stack/Handler.hpp index bd6ea72..40b4fba 100644 --- a/src/core/parser/stack/Handler.hpp +++ b/src/core/parser/stack/Handler.hpp @@ -425,9 +425,12 @@ public: * @param isDefault is set to true if the field that is being started is the * default/tree field. The handler should set the value of this variable to * true if the referenced field is indeed the default field. + * @param isImplicit is set to true if the field was implicitly started + * (if true, isDefault is also set to true). * @param fieldIdx is the numerical index of the field. */ - virtual bool fieldStart(bool &isDefault, size_t fieldIdx) = 0; + virtual bool fieldStart(bool &isDefault, bool isImplicit, + size_t fieldIdx) = 0; /** * Called when a previously opened field ends, while the handler is active. @@ -470,7 +473,7 @@ public: bool startToken(Handle node) override; EndTokenResult endToken(Handle node, size_t maxStackDepth) override; void end() override; - bool fieldStart(bool &isDefault, size_t fieldIdx) override; + bool fieldStart(bool &isDefault, bool isImplicit, size_t fieldIdx) override; void fieldEnd() override; bool data() override; @@ -495,7 +498,7 @@ public: bool startToken(Handle node) override; EndTokenResult endToken(Handle node, size_t maxStackDepth) override; void end() override; - bool fieldStart(bool &isDefault, size_t fieldIdx) override; + bool fieldStart(bool &isDefault, bool isImplicit, size_t fieldIdx) override; void fieldEnd() override; bool data() override; }; -- cgit v1.2.3