[mdoc] Fix code formatting.
authorJonathan Pryor <jonpryor@vt.edu>
Sun, 12 Dec 2010 03:57:31 +0000 (22:57 -0500)
committerJonathan Pryor <jonpryor@vt.edu>
Sun, 12 Dec 2010 03:57:31 +0000 (22:57 -0500)
The expression in `if(expr)`, if overly-long and spanning mulitple
lines, should be indented beyond the normal indent so that the
expression is more easily distinguished from the `if` body:

if (expr &&
expr2 &&
expr3)
body;

not:

if (expr &&
expr2 &&
expr3)
body;

mcs/tools/mdoc/Mono.Documentation/monodocer.cs

index 9a8ae49eedf48cdbed2d4b03598fb3db20f6de98..780733155bda0598ca70833fa4536d64e71ce01b 100644 (file)
@@ -3513,7 +3513,7 @@ public abstract class MemberFormatter {
        protected virtual string GetMethodDeclaration (MethodDefinition method)
        {
                if (method.HasCustomAttributes && method.CustomAttributes.Cast<CustomAttribute>().Any(
-                       ca => ca.GetDeclaringType() == "System.Diagnostics.Contracts.ContractInvariantMethodAttribute"))
+                                       ca => ca.GetDeclaringType() == "System.Diagnostics.Contracts.ContractInvariantMethodAttribute"))
                        return null;
 
                // Special signature for destructors.