Babel.Compiler.TypeElementCreatingVisitor.DefineWriter C# (CSharp) Метод

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

protected DefineWriter ( TypeBuilder type, string name, MethodAttributes attributes, TypeSpecifier attrType ) : MethodBuilder
type System.Reflection.Emit.TypeBuilder
name string
attributes MethodAttributes
attrType TypeSpecifier
Результат System.Reflection.Emit.MethodBuilder
        protected virtual MethodBuilder DefineWriter(TypeBuilder type,
                         string name,
                         MethodAttributes attributes,
                         TypeSpecifier attrType)
        {
            Argument arg = new Argument(ArgumentMode.In, "value",
                                        attrType, Location.Null);
            arg.Index = 1;
            arg.NodeType = attrType.NodeType;
            TypedNodeList args = new TypedNodeList(arg);
            CheckMethodConfliction(typeManager.GetTypeData(type),
                                   name,
                                   typeManager.VoidType,
                                   new TypedNodeList());
            return DefineMethod(type, name, attributes,
                                typeManager.VoidType, args);
        }