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); }
public SelectorVisitor(string id, SelectorIf expression) { Id = id; InstanceId = Guid.NewGuid(); var builder = new SelectorExpressionBuilder(); _Fn = builder.Build(expression); }
private SelectorExpressionOuterFn Debugger(SelectorExpressionOuterFn expression, string path) { if (!_Debugger) { return(expression); } return((context, o) => DebuggerFn(context, path, expression, o)); }