예제 #1
0
        private SelectorExpressionOuterFn Expression(string path, SelectorExpression expression)
        {
            path = Path(path, expression);
            if (expression is SelectorOperator selectorOperator)
            {
                return(Debugger(Operator(path, selectorOperator), path));
            }
            else if (expression is SelectorCondition selectorCondition)
            {
                return(Debugger(Condition(path, selectorCondition), path));
            }

            throw new InvalidOperationException();
        }
예제 #2
0
 public void Add(SelectorExpression item)
 {
     Children.Add(item);
 }
예제 #3
0
 public SelectorIf(SelectorExpression expression)
     : base(null)
 {
     Expression = expression;
 }
예제 #4
0
 private static string Path(string path, SelectorExpression expression)
 {
     path = string.Concat(path, Dot, expression.Descriptor.Name);
     return(path);
 }