Browse Source

small code reformatting

pull/70/head
Artur Zgodziski 15 years ago
parent
commit
1e9de3c359
  1. 4
      ICSharpCode.Decompiler/Ast/AstBuilder.cs
  2. 3
      NRefactory/ICSharpCode.NRefactory/CSharp/OutputVisitor/OutputVisitor.cs

4
ICSharpCode.Decompiler/Ast/AstBuilder.cs

@ -1087,12 +1087,8 @@ namespace ICSharpCode.Decompiler.Ast @@ -1087,12 +1087,8 @@ namespace ICSharpCode.Decompiler.Ast
private static Tuple<string, CustomAttribute> GetDefaultMember(TypeDefinition type)
{
foreach (CustomAttribute ca in type.CustomAttributes)
{
if (ca.Constructor.FullName == "System.Void System.Reflection.DefaultMemberAttribute::.ctor(System.String)")
{
return Tuple.Create(ca.ConstructorArguments.Single().Value as string, ca);
}
}
return new Tuple<string,CustomAttribute>(null, null);
}

3
NRefactory/ICSharpCode.NRefactory/CSharp/OutputVisitor/OutputVisitor.cs

@ -208,8 +208,7 @@ namespace ICSharpCode.NRefactory.CSharp @@ -208,8 +208,7 @@ namespace ICSharpCode.NRefactory.CSharp
void WriteCommaSeparatedListInBrackets(IEnumerable<ParameterDeclaration> list, bool spaceWithin)
{
WriteToken("[", AstNode.Roles.LBracket);
if (list.Any())
{
if (list.Any()) {
Space(spaceWithin);
WriteCommaSeparatedList(list.SafeCast<ParameterDeclaration, AstNode>());
Space(spaceWithin);

Loading…
Cancel
Save