From eb6ecdcc85ece4eb84b90f3c9bb920dc1ad2b6d1 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 27 Jan 2015 16:01:53 +0100 Subject: Parsers do no longer return the node they have parsed (as this may be ill-defined -- if a parser only parses a partial document via include, there may be many to no nodes that are returned). Parsers should just use the ParserScope.push funciton. All nodes pushed onto the top-level of the ParserScope are added treated as the nodes the parser has parsed. Adapted all code and all tests accordingly. --- test/core/RegistryTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/core/RegistryTest.cpp') diff --git a/test/core/RegistryTest.cpp b/test/core/RegistryTest.cpp index 1a23139..4e8fc6a 100644 --- a/test/core/RegistryTest.cpp +++ b/test/core/RegistryTest.cpp @@ -31,9 +31,9 @@ namespace ousia { namespace { class TestParser : public Parser { protected: - Rooted doParse(CharReader &reader, ParserContext &ctx) override + void doParse(CharReader &reader, ParserContext &ctx) override { - return new Node{ctx.getManager()}; + // Stub } }; } -- cgit v1.2.3