private DefineTypeMembers ( Boo.Lang.Compiler.Ast.TypeDefinition typeDefinition ) : void | ||
typeDefinition | Boo.Lang.Compiler.Ast.TypeDefinition | |
Résultat | void |
void DefineTypeMembers(TypeDefinition typeDefinition)
{
if (IsEnumDefinition(typeDefinition))
{
return;
}
TypeBuilder typeBuilder = GetTypeBuilder(typeDefinition);
TypeMemberCollection members = typeDefinition.Members;
foreach (TypeMember member in members)
{
switch (member.NodeType)
{
case NodeType.Method:
{
DefineMethod(typeBuilder, (Method)member, 0);
break;
}
case NodeType.Constructor:
{
DefineConstructor(typeBuilder, (Constructor)member);
break;
}
case NodeType.Field:
{
DefineField(typeBuilder, (Field)member);
break;
}
case NodeType.Property:
{
DefineProperty(typeBuilder, (Property)member);
break;
}
case NodeType.Event:
{
DefineEvent(typeBuilder, (Event)member);
break;
}
}
}
}