Exemplo n.º 1
0
 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>();
Exemplo n.º 2
0
 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> >();
Exemplo n.º 3
0
 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));
 };
Exemplo n.º 4
0
 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));
 }
Exemplo n.º 5
0
 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));
 };
Exemplo n.º 6
0
 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));
 }
Exemplo n.º 7
0
 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));
 }
Exemplo n.º 8
0
 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));
 }
Exemplo n.º 9
0
 public void Init(IInterpetedOperation <IInterpetedAnyType>[] body, IInterpetedScopeTemplate scope)
 {
     Body  = body ?? throw new ArgumentNullException(nameof(body));
     Scope = scope ?? throw new ArgumentNullException(nameof(scope));
 }
Exemplo n.º 10
0
 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));
 }
Exemplo n.º 12
0
 public void Init(IInterpetedScopeTemplate scope, IEnumerable <IInterpetedOperation <IInterpetedAnyType> > staticInitialization)
 {
     ScopeTemplate        = scope ?? throw new ArgumentNullException(nameof(scope));
     StaticInitialization = staticInitialization ?? throw new ArgumentNullException(nameof(staticInitialization));
 }
Exemplo n.º 13
0
 public void Init(IInterpetedScopeTemplate scope, IEnumerable <IInterpetedAssignOperation> assignments)
 {
     Scope       = scope ?? throw new ArgumentNullException(nameof(scope));
     Assignments = assignments ?? throw new ArgumentNullException(nameof(assignments));
 }
Exemplo n.º 14
0
 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));
 }