Microsoft.CodeAnalysis.Sarif.Converters.AndroidStudioConverter.CreateLogicalLocation C# (CSharp) Méthode

CreateLogicalLocation() private méthode

private CreateLogicalLocation ( AndroidStudioProblem problem ) : string
problem AndroidStudioProblem
Résultat string
        private string CreateLogicalLocation(AndroidStudioProblem problem)
        {
            string parentLogicalLocationKey = null;

            parentLogicalLocationKey = TryAddLogicalLocation(parentLogicalLocationKey, problem.Module, LogicalLocationKind.Module);
            parentLogicalLocationKey = TryAddLogicalLocation(parentLogicalLocationKey, problem.Package, LogicalLocationKind.Package);

            if (problem.EntryPointName != null)
            {
                if ("class".Equals(problem.EntryPointType, StringComparison.OrdinalIgnoreCase))
                {
                    parentLogicalLocationKey = TryAddLogicalLocation(parentLogicalLocationKey, problem.EntryPointName, LogicalLocationKind.Type);
                }
                else if ("method".Equals(problem.EntryPointType, StringComparison.OrdinalIgnoreCase))
                {
                    parentLogicalLocationKey = TryAddLogicalLocation(parentLogicalLocationKey, problem.EntryPointName, LogicalLocationKind.Member);
                }
            }

            return parentLogicalLocationKey;
        }