Ejemplo n.º 1
0
        private static void Add(CompilerClassLoader loader, Dictionary <string, TypeWrapper[]> exceptions, MethodWrapper mw)
        {
            string signature = mw.Signature;

            TypeWrapper[] newExceptionTypes = LoadTypes(loader, mw.GetDeclaredExceptions());
            TypeWrapper[] curExceptionTypes;
            if (exceptions.TryGetValue(signature, out curExceptionTypes))
            {
                exceptions[signature] = Merge(newExceptionTypes, curExceptionTypes);
            }
            else
            {
                exceptions.Add(signature, newExceptionTypes);
            }
        }