Esempio n. 1
0
        public override async Task <SyntaxNode> CleanUpAsync(SyntaxNode initialSourceNode)
        {
            var syntaxRewriter = new Rewriter(ProjectItemDetails.SemanticModel, IsReportOnlyMode
                                              , Options);

            var modifiedSourceNode = syntaxRewriter.ConvertFullNameTypesToBuiltInTypesHelper(initialSourceNode);

            if (IsReportOnlyMode)
            {
                CollectMessages(syntaxRewriter.GetReport());
                return(initialSourceNode);
            }

            return(modifiedSourceNode);
        }