|
|
|
@ -54,13 +54,13 @@ namespace ICSharpCode.NRefactory.CSharp.Refactoring |
|
|
|
#region ICodeIssueProvider implementation
|
|
|
|
#region ICodeIssueProvider implementation
|
|
|
|
public IEnumerable<CodeIssue> GetIssues(BaseRefactoringContext context) |
|
|
|
public IEnumerable<CodeIssue> GetIssues(BaseRefactoringContext context) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var sw = new Stopwatch(); |
|
|
|
// var sw = new Stopwatch();
|
|
|
|
sw.Start(); |
|
|
|
// sw.Start();
|
|
|
|
var gatherer = new GatherVisitor(context, tryResolve); |
|
|
|
var gatherer = new GatherVisitor(context, tryResolve); |
|
|
|
var issues = gatherer.GetIssues(); |
|
|
|
var issues = gatherer.GetIssues(); |
|
|
|
sw.Stop(); |
|
|
|
// sw.Stop();
|
|
|
|
Console.WriteLine("Elapsed time in ParameterCanBeDemotedIssue: {0} (Checked types: {3, 4} Qualified for resolution check: {5, 4} Members with issues: {4, 4} Method bodies resolved: {2, 4} File: '{1}')", |
|
|
|
// Console.WriteLine("Elapsed time in ParameterCanBeDemotedIssue: {0} (Checked types: {3, 4} Qualified for resolution check: {5, 4} Members with issues: {4, 4} Method bodies resolved: {2, 4} File: '{1}')",
|
|
|
|
sw.Elapsed, context.UnresolvedFile.FileName, gatherer.MethodResolveCount, gatherer.TypesChecked, gatherer.MembersWithIssues, gatherer.TypeResolveCount); |
|
|
|
// sw.Elapsed, context.UnresolvedFile.FileName, gatherer.MethodResolveCount, gatherer.TypesChecked, gatherer.MembersWithIssues, gatherer.TypeResolveCount);
|
|
|
|
return issues; |
|
|
|
return issues; |
|
|
|
} |
|
|
|
} |
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|