private void ValidateMethod(CodeMemberMethod e) {
if (e.CustomAttributes.Count > 0) {
ValidateAttributes(e.CustomAttributes);
}
if (e.ReturnTypeCustomAttributes.Count > 0) {
ValidateAttributes(e.ReturnTypeCustomAttributes);
}
ValidateTypeReference(e.ReturnType);
if (e.PrivateImplementationType != null) {
ValidateTypeReference(e.PrivateImplementationType);
}
ValidateIdentifier(e,"Name",e.Name);
ValidateParameters(e.Parameters);
if (!IsCurrentInterface
&& (e.Attributes & MemberAttributes.ScopeMask) != MemberAttributes.Abstract) {
ValidateStatements(e.Statements);
}
}