// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem;
usingSystem.Collections.Immutable;
usingSystem.Linq;
usingSystem.Runtime.CompilerServices;
usingSystem.Threading;
usingSystem.Threading.Tasks;
...
...
@@ -106,6 +108,14 @@ protected override ITaggerEventSource CreateEventSource(ITextView textViewOpt, I
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
end class",NewTestParameters(options:=RemoveAllUnnecessaryParentheses),parentheticalExpressionDiagnostic,openParenthesesDiagnostic,closeParenthesesDiagnostic)
end class",NewTestParameters(options:=RemoveAllUnnecessaryParentheses),parentheticalExpressionDiagnostic)
end class",NewTestParameters(options:=RemoveAllUnnecessaryParentheses),firstLineParentheticalExpressionDiagnostic,openParenthesesDiagnostic,closeParenthesesDiagnostic)
end class",NewTestParameters(options:=RemoveAllUnnecessaryParentheses),firstLineParentheticalExpressionDiagnostic)
/// Create a diagnostic that adds properties specifying a tag for a set of locations.
/// </summary>
/// <param name="descriptor">A <see cref="DiagnosticDescriptor"/> describing the diagnostic.</param>
/// <param name="location">An optional primary location of the diagnostic. If null, <see cref="Location"/> will return <see cref="Location.None"/>.</param>
/// <param name="effectiveSeverity">Effective severity of the diagnostic.</param>
/// <param name="additionalLocations">
/// An optional set of additional locations related to the diagnostic.
/// Typically, these are locations of other items referenced in the message.
/// If null, <see cref="Diagnostic.AdditionalLocations"/> will return an empty list.
/// </param>
/// <param name="tagIndices">
/// a map of location tag to index in additional locations.
/// <see cref="AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer{TLanguageKindEnum, TParenthesizedExpressionSyntax}"/> for an example of usage.
/// </param>
/// <param name="messageArgs">Arguments to the message of the diagnostic.</param>
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Collections.Immutable;
usingSystem.Diagnostics;
usingSystem.Threading;
...
...
@@ -20,25 +21,24 @@ internal abstract class AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer<
{
/// <summary>
/// A diagnostic descriptor that will fade the span (but not put a message or squiggle).
/// A diagnostic descriptor used to squiggle and message the span.