Ejemplo n.º 1
0
 public IOrType <WeakBlockDefinition, WeakScope, WeakEntryPointDefinition> Convert(Tpn.TypeSolution typeSolution, Tpn.TypeProblem2.Scope from, IEnumerable <Tpn.ITypeProblemNode> context)
 {
     return(OrType.Make <WeakBlockDefinition, WeakScope, WeakEntryPointDefinition>(
                new WeakBlockDefinition(
                    body,
                    OrType.Make <WeakScope, IError>(typeSolution.GetWeakScope(from, context)),
                    Array.Empty <IIsPossibly <IFrontendCodeElement> >())));
 }
Ejemplo n.º 2
0
 public IOrType <WeakBlockDefinition, WeakScope, WeakEntryPointDefinition> Convert(Tpn.TypeSolution typeSolution, Tpn.TypeProblem2.Scope from, IEnumerable <Tpn.ITypeProblemNode> context)
 {
     return(OrType.Make <WeakBlockDefinition, WeakScope, WeakEntryPointDefinition>(typeSolution.GetWeakScope(from, context)));
 }
Ejemplo n.º 3
0
 public ResolveReferanceBlockDefinition(Tpn.TypeProblem2.Scope myScope, IOrType <IResolve <IBox <IFrontendCodeElement> >, IError>[] nextElements, Box <IReadOnlyList <IOrType <IBox <IFrontendCodeElement>, IError> > > box)
 {
     this.myScope      = myScope ?? throw new ArgumentNullException(nameof(myScope));
     this.nextElements = nextElements ?? throw new ArgumentNullException(nameof(nextElements));
     this.box          = box ?? throw new ArgumentNullException(nameof(box));
 }