예제 #1
0
        /// <summary>
        /// Creates a new solution instance with the analyzer config document specified updated to have the text
        /// supplied by the text loader.
        /// </summary>
        public Solution WithAnalyzerConfigDocumentTextLoader(DocumentId documentId, TextLoader loader, PreservationMode mode)
        {
            var newState = _state.WithAnalyzerConfigDocumentTextLoader(documentId, loader, mode);

            if (newState == _state)
            {
                return(this);
            }

            return(new Solution(newState));
        }