Browse Source

[Ast] GetTypes now includes inner delegates as well.

newNRvisualizers
Mike Krüger 13 years ago
parent
commit
07c8929aa2
  1. 2
      ICSharpCode.NRefactory.CSharp/Ast/SyntaxTree.cs

2
ICSharpCode.NRefactory.CSharp/Ast/SyntaxTree.cs

@ -122,7 +122,7 @@ namespace ICSharpCode.NRefactory.CSharp @@ -122,7 +122,7 @@ namespace ICSharpCode.NRefactory.CSharp
}
foreach (var child in curNode.Children) {
if (!(child is Statement || child is Expression) &&
(child.Role != Roles.TypeMemberRole || (child is TypeDeclaration && includeInnerTypes)))
(child.Role != Roles.TypeMemberRole || ((child is TypeDeclaration || child is DelegateDeclaration) && includeInnerTypes)))
nodeStack.Push (child);
}
}

Loading…
Cancel
Save