clojure.lang.CljCompiler.Ast.ObjMethod.SetCustomAttributes C# (CSharp) Метод

SetCustomAttributes() защищенный Метод

protected SetCustomAttributes ( MethodBuilder mb ) : void
mb System.Reflection.Emit.MethodBuilder
Результат void
        protected void SetCustomAttributes(MethodBuilder mb)
        {
            GenInterface.SetCustomAttributes(mb, MethodMeta);
            if (Parms != null)
            {
                for (int i = 0; i < Parms.count(); i++)
                {
                    IPersistentMap meta = GenInterface.ExtractAttributes(RT.meta(Parms.nth(i)));
                    if (meta != null && meta.count() > 0)
                    {
                        ParameterBuilder pb = mb.DefineParameter(i + 1, ParameterAttributes.None, ((Symbol)Parms.nth(i)).Name);
                        GenInterface.SetCustomAttributes(pb, meta);
                    }
                }
            }
        }