internal static IInterpetedImplementation Implementation(InterpetedMemberDefinition parameterDefinition, InterpetedMemberDefinition contextDefinition, IInterpetedOperation[] body, InterpetedContext context, IInterpetedScopeTemplate scope, IMethodType implementationType) => Root(new Func <IRunTimeAnyRoot, RunTimeAnyRootEntry>[] { InterpetedImplementationIntention(parameterDefinition, contextDefinition, body, context, scope, implementationType) }).Has <IInterpetedImplementation>();
internal static IInterpetedMethod <TIn, TOut> InternalMethod <TIn, TOut>(InterpetedMemberDefinition <TIn> parameterDefinition, IInterpetedOperation <IInterpetedAnyType>[] body, InterpetedContext context, IInterpetedScopeTemplate scope, IMethodType methodType) where TIn : IInterpetedAnyType where TOut : IInterpetedAnyType => Root(new Func <IRunTimeAnyRoot, RunTimeAnyRootEntry>[] { InterpetedMethodIntention <TIn, TOut>(parameterDefinition, body, context, scope, methodType) }).Has <IInterpetedMethod <TIn, TOut> >();
internal static Func <IRunTimeAnyRoot, RunTimeAnyRootEntry> InterpetedMethodIntention( InterpetedMemberDefinition parameterDefinition, IInterpetedOperation[] body, InterpetedContext context, IInterpetedScopeTemplate scope, IMethodType methodType) => root => { var item = new InterpetedMethod(parameterDefinition, body, context, scope, methodType, root); return(new RunTimeAnyRootEntry(item, methodType)); };
public void Init( InterpetedMemberDefinition parameterDefinition, IInterpetedOperation[] methodBody, IInterpetedScopeTemplate scope, IMethodType methodType) { ParameterDefinition = parameterDefinition ?? throw new ArgumentNullException(nameof(parameterDefinition)); Body = methodBody ?? throw new ArgumentNullException(nameof(methodBody)); Scope = scope ?? throw new ArgumentNullException(nameof(scope)); MethodType = methodType ?? throw new ArgumentNullException(nameof(methodType)); }
internal static Func <IRunTimeAnyRoot, RunTimeAnyRootEntry> InterpetedMethodIntention <TIn, TOut>( InterpetedMemberDefinition <TIn> parameterDefinition, IInterpetedOperation <IInterpetedAnyType>[] body, InterpetedContext context, IInterpetedScopeTemplate scope, IMethodType methodType) where TIn : IInterpetedAnyType where TOut : IInterpetedAnyType => root => { var item = new InterpetedMethod <TIn, TOut>(parameterDefinition, body, context, scope, methodType, root); return(new RunTimeAnyRootEntry(item, methodType)); };
public void Init( InterpetedMemberDefinition <TMethodIn> parameterDefinition, InterpetedMemberDefinition <TIn> contextDefinition, IInterpetedOperation <IInterpetedAnyType>[] methodBody, IInterpetedScopeTemplate scope, IImplementationType implementationType) { ParameterDefinition = parameterDefinition ?? throw new ArgumentNullException(nameof(parameterDefinition)); ContextDefinition = contextDefinition ?? throw new ArgumentNullException(nameof(contextDefinition)); MethodBody = methodBody ?? throw new ArgumentNullException(nameof(methodBody)); Scope = scope ?? throw new ArgumentNullException(nameof(scope)); ImplementationType = implementationType ?? throw new ArgumentNullException(nameof(implementationType)); }
public InterpetedMethod( InterpetedMemberDefinition parameterDefinition, IInterpetedOperation[] body, InterpetedContext context, IInterpetedScopeTemplate scope, IMethodType methodType, IRunTimeAnyRoot root) : base(root) { ParameterDefinition = parameterDefinition ?? throw new System.ArgumentNullException(nameof(parameterDefinition)); Body = body ?? throw new System.ArgumentNullException(nameof(body)); Context = context ?? throw new System.ArgumentNullException(nameof(context)); Scope = scope ?? throw new System.ArgumentNullException(nameof(scope)); MethodType = methodType ?? throw new ArgumentNullException(nameof(methodType)); }
public InterpetedImplementation( InterpetedMemberDefinition <TMethodIn> parameterDefinition, InterpetedMemberDefinition <TIn> contextDefinition, IInterpetedOperation <IInterpetedAnyType>[] body, InterpetedContext context, IInterpetedScopeTemplate scope, IImplementationType implementationType, IRunTimeAnyRoot root) : base(root) { ParameterDefinition = parameterDefinition ?? throw new ArgumentNullException(nameof(parameterDefinition)); this.contextDefinition = contextDefinition ?? throw new ArgumentNullException(nameof(contextDefinition)); Body = body ?? throw new ArgumentNullException(nameof(body)); InterpetedContext = context ?? throw new ArgumentNullException(nameof(context)); Scope = scope ?? throw new ArgumentNullException(nameof(scope)); ImplementationType = implementationType ?? throw new ArgumentNullException(nameof(implementationType)); }
public void Init(IInterpetedOperation <IInterpetedAnyType>[] body, IInterpetedScopeTemplate scope) { Body = body ?? throw new ArgumentNullException(nameof(body)); Scope = scope ?? throw new ArgumentNullException(nameof(scope)); }
internal static IInterpetedImplementation <TIn, TMethodIn, TMethodOut> Implementation <TIn, TMethodIn, TMethodOut>(InterpetedMemberDefinition <TMethodIn> parameterDefinition, InterpetedMemberDefinition <TIn> contextDefinition, IInterpetedOperation <IInterpetedAnyType>[] body, InterpetedContext context, IInterpetedScopeTemplate scope, IImplementationType implementationType) where TIn : class, IInterpetedAnyType where TMethodIn : class, IInterpetedAnyType where TMethodOut : class, IInterpetedAnyType => Root(new Func <IRunTimeAnyRoot, RunTimeAnyRootEntry>[] { InterpetedImplementationIntention <TIn, TMethodIn, TMethodOut>(parameterDefinition, contextDefinition, body, context, scope, implementationType) }).Has <IInterpetedImplementation <TIn, TMethodIn, TMethodOut> >();
public void Init(IInterpetedOperation left, IInterpetedOperation right, IInterpetedOperation block, IInterpetedScopeTemplate scope) { Left = left ?? throw new ArgumentNullException(nameof(left)); Right = right ?? throw new ArgumentNullException(nameof(right)); Block = block ?? throw new ArgumentNullException(nameof(block)); Scope = scope ?? throw new ArgumentNullException(nameof(scope)); }
public void Init(IInterpetedScopeTemplate scope, IEnumerable <IInterpetedOperation <IInterpetedAnyType> > staticInitialization) { ScopeTemplate = scope ?? throw new ArgumentNullException(nameof(scope)); StaticInitialization = staticInitialization ?? throw new ArgumentNullException(nameof(staticInitialization)); }
public void Init(IInterpetedScopeTemplate scope, IEnumerable <IInterpetedAssignOperation> assignments) { Scope = scope ?? throw new ArgumentNullException(nameof(scope)); Assignments = assignments ?? throw new ArgumentNullException(nameof(assignments)); }
public void Init(IInterpetedScopeTemplate scope, IEnumerable <IInterpetedAssignOperation> assignments, InterpetedEntryPointDefinition entryPoint) { Scope = scope ?? throw new ArgumentNullException(nameof(scope)); Assignments = assignments ?? throw new ArgumentNullException(nameof(assignments)); EntryPoint = entryPoint ?? throw new ArgumentNullException(nameof(entryPoint)); }