Browse Source

Merge pull request #114 from riviti/master

Fix build
newNRvisualizers
Mike Krüger 13 years ago
parent
commit
e4f7a8cf10
  1. 7
      ICSharpCode.NRefactory.CSharp/Refactoring/CodeIssues/AssignmentMadeToSameVariableIssue.cs

7
ICSharpCode.NRefactory.CSharp/Refactoring/CodeIssues/AssignmentMadeToSameVariableIssue.cs

@ -88,10 +88,9 @@ namespace ICSharpCode.NRefactory.CSharp.Refactoring
static bool AreEquivalent(ResolveResult first, ResolveResult second) static bool AreEquivalent(ResolveResult first, ResolveResult second)
{ {
var firstPath = InitializerPath.FromResolveResult(first); var firstPath = AccessPath.FromResolveResult(first);
var secondPath = InitializerPath.FromResolveResult(second); var secondPath = AccessPath.FromResolveResult(second);
return firstPath != null && firstPath.Equals(secondPath) && !firstPath.MemberPath.Any(m => !(m is IField)) && return firstPath != null && firstPath.Equals(secondPath) && !firstPath.MemberPath.Any(m => !(m is IField));
(firstPath.MemberRoot == null || firstPath.MemberRoot is IField);
} }
} }
} }

Loading…
Cancel
Save