Browse Source

small code reformatting

pull/70/head
Artur Zgodziski 16 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
private static Tuple<string, CustomAttribute> GetDefaultMember(TypeDefinition type) private static Tuple<string, CustomAttribute> GetDefaultMember(TypeDefinition type)
{ {
foreach (CustomAttribute ca in type.CustomAttributes) foreach (CustomAttribute ca in type.CustomAttributes)
{
if (ca.Constructor.FullName == "System.Void System.Reflection.DefaultMemberAttribute::.ctor(System.String)") if (ca.Constructor.FullName == "System.Void System.Reflection.DefaultMemberAttribute::.ctor(System.String)")
{
return Tuple.Create(ca.ConstructorArguments.Single().Value as string, ca); return Tuple.Create(ca.ConstructorArguments.Single().Value as string, ca);
}
}
return new Tuple<string,CustomAttribute>(null, null); return new Tuple<string,CustomAttribute>(null, null);
} }

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

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

Loading…
Cancel
Save