Browse Source

Fix MemberType.DoMatch() - pattern matching was ignoring the type arguments.

newNRvisualizers
Daniel Grunwald 13 years ago
parent
commit
de9eea5967
  1. 4
      ICSharpCode.NRefactory.CSharp/Ast/MemberType.cs

4
ICSharpCode.NRefactory.CSharp/Ast/MemberType.cs

@ -115,7 +115,9 @@ namespace ICSharpCode.NRefactory.CSharp @@ -115,7 +115,9 @@ namespace ICSharpCode.NRefactory.CSharp
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{
MemberType o = other as MemberType;
return o != null && this.IsDoubleColon == o.IsDoubleColon && MatchString(this.MemberName, o.MemberName) && this.Target.DoMatch(o.Target, match);
return o != null && this.IsDoubleColon == o.IsDoubleColon
&& MatchString(this.MemberName, o.MemberName) && this.Target.DoMatch(o.Target, match)
&& this.TypeArguments.DoMatch(o.TypeArguments, match);
}
public override string ToString()

Loading…
Cancel
Save