protected virtual void Init(ReportingDescriptorReference target, IEnumerable <string> kinds, Message description, IDictionary <string, SerializedPropertyInfo> properties) { if (target != null) { Target = new ReportingDescriptorReference(target); } if (kinds != null) { var destination_0 = new List <string>(); foreach (var value_0 in kinds) { destination_0.Add(value_0); } Kinds = destination_0; } if (description != null) { Description = new Message(description); } if (properties != null) { Properties = new Dictionary <string, SerializedPropertyInfo>(properties); } }
/// <summary> /// Initializes a new instance of the <see cref="ReportingDescriptorReference" /> class from the specified instance. /// </summary> /// <param name="other"> /// The instance from which the new instance is to be initialized. /// </param> /// <exception cref="ArgumentNullException"> /// Thrown if <paramref name="other" /> is null. /// </exception> public ReportingDescriptorReference(ReportingDescriptorReference other) { if (other == null) { throw new ArgumentNullException(nameof(other)); } Init(other.Id, other.Index, other.Guid, other.ToolComponent, other.Properties); }
/// <summary> /// Initializes a new instance of the <see cref="ReportingDescriptorReference" /> class from the specified instance. /// </summary> /// <param name="other"> /// The instance from which the new instance is to be initialized. /// </param> /// <exception cref="ArgumentNullException"> /// Thrown if <paramref name="other" /> is null. /// </exception> public ReportingDescriptorReference(ReportingDescriptorReference other) { if (other == null) { throw new ArgumentNullException(nameof(other)); } Init(other.Id, other.Pointer, other.Properties); }
private void Init(IEnumerable <Location> locations, Message message, FailureLevel level, int threadId, DateTime timeUtc, ExceptionData exception, ReportingDescriptorReference descriptor, ReportingDescriptorReference associatedRule, IDictionary <string, SerializedPropertyInfo> properties) { if (locations != null) { var destination_0 = new List <Location>(); foreach (var value_0 in locations) { if (value_0 == null) { destination_0.Add(null); } else { destination_0.Add(new Location(value_0)); } } Locations = destination_0; } if (message != null) { Message = new Message(message); } Level = level; ThreadId = threadId; TimeUtc = timeUtc; if (exception != null) { Exception = new ExceptionData(exception); } if (descriptor != null) { Descriptor = new ReportingDescriptorReference(descriptor); } if (associatedRule != null) { AssociatedRule = new ReportingDescriptorReference(associatedRule); } if (properties != null) { Properties = new Dictionary <string, SerializedPropertyInfo>(properties); } }
protected virtual void Init(ReportingConfiguration configuration, ReportingDescriptorReference descriptor, IDictionary <string, SerializedPropertyInfo> properties) { if (configuration != null) { Configuration = new ReportingConfiguration(configuration); } if (descriptor != null) { Descriptor = new ReportingDescriptorReference(descriptor); } if (properties != null) { Properties = new Dictionary <string, SerializedPropertyInfo>(properties); } }
public bool ValueEquals(ReportingDescriptorReference other) => ValueComparer.Equals(this, other);
/// <summary> /// Initializes a new instance of the <see cref="ConfigurationOverride" /> class from the supplied values. /// </summary> /// <param name="configuration"> /// An initialization value for the <see cref="P:Configuration" /> property. /// </param> /// <param name="descriptor"> /// An initialization value for the <see cref="P:Descriptor" /> property. /// </param> /// <param name="properties"> /// An initialization value for the <see cref="P:Properties" /> property. /// </param> public ConfigurationOverride(ReportingConfiguration configuration, ReportingDescriptorReference descriptor, IDictionary <string, SerializedPropertyInfo> properties) { Init(configuration, descriptor, properties); }
/// <summary> /// Initializes a new instance of the <see cref="Notification" /> class from the supplied values. /// </summary> /// <param name="locations"> /// An initialization value for the <see cref="P:Locations" /> property. /// </param> /// <param name="message"> /// An initialization value for the <see cref="P:Message" /> property. /// </param> /// <param name="level"> /// An initialization value for the <see cref="P:Level" /> property. /// </param> /// <param name="threadId"> /// An initialization value for the <see cref="P:ThreadId" /> property. /// </param> /// <param name="timeUtc"> /// An initialization value for the <see cref="P:TimeUtc" /> property. /// </param> /// <param name="exception"> /// An initialization value for the <see cref="P:Exception" /> property. /// </param> /// <param name="descriptor"> /// An initialization value for the <see cref="P:Descriptor" /> property. /// </param> /// <param name="associatedRule"> /// An initialization value for the <see cref="P:AssociatedRule" /> property. /// </param> /// <param name="properties"> /// An initialization value for the <see cref="P:Properties" /> property. /// </param> public Notification(IEnumerable <Location> locations, Message message, FailureLevel level, int threadId, DateTime timeUtc, ExceptionData exception, ReportingDescriptorReference descriptor, ReportingDescriptorReference associatedRule, IDictionary <string, SerializedPropertyInfo> properties) { Init(locations, message, level, threadId, timeUtc, exception, descriptor, associatedRule, properties); }
/// <summary> /// Initializes a new instance of the <see cref="ReportingDescriptorRelationship" /> class from the supplied values. /// </summary> /// <param name="target"> /// An initialization value for the <see cref="P:Target" /> property. /// </param> /// <param name="kinds"> /// An initialization value for the <see cref="P:Kinds" /> property. /// </param> /// <param name="description"> /// An initialization value for the <see cref="P:Description" /> property. /// </param> /// <param name="properties"> /// An initialization value for the <see cref="P:Properties" /> property. /// </param> public ReportingDescriptorRelationship(ReportingDescriptorReference target, IEnumerable <string> kinds, Message description, IDictionary <string, SerializedPropertyInfo> properties) { Init(target, kinds, description, properties); }
private void Init(string ruleId, int ruleIndex, ReportingDescriptorReference rule, ResultKind kind, FailureLevel level, Message message, ArtifactLocation analysisTarget, IEnumerable <Location> locations, string guid, string correlationGuid, int occurrenceCount, IDictionary <string, string> partialFingerprints, IDictionary <string, string> fingerprints, IEnumerable <Stack> stacks, IEnumerable <CodeFlow> codeFlows, IEnumerable <Graph> graphs, IEnumerable <GraphTraversal> graphTraversals, IEnumerable <Location> relatedLocations, IEnumerable <Suppression> suppressions, BaselineState baselineState, double rank, IEnumerable <Attachment> attachments, Uri hostedViewerUri, IEnumerable <Uri> workItemUris, ResultProvenance provenance, IEnumerable <Fix> fixes, IEnumerable <ReportingDescriptorReference> taxa, WebRequest webRequest, WebResponse webResponse, IDictionary <string, SerializedPropertyInfo> properties) { RuleId = ruleId; RuleIndex = ruleIndex; if (rule != null) { Rule = new ReportingDescriptorReference(rule); } Kind = kind; Level = level; if (message != null) { Message = new Message(message); } if (analysisTarget != null) { AnalysisTarget = new ArtifactLocation(analysisTarget); } if (locations != null) { var destination_0 = new List <Location>(); foreach (var value_0 in locations) { if (value_0 == null) { destination_0.Add(null); } else { destination_0.Add(new Location(value_0)); } } Locations = destination_0; } Guid = guid; CorrelationGuid = correlationGuid; OccurrenceCount = occurrenceCount; if (partialFingerprints != null) { PartialFingerprints = new Dictionary <string, string>(partialFingerprints); } if (fingerprints != null) { Fingerprints = new Dictionary <string, string>(fingerprints); } if (stacks != null) { var destination_1 = new List <Stack>(); foreach (var value_1 in stacks) { if (value_1 == null) { destination_1.Add(null); } else { destination_1.Add(new Stack(value_1)); } } Stacks = destination_1; } if (codeFlows != null) { var destination_2 = new List <CodeFlow>(); foreach (var value_2 in codeFlows) { if (value_2 == null) { destination_2.Add(null); } else { destination_2.Add(new CodeFlow(value_2)); } } CodeFlows = destination_2; } if (graphs != null) { var destination_3 = new List <Graph>(); foreach (var value_3 in graphs) { if (value_3 == null) { destination_3.Add(null); } else { destination_3.Add(new Graph(value_3)); } } Graphs = destination_3; } if (graphTraversals != null) { var destination_4 = new List <GraphTraversal>(); foreach (var value_4 in graphTraversals) { if (value_4 == null) { destination_4.Add(null); } else { destination_4.Add(new GraphTraversal(value_4)); } } GraphTraversals = destination_4; } if (relatedLocations != null) { var destination_5 = new List <Location>(); foreach (var value_5 in relatedLocations) { if (value_5 == null) { destination_5.Add(null); } else { destination_5.Add(new Location(value_5)); } } RelatedLocations = destination_5; } if (suppressions != null) { var destination_6 = new List <Suppression>(); foreach (var value_6 in suppressions) { if (value_6 == null) { destination_6.Add(null); } else { destination_6.Add(new Suppression(value_6)); } } Suppressions = destination_6; } BaselineState = baselineState; Rank = rank; if (attachments != null) { var destination_7 = new List <Attachment>(); foreach (var value_7 in attachments) { if (value_7 == null) { destination_7.Add(null); } else { destination_7.Add(new Attachment(value_7)); } } Attachments = destination_7; } if (hostedViewerUri != null) { HostedViewerUri = new Uri(hostedViewerUri.OriginalString, hostedViewerUri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative); } if (workItemUris != null) { var destination_8 = new List <Uri>(); foreach (var value_8 in workItemUris) { destination_8.Add(value_8); } WorkItemUris = destination_8; } if (provenance != null) { Provenance = new ResultProvenance(provenance); } if (fixes != null) { var destination_9 = new List <Fix>(); foreach (var value_9 in fixes) { if (value_9 == null) { destination_9.Add(null); } else { destination_9.Add(new Fix(value_9)); } } Fixes = destination_9; } if (taxa != null) { var destination_10 = new List <ReportingDescriptorReference>(); foreach (var value_10 in taxa) { if (value_10 == null) { destination_10.Add(null); } else { destination_10.Add(new ReportingDescriptorReference(value_10)); } } Taxa = destination_10; } if (webRequest != null) { WebRequest = new WebRequest(webRequest); } if (webResponse != null) { WebResponse = new WebResponse(webResponse); } if (properties != null) { Properties = new Dictionary <string, SerializedPropertyInfo>(properties); } }
/// <summary> /// Initializes a new instance of the <see cref="Result" /> class from the supplied values. /// </summary> /// <param name="ruleId"> /// An initialization value for the <see cref="P:RuleId" /> property. /// </param> /// <param name="ruleIndex"> /// An initialization value for the <see cref="P:RuleIndex" /> property. /// </param> /// <param name="rule"> /// An initialization value for the <see cref="P:Rule" /> property. /// </param> /// <param name="kind"> /// An initialization value for the <see cref="P:Kind" /> property. /// </param> /// <param name="level"> /// An initialization value for the <see cref="P:Level" /> property. /// </param> /// <param name="message"> /// An initialization value for the <see cref="P:Message" /> property. /// </param> /// <param name="analysisTarget"> /// An initialization value for the <see cref="P:AnalysisTarget" /> property. /// </param> /// <param name="locations"> /// An initialization value for the <see cref="P:Locations" /> property. /// </param> /// <param name="guid"> /// An initialization value for the <see cref="P:Guid" /> property. /// </param> /// <param name="correlationGuid"> /// An initialization value for the <see cref="P:CorrelationGuid" /> property. /// </param> /// <param name="occurrenceCount"> /// An initialization value for the <see cref="P:OccurrenceCount" /> property. /// </param> /// <param name="partialFingerprints"> /// An initialization value for the <see cref="P:PartialFingerprints" /> property. /// </param> /// <param name="fingerprints"> /// An initialization value for the <see cref="P:Fingerprints" /> property. /// </param> /// <param name="stacks"> /// An initialization value for the <see cref="P:Stacks" /> property. /// </param> /// <param name="codeFlows"> /// An initialization value for the <see cref="P:CodeFlows" /> property. /// </param> /// <param name="graphs"> /// An initialization value for the <see cref="P:Graphs" /> property. /// </param> /// <param name="graphTraversals"> /// An initialization value for the <see cref="P:GraphTraversals" /> property. /// </param> /// <param name="relatedLocations"> /// An initialization value for the <see cref="P:RelatedLocations" /> property. /// </param> /// <param name="suppressions"> /// An initialization value for the <see cref="P:Suppressions" /> property. /// </param> /// <param name="baselineState"> /// An initialization value for the <see cref="P:BaselineState" /> property. /// </param> /// <param name="rank"> /// An initialization value for the <see cref="P:Rank" /> property. /// </param> /// <param name="attachments"> /// An initialization value for the <see cref="P:Attachments" /> property. /// </param> /// <param name="hostedViewerUri"> /// An initialization value for the <see cref="P:HostedViewerUri" /> property. /// </param> /// <param name="workItemUris"> /// An initialization value for the <see cref="P:WorkItemUris" /> property. /// </param> /// <param name="provenance"> /// An initialization value for the <see cref="P:Provenance" /> property. /// </param> /// <param name="fixes"> /// An initialization value for the <see cref="P:Fixes" /> property. /// </param> /// <param name="taxa"> /// An initialization value for the <see cref="P:Taxa" /> property. /// </param> /// <param name="webRequest"> /// An initialization value for the <see cref="P:WebRequest" /> property. /// </param> /// <param name="webResponse"> /// An initialization value for the <see cref="P:WebResponse" /> property. /// </param> /// <param name="properties"> /// An initialization value for the <see cref="P:Properties" /> property. /// </param> public Result(string ruleId, int ruleIndex, ReportingDescriptorReference rule, ResultKind kind, FailureLevel level, Message message, ArtifactLocation analysisTarget, IEnumerable <Location> locations, string guid, string correlationGuid, int occurrenceCount, IDictionary <string, string> partialFingerprints, IDictionary <string, string> fingerprints, IEnumerable <Stack> stacks, IEnumerable <CodeFlow> codeFlows, IEnumerable <Graph> graphs, IEnumerable <GraphTraversal> graphTraversals, IEnumerable <Location> relatedLocations, IEnumerable <Suppression> suppressions, BaselineState baselineState, double rank, IEnumerable <Attachment> attachments, Uri hostedViewerUri, IEnumerable <Uri> workItemUris, ResultProvenance provenance, IEnumerable <Fix> fixes, IEnumerable <ReportingDescriptorReference> taxa, WebRequest webRequest, WebResponse webResponse, IDictionary <string, SerializedPropertyInfo> properties) { Init(ruleId, ruleIndex, rule, kind, level, message, analysisTarget, locations, guid, correlationGuid, occurrenceCount, partialFingerprints, fingerprints, stacks, codeFlows, graphs, graphTraversals, relatedLocations, suppressions, baselineState, rank, attachments, hostedViewerUri, workItemUris, provenance, fixes, taxa, webRequest, webResponse, properties); }
public virtual ReportingDescriptorReference VisitReportingDescriptorReference(ReportingDescriptorReference node) { if (node != null) { } return(node); }