#pragma warning disable RS0026 // Do not add multiple public overloads with optional parameters /// <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 WithAnalyzerConfigDocumentText(DocumentId documentId, SourceText text, PreservationMode mode = PreservationMode.PreserveValue) #pragma warning restore RS0026 // Do not add multiple public overloads with optional parameters { var newState = _state.WithAnalyzerConfigDocumentText(documentId, text, mode); if (newState == _state) { return(this); } return(new Solution(newState)); }
/// <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 WithAnalyzerConfigDocumentText(DocumentId documentId, SourceText text, PreservationMode mode = PreservationMode.PreserveValue) { var newState = _state.WithAnalyzerConfigDocumentText(documentId, text, mode); if (newState == _state) { return(this); } return(new Solution(newState)); }