Power-Fx icon indicating copy to clipboard operation
Power-Fx copied to clipboard

Remove EvalRunner from FunctionInvokeInfo

Open MikeStall opened this issue 11 months ago • 1 comments

These are needed to assist in invoking lamba parameters. But the LambdaFormulaValue present in the arguments already closes over these - so can we remove these from the info and just use via the lambda?

MikeStall avatar Jan 18 '25 20:01 MikeStall

Consider a help on LambdaFormulaValue like:

        public async ValueTask<FormulaValue> EvalInRowScopeAsync(RecordValue rowScope)
        {
            SymbolContext childContext = _context.SymbolContext.WithScopeValues(rowScope);

            var newScope = _context.NewScope(childContext);

            var result = await this.EvalInRowScopeAsync(newScope).ConfigureAwait(false);

            return result;
        }

MikeStall avatar Jan 18 '25 20:01 MikeStall