Exemplo n.º 1
0
        public MethodCallHiretachy GetMethod(Tree val, IList <Tree> Params)
        {
            var @params = new Class[Params.Count];

            for (int j = 0; j < @params.Length; j++)
            {
                if (Params[j].Type == null)
                {
                    if (!_typeCalc.CalcTypes(Params[j]))
                    {
                        throw new TypeLoadException();
                    }
                }
                @params[j] = Params[j].Type;
            }
            return(ByteCodeMapper.CurrentScop.Finder.GetMethod(ByteCodeMapper.Split(val.Content), @params));
        }