@@ -18,10 +18,10 @@ public abstract class BaseExpressionFactory
1818 protected BaseExpressionFactory ( BaseTypeMapper typeSetter )
1919 => TypeMapper = typeSetter ;
2020
21- protected internal T Instantiate < T > ( string functionName , IParameter [ ] parameters , Context context )
21+ protected internal T Instantiate < T > ( string functionName , IParameter [ ] parameters , IContext context )
2222 => Instantiate < T > ( TypeMapper . Execute ( functionName ) , parameters , context ) ;
2323
24- protected T Instantiate < T > ( Type type , IParameter [ ] parameters , Context context )
24+ protected T Instantiate < T > ( Type type , IParameter [ ] parameters , IContext context )
2525 {
2626 var ctor = GetMatchingConstructor ( type , parameters . Length ) ;
2727
@@ -53,9 +53,9 @@ protected internal ConstructorInfo GetMatchingConstructor(Type type, int paramCo
5353 => type . GetConstructors ( ) . SingleOrDefault ( x => x . GetParameters ( ) . Length == paramCount )
5454 ?? throw new MissingOrUnexpectedParametersFunctionException ( type . Name , paramCount ) ;
5555
56- protected Delegate InstantiateScalarDelegate ( IParameter parameter , Type scalarType , Context context )
56+ protected Delegate InstantiateScalarDelegate ( IParameter parameter , Type scalarType , IContext context )
5757 {
58- var instantiate = typeof ( BaseExpressionFactory ) . GetMethod ( nameof ( InstantiateScalarResolver ) , BindingFlags . Static | BindingFlags . NonPublic , [ typeof ( IParameter ) , typeof ( Context ) ] )
58+ var instantiate = typeof ( BaseExpressionFactory ) . GetMethod ( nameof ( InstantiateScalarResolver ) , BindingFlags . Static | BindingFlags . NonPublic , [ typeof ( IParameter ) , typeof ( IContext ) ] )
5959 ?? throw new InvalidProgramException ( nameof ( InstantiateScalarResolver ) ) ;
6060 var instantiateGeneric = instantiate . MakeGenericMethod ( scalarType ) ;
6161 var resolver = instantiateGeneric . Invoke ( null , new object [ ] { parameter , context } ) ! ;
@@ -66,7 +66,7 @@ protected Delegate InstantiateScalarDelegate(IParameter parameter, Type scalarTy
6666 return Delegate . CreateDelegate ( funcType , resolver , execute ) ;
6767 }
6868
69- private static IScalarResolver < T > InstantiateScalarResolver < T > ( IParameter parameter , Context context )
69+ private static IScalarResolver < T > InstantiateScalarResolver < T > ( IParameter parameter , IContext context )
7070 => parameter switch
7171 {
7272 LiteralParameter l => InstantiateScalarResolver < T > ( typeof ( LiteralScalarResolver < T > ) , [ l . Value ] ) ,
@@ -79,7 +79,7 @@ private static IScalarResolver<T> InstantiateScalarResolver<T>(IParameter parame
7979 private static IScalarResolver < T > InstantiateScalarResolver < T > ( Type generic , object [ ] parameters )
8080 => ( Activator . CreateInstance ( generic , parameters ) as IScalarResolver < T > ) ! ;
8181
82- protected Delegate InstantiateIntervalDelegate ( IParameter parameter , Type type , Context context )
82+ protected Delegate InstantiateIntervalDelegate ( IParameter parameter , Type type , IContext context )
8383 {
8484 if ( parameter is not IntervalParameter i )
8585 throw new ArgumentOutOfRangeException ( nameof ( parameter ) ) ;
@@ -99,7 +99,7 @@ protected Delegate InstantiateIntervalDelegate(IParameter parameter, Type type,
9999 return Delegate . CreateDelegate ( funcType , resolver , execute ) ;
100100 }
101101
102- protected Delegate InstantiateInputExpressionDelegate ( InputExpressionParameter exp , Type type , Context context )
102+ protected Delegate InstantiateInputExpressionDelegate ( InputExpressionParameter exp , Type type , IContext context )
103103 {
104104 var functions = new List < IFunction > ( ) ;
105105 foreach ( var member in exp . Expression . Members )
0 commit comments