Exemple #1
0
        protected override bool EvalAtom(ASTQueries.NodePredAtom pred, ChildContextKind context, int absPos, int relPos)
        {
            if (!base.EvalAtom(pred, context, absPos, relPos))
            {
                return(false);
            }

            if (pred.AttributePredicate == null)
            {
                return(true);
            }

            return(pred.AttributePredicate(AttributeKind.ComposeKind, ComposeKind) &&
                   pred.AttributePredicate(AttributeKind.Name, Name));
        }
Exemple #2
0
        protected override bool EvalAtom(ASTQueries.NodePredAtom pred, ChildContextKind context, int absPos, int relPos)
        {
            if (!base.EvalAtom(pred, context, absPos, relPos))
            {
                return(false);
            }

            return(pred.AttributePredicate == null ? true : pred.AttributePredicate(AttributeKind.Op, Op));
        }