private static string CreateSignature(AndroidStudioProblem problem)
{
string entryPointName = problem.EntryPointName;
if ("file".Equals(problem.EntryPointType))
{
entryPointName = null;
}
string[] parts = new string[] { problem.Module, problem.Package, entryPointName };
var updated = parts
.Where(part => !String.IsNullOrEmpty(part));
string joinedParts = String.Join(@"\", updated);
if (String.IsNullOrEmpty(joinedParts))
{
return problem.Module;
}
else
{
return joinedParts;
}
}