コード例 #1
0
        public virtual ExternalFiles VisitExternalFiles(ExternalFiles node)
        {
            if (node != null)
            {
                node.Conversion = VisitNullChecked(node.Conversion);
                node.Files      = VisitNullChecked(node.Files);
                node.Graphs     = VisitNullChecked(node.Graphs);
                if (node.Invocations != null)
                {
                    for (int index_0 = 0; index_0 < node.Invocations.Count; ++index_0)
                    {
                        node.Invocations[index_0] = VisitNullChecked(node.Invocations[index_0]);
                    }
                }

                node.LogicalLocations = VisitNullChecked(node.LogicalLocations);
                node.Resources        = VisitNullChecked(node.Resources);
                if (node.Results != null)
                {
                    for (int index_0 = 0; index_0 < node.Results.Count; ++index_0)
                    {
                        node.Results[index_0] = VisitNullChecked(node.Results[index_0]);
                    }
                }
            }

            return(node);
        }
コード例 #2
0
ファイル: ExternalFiles.cs プロジェクト: cnmade/sarif-sdk
        /// <summary>
        /// Initializes a new instance of the <see cref="ExternalFiles" /> 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 ExternalFiles(ExternalFiles other)
        {
            if (other == null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            Init(other.Conversion, other.Files, other.Graphs, other.Invocations, other.LogicalLocations, other.Resources, other.Results);
        }
コード例 #3
0
ファイル: ExternalFiles.cs プロジェクト: cnmade/sarif-sdk
 public bool ValueEquals(ExternalFiles other) => ValueComparer.Equals(this, other);