public MethodBindingToOneOfAlternativesLink(FuzzyMethodBinding binding, FuzzyType first, FuzzyType second) 
            : base(first, second)
        {
            _first = first;
            _second = second;
            _binding = binding;

            // first of all check whether _second is Arg or RetVal of one of the alts
            var secondPointHost = _binding.Alternatives.SingleOrDefault(alt => HostsSecondTypePoint(alt));

            // if it's not, then _second is the Target, i.e. we can take it from any alt we wish for now
            _alt = secondPointHost ?? _binding.Alternatives.First();
        }
Beispiel #2
0
 protected override FuzzyType OnInitializeMainTypePoint()
 {
     Method = FuzzyMethodBinding.Unknown(Name, Args.Count());
     return base.OnInitializeMainTypePoint();
 }