terrajobst / nquery-vnext

A Roslyn inspired rewrite of NQuery
MIT License
72 stars 16 forks source link

For function calls, pass on the delegate's target instance if required #68

Open dallmair opened 1 month ago

dallmair commented 1 month ago

So far, function invocations always used null for the instance value, which meant that instance delegates were not supported for functions. This PR enhances the FunctionSymbol compilation to pass on a delegate target instance (if set), enabling us to use instance methods as custom functions in NQuery.

Closes #67