Boo.Lang.Compiler.TypeSystem.TypeSystemServices.GetMostGenericType C# (CSharp) Method

GetMostGenericType() public method

public GetMostGenericType ( Boo.Lang.Compiler.Ast.ExpressionCollection args ) : IType
args Boo.Lang.Compiler.Ast.ExpressionCollection
return IType
        public IType GetMostGenericType(ExpressionCollection args)
        {
            IType type = GetConcreteExpressionType(args[0]);
            for (int i = 1; i < args.Count; ++i)
            {
                IType newType = GetConcreteExpressionType(args[i]);
                if (type == newType)
                    continue;

                type = GetMostGenericType(type, newType);
                if (IsSystemObject(type))
                    break;
            }
            return type;
        }

Same methods

TypeSystemServices::GetMostGenericType ( IType current, IType candidate ) : IType
TypeSystemServices