コード例 #1
0
        private static bool DebuggerFn(SelectorContext context, string path, SelectorExpressionOuterFn expression, object o)
        {
            var result = expression(context, o);

            context.Debug(PSDocsResources.SelectorTrace, path, result);
            return(result);
        }
コード例 #2
0
        public SelectorVisitor(string id, SelectorIf expression)
        {
            Id         = id;
            InstanceId = Guid.NewGuid();
            var builder = new SelectorExpressionBuilder();

            _Fn = builder.Build(expression);
        }
コード例 #3
0
        private SelectorExpressionOuterFn Debugger(SelectorExpressionOuterFn expression, string path)
        {
            if (!_Debugger)
            {
                return(expression);
            }

            return((context, o) => DebuggerFn(context, path, expression, o));
        }