From be0a74b698a7e0bdf00469e69f4604d38a04a53c Mon Sep 17 00:00:00 2001 From: Heejae Chang Date: Tue, 17 Feb 2015 13:30:24 -0800 Subject: [PATCH] fix formatting and add more comments --- src/Compilers/Core/Portable/Diagnostic/Diagnostic.cs | 1 + .../Core/Diagnostics/EngineV1/DiagnosticIncrementalAnalyzer.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Compilers/Core/Portable/Diagnostic/Diagnostic.cs b/src/Compilers/Core/Portable/Diagnostic/Diagnostic.cs index 9c2961177b6a2..13de48438b9b8 100644 --- a/src/Compilers/Core/Portable/Diagnostic/Diagnostic.cs +++ b/src/Compilers/Core/Portable/Diagnostic/Diagnostic.cs @@ -269,6 +269,7 @@ public bool IsWarningAsError /// /// Gets property bag for the diagnostic. it will return if there is no entry. + /// This can be used to put diagnostic specific information you want to pass around. for example, to corresponding fixer. /// public virtual ImmutableDictionary Properties { get { return ImmutableDictionary.Empty; } } diff --git a/src/Features/Core/Diagnostics/EngineV1/DiagnosticIncrementalAnalyzer.cs b/src/Features/Core/Diagnostics/EngineV1/DiagnosticIncrementalAnalyzer.cs index b40a7f9bc0326..1baac931431b9 100644 --- a/src/Features/Core/Diagnostics/EngineV1/DiagnosticIncrementalAnalyzer.cs +++ b/src/Features/Core/Diagnostics/EngineV1/DiagnosticIncrementalAnalyzer.cs @@ -771,7 +771,7 @@ private DiagnosticData UpdatePosition(DiagnosticData diagnostic, SyntaxTree tree diagnostic.IsEnabledByDefault, diagnostic.WarningLevel, diagnostic.CustomTags, - diagnostic.Properties, + diagnostic.Properties, diagnostic.Workspace, diagnostic.ProjectId, diagnostic.DocumentId,