From 8c85e1c10085d6d634e35a63f0fc7b68a1b28eff Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 31 Mar 2015 23:57:59 +0200 Subject: Remove "inherit" flag in TokenStack, add tiny unit test for TokenStack, temporarily remove pushTokens and popTokens calls from DocumentChildHandler --- src/core/parser/stack/DocumentHandler.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/core/parser/stack/DocumentHandler.cpp') diff --git a/src/core/parser/stack/DocumentHandler.cpp b/src/core/parser/stack/DocumentHandler.cpp index 7a81186..a7fbaa8 100644 --- a/src/core/parser/stack/DocumentHandler.cpp +++ b/src/core/parser/stack/DocumentHandler.cpp @@ -137,9 +137,6 @@ void DocumentChildHandler::pushDocumentField(Handle parent, new DocumentField(manager(), parent, fieldIdx, transparent); field->setLocation(location()); scope().push(field); - - // Push all possible tokens onto the stack - pushTokens(fieldDescr->getPermittedTokens(), true); } void DocumentChildHandler::popDocumentField() @@ -147,9 +144,6 @@ void DocumentChildHandler::popDocumentField() // Pop the field from the scope, make sure it actually is a DocumentField assert(scope().getLeaf()->isa(&RttiTypes::DocumentField)); scope().pop(logger()); - - // Pop the registered tokens from the stack - popTokens(); } void DocumentChildHandler::createPath(const NodeVector &path, -- cgit v1.2.3