Skip to content

Commit

Permalink
Fix rewrite namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kzrnm committed Feb 11, 2021
1 parent c25e5b5 commit 566fff7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/AtCoderAnalyzer/Helpers/SimplifyTypeSyntaxRewriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ internal class SimplifyTypeSyntaxRewriter : CSharpSyntaxRewriter

public override SyntaxNode VisitQualifiedName(QualifiedNameSyntax node)
{
var right = (SimpleNameSyntax)Visit(node.Right);
if (Usings.Contains(node.Left.ToString()))
return base.Visit(node.Right);
return base.VisitQualifiedName(node);
return right;
return SyntaxFactory.QualifiedName(node.Left, right);
}
}
}

0 comments on commit 566fff7

Please sign in to comment.