Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
958850c
Add FirstAncestorOrSelf extension with an argument
sharwell Jan 2, 2020
94a090d
Pool delegates for IsSupportedDiagnostic
sharwell Jan 1, 2020
a734c16
Make Suppression implement IEquatable<Suppression>
sharwell Mar 31, 2020
4f0d7b1
Improve fast path for comparison of same instance
sharwell Mar 31, 2020
afe5a49
Remove duplicate target from Roslyn.Test.Utilities
sharwell Mar 31, 2020
7b684e6
Use Hash.Combine instead of the long form generated by the IDE
sharwell Apr 2, 2020
b7b2d0f
Merge remote-tracking branch 'dotnet/master' into faster-suppressions
sharwell Apr 2, 2020
44d50e2
Port UseCompoundAssignment to shared layer
mavasani Apr 2, 2020
09b00d6
xlf and resx file changes
mavasani Apr 2, 2020
06e707a
Move FirstAncestorOrSelf to SyntaxNode
sharwell Mar 31, 2020
4637a70
Merge remote-tracking branch 'dotnet/master' into ancestor-or-self-arg
sharwell Apr 2, 2020
6e1c37c
Move away from IEnumerables in core rename results.
CyrusNajmabadi Apr 2, 2020
78b32d2
Fix
CyrusNajmabadi Apr 2, 2020
15233b3
Merge remote-tracking branch 'upstream/master' into removeIEnumerable
CyrusNajmabadi Apr 2, 2020
a8af598
Order roslyn signature help after LSP command handler.
dibarbet Apr 3, 2020
08469d6
show stackallock completion in expression context
genlu Apr 3, 2020
3f20bc2
Skip test
CyrusNajmabadi Apr 3, 2020
07bf1ad
Skip test
CyrusNajmabadi Apr 3, 2020
845f243
Respond to breaking package changes
dibarbet Apr 3, 2020
5587074
Merge remote-tracking branch 'upstream/master' into removeIEnumerable
CyrusNajmabadi Apr 3, 2020
e7d9e17
Merge remote-tracking branch 'upstream/master' into removeIEnumerable
CyrusNajmabadi Apr 3, 2020
522c2c9
Merge remote-tracking branch 'upstream/master' into removeIEnumerable
CyrusNajmabadi Apr 3, 2020
6bbfdc8
Fix
CyrusNajmabadi Apr 3, 2020
2d3b98b
Merge pull request #43017 from mavasani/PortUseCompoundAssignment
mavasani Apr 3, 2020
5dc0a90
Merge pull request #43043 from genlu/stackallocCompletion
genlu Apr 3, 2020
fe72889
Remove 'options' parameter, it is redundant
CyrusNajmabadi Apr 3, 2020
d59a4cf
Port MakeLocalFunctionStatic analyzer and tests to shared layer
mavasani Apr 3, 2020
7ec8cf6
xlf and resx changes
mavasani Apr 3, 2020
d0556cb
Implement faster equality for naming styles option
sharwell Apr 3, 2020
3ccf504
Revert unintentional change
mavasani Apr 3, 2020
f56ebc2
Merge pull request #42894 from sharwell/is-supported-diagnostic
sharwell Apr 3, 2020
0064c7d
Cache common options in AbstractTriviaDataFactory
sharwell Apr 3, 2020
b54c681
Merge pull request #43048 from dibarbet/update_vssdk
dibarbet Apr 3, 2020
e4d788e
Remove origina name parameter. it's redundant.
CyrusNajmabadi Apr 3, 2020
1353274
Merge pull request #43033 from CyrusNajmabadi/removeIEnumerable
CyrusNajmabadi Apr 3, 2020
0d1ac93
Merge remote-tracking branch 'upstream/master' into renameOOP
CyrusNajmabadi Apr 3, 2020
77fb9ae
Port UseSimpleUsingStatement analyzer/fixer/test to shared layer
mavasani Apr 3, 2020
fbd6802
xlf and resx file changes
mavasani Apr 3, 2020
b822423
Port C# MakeStructFieldsWritable analyzer/fixer/tests to shared layer
mavasani Apr 3, 2020
557cdce
xlf and resx file changes
mavasani Apr 3, 2020
8637fb6
Convert combinatorics tests to theories
sharwell Apr 3, 2020
d2c8125
Improve the performance of ProjectCacheHostServiceFactoryTests
sharwell Apr 3, 2020
17a9ee4
Port MisplacedUsingDirectives to shared layer
mavasani Apr 3, 2020
434dec1
xlf and resx file changes
mavasani Apr 3, 2020
f274286
Merge pull request #43061 from mavasani/MakeLocalFunctionStatic
Apr 3, 2020
dd1e496
Make additional rename information immutable
CyrusNajmabadi Apr 4, 2020
67b49aa
Merge branch 'master' into PortUseSimpleUsingStatement
mavasani Apr 4, 2020
d9c5b71
Merge branch 'master' into PortMakeStructFieldsWritable
mavasani Apr 4, 2020
6db969b
Fix crash for Equals analysis of types with bad base clauses (#42968)
RikkiGibson Apr 4, 2020
f2c14f6
Move extensions down to shared layer
mavasani Apr 4, 2020
e2fda86
Port UseSystemHashCode analyzer/fixer/tests to shared layer
mavasani Apr 4, 2020
2583d70
xlf and resx file changes
mavasani Apr 4, 2020
8784363
Merge pull request #42963 from sharwell/rm-duplicate-target
sharwell Apr 4, 2020
f7b4b1f
Merge pull request #43066 from CyrusNajmabadi/renameOOP
Apr 4, 2020
908a5d4
Merge pull request #43069 from mavasani/PortMakeStructFieldsWritable
Apr 4, 2020
2d96be7
Fix build warning
mavasani Apr 4, 2020
ebfacbf
Merge branch 'master' into PortMisplacedUsingDirectives
mavasani Apr 4, 2020
c75bce1
Merge branch 'master' into PortUseSimpleUsingStatement
mavasani Apr 4, 2020
75b615e
Merge pull request #43073 from mavasani/PortMisplacedUsingDirectives
Apr 4, 2020
02b346f
Merge pull request #43076 from mavasani/PortUseSystemHashCode
mavasani Apr 4, 2020
dadb2c1
Merge branch 'master' into PortUseSimpleUsingStatement
mavasani Apr 4, 2020
abe7a8a
Merge pull request #43068 from mavasani/PortUseSimpleUsingStatement
Apr 4, 2020
2a6be19
Avoid delegate allocations
sharwell Apr 3, 2020
8017891
Merge pull request #43060 from sharwell/faster-tests-2
sharwell Apr 5, 2020
9d3a600
Merge remote-tracking branch 'dotnet/master' into ancestor-or-self-arg
sharwell Apr 5, 2020
efa5d64
Merge pull request #42893 from sharwell/ancestor-or-self-arg
sharwell Apr 5, 2020
8fea41a
Share section keys when a parent of a root is different
sharwell Apr 5, 2020
d049cff
Use config cache to avoid tree creation
sharwell Apr 5, 2020
264930a
Update Microsoft.CodeAnalysis.Testing reference
sharwell Apr 6, 2020
bd27243
Update BatchFixAllProvider to support nested code actions
sharwell Apr 4, 2020
7ade389
Add tests for BatchFixAllProvider handling of nested code actions
sharwell Apr 6, 2020
430ce46
Use Regex.IsMatch instead of Regex.Match when no groups are needed
sharwell Apr 6, 2020
1875bd7
Move extension methods down to shared analyzer layer
mavasani Apr 6, 2020
0f8eda3
Port UseAutoProperty analyzer and tests to shared layer.
mavasani Apr 6, 2020
808da9f
xlf and resx file changes
mavasani Apr 6, 2020
f6ad71a
Merge pull request #42962 from sharwell/faster-suppressions
sharwell Apr 6, 2020
a5f87d4
Merge pull request #43103 from mavasani/PortUseAutoProperty
mavasani Apr 6, 2020
66ed21b
Inline variable
dibarbet Apr 6, 2020
5f182ed
Merge pull request #43042 from dibarbet/typescript_sig_help
dibarbet Apr 6, 2020
af4102b
Update code for clarity
sharwell Apr 6, 2020
e7b413e
Merge pull request #43095 from sharwell/use-cache
sharwell Apr 7, 2020
e5a21b2
Merge pull request #43077 from sharwell/batch-nested-fixes
sharwell Apr 7, 2020
e768297
Merge pull request #43100 from sharwell/is-match
sharwell Apr 7, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<!-- Versions used by several individual references below -->
<RoslynDiagnosticsNugetPackageVersion>3.0.0-beta2.20169.3</RoslynDiagnosticsNugetPackageVersion>
<CodeStyleLayerCodeAnalysisVersion>3.3.1</CodeStyleLayerCodeAnalysisVersion>
<MicrosoftCodeAnalysisTestingVersion>1.0.1-beta1.20126.2</MicrosoftCodeAnalysisTestingVersion>
<MicrosoftCodeAnalysisTestingVersion>1.0.1-beta1.20206.1</MicrosoftCodeAnalysisTestingVersion>
<CodeStyleAnalyzerVersion>3.6.0-2.20157.5</CodeStyleAnalyzerVersion>
<VisualStudioEditorPackagesVersion>16.4.248</VisualStudioEditorPackagesVersion>
<ILToolsPackageVersion>5.0.0-alpha1.19409.1</ILToolsPackageVersion>
Expand Down Expand Up @@ -199,7 +199,7 @@
<SystemThreadingTasksExtensionsVersion>4.5.3</SystemThreadingTasksExtensionsVersion>
<SQLitePCLRawbundle_greenVersion>1.1.2</SQLitePCLRawbundle_greenVersion>
<UIAComWrapperVersion>1.1.0.14</UIAComWrapperVersion>
<MicrosoftVSSDKBuildToolsVersion>16.3.2099</MicrosoftVSSDKBuildToolsVersion>
<MicrosoftVSSDKBuildToolsVersion>16.5.2044</MicrosoftVSSDKBuildToolsVersion>
<MicrosoftVSSDKVSDConfigToolVersion>16.0.2032702</MicrosoftVSSDKVSDConfigToolVersion>
<VSLangProjVersion>7.0.3301</VSLangProjVersion>
<VSLangProj140Version>14.0.25030</VSLangProj140Version>
Expand Down
9 changes: 9 additions & 0 deletions src/Analyzers/CSharp/Analyzers/CSharpAnalyzers.projitems
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,23 @@
<Compile Include="$(MSBuildThisFileDirectory)ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)FileHeaders\CSharpFileHeaderDiagnosticAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)FileHeaders\CSharpFileHeaderHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)MakeLocalFunctionStatic\MakeLocalFunctionStaticDiagnosticAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)MakeLocalFunctionStatic\MakeLocalFunctionStaticHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)MisplacedUsingDirectives\MisplacedUsingDirectivesDiagnosticAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)NamingStyle\CSharpNamingStyleDiagnosticAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)OrderModifiers\CSharpOrderModifiersDiagnosticAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)OrderModifiers\CSharpOrderModifiersHelper.cs" />
<Compile Include="$(MSBuildThisFileDirectory)PopulateSwitch\CSharpPopulateSwitchExpressionDiagnosticAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)PopulateSwitch\CSharpPopulateSwitchStatementDiagnosticAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)RemoveUnreachableCode\CSharpRemoveUnreachableCodeDiagnosticAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)RemoveUnreachableCode\RemoveUnreachableCodeHelpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UseAutoProperty\CSharpUseAutoPropertyAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UseCoalesceExpression\CSharpUseCoalesceExpressionDiagnosticAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UseCoalesceExpression\CSharpUseCoalesceExpressionForNullableDiagnosticAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UseCompoundAssignment\CSharpUseCompoundAssignmentDiagnosticAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UseCompoundAssignment\Utilities.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UseConditionalExpression\CSharpUseConditionalExpressionForAssignmentDiagnosticAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UseConditionalExpression\CSharpUseConditionalExpressionForReturnDiagnosticAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs" />
Expand Down Expand Up @@ -72,6 +80,7 @@
<Compile Include="$(MSBuildThisFileDirectory)UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)UseThrowExpression\CSharpUseThrowExpressionDiagnosticAnalyzer.cs" />
<Compile Include="$(MSBuildThisFileDirectory)ValidateFormatString\CSharpValidateFormatStringDiagnosticAnalyzer.cs" />
</ItemGroup>
Expand Down
40 changes: 40 additions & 0 deletions src/Analyzers/CSharp/Analyzers/CSharpAnalyzersResources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,26 @@
<data name="Add_braces_to_0_statement" xml:space="preserve">
<value>Add braces to '{0}' statement.</value>
</data>
<data name="Misplaced_using_directive" xml:space="preserve">
<value>Misplaced using directive</value>
<comment>{Locked="using"} "using" is a C# keyword and should not be localized.</comment>
</data>
<data name="Move_misplaced_using_directives" xml:space="preserve">
<value>Move misplaced using directives</value>
<comment>{Locked="using"} "using" is a C# keyword and should not be localized.</comment>
</data>
<data name="Using_directives_must_be_placed_inside_of_a_namespace_declaration" xml:space="preserve">
<value>Using directives must be placed inside of a namespace declaration</value>
<comment>{Locked="using"} "using" is a C# keyword and should not be localized. {Locked="namespace"} "namespace" is a C# keyword and should not be localized.</comment>
</data>
<data name="Using_directives_must_be_placed_outside_of_a_namespace_declaration" xml:space="preserve">
<value>Using directives must be placed outside of a namespace declaration</value>
<comment>{Locked="using"} "using" is a C# keyword and should not be localized. {Locked="namespace"} "namespace" is a C# keyword and should not be localized.</comment>
</data>
<data name="Warning_colon_Moving_using_directives_may_change_code_meaning" xml:space="preserve">
<value>Warning: Moving using directives may change code meaning.</value>
<comment>{Locked="using"} "using" is a C# keyword and should not be localized.</comment>
</data>
<data name="Use_expression_body_for_methods" xml:space="preserve">
<value>Use expression body for methods</value>
</data>
Expand Down Expand Up @@ -195,6 +215,12 @@
<data name="Use_is_null_check" xml:space="preserve">
<value>Use 'is null' check</value>
</data>
<data name="Use_simple_using_statement" xml:space="preserve">
<value>Use simple 'using' statement</value>
</data>
<data name="using_statement_can_be_simplified" xml:space="preserve">
<value>'using' statement can be simplified</value>
</data>
<data name="if_statement_can_be_simplified" xml:space="preserve">
<value>'if' statement can be simplified</value>
</data>
Expand All @@ -204,12 +230,26 @@
<data name="default_expression_can_be_simplified" xml:space="preserve">
<value>'default' expression can be simplified</value>
</data>
<data name="Make_readonly_fields_writable" xml:space="preserve">
<value>Make readonly fields writable</value>
<comment>{Locked="readonly"} "readonly" is C# keyword and should not be localized.</comment>
</data>
<data name="Struct_contains_assignment_to_this_outside_of_constructor_Make_readonly_fields_writable" xml:space="preserve">
<value>Struct contains assignment to 'this' outside of constructor. Make readonly fields writable</value>
<comment>{Locked="Struct"}{Locked="this"} these are C#/VB keywords and should not be localized.</comment>
</data>
<data name="Deconstruct_variable_declaration" xml:space="preserve">
<value>Deconstruct variable declaration</value>
</data>
<data name="Variable_declaration_can_be_deconstructed" xml:space="preserve">
<value>Variable declaration can be deconstructed</value>
</data>
<data name="Local_function_can_be_made_static" xml:space="preserve">
<value>Local function can be made static</value>
</data>
<data name="Make_local_function_static" xml:space="preserve">
<value>Make local function 'static'</value>
</data>
<data name="_0_can_be_simplified" xml:space="preserve">
<value>{0} can be simplified</value>
</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public MakeLocalFunctionStaticDiagnosticAnalyzer()
: base(IDEDiagnosticIds.MakeLocalFunctionStaticDiagnosticId,
CSharpCodeStyleOptions.PreferStaticLocalFunction,
LanguageNames.CSharp,
new LocalizableResourceString(nameof(FeaturesResources.Make_local_function_static), FeaturesResources.ResourceManager, typeof(FeaturesResources)),
new LocalizableResourceString(nameof(FeaturesResources.Local_function_can_be_made_static), FeaturesResources.ResourceManager, typeof(FeaturesResources)))
new LocalizableResourceString(nameof(CSharpAnalyzersResources.Make_local_function_static), CSharpAnalyzersResources.ResourceManager, typeof(CSharpAnalyzersResources)),
new LocalizableResourceString(nameof(CSharpAnalyzersResources.Local_function_can_be_made_static), CSharpAnalyzersResources.ResourceManager, typeof(CSharpAnalyzersResources)))
{
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#nullable enable

using System.Collections.Immutable;
using System.Linq;
using Microsoft.CodeAnalysis.CSharp.Extensions;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Shared.Extensions;

namespace Microsoft.CodeAnalysis.CSharp.MakeLocalFunctionStatic
{
internal static class MakeLocalFunctionStaticHelper
{
public static bool IsStaticLocalFunctionSupported(SyntaxTree tree)
=> tree.Options is CSharpParseOptions csharpOption && csharpOption.LanguageVersion >= LanguageVersion.CSharp8;

public static bool TryGetCaputuredSymbols(LocalFunctionStatementSyntax localFunction, SemanticModel semanticModel, out ImmutableArray<ISymbol> captures)
{
var dataFlow = semanticModel.AnalyzeDataFlow(localFunction);
if (dataFlow is null)
{
captures = default;
return false;
}

captures = dataFlow.CapturedInside;
return dataFlow.Succeeded;
}

public static bool TryGetCaputuredSymbolsAndCheckApplicability(LocalFunctionStatementSyntax localFunction, SemanticModel semanticModel, out ImmutableArray<ISymbol> captures)
=> TryGetCaputuredSymbols(localFunction, semanticModel, out captures) && CanMakeLocalFunctionStatic(captures);

private static bool CanMakeLocalFunctionStatic(ImmutableArray<ISymbol> captures)
=> captures.Length > 0 && !captures.Any(s => s.IsThisParameter());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ internal sealed class CSharpMakeStructFieldsWritableDiagnosticAnalyzer : Abstrac
{
private static readonly DiagnosticDescriptor s_diagnosticDescriptor = CreateDescriptor(
IDEDiagnosticIds.MakeStructFieldsWritable,
new LocalizableResourceString(nameof(FeaturesResources.Make_readonly_fields_writable), FeaturesResources.ResourceManager, typeof(FeaturesResources)),
new LocalizableResourceString(nameof(FeaturesResources.Struct_contains_assignment_to_this_outside_of_constructor_Make_readonly_fields_writable), FeaturesResources.ResourceManager, typeof(FeaturesResources)),
new LocalizableResourceString(nameof(CSharpAnalyzersResources.Make_readonly_fields_writable), CSharpAnalyzersResources.ResourceManager, typeof(CSharpAnalyzersResources)),
new LocalizableResourceString(nameof(CSharpAnalyzersResources.Struct_contains_assignment_to_this_outside_of_constructor_Make_readonly_fields_writable), CSharpAnalyzersResources.ResourceManager, typeof(CSharpAnalyzersResources)),
isUnnecessary: false);

public CSharpMakeStructFieldsWritableDiagnosticAnalyzer()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ namespace Microsoft.CodeAnalysis.CSharp.MisplacedUsingDirectives
internal sealed class MisplacedUsingDirectivesDiagnosticAnalyzer : AbstractBuiltInCodeStyleDiagnosticAnalyzer
{
private static readonly LocalizableResourceString s_localizableTitle = new LocalizableResourceString(
nameof(CSharpFeaturesResources.Misplaced_using_directive), CSharpFeaturesResources.ResourceManager, typeof(CSharpFeaturesResources));
nameof(CSharpAnalyzersResources.Misplaced_using_directive), CSharpAnalyzersResources.ResourceManager, typeof(CSharpAnalyzersResources));

private static readonly LocalizableResourceString s_localizableOutsideMessage = new LocalizableResourceString(
nameof(CSharpFeaturesResources.Using_directives_must_be_placed_outside_of_a_namespace_declaration), CSharpFeaturesResources.ResourceManager, typeof(CSharpFeaturesResources));
nameof(CSharpAnalyzersResources.Using_directives_must_be_placed_outside_of_a_namespace_declaration), CSharpAnalyzersResources.ResourceManager, typeof(CSharpAnalyzersResources));

private static readonly DiagnosticDescriptor s_outsideDiagnosticDescriptor = CreateDescriptorWithId(
IDEDiagnosticIds.MoveMisplacedUsingDirectivesDiagnosticId, s_localizableTitle, s_localizableOutsideMessage);

private static readonly LocalizableResourceString s_localizableInsideMessage = new LocalizableResourceString(
nameof(CSharpFeaturesResources.Using_directives_must_be_placed_inside_of_a_namespace_declaration), CSharpFeaturesResources.ResourceManager, typeof(CSharpFeaturesResources));
nameof(CSharpAnalyzersResources.Using_directives_must_be_placed_inside_of_a_namespace_declaration), CSharpAnalyzersResources.ResourceManager, typeof(CSharpAnalyzersResources));

private static readonly DiagnosticDescriptor s_insideDiagnosticDescriptor = CreateDescriptorWithId(
IDEDiagnosticIds.MoveMisplacedUsingDirectivesDiagnosticId, s_localizableTitle, s_localizableInsideMessage);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal class CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer
public CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer()
: base(IDEDiagnosticIds.UseCoalesceCompoundAssignmentDiagnosticId,
CodeStyleOptions2.PreferCompoundAssignment,
new LocalizableResourceString(nameof(FeaturesResources.Use_compound_assignment), FeaturesResources.ResourceManager, typeof(FeaturesResources)))
new LocalizableResourceString(nameof(AnalyzersResources.Use_compound_assignment), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)))
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public UseSimpleUsingStatementDiagnosticAnalyzer()
: base(IDEDiagnosticIds.UseSimpleUsingStatementDiagnosticId,
CSharpCodeStyleOptions.PreferSimpleUsingStatement,
LanguageNames.CSharp,
new LocalizableResourceString(nameof(FeaturesResources.Use_simple_using_statement), FeaturesResources.ResourceManager, typeof(FeaturesResources)),
new LocalizableResourceString(nameof(FeaturesResources.using_statement_can_be_simplified), FeaturesResources.ResourceManager, typeof(FeaturesResources)))
new LocalizableResourceString(nameof(CSharpAnalyzersResources.Use_simple_using_statement), CSharpAnalyzersResources.ResourceManager, typeof(CSharpAnalyzersResources)),
new LocalizableResourceString(nameof(CSharpAnalyzersResources.using_statement_can_be_simplified), CSharpAnalyzersResources.ResourceManager, typeof(CSharpAnalyzersResources)))
{
}

Expand Down
Loading