Menu

#43 Matching on parent types with additional removed grandchild

open
Language (21)
7
2010-07-08
2010-07-08
No

Matching on parent types with additional removed grandchilds works only for annotations that weren't covered by the grandchilds.

Example:
DECLARE WeightedItem TreeNode, TreeLeaf;
DECLARE TreeNode CurrentRoot;

... some MARK(TreeNode) and MARK(TreeLeaf)
... some MARK(CurrentNode) additionally on TreeNodes
... some UNMARK(CurrentNode)

then...

WeightedItem matches only on FSs that weren't covered by the CurrentNode.

Solution:

Match explicitly on the leaf types TreeNode and TreeLeaf instead of WeightedItem.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB