public override SyntaxNode VisitPropertyList(PropertyListSyntax node)
        {
            if ((this.NodeInSpan(node)) && (node.Properties != null) && (node.Properties.Count > 0) && (!node.ContainsDiagnostics))
            {
                List <SyntaxNodeSortInfo <PropertySyntaxOrEmpty> > list =
                    SyntaxNodeSortInfo <PropertySyntaxOrEmpty> .FromSyntaxList(node.Properties);

                list.Sort(new PropertyComparer());
                SyntaxList <PropertySyntaxOrEmpty> properties =
                    SyntaxNodeSortInfo <PropertySyntaxOrEmpty> .ToSyntaxList(list);

                node = node.WithProperties(properties);
            }
            return(base.VisitPropertyList(node));
        }
        public override SyntaxNode VisitReportDataItem(ReportDataItemSyntax node)
        {
            if ((this.NodeInSpan(node)) && (!node.ContainsDiagnostics))
            {
                List <SyntaxNodeSortInfo <ReportDataItemElementSyntax> > list =
                    SyntaxNodeSortInfo <ReportDataItemElementSyntax> .FromSyntaxList(node.Elements);

                if (list.Count > 1)
                {
                    list.Sort(new ReportElementComparer());
                    List <ReportDataItemElementSyntax> elementsList = new List <ReportDataItemElementSyntax>();
                    for (int i = 0; i < list.Count; i++)
                    {
                        elementsList.Add(list[i].Node);
                    }
                    node = node.WithElements(SyntaxFactory.List <ReportDataItemElementSyntax>(elementsList));
                }
            }
            return(base.VisitReportDataItem(node));
        }