Microsoft.CodeAnalysis.Sarif.Annotation.Init C# (CSharp) Method

Init() private method

private Init ( string message, IEnumerable locations ) : void
message string
locations IEnumerable
return void
        private void Init(string message, IEnumerable<PhysicalLocation> locations)
        {
            Message = message;
            if (locations != null)
            {
                var destination_0 = new List<PhysicalLocation>();
                foreach (var value_0 in locations)
                {
                    if (value_0 == null)
                    {
                        destination_0.Add(null);
                    }
                    else
                    {
                        destination_0.Add(new PhysicalLocation(value_0));
                    }
                }

                Locations = destination_0;
            }
        }
    }