4059 references to CSharp
AnalyzerRunner (10)
CodeRefactoringRunner.cs (1)
129
(LanguageNames.
CSharp
, typeof(Microsoft.CodeAnalysis.CSharp.SyntaxKind)),
DiagnosticAnalyzerRunner.cs (6)
46
if (project.Language is not LanguageNames.
CSharp
and not LanguageNames.VisualBasic)
97
if (project.Language is not LanguageNames.
CSharp
and not LanguageNames.VisualBasic)
108
if (project.Language is not LanguageNames.
CSharp
and not LanguageNames.VisualBasic)
307
var csharpAnalyzers = analyzerReference.GetAnalyzers(LanguageNames.
CSharp
);
310
.Add(LanguageNames.
CSharp
, csharpAnalyzers)
329
if (project.Language is not LanguageNames.
CSharp
and not LanguageNames.VisualBasic)
IncrementalAnalyzerRunner.cs (1)
42
globalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.
CSharp
, _options.AnalysisScope);
Program.cs (2)
145
var projects = solution.Projects.Where(project => project.Language is LanguageNames.
CSharp
or LanguageNames.VisualBasic).ToList();
176
var projects = solution.Projects.Where(project => project.Language is LanguageNames.
CSharp
or LanguageNames.VisualBasic).ToList();
Aspire.Hosting.Analyzers (1)
AppHostAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
CodeStyleConfigFileGenerator (1)
Program.cs (1)
50
var languageForGetAnalyzers = language == "CSharp" ? LanguageNames.
CSharp
: LanguageNames.VisualBasic;
IdeCoreBenchmarks (4)
FormatterBenchmarks.cs (1)
50
.AddProject(projectId, "ProjectName", "AssemblyName", LanguageNames.
CSharp
)
ProjectOperationBenchmarks.cs (1)
66
solution = solution.AddProject(projectId, name, name, LanguageNames.
CSharp
);
RenameBenchmarks.cs (1)
44
.AddProject(projectId, "ProjectName", "AssemblyName", LanguageNames.
CSharp
)
SwitchStatementBenchmarks.cs (1)
68
.AddProject(projectId, "ProjectName", "AssemblyName", LanguageNames.
CSharp
)
ILLink.CodeFixProvider (5)
DynamicallyAccessedMembersCodeFixProvider.cs (1)
22
[ExportCodeFixProvider (LanguageNames.
CSharp
, Name = nameof (DynamicallyAccessedMembersCodeFixProvider)), Shared]
RequiresAssemblyFilesCodeFixProvider.cs (1)
17
[ExportCodeFixProvider (LanguageNames.
CSharp
, Name = nameof (RequiresAssemblyFilesCodeFixProvider)), Shared]
RequiresDynamicCodeCodeFixProvider.cs (1)
17
[ExportCodeFixProvider (LanguageNames.
CSharp
, Name = nameof (RequiresUnreferencedCodeCodeFixProvider)), Shared]
RequiresUnreferencedCodeCodeFixProvider.cs (1)
17
[ExportCodeFixProvider (LanguageNames.
CSharp
, Name = nameof (RequiresUnreferencedCodeCodeFixProvider)), Shared]
UnconditionalSuppressMessageCodeFixProvider.cs (1)
17
[ExportCodeFixProvider (LanguageNames.
CSharp
, Name = nameof (UnconditionalSuppressMessageCodeFixProvider)), Shared]
ILLink.RoslynAnalyzer (5)
COMAnalyzer.cs (1)
15
[DiagnosticAnalyzer (LanguageNames.
CSharp
)]
DynamicallyAccessedMembersAnalyzer.cs (1)
18
[DiagnosticAnalyzer (LanguageNames.
CSharp
)]
RequiresAssemblyFilesAnalyzer.cs (1)
16
[DiagnosticAnalyzer (LanguageNames.
CSharp
)]
RequiresDynamicCodeAnalyzer.cs (1)
16
[DiagnosticAnalyzer (LanguageNames.
CSharp
)]
RequiresUnreferencedCodeAnalyzer.cs (1)
15
[DiagnosticAnalyzer (LanguageNames.
CSharp
)]
Microsoft.Analyzers.Extra (9)
AsyncCallInsideUsingBlockAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
AsyncMethodWithoutCancellation.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
CallAnalysis\CallAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
22
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = nameof(LegacyLoggingFixer))]
CoalesceAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
ConditionalAccessAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
MakeExeTypesInternalAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
MakeExeTypesInternalFixer.cs (1)
18
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = nameof(MakeExeTypesInternalFixer))]
UsingToStringInLoggersAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Microsoft.Analyzers.Local (3)
ApiLifecycle\ApiLifecycleAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
CallAnalysis\CallAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
InternalReferencedInPublicDocAnalyzer.cs (1)
18
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Microsoft.AspNetCore.Analyzer.Testing (2)
DiagnosticProject.cs (1)
43
.AddProject(projectId, TestProjectName, TestProjectName, LanguageNames.
CSharp
);
DiagnosticVerifier.cs (1)
162
Solution = Solution.AddProject(projectId, TestProjectName, TestProjectName, LanguageNames.
CSharp
)
Microsoft.AspNetCore.Analyzers (1)
StartupAnalyzer.cs (1)
12
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Microsoft.AspNetCore.App.Analyzers (16)
Authorization\AddAuthorizationBuilderAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Http\HeaderDictionaryAddAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Http\HeaderDictionaryIndexerAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Http\RequestDelegateReturnTypeAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Kestrel\ListenOnIPv6AnyAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Mvc\MvcAnalyzer.cs (1)
21
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
RenderTreeBuilder\RenderTreeBuilderAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
32
[ExportCompletionProvider(nameof(RoutePatternCompletionProvider), LanguageNames.
CSharp
)]
RouteEmbeddedLanguage\RoutePatternAnalyzer.cs (1)
18
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
RouteEmbeddedLanguage\RoutePatternBraceMatcher.cs (1)
16
[ExportAspNetCoreEmbeddedLanguageBraceMatcher(name: "Route", language: LanguageNames.
CSharp
)]
RouteEmbeddedLanguage\RoutePatternClassifier.cs (1)
14
[ExportAspNetCoreEmbeddedLanguageClassifier(name: "Route", language: LanguageNames.
CSharp
)]
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
26
[ExportCompletionProvider(nameof(RoutePatternCompletionProvider), LanguageNames.
CSharp
)]
RouteEmbeddedLanguage\RoutePatternHighlighter.cs (1)
18
[ExportAspNetCoreEmbeddedLanguageDocumentHighlighter(name: "Route", language: LanguageNames.
CSharp
)]
RouteHandlers\RouteHandlerAnalyzer.cs (1)
18
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
WebApplicationBuilder\PublicPartialProgramClassAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
WebApplicationBuilder\WebApplicationBuilderAnalyzer.cs (1)
18
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Microsoft.AspNetCore.App.Analyzers.Test (1)
Infrastructure\WellKnownTypesTests.cs (1)
86
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Microsoft.AspNetCore.App.CodeFixes (10)
Authorization\AddAuthorizationBuilderFixer.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
), Shared]
Dependencies\AddPackageFixer.cs (1)
26
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = nameof(AddPackageFixer)), Shared]
Dependencies\ExtensionMethodsCompletionProvider.cs (1)
23
[ExportCompletionProvider(nameof(ExtensionMethodsCompletionProvider), LanguageNames.
CSharp
)]
DetectMismatchedParameterOptionalityFixer.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
), Shared]
Http\HeaderDictionaryAddFixer.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
), Shared]
Http\HeaderDictionaryIndexerFixer.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
), Shared]
Kestrel\ListenOnIPv6AnyFixer.cs (1)
17
[ExportCodeFixProvider(LanguageNames.
CSharp
), Shared]
PublicPartialProgramClassFixer.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
), Shared]
RouteParameterUnusedParameterFixer.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
), Shared]
WebApplicationBuilderFixer.cs (1)
17
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = nameof(WebApplicationBuilderFixer)), Shared]
Microsoft.AspNetCore.Components.Analyzers (4)
ComponentInternalUsageDiagnosticAnalzyer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
ComponentParameterAnalyzer.cs (1)
19
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
17
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = nameof(ComponentParametersShouldBePublicCodeFixProvider)), Shared]
ComponentParameterUsageAnalyzer.cs (1)
12
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Microsoft.AspNetCore.Components.Analyzers.Tests (7)
Helpers\DiagnosticVerifier.Helper.cs (4)
111
if (language != LanguageNames.
CSharp
&& language != LanguageNames.VisualBasic)
133
protected static Document CreateDocument(string source, string language = LanguageNames.
CSharp
)
144
private static Project CreateProject(string[] sources, string language = LanguageNames.
CSharp
)
147
string fileExt = language == LanguageNames.
CSharp
? CSharpDefaultFileExt : VisualBasicDefaultExt;
Verifiers\CodeFixVerifier.cs (1)
48
VerifyFix(LanguageNames.
CSharp
, GetCSharpDiagnosticAnalyzer(), GetCSharpCodeFixProvider(), oldSource, newSource, codeFixIndex, allowNewCompilerDiagnostics);
Verifiers\DiagnosticVerifier.cs (2)
46
VerifyDiagnostics(new[] { source }, LanguageNames.
CSharp
, GetCSharpDiagnosticAnalyzer(), expected);
68
VerifyDiagnostics(sources, LanguageNames.
CSharp
, GetCSharpDiagnosticAnalyzer(), expected);
Microsoft.AspNetCore.Components.SdkAnalyzers (4)
ComponentInternalUsageDiagnosticAnalzyer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
ComponentParameterAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
17
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = nameof(ComponentParametersShouldBePublicCodeFixProvider)), Shared]
ComponentParameterUsageAnalyzer.cs (1)
12
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (7)
Helpers\DiagnosticVerifier.Helper.cs (4)
111
if (language != LanguageNames.
CSharp
&& language != LanguageNames.VisualBasic)
133
protected static Document CreateDocument(string source, string language = LanguageNames.
CSharp
)
144
private static Project CreateProject(string[] sources, string language = LanguageNames.
CSharp
)
147
string fileExt = language == LanguageNames.
CSharp
? CSharpDefaultFileExt : VisualBasicDefaultExt;
Verifiers\CodeFixVerifier.cs (1)
48
VerifyFix(LanguageNames.
CSharp
, GetCSharpDiagnosticAnalyzer(), GetCSharpCodeFixProvider(), oldSource, newSource, codeFixIndex, allowNewCompilerDiagnostics);
Verifiers\DiagnosticVerifier.cs (2)
46
VerifyDiagnostics(new[] { source }, LanguageNames.
CSharp
, GetCSharpDiagnosticAnalyzer(), expected);
68
VerifyDiagnostics(sources, LanguageNames.
CSharp
, GetCSharpDiagnosticAnalyzer(), expected);
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
321
.AddProject(projectName, projectName, LanguageNames.
CSharp
)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
321
.AddProject(projectName, projectName, LanguageNames.
CSharp
)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
RequestDelegateGeneratorSuppressor.cs (1)
23
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Microsoft.AspNetCore.Mvc.Analyzers (4)
AttributesShouldNotBeAppliedToPageModelAnalyzer.cs (1)
10
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
AvoidHtmlPartialAnalyzer.cs (1)
11
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
TagHelpersInCodeBlocksAnalyzer.cs (1)
12
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
TopLevelParameterNameAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Microsoft.AspNetCore.Mvc.Api.Analyzers (4)
AddResponseTypeAttributeCodeFixProvider.cs (1)
12
[ExportCodeFixProvider(LanguageNames.
CSharp
)]
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs (1)
12
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
ApiActionsDoNotRequireExplicitModelValidationCodeFixProvider.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
)]
ApiConventionAnalyzer.cs (1)
12
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Microsoft.CodeAnalysis (7)
DiagnosticAnalyzer\AnalyzerFileReference.cs (2)
129
return _generators.GetExtensions(LanguageNames.
CSharp
);
300
return ImmutableArray.Create(LanguageNames.
CSharp
);
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
104
if (_compilation.Language == LanguageNames.
CSharp
)
DocumentationCommentId.cs (1)
302
if (language == LanguageNames.
CSharp
)
Operations\IOperation.cs (1)
59
/// The source language of the IOperation. Possible values are <see cref="LanguageNames.
CSharp
"/> and <see cref="LanguageNames.VisualBasic"/>.
Operations\Operation.cs (1)
78
/// The source language of the IOperation. Possible values are <see cref="LanguageNames.
CSharp
"/> and <see cref="LanguageNames.VisualBasic"/>.
SourceGeneration\GeneratorAttribute.cs (1)
23
: this(LanguageNames.
CSharp
) { }
Microsoft.CodeAnalysis.CodeStyle (6)
src\Analyzers\Core\Analyzers\UseExplicitTupleName\UseExplicitTupleNameDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
src\Analyzers\Core\Analyzers\UseSystemHashCode\UseSystemHashCodeDiagnosticAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
104
if (_compilation.Language == LanguageNames.
CSharp
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\PredefinedEmbeddedLanguageClassifierNames.cs (1)
13
public const string CSharpTest = $"{LanguageNames.
CSharp
}-Test";
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
72
Debug.Assert(LanguageName is LanguageNames.
CSharp
== Definition.ConfigName.StartsWith(OptionDefinition.CSharpConfigNamePrefix, StringComparison.Ordinal));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
56
if (isNativeIntegerType && reader.Compilation.Language == LanguageNames.
CSharp
)
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
Host\Mef\CodeStyleHostLanguageServices.cs (1)
42
case LanguageNames.
CSharp
:
src\Analyzers\Core\CodeFixes\AddRequiredParentheses\AddRequiredParenthesesCodeFixProvider.cs (1)
18
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.AddRequiredParentheses), Shared]
src\Analyzers\Core\CodeFixes\NewLines\ConsecutiveStatementPlacement\ConsecutiveStatementPlacementCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.ConsecutiveStatementPlacement), Shared]
src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.RemoveBlankLines), Shared]
src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.RemoveRedundantEquality), Shared]
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.RemoveUnnecessaryAttributeSuppressions), Shared]
src\Analyzers\Core\CodeFixes\SimplifyBooleanExpression\SimplifyConditionalCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.SimplifyConditionalExpression), Shared]
src\Analyzers\Core\CodeFixes\SimplifyLinqExpression\SimplifyLinqExpressionCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.SimplifyLinqExpression), Shared]
src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.UpdateLegacySuppressions), Shared]
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.UseCoalesceExpressionForNullableTernaryConditionalCheck), Shared]
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.UseCoalesceExpressionForTernaryConditionalCheck), Shared]
src\Analyzers\Core\CodeFixes\UseExplicitTupleName\UseExplicitTupleNameCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.UseExplicitTupleName), Shared]
src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.UseSystemHashCode), Shared]
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
src\Workspaces\CoreTestUtilities\OptionsCollection.cs (1)
33
public string DefaultExtension => languageName == LanguageNames.
CSharp
? "cs" : "vb";
Microsoft.CodeAnalysis.Compiler.Test.Resources (3)
Analyzers\DoNothingAnalyzer.cs (1)
11
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
Analyzers\DoNothingGenerator.cs (1)
9
[Generator(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
Analyzers\DoNothingSuppressor.cs (1)
11
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
Microsoft.CodeAnalysis.CSharp (16)
CommandLine\CSharpCompiler.cs (1)
341
Arguments.ResolveAnalyzersFromArguments(LanguageNames.
CSharp
, diagnostics, messageProvider, AssemblyLoader, compilationOptions, skipAnalyzers, out analyzers, out generators);
Compilation\CSharpCompilation.cs (1)
167
return LanguageNames.
CSharp
;
Compilation\CSharpCompilerDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Compilation\CSharpSemanticModel.cs (1)
4920
return LanguageNames.
CSharp
;
CSharpCompilationOptions.cs (1)
267
public override string Language => LanguageNames.
CSharp
;
CSharpExtensions.cs (5)
69
return (object)token.Language == (object)LanguageNames.
CSharp
? (SyntaxKind)token.RawContextualKind : SyntaxKind.None;
791
if (conversionExpression.Language == LanguageNames.
CSharp
)
817
if (compoundAssignment.Language == LanguageNames.
CSharp
)
843
if (compoundAssignment.Language == LanguageNames.
CSharp
)
868
if (spread.Language == LanguageNames.
CSharp
)
CSharpParseOptions.cs (1)
86
public override string Language => LanguageNames.
CSharp
;
Symbols\PublicModel\PreprocessingSymbol.cs (1)
100
string ISymbol.Language => LanguageNames.
CSharp
;
Symbols\PublicModel\Symbol.cs (2)
189
throw new ArgumentException(CSharpResources.WrongSemanticModelType, LanguageNames.
CSharp
);
197
string ISymbol.Language => LanguageNames.
CSharp
;
Syntax\CSharpSyntaxNode.cs (1)
160
get { return LanguageNames.
CSharp
; }
Syntax\InternalSyntax\CSharpSyntaxNode.cs (1)
58
get { return LanguageNames.
CSharp
; }
Microsoft.CodeAnalysis.CSharp.CodeStyle (107)
src\Analyzers\CSharp\Analyzers\AddAccessibilityModifiers\CSharpAddAccessibilityModifiersDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (1)
19
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredPatternParenthesesDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\CodeStyle\CSharpAnalyzerOptionsProvider.cs (1)
92
=> new(provider.Options, LanguageNames.
CSharp
);
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToBlockScopedNamespaceDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToFileScopedNamespaceDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertToProgramMainDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertToTopLevelStatementsDiagnosticAnalyzer.cs (1)
18
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.cs (1)
20
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\ConvertTypeofToNameof\CSharpConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\FileHeaders\CSharpFileHeaderDiagnosticAnalyzer.cs (1)
10
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\ForEachCast\CSharpForEachCastDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\Formatting\CSharpFormattingAnalyzer.cs (1)
11
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
33
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
27
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\MakeAnonymousFunctionStatic\MakeAnonymousFunctionStaticDiagnosticAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\MakeFieldReadonly\CSharpMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\MakeLocalFunctionStatic\MakeLocalFunctionStaticDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
22
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\MakeStructReadOnly\CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\MatchFolderAndNamespace\CSharpMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
22
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\MisplacedUsingDirectives\MisplacedUsingDirectivesDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\NamingStyle\CSharpNamingStyleDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveStatementPlacement\CSharpConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
32
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementDiagnosticAnalyzer.cs (1)
17
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\NewLines\MultipleBlankLines\CSharpMultipleBlankLinesDiagnosticAnalyzer.cs (1)
11
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\OrderModifiers\CSharpOrderModifiersDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\PopulateSwitch\CSharpPopulateSwitchExpressionDiagnosticAnalyzer.cs (1)
11
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\PopulateSwitch\CSharpPopulateSwitchStatementDiagnosticAnalyzer.cs (1)
11
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\QualifyMemberAccess\CSharpQualifyMemberAccessDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionDiagnosticAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveRedundantEquality\CSharpRemoveRedundantEqualityDiagnosticAnalyzer.cs (1)
11
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryCast\CSharpRemoveUnnecessaryCastDiagnosticAnalyzer.cs (1)
19
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryDiscardDesignation\CSharpRemoveUnnecessaryDiscardDesignationDiagnosticAnalyzer.cs (1)
17
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryImports\CSharpRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
22
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
27
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
21
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryParentheses\CSharpRemoveUnnecessaryExpressionParenthesesDiagnosticAnalyzer.cs (1)
17
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryParentheses\CSharpRemoveUnnecessaryPatternParenthesesDiagnosticAnalyzer.cs (1)
17
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
10
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\CSharpRemoveUnreachableCodeDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnusedMembers\CSharpRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnusedParametersAndValues\CSharpRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
18
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\SimplifyBooleanExpression\CSharpSimplifyConditionalDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\SimplifyInterpolation\CSharpSimplifyInterpolationDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\SimplifyLinqExpression\CSharpSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternDiagnosticAnalyzer.cs (1)
23
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseAutoProperty\CSharpUseAutoPropertyAnalyzer.cs (1)
20
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCoalesceExpression\CSharpUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.cs (1)
17
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCoalesceExpression\CSharpUseCoalesceExpressionForNullableTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCoalesceExpression\CSharpUseCoalesceExpressionForTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForArrayDiagnosticAnalyzer.cs (1)
23
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (1)
23
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForCreateDiagnosticAnalyzer.cs (1)
17
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForEmptyDiagnosticAnalyzer.cs (1)
18
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
28
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs (1)
19
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocDiagnosticAnalyzer.cs (1)
18
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerDiagnosticAnalyzer.cs (1)
23
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (1)
27
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseConditionalExpression\CSharpUseConditionalExpressionForAssignmentDiagnosticAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseConditionalExpression\CSharpUseConditionalExpressionForReturnDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (1)
21
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseDefaultLiteral\CSharpUseDefaultLiteralDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseExpressionBody\UseExpressionBodyDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (1)
19
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpUseExplicitTypeDiagnosticAnalyzer.cs (1)
10
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpUseImplicitTypeDiagnosticAnalyzer.cs (1)
10
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
42
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (1)
34
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseInferredMemberName\CSharpUseInferredMemberNameDiagnosticAnalyzer.cs (1)
18
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseIsNullCheckForReferenceEqualsDiagnosticAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
41
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseNameofInNullableAttribute\CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (1)
26
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseNullPropagation\CSharpUseNullPropagationDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseObjectInitializer\CSharpUseObjectInitializerDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsDiagnosticAnalyzer.cs (1)
18
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndMemberAccessDiagnosticAnalyzer.cs (1)
25
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
29
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
32
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpUseNotPatternDiagnosticAnalyzer.cs (1)
25
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
51
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
54
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
37
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseThrowExpression\CSharpUseThrowExpressionDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseTupleSwap\CSharpUseTupleSwapDiagnosticAnalyzer.cs (1)
32
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfDiagnosticAnalyzer.cs (1)
30
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
25
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\ValidateFormatString\CSharpValidateFormatStringDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpCodeGenerationOptions.cs (1)
43
: base(options, LanguageNames.
CSharp
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
25
=> s_editorConfigOptionsBuilder.CreateEditorConfigOption(name, defaultValue, group, LanguageNames.
CSharp
, serializerFactory);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpFormattingOptions2.cs (2)
68
var option = new Option2<T>(name, defaultValue, group, LanguageNames.
CSharp
, isEditorConfigOption: true, serializer: serializer);
279
languageName: LanguageNames.
CSharp
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpSyntaxFormattingOptions.cs (1)
71
: base(options, LanguageNames.
CSharp
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\CSharpSimplifierOptions.cs (1)
37
: base(options, LanguageNames.
CSharp
)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (165)
src\Analyzers\CSharp\CodeFixes\AddAccessibilityModifiers\CSharpAddAccessibilityModifiersCodeFixProvider.cs (1)
13
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddAccessibilityModifiers), Shared]
src\Analyzers\CSharp\CodeFixes\AddAccessibilityModifiers\CSharpAddAccessibilityModifiersService.cs (1)
12
[ExportLanguageService(typeof(IAddAccessibilityModifiersService), LanguageNames.
CSharp
), Shared]
src\Analyzers\CSharp\CodeFixes\AddAnonymousTypeMemberName\CSharpAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddAnonymousTypeMemberName), Shared]
src\Analyzers\CSharp\CodeFixes\AddBraces\CSharpAddBracesCodeFixProvider.cs (1)
17
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddBraces), Shared]
src\Analyzers\CSharp\CodeFixes\AddExplicitCast\CSharpAddExplicitCastCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddExplicitCast), Shared]
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
24
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddInheritdoc), Shared]
src\Analyzers\CSharp\CodeFixes\AddObsoleteAttribute\CSharpAddObsoleteAttributeCodeFixProvider.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddObsoleteAttribute), Shared]
src\Analyzers\CSharp\CodeFixes\AddParameter\CSharpAddParameterCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddParameter), Shared]
src\Analyzers\CSharp\CodeFixes\AliasAmbiguousType\CSharpAliasAmbiguousTypeCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AliasAmbiguousType), Shared]
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAboveReturnCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AssignOutParametersAboveReturn), Shared]
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAtStartCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AssignOutParametersAtStart), Shared]
src\Analyzers\CSharp\CodeFixes\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddParenthesesAroundConditionalExpressionInInterpolatedString), Shared]
src\Analyzers\CSharp\CodeFixes\ConflictMarkerResolution\CSharpResolveConflictMarkerCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ConflictMarkerResolution), Shared]
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceCodeFixProvider.cs (1)
24
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ConvertNamespace), Shared]
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
29
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ConvertSwitchStatementToExpression), Shared]
src\Analyzers\CSharp\CodeFixes\ConvertToAsync\CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
18
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ConvertToAsync), Shared]
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
488
if (documentEditor.OriginalDocument.Project.Language != LanguageNames.
CSharp
)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\CSharpConvertToRecordCodeFixProvider.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ConvertToRecord), Shared]
src\Analyzers\CSharp\CodeFixes\ConvertTypeOfToNameOf\CSharpConvertTypeOfToNameOfCodeFixProvider.cs (1)
17
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ConvertTypeOfToNameOf), Shared]
src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (1)
27
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.DisambiguateSameVariable), Shared]
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (1)
18
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddDocCommentNodes), Shared]
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpRemoveDocCommentNodeCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveDocCommentNode), Shared]
src\Analyzers\CSharp\CodeFixes\FileHeaders\CSharpFileHeaderCodeFixProvider.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.FileHeader), Shared]
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.FixIncorrectConstraint), Shared]
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (1)
25
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.FixReturnType), Shared]
src\Analyzers\CSharp\CodeFixes\ForEachCast\CSharpForEachCastCodeFixProvider.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ForEachCast), Shared]
src\Analyzers\CSharp\CodeFixes\Formatting\CSharpFormattingCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.FixFormatting), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\CSharpGenerateConstructorService.cs (1)
23
[ExportLanguageService(typeof(IGenerateConstructorService), LanguageNames.
CSharp
), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\GenerateConstructorCodeFixProvider.cs (1)
35
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.GenerateConstructor), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateDefaultConstructors\CSharpGenerateDefaultConstructorsCodeFixProvider.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.GenerateDefaultConstructors), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateDefaultConstructors\CSharpGenerateDefaultConstructorsService.cs (1)
20
[ExportLanguageService(typeof(IGenerateDefaultConstructorsService), LanguageNames.
CSharp
), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateEnumMember\CSharpGenerateEnumMemberService.cs (1)
16
[ExportLanguageService(typeof(IGenerateEnumMemberService), LanguageNames.
CSharp
), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateEnumMember\GenerateEnumMemberCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.GenerateEnumMember), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateConversionCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.GenerateConversion), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.GenerateDeconstructMethod), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateMethodCodeFixProvider.cs (1)
43
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.GenerateMethod), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateConversionService.cs (1)
22
[ExportLanguageService(typeof(IGenerateConversionService), LanguageNames.
CSharp
), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateDeconstructMethodService.cs (1)
22
[ExportLanguageService(typeof(IGenerateDeconstructMemberService), LanguageNames.
CSharp
), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateMethodService.cs (1)
23
[ExportLanguageService(typeof(IGenerateParameterizedMemberService), LanguageNames.
CSharp
), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateVariable\CSharpGenerateVariableCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.GenerateVariable), Shared]
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddNew), Shared]
src\Analyzers\CSharp\CodeFixes\ImplementAbstractClass\CSharpImplementAbstractClassCodeFixProvider.cs (1)
13
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ImplementAbstractClass), Shared]
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ImplementInterface), Shared]
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
24
[ExportLanguageService(typeof(IImplementInterfaceService), LanguageNames.
CSharp
), Shared]
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
30
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.InlineDeclaration), Shared]
src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (1)
26
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.InvokeDelegateWithConditionalAccess), Shared]
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpAddYieldCodeFixProvider.cs (1)
24
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ChangeToYield), Shared]
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpChangeToIEnumerableCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ChangeReturnType), Shared]
src\Analyzers\CSharp\CodeFixes\MakeAnonymousFunctionStatic\CSharpMakeAnonymousFunctionStaticCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeAnonymousFunctionStatic), Shared]
src\Analyzers\CSharp\CodeFixes\MakeFieldReadonly\CSharpMakeFieldReadonlyCodeFixProvider.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeFieldReadonly), Shared]
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixProvider.cs (1)
17
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeLocalFunctionStatic), Shared]
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (1)
22
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.PassInCapturedVariables), Shared]
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (1)
22
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeMemberRequired), Shared]
src\Analyzers\CSharp\CodeFixes\MakeMemberStatic\CSharpMakeMemberStaticCodeFixProvider.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeMemberStatic), Shared]
src\Analyzers\CSharp\CodeFixes\MakeMethodAsynchronous\CSharpMakeMethodAsynchronousCodeFixProvider.cs (1)
24
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddAsync), Shared]
src\Analyzers\CSharp\CodeFixes\MakeMethodSynchronous\CSharpMakeMethodSynchronousCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeMethodSynchronous), Shared]
src\Analyzers\CSharp\CodeFixes\MakeRefStruct\MakeRefStructCodeFixProvider.cs (1)
18
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeRefStruct), Shared]
src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeStatementAsynchronous), Shared]
src\Analyzers\CSharp\CodeFixes\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeStructFieldsWritable), Shared]
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeStructMemberReadOnly), Shared]
src\Analyzers\CSharp\CodeFixes\MakeStructReadOnly\CSharpMakeStructReadOnlyCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeStructReadOnly), Shared]
src\Analyzers\CSharp\CodeFixes\MakeTypeAbstract\CSharpMakeTypeAbstractCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeTypeAbstract), Shared]
src\Analyzers\CSharp\CodeFixes\MakeTypePartial\CSharpMakeTypePartialCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeTypePartial), Shared]
src\Analyzers\CSharp\CodeFixes\MatchFolderAndNamespace\CSharpChangeNamespaceToMatchFolderCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ChangeNamespaceToMatchFolder), Shared]
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
34
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MoveMisplacedUsingDirectives), Shared]
src\Analyzers\CSharp\CodeFixes\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ArrowExpressionClausePlacement), Shared]
src\Analyzers\CSharp\CodeFixes\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ConditionalExpressionPlacement), Shared]
src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ConsecutiveBracePlacement), Shared]
src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (1)
22
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ConstructorInitializerPlacement), Shared]
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (1)
25
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.EmbeddedStatementPlacement), Shared]
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
24
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.DeclareAsNullable), Shared]
src\Analyzers\CSharp\CodeFixes\OrderModifiers\CSharpOrderModifiersCodeFixProvider.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.OrderModifiers), Shared]
src\Analyzers\CSharp\CodeFixes\PopulateSwitch\CSharpPopulateSwitchExpressionCodeFixProvider.cs (1)
18
[ExportCodeFixProvider(LanguageNames.
CSharp
,
src\Analyzers\CSharp\CodeFixes\PopulateSwitch\CSharpPopulateSwitchStatementCodeFixProvider.cs (1)
13
[ExportCodeFixProvider(LanguageNames.
CSharp
,
src\Analyzers\CSharp\CodeFixes\QualifyMemberAccess\CSharpQualifyMemberAccessCodeFixProvider.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.QualifyMemberAccess), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveAsyncModifier\CSharpRemoveAsyncModifierCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveAsyncModifier), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveConfusingSuppression), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveInKeyword\RemoveInKeywordCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveIn), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveNewModifier\RemoveNewModifierCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveNew), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryCast\CSharpRemoveUnnecessaryCastCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnnecessaryCast), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryDiscardDesignation\CSharpRemoveUnnecessaryDiscardDesignationCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnnecessaryDiscardDesignation), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryImports\CSharpRemoveUnnecessaryImportsCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnnecessaryImports), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionCodeFixProvider.cs (1)
26
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnnecessaryLambdaExpression), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnnecessaryNullableDirective)]
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryParentheses\CSharpRemoveUnnecessaryParenthesesCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnnecessaryParentheses), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnreachableCode), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveUnusedLocalFunction\CSharpRemoveUnusedLocalFunctionCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnusedLocalFunction), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveUnusedMembers\CSharpRemoveUnusedMembersCodeFixProvider.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnusedMembers), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
24
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnusedValues), Shared]
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
22
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ReplaceDefaultLiteral), Shared]
src\Analyzers\CSharp\CodeFixes\SimplifyInterpolation\CSharpSimplifyInterpolationCodeFixProvider.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.SimplifyInterpolation), Shared]
src\Analyzers\CSharp\CodeFixes\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.SimplifyLinqTypeCheckAndCast), Shared]
src\Analyzers\CSharp\CodeFixes\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternCodeFixProvider.cs (1)
24
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.SimplifyPropertyPattern), Shared]
src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.TransposeRecordKeyword), Shared]
src\Analyzers\CSharp\CodeFixes\UnsealClass\CSharpUnsealClassCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UnsealClass), Shared]
src\Analyzers\CSharp\CodeFixes\UpdateProjectToAllowUnsafe\CSharpUpdateProjectToAllowUnsafeCodeFixProvider.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UpdateProjectToAllowUnsafe), Shared]
src\Analyzers\CSharp\CodeFixes\UpgradeProject\CSharpUpgradeProjectCodeFixProvider.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UpgradeProject), Shared]
src\Analyzers\CSharp\CodeFixes\UseCoalesceExpression\CSharpUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCoalesceExpressionForIfNullStatementCheck), Shared]
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
25
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCollectionExpressionForArray), Shared]
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (1)
27
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCollectionExpressionForBuilder), Shared]
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForCreateCodeFixProvider.cs (1)
26
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCollectionExpressionForCreate), Shared]
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForEmptyCodeFixProvider.cs (1)
22
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCollectionExpressionForEmpty), Shared]
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
34
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCollectionExpressionForFluent), Shared]
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForNewCodeFixProvider.cs (1)
25
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCollectionExpressionForNew), Shared]
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCollectionExpressionForStackAlloc), Shared]
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider.cs (1)
17
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCollectionInitializer), Shared]
src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundAssignmentCodeFixProvider.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCompoundAssignment), Shared]
src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentCodeFixProvider.cs (1)
26
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCompoundCoalesceAssignment), Shared]
src\Analyzers\CSharp\CodeFixes\UseConditionalExpression\CSharpUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseConditionalExpressionForAssignment), Shared]
src\Analyzers\CSharp\CodeFixes\UseConditionalExpression\CSharpUseConditionalExpressionForReturnCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseConditionalExpressionForReturn), Shared]
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (1)
25
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseDeconstruction), Shared]
src\Analyzers\CSharp\CodeFixes\UseDefaultLiteral\CSharpUseDefaultLiteralCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseDefaultLiteral), Shared]
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseExplicitArrayInExpressionTree), Shared]
src\Analyzers\CSharp\CodeFixes\UseExplicitTypeForConst\UseExplicitTypeForConstCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseExplicitTypeForConst), Shared]
src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseExpressionBody), Shared]
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseExpressionBodyForLambda), Shared]
src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
27
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseImplicitObjectCreation), Shared]
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (1)
27
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseExplicitType), Shared]
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseImplicitTypeCodeFixProvider.cs (1)
18
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseImplicitType), Shared]
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseIndexOperatorCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseIndexOperator), Shared]
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (1)
31
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseRangeOperator), Shared]
src\Analyzers\CSharp\CodeFixes\UseInferredMemberName\CSharpUseInferredMemberNameCodeFixProvider.cs (1)
13
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseInferredMemberName), Shared]
src\Analyzers\CSharp\CodeFixes\UseInterpolatedVerbatimString\CSharpUseInterpolatedVerbatimStringCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseInterpolatedVerbatimString), Shared]
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorCodeFixProvider.cs (1)
26
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseIsNullCheckForCastAndEqualityOperator), Shared]
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForReferenceEqualsCodeFixProvider.cs (1)
18
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseIsNullCheckForReferenceEquals), Shared]
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckCodeFixProvider.cs (1)
22
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseNullCheckOverTypeCheck), Shared]
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
32
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseLocalFunction), Shared]
src\Analyzers\CSharp\CodeFixes\UseNameofInAttribute\CSharpUseNameofInAttributeCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseNameofInAttribute), Shared]
src\Analyzers\CSharp\CodeFixes\UseNullPropagation\CSharpUseNullPropagationCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseNullPropagation), Shared]
src\Analyzers\CSharp\CodeFixes\UseObjectInitializer\CSharpUseObjectInitializerCodeFixProvider.cs (1)
24
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseObjectInitializer), Shared]
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
28
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UsePatternCombinators), Shared]
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (1)
25
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UsePatternMatchingAsAndMemberAccess), Shared]
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
25
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UsePatternMatchingAsAndNullCheck), Shared]
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpIsAndCastCheckCodeFixProvider.cs (1)
22
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UsePatternMatchingIsAndCastCheck), Shared]
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpUseNotPatternCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseNotPattern), Shared]
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
35
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UsePrimaryConstructor), Shared]
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
31
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseSimpleUsingStatement), Shared]
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
24
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseSystemThreadingLock), Shared]
src\Analyzers\CSharp\CodeFixes\UseThrowExpression\UseThrowExpressionCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
,
src\Analyzers\CSharp\CodeFixes\UseTupleSwap\CSharpUseTupleSwapCodeFixProvider.cs (1)
22
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseTupleSwap), Shared]
src\Analyzers\CSharp\CodeFixes\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseUnboundGenericTypeInNameOf), Shared]
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
25
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseUtf8StringLiteral), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationServiceFactory.cs (1)
13
[ExportLanguageServiceFactory(typeof(ICodeGenerationService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeRefactorings\CSharpRefactoringHelpersService.cs (1)
22
[ExportLanguageService(typeof(IRefactoringHelpersService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (1)
23
[ExportLanguageService(typeof(ImportAdderService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharLanguageServiceFactory.cs (1)
13
[ExportLanguageServiceFactory(typeof(IVirtualCharLanguageService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContextService.cs (1)
13
[ExportLanguageService(typeof(ISyntaxContextService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
24
[ExportLanguageService(typeof(IIndentationService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpAddImportsService.cs (2)
23
[ExportLanguageService(typeof(IAddImportsService), LanguageNames.
CSharp
), Shared]
30
=> LanguageNames.
CSharp
;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpBlockFactsService.cs (1)
13
[ExportLanguageService(typeof(IBlockFactsService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpCommandLineParserService.cs (1)
15
[ExportLanguageService(typeof(ICommandLineParserService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpFileBannerFactsService.cs (1)
13
[ExportLanguageService(typeof(IFileBannerFactsService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpGeneratedCodeRecognitionService.cs (1)
14
[ExportLanguageService(typeof(IGeneratedCodeRecognitionService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpHeaderFactsService.cs (1)
13
[ExportLanguageService(typeof(IHeaderFactsService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpMoveDeclarationNearReferenceService.cs (1)
18
[ExportLanguageService(typeof(IMoveDeclarationNearReferenceService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.cs (1)
23
[ExportLanguageService(typeof(IRemoveUnnecessaryImportsService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
27
[ExportLanguageService(typeof(IReplaceDiscardDeclarationsWithAssignmentsService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsServiceFactory.cs (1)
15
[ExportLanguageServiceFactory(typeof(ISemanticFactsService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSymbolDeclarationService.cs (1)
15
[ExportLanguageService(typeof(ISymbolDeclarationService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxFactsServiceFactory.cs (1)
15
[ExportLanguageServiceFactory(typeof(ISyntaxFactsService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
23
[ExportLanguageService(typeof(SyntaxGeneratorInternal), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxKindsServiceFactory.cs (1)
15
[ExportLanguageServiceFactory(typeof(ISyntaxKindsService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.cs (1)
16
[ExportLanguageService(typeof(ITypeInferenceService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\CSharpInitializeParameterService.cs (1)
20
[ExportLanguageService(typeof(IInitializeParameterService), LanguageNames.
CSharp
), Shared]
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (17)
src\Analyzers\CSharp\Tests\AliasAmbiguousType\AliasAmbiguousTypeTests.cs (1)
678
var options = new OptionsCollection(LanguageNames.
CSharp
)
src\Analyzers\CSharp\Tests\GenerateConstructor\GenerateConstructorTests.cs (1)
28
private readonly NamingStylesTestOptionSets options = new NamingStylesTestOptionSets(LanguageNames.
CSharp
);
src\Analyzers\CSharp\Tests\ImplementInterface\ImplementInterfaceTests.cs (7)
27
private readonly NamingStylesTestOptionSets _options = new(LanguageNames.
CSharp
);
30
=> new(LanguageNames.
CSharp
)
41
=> new(LanguageNames.
CSharp
)
52
=> new(LanguageNames.
CSharp
)
645
new OptionsCollection(LanguageNames.
CSharp
)
8120
new OptionsCollection(LanguageNames.
CSharp
)
8305
new OptionsCollection(LanguageNames.
CSharp
)
src\Analyzers\CSharp\Tests\InlineDeclaration\CSharpInlineDeclarationTests.cs (1)
2625
""", options: new(LanguageNames.
CSharp
)
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (1)
25
private static readonly NamingStylesTestOptionSets s_options = new(LanguageNames.
CSharp
);
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (1)
46
Assert.All(newSolution.Projects.Where(p => p.Language == LanguageNames.
CSharp
),
src\Analyzers\CSharp\Tests\UseConditionalExpression\UseConditionalExpressionForAssignmentTests.cs (4)
56
private static readonly OptionsCollection PreferImplicitTypeAlways = new(LanguageNames.
CSharp
)
799
""", options: new OptionsCollection(LanguageNames.
CSharp
) { { CSharpCodeStyleOptions.VarForBuiltInTypes, CodeStyleOption2.TrueWithSilentEnforcement } });
831
""", options: new OptionsCollection(LanguageNames.
CSharp
) { { CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSilentEnforcement } });
863
""", options: new OptionsCollection(LanguageNames.
CSharp
) { { CSharpCodeStyleOptions.VarElsewhere, CodeStyleOption2.TrueWithSilentEnforcement } });
src\Features\CSharpTest\Diagnostics\AbstractCSharpDiagnosticProviderBasedUserDiagnosticTest_NoEditor.cs (1)
25
protected internal override string GetLanguage() => LanguageNames.
CSharp
;
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (6)
CommandLineTests.cs (6)
14890
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
15918
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
15930
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
15955
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
15982
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
16023
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
Microsoft.CodeAnalysis.CSharp.EditorFeatures (17)
AutomaticCompletion\CSharpBraceCompletionServiceFactory.cs (1)
15
[ExportLanguageService(typeof(IBraceCompletionServiceFactory), LanguageNames.
CSharp
), Shared]
BlockCommentEditing\BlockCommentEditingCommandHandler.cs (1)
63
if (!_editorOptionsService.GlobalOptions.GetOption(BlockCommentEditingOptionsStorage.AutoInsertBlockCommentStartString, LanguageNames.
CSharp
))
BlockCommentEditing\CloseBlockCommentCommandHandler.cs (1)
48
if (_editorOptionsService.GlobalOptions.GetOption(BlockCommentEditingOptionsStorage.AutoInsertBlockCommentStartString, LanguageNames.
CSharp
) &&
CodeCleanup\CSharpCodeCleanupService.cs (1)
16
[ExportLanguageService(typeof(ICodeCleanupService), LanguageNames.
CSharp
), Shared]
EndConstruct\CSharpEndConstructGenerationService.cs (1)
18
[ExportLanguageService(typeof(IEndConstructGenerationService), LanguageNames.
CSharp
), Shared]
Formatting\CSharpFormattingInteractionService.cs (3)
22
[ExportLanguageService(typeof(IFormattingInteractionService), LanguageNames.
CSharp
), Shared]
46
var isSmartIndent = _editorOptionsService.GlobalOptions.GetOption(IndentationOptionsStorage.SmartIndent, LanguageNames.
CSharp
) == FormattingOptions2.IndentStyle.Smart;
57
var options = _editorOptionsService.GlobalOptions.GetAutoFormattingOptions(LanguageNames.
CSharp
);
GoToBase\CSharpGoToBaseService.cs (1)
17
[ExportLanguageService(typeof(IGoToBaseService), LanguageNames.
CSharp
), Shared]
InlineRename\CSharpEditorInlineRenameService.cs (1)
22
[ExportLanguageService(typeof(IEditorInlineRenameService), LanguageNames.
CSharp
), Shared]
Interactive\CSharpInteractiveEvaluatorLanguageInfoProvider.cs (1)
27
=> LanguageNames.
CSharp
;
LanguageServices\CSharpContentTypeLanguageService.cs (1)
12
[ExportContentTypeLanguageService(ContentTypeNames.CSharpContentType, LanguageNames.
CSharp
), Shared]
Navigation\CSharpDefinitionLocationService.cs (1)
14
[ExportLanguageService(typeof(IDefinitionLocationService), LanguageNames.
CSharp
), Shared]
NavigationBar\CSharpEditorNavigationBarItemService.cs (1)
18
[ExportLanguageService(typeof(INavigationBarItemService), LanguageNames.
CSharp
), Shared]
RenameTracking\CSharpRenameTrackingLanguageHeuristicsService.cs (1)
12
[ExportLanguageService(typeof(IRenameTrackingLanguageHeuristicsService), LanguageNames.
CSharp
), Shared]
SplitComment\CSharpSplitCommentService.cs (1)
12
[ExportLanguageService(typeof(ISplitCommentService), LanguageNames.
CSharp
), Shared]
StringCopyPaste\StringCopyPasteCommandHandler.cs (1)
99
if (!_globalOptions.GetOption(StringCopyPasteOptionsStorage.AutomaticallyFixStringContentsOnPaste, LanguageNames.
CSharp
))
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (987)
AutomaticCompletion\AutomaticBraceCompletionTests.cs (18)
782
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
856
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
926
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
986
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
1046
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
1108
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
1138
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
1173
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
1216
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
1323
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
1366
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
1410
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
1454
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
1498
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
1542
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
1587
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
1638
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
1664
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
AutomaticCompletion\AutomaticLineEnderTests.cs (1)
3724
protected override string Language => LanguageNames.
CSharp
;
BlockCommentEditing\CloseBlockCommentTests.cs (1)
286
globalOptions.SetGlobalOption(BlockCommentEditingOptionsStorage.AutoInsertBlockCommentStartString, LanguageNames.
CSharp
, false);
ChangeSignature\AddParameterTests.AddImports.cs (3)
50
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
86
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
155
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
ChangeSignature\AddParameterTests.Cascading.cs (11)
52
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
88
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
124
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
162
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
200
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
250
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
300
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
339
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
431
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
454
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
477
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
ChangeSignature\AddParameterTests.cs (36)
114
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
141
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
178
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
215
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
244
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
275
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
306
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
361
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
398
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
446
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation,
492
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation,
523
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
553
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
584
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
636
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation,
680
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
717
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
750
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
796
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
835
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
874
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
905
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
940
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
975
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
1008
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
1045
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
1081
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
1119
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
1150
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
1195
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
1240
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
1289
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
1327
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
1360
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
1393
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
1426
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
ChangeSignature\AddParameterTests.Delegates.cs (22)
51
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature,
87
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature,
123
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature,
161
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
196
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
233
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
278
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
321
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
368
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
419
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
472
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
509
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
544
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
579
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
644
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
683
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
730
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
761
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
816
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
851
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature,
897
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
946
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
ChangeSignature\AddParameterTests.Formatting.cs (16)
56
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
95
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
134
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
164
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
194
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
230
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
268
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
308
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
348
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
372
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
395
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
418
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
440
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
463
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
486
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
509
LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode,
ChangeSignature\AddParameterTests.OptionalParameter.Infer.cs (8)
43
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
72
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
101
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
132
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
160
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
191
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
222
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
257
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
ChangeSignature\AddParameterTests.OptionalParameter.Omit.cs (5)
44
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
72
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
104
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
138
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
168
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
ChangeSignature\AddParameterTests.OptionalParameter.SymbolKinds.cs (4)
59
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
101
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
135
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
164
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
ChangeSignature\ChangeSignature_CheckAllSignatureChanges.cs (2)
70
LanguageNames.
CSharp
,
176
LanguageNames.
CSharp
,
ChangeSignature\ChangeSignature_Delegates.cs (22)
24
=> LanguageNames.
CSharp
;
54
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature,
86
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature,
118
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature,
152
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
183
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
218
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
259
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
298
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
341
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
388
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
437
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
470
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
501
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
532
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
593
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
628
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
673
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
702
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
755
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
788
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature,
832
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
ChangeSignature\ChangeSignature_Formatting.cs (15)
48
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
82
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
116
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
145
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
174
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
209
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
246
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
285
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
324
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
347
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
370
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
393
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
416
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
438
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
463
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
ChangeSignature\ChangeSignatureTests.cs (2)
64
LanguageNames.
CSharp
,
93
LanguageNames.
CSharp
,
ChangeSignature\RemoveParametersTests.cs (4)
116
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
188
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
421
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
445
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
ChangeSignature\ReorderParametersTests.Cascading.cs (9)
46
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
78
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
110
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
144
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
178
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
224
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
270
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
305
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
390
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
ChangeSignature\ReorderParametersTests.cs (32)
49
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
83
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
109
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
137
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
165
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
217
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
269
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
303
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
343
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation,
382
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation,
409
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
435
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
479
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation,
520
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
552
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
580
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
618
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
650
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
684
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
710
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
741
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
772
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
801
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
834
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
865
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
898
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
926
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
968
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
1010
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
1036
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
1062
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
1088
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
ChangeSignature\ReorderParametersTests.InvocationErrors.cs (4)
31
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, expectedSuccess: false, expectedFailureReason: ChangeSignatureFailureKind.IncorrectKind);
49
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, expectedSuccess: false, expectedFailureReason: ChangeSignatureFailureKind.IncorrectKind);
56
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, expectedSuccess: true);
72
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, expectedSuccess: false, expectedFailureReason: ChangeSignatureFailureKind.IncorrectKind);
ChangeSignature\ReorderParametersTests.InvocationLocation.cs (27)
43
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation,
70
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation,
97
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
123
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
139
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, expectedSuccess: false, expectedFailureReason: ChangeSignatureFailureKind.DefinedInMetadata);
155
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, expectedSuccess: false, expectedFailureReason: ChangeSignatureFailureKind.DefinedInMetadata);
171
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, expectedSuccess: false, expectedFailureReason: ChangeSignatureFailureKind.DefinedInMetadata);
184
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, expectedSuccess: false, expectedFailureReason: ChangeSignatureFailureKind.IncorrectKind);
202
LanguageNames.
CSharp
, markup, expectedSuccess: false);
255
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
291
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
337
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
383
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
429
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
459
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
483
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
515
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
553
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
585
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation,
614
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation,
643
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation,
672
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
710
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
748
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation,
783
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation,
818
await TestChangeSignatureViaCommandAsync(LanguageNames.
CSharp
, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
928
LanguageNames.
CSharp
, markup, updatedSignature: permutation,
CodeActions\AbstractCSharpCodeActionTest.cs (1)
15
protected internal override string GetLanguage() => LanguageNames.
CSharp
;
CodeActions\AddUsing\AddUsingNuGetTests.cs (2)
36
workspace.GlobalOptions.SetGlobalOption(SymbolSearchOptionsStorage.SearchNuGetPackages, LanguageNames.
CSharp
, true);
37
workspace.GlobalOptions.SetGlobalOption(SymbolSearchOptionsStorage.SearchReferenceAssemblies, LanguageNames.
CSharp
, true);
CodeActions\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (2)
54
=> new OptionsCollection(LanguageNames.
CSharp
)
62
=> new OptionsCollection(LanguageNames.
CSharp
)
CodeActions\GenerateType\GenerateTypeTests.cs (1)
3275
var options = new NamingStylesTestOptionSets(LanguageNames.
CSharp
);
CodeActions\GenerateType\GenerateTypeTests_Dialog.cs (99)
30
languageName: LanguageNames.
CSharp
,
61
languageName: LanguageNames.
CSharp
,
95
languageName: LanguageNames.
CSharp
,
129
languageName: LanguageNames.
CSharp
,
162
languageName: LanguageNames.
CSharp
,
197
languageName: LanguageNames.
CSharp
,
235
languageName: LanguageNames.
CSharp
,
267
languageName: LanguageNames.
CSharp
,
303
languageName: LanguageNames.
CSharp
,
337
languageName: LanguageNames.
CSharp
,
377
languageName: LanguageNames.
CSharp
,
417
languageName: LanguageNames.
CSharp
,
451
languageName: LanguageNames.
CSharp
,
492
languageName: LanguageNames.
CSharp
,
542
languageName: LanguageNames.
CSharp
,
575
languageName: LanguageNames.
CSharp
,
619
languageName: LanguageNames.
CSharp
,
664
languageName: LanguageNames.
CSharp
,
713
languageName: LanguageNames.
CSharp
,
750
languageName: LanguageNames.
CSharp
,
788
languageName: LanguageNames.
CSharp
,
820
languageName: LanguageNames.
CSharp
,
866
languageName: LanguageNames.
CSharp
,
898
languageName: LanguageNames.
CSharp
,
944
languageName: LanguageNames.
CSharp
,
992
languageName: LanguageNames.
CSharp
,
1043
languageName: LanguageNames.
CSharp
,
1106
languageName: LanguageNames.
CSharp
,
1150
languageName: LanguageNames.
CSharp
,
1195
languageName: LanguageNames.
CSharp
,
1253
languageName: LanguageNames.
CSharp
,
1287
languageName: LanguageNames.
CSharp
,
1336
languageName: LanguageNames.
CSharp
,
1371
languageName: LanguageNames.
CSharp
,
1421
languageName: LanguageNames.
CSharp
,
1463
languageName: LanguageNames.
CSharp
,
1496
languageName: LanguageNames.
CSharp
,
1544
languageName: LanguageNames.
CSharp
,
1579
languageName: LanguageNames.
CSharp
,
1628
languageName: LanguageNames.
CSharp
,
1672
languageName: LanguageNames.
CSharp
,
1711
languageName: LanguageNames.
CSharp
,
1750
languageName: LanguageNames.
CSharp
,
1785
languageName: LanguageNames.
CSharp
,
1836
languageName: LanguageNames.
CSharp
,
1885
languageName: LanguageNames.
CSharp
,
1928
languageName: LanguageNames.
CSharp
,
1955
languageName: LanguageNames.
CSharp
,
1977
languageName: LanguageNames.
CSharp
,
1999
languageName: LanguageNames.
CSharp
,
2025
languageName: LanguageNames.
CSharp
,
2059
languageName: LanguageNames.
CSharp
,
2096
languageName: LanguageNames.
CSharp
,
2134
languageName: LanguageNames.
CSharp
,
2172
languageName: LanguageNames.
CSharp
,
2205
languageName: LanguageNames.
CSharp
,
2239
languageName: LanguageNames.
CSharp
,
2256
languageName: LanguageNames.
CSharp
,
2285
languageName: LanguageNames.
CSharp
,
2317
languageName: LanguageNames.
CSharp
,
2352
languageName: LanguageNames.
CSharp
,
2388
languageName: LanguageNames.
CSharp
,
2423
languageName: LanguageNames.
CSharp
,
2457
languageName: LanguageNames.
CSharp
,
2490
languageName: LanguageNames.
CSharp
,
2523
languageName: LanguageNames.
CSharp
,
2554
languageName: LanguageNames.
CSharp
,
2583
languageName: LanguageNames.
CSharp
,
2613
languageName: LanguageNames.
CSharp
,
2645
languageName: LanguageNames.
CSharp
,
2680
languageName: LanguageNames.
CSharp
,
2714
languageName: LanguageNames.
CSharp
,
2747
languageName: LanguageNames.
CSharp
,
2779
languageName: LanguageNames.
CSharp
,
2808
languageName: LanguageNames.
CSharp
,
2840
languageName: LanguageNames.
CSharp
,
2875
languageName: LanguageNames.
CSharp
,
2909
languageName: LanguageNames.
CSharp
,
2942
languageName: LanguageNames.
CSharp
,
2974
languageName: LanguageNames.
CSharp
,
3003
languageName: LanguageNames.
CSharp
,
3043
languageName: LanguageNames.
CSharp
,
3068
languageName: LanguageNames.
CSharp
,
3097
languageName: LanguageNames.
CSharp
,
3131
languageName: LanguageNames.
CSharp
,
3168
languageName: LanguageNames.
CSharp
,
3208
languageName: LanguageNames.
CSharp
,
3254
languageName: LanguageNames.
CSharp
,
3293
languageName: LanguageNames.
CSharp
,
3322
languageName: LanguageNames.
CSharp
,
3354
languageName: LanguageNames.
CSharp
,
3388
languageName: LanguageNames.
CSharp
,
3417
languageName: LanguageNames.
CSharp
,
3446
languageName: LanguageNames.
CSharp
,
3477
languageName: LanguageNames.
CSharp
,
3512
languageName: LanguageNames.
CSharp
,
3549
languageName: LanguageNames.
CSharp
,
3582
languageName: LanguageNames.
CSharp
,
3618
languageName: LanguageNames.
CSharp
,
CodeActions\InitializeParameter\InitializeMemberFromParameterTests.cs (1)
24
private readonly NamingStylesTestOptionSets options = new(LanguageNames.
CSharp
);
CodeActions\InitializeParameter\InitializeMemberFromPrimaryConstructorParameterTests.cs (1)
24
private readonly NamingStylesTestOptionSets _options = new(LanguageNames.
CSharp
);
CodeActions\MoveType\CSharpMoveTypeTestsBase.cs (1)
16
protected internal override string GetLanguage() => LanguageNames.
CSharp
;
CodeActions\PreviewTests.cs (1)
81
solution = solution.AddProject(ProjectInfo.Create(s_addedProjectId, VersionStamp.Create(), AddedProjectName, AddedProjectName, LanguageNames.
CSharp
));
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (1)
30
protected internal override string GetLanguage() => LanguageNames.
CSharp
;
Completion\ArgumentProviders\ArgumentProviderOrderTests.cs (5)
29
var orderedCSharpArgumentProviders = ExtensionOrderer.Order(argumentProviderExports.Where(export => export.Metadata.Language == LanguageNames.
CSharp
));
62
var orderedCSharpArgumentProviders = ExtensionOrderer.Order(argumentProviderExports.Where(export => export.Metadata.Language == LanguageNames.
CSharp
));
102
var orderedCSharpArgumentProviders = ExtensionOrderer.Order(argumentProviderExports.Where(export => export.Metadata.Language == LanguageNames.
CSharp
));
113
var orderedCSharpArgumentProviders = ExtensionOrderer.Order(argumentProviderExports.Where(export => export.Metadata.Language == LanguageNames.
CSharp
));
124
var csharpArgumentProviders = argumentProviderExports.Where(export => export.Metadata.Language == LanguageNames.
CSharp
);
Completion\ArgumentProviders\OutVariableArgumentProviderTests.cs (3)
19
private static readonly OptionsCollection s_useExplicitTypeOptions = new(LanguageNames.
CSharp
)
26
private static readonly OptionsCollection s_useExplicitMetadataTypeOptions = new(LanguageNames.
CSharp
)
34
private static readonly OptionsCollection s_useImplicitTypeOptions = new(LanguageNames.
CSharp
)
Completion\CompletionProviders\CompletionProviderOrderTests.cs (5)
30
var orderedCSharpCompletionProviders = ExtensionOrderer.Order(completionProviderExports.Where(export => export.Metadata.Language == LanguageNames.
CSharp
));
94
var orderedCSharpCompletionProviders = ExtensionOrderer.Order(completionProviderExports.Where(export => export.Metadata.Language == LanguageNames.
CSharp
));
134
var orderedCSharpCompletionProviders = ExtensionOrderer.Order(completionProviderExports.Where(export => export.Metadata.Language == LanguageNames.
CSharp
));
145
var orderedCSharpCompletionProviders = ExtensionOrderer.Order(completionProviderExports.Where(export => export.Metadata.Language == LanguageNames.
CSharp
));
156
var csharpCompletionProviders = completionProviderExports.Where(export => export.Metadata.Language == LanguageNames.
CSharp
);
Completion\CompletionProviders\ConversionCompletionProviderTests.cs (10)
690
sourceLanguage: LanguageNames.
CSharp
,
691
referencedLanguage: LanguageNames.
CSharp
);
731
sourceLanguage: LanguageNames.
CSharp
,
732
referencedLanguage: LanguageNames.
CSharp
);
772
sourceLanguage: LanguageNames.
CSharp
,
773
referencedLanguage: LanguageNames.
CSharp
);
813
sourceLanguage: LanguageNames.
CSharp
,
814
referencedLanguage: LanguageNames.
CSharp
);
824
sourceLanguage: LanguageNames.
CSharp
,
825
referencedLanguage: LanguageNames.
CSharp
);
Completion\CompletionProviders\CrefCompletionProviderTests.cs (1)
444
using var workspace = EditorTestWorkspace.Create(LanguageNames.
CSharp
, new CSharpCompilationOptions(OutputKind.ConsoleApplication), new CSharpParseOptions(), [text], composition: GetComposition());
Completion\CompletionProviders\DeclarationNameCompletionProviderTests.cs (4)
708
workspace.SetAnalyzerFallbackOptions(new OptionsCollection(LanguageNames.
CSharp
)
2358
workspace.SetAnalyzerFallbackOptions(new OptionsCollection(LanguageNames.
CSharp
)
2386
workspace.SetAnalyzerFallbackOptions(new OptionsCollection(LanguageNames.
CSharp
)
2802
workspace.SetAnalyzerFallbackOptions(new OptionsCollection(LanguageNames.
CSharp
)
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProviderTests.cs (24)
79
sourceLanguage: LanguageNames.
CSharp
,
80
referencedLanguage: LanguageNames.
CSharp
);
108
sourceLanguage: LanguageNames.
CSharp
,
109
referencedLanguage: LanguageNames.
CSharp
);
139
sourceLanguage: LanguageNames.
CSharp
,
140
referencedLanguage: LanguageNames.
CSharp
);
150
sourceLanguage: LanguageNames.
CSharp
,
151
referencedLanguage: LanguageNames.
CSharp
);
1224
sourceLanguage: LanguageNames.
CSharp
,
1225
referencedLanguage: LanguageNames.
CSharp
);
1233
sourceLanguage: LanguageNames.
CSharp
,
1234
referencedLanguage: LanguageNames.
CSharp
);
1270
sourceLanguage: LanguageNames.
CSharp
,
1271
referencedLanguage: LanguageNames.
CSharp
);
1279
sourceLanguage: LanguageNames.
CSharp
,
1280
referencedLanguage: LanguageNames.
CSharp
);
1318
sourceLanguage: LanguageNames.
CSharp
,
1319
referencedLanguage: LanguageNames.
CSharp
);
1329
sourceLanguage: LanguageNames.
CSharp
,
1330
referencedLanguage: LanguageNames.
CSharp
);
1340
sourceLanguage: LanguageNames.
CSharp
,
1341
referencedLanguage: LanguageNames.
CSharp
);
1351
sourceLanguage: LanguageNames.
CSharp
,
1352
referencedLanguage: LanguageNames.
CSharp
);
Completion\CompletionProviders\ExtensionMethodImportCompletionProviderTests.cs (58)
81
string currentLanguage = LanguageNames.
CSharp
,
82
string referencedLanguage = LanguageNames.
CSharp
)
930
var markup = GetMarkup(file2, file1, ReferenceType.Project, currentLanguage: LanguageNames.
CSharp
, referencedLanguage: LanguageNames.VisualBasic);
967
var markup = CreateMarkupForProjecWithVBProjectReference(file2, file1, sourceLanguage: LanguageNames.
CSharp
, rootNamespace: "Root");
1004
var markup = CreateMarkupForProjecWithVBProjectReference(file2, file1, sourceLanguage: LanguageNames.
CSharp
);
1218
var markup = CreateMarkupForSingleProject(currentFile, file1, LanguageNames.
CSharp
);
1276
ReferenceType.Project => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
),
1277
ReferenceType.Metadata => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
),
1336
var markup = CreateMarkupForProjectWithMultupleProjectReferences(srcDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
, [refDoc1, refDoc2]);
1384
var markup = GetMarkupWithReference(file2, file1, LanguageNames.
CSharp
, LanguageNames.
CSharp
, isProjectReference: true);
1451
ReferenceType.Project => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
),
1452
ReferenceType.Metadata => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
),
1511
ReferenceType.Project => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
),
1512
ReferenceType.Metadata => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
),
1560
ReferenceType.Project => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
),
1561
ReferenceType.Metadata => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
),
1603
ReferenceType.Project => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
),
1604
ReferenceType.Metadata => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
),
1646
ReferenceType.Project => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
),
1647
ReferenceType.Metadata => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
),
1689
ReferenceType.Project => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
),
1690
ReferenceType.Metadata => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
),
1739
ReferenceType.Project => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
),
1740
ReferenceType.Metadata => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
),
1794
ReferenceType.Project => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
),
1795
ReferenceType.Metadata => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
),
1840
ReferenceType.Project => (CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
), true),
1841
ReferenceType.Metadata => (CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
), false),
1900
(ReferenceType.Project, _) => (CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
), true),
1901
(ReferenceType.Metadata, true) => (CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
), false),
1902
(ReferenceType.Metadata, false) => (CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
), true),
2016
var markup = CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
);
Completion\CompletionProviders\IndexerCompletionProviderTests.cs (8)
389
sourceLanguage: LanguageNames.
CSharp
,
390
referencedLanguage: LanguageNames.
CSharp
);
429
sourceLanguage: LanguageNames.
CSharp
,
430
referencedLanguage: LanguageNames.
CSharp
);
440
sourceLanguage: LanguageNames.
CSharp
,
441
referencedLanguage: LanguageNames.
CSharp
);
483
sourceLanguage: LanguageNames.
CSharp
,
484
referencedLanguage: LanguageNames.
CSharp
);
Completion\CompletionProviders\LoadDirectiveCompletionProviderTests.cs (2)
85
var provider = workspace.ExportProvider.GetExports<CompletionProvider, CompletionProviderMetadata>().Single(p => p.Metadata.Language == LanguageNames.
CSharp
&& p.Metadata.Name == nameof(LoadDirectiveCompletionProvider)).Value;
86
var languageServices = workspace.Services.GetLanguageServices(LanguageNames.
CSharp
);
Completion\CompletionProviders\ObjectInitializerCompletionProviderTests.cs (9)
579
sourceLanguage: LanguageNames.
CSharp
,
580
referencedLanguage: LanguageNames.
CSharp
);
608
sourceLanguage: LanguageNames.
CSharp
,
609
referencedLanguage: LanguageNames.
CSharp
);
639
sourceLanguage: LanguageNames.
CSharp
,
640
referencedLanguage: LanguageNames.
CSharp
);
650
sourceLanguage: LanguageNames.
CSharp
,
651
referencedLanguage: LanguageNames.
CSharp
);
728
sourceLanguage: LanguageNames.
CSharp
,
Completion\CompletionProviders\OperatorCompletionProviderTests.cs (6)
770
sourceLanguage: LanguageNames.
CSharp
,
771
referencedLanguage: LanguageNames.
CSharp
);
811
sourceLanguage: LanguageNames.
CSharp
,
812
referencedLanguage: LanguageNames.
CSharp
);
822
sourceLanguage: LanguageNames.
CSharp
,
823
referencedLanguage: LanguageNames.
CSharp
);
Completion\CompletionProviders\OverrideCompletionProviderTests.cs (7)
33
=> new(LanguageNames.
CSharp
)
2461
</Workspace>", LanguageNames.
CSharp
, csharpFile, LanguageNames.VisualBasic, vbFile);
2714
</Workspace>", LanguageNames.
CSharp
, file1, file2);
2769
</Workspace>", LanguageNames.
CSharp
, file2, file1);
3007
sourceLanguage: LanguageNames.
CSharp
,
3008
referencedLanguage: LanguageNames.
CSharp
);
3058
using var workspace = EditorTestWorkspace.Create(LanguageNames.
CSharp
, new CSharpCompilationOptions(OutputKind.ConsoleApplication), new CSharpParseOptions(), [text], composition: GetComposition());
Completion\CompletionProviders\OverrideCompletionProviderTests_ExpressionBody.cs (1)
27
=> new(LanguageNames.
CSharp
)
Completion\CompletionProviders\PartialMethodCompletionProviderTests.cs (2)
887
workspace.SetAnalyzerFallbackOptions(new OptionsCollection(LanguageNames.
CSharp
)
919
workspace.SetAnalyzerFallbackOptions(new OptionsCollection(LanguageNames.
CSharp
)
Completion\CompletionProviders\ReferenceDirectiveCompletionProviderTests.cs (2)
126
var provider = workspace.ExportProvider.GetExports<CompletionProvider, CompletionProviderMetadata>().Single(p => p.Metadata.Language == LanguageNames.
CSharp
&& p.Metadata.Name == nameof(ReferenceDirectiveCompletionProvider)).Value;
127
var languageServices = workspace.Services.GetLanguageServices(LanguageNames.
CSharp
);
Completion\CompletionProviders\SnippetCompletionProviderTests.cs (1)
132
[ExportLanguageService(typeof(ISnippetInfoService), LanguageNames.
CSharp
, ServiceLayer.Test), Shared, PartNotDiscoverable]
Completion\CompletionProviders\SymbolCompletionProviderTests.cs (205)
5083
sourceLanguage: LanguageNames.
CSharp
,
5084
referencedLanguage: LanguageNames.
CSharp
);
5115
sourceLanguage: LanguageNames.
CSharp
,
5116
referencedLanguage: LanguageNames.
CSharp
);
5149
sourceLanguage: LanguageNames.
CSharp
,
5150
referencedLanguage: LanguageNames.
CSharp
);
5160
sourceLanguage: LanguageNames.
CSharp
,
5161
referencedLanguage: LanguageNames.
CSharp
);
5198
sourceLanguage: LanguageNames.
CSharp
,
5199
referencedLanguage: LanguageNames.
CSharp
);
5236
sourceLanguage: LanguageNames.
CSharp
,
5237
referencedLanguage: LanguageNames.
CSharp
);
5274
sourceLanguage: LanguageNames.
CSharp
,
5275
referencedLanguage: LanguageNames.
CSharp
);
5311
sourceLanguage: LanguageNames.
CSharp
,
5312
referencedLanguage: LanguageNames.
CSharp
);
5348
sourceLanguage: LanguageNames.
CSharp
,
5349
referencedLanguage: LanguageNames.
CSharp
);
5387
sourceLanguage: LanguageNames.
CSharp
,
5388
referencedLanguage: LanguageNames.
CSharp
);
5398
sourceLanguage: LanguageNames.
CSharp
,
5399
referencedLanguage: LanguageNames.
CSharp
);
5440
sourceLanguage: LanguageNames.
CSharp
,
5441
referencedLanguage: LanguageNames.
CSharp
);
5481
sourceLanguage: LanguageNames.
CSharp
,
5482
referencedLanguage: LanguageNames.
CSharp
);
5522
sourceLanguage: LanguageNames.
CSharp
,
5523
referencedLanguage: LanguageNames.
CSharp
);
5563
sourceLanguage: LanguageNames.
CSharp
,
5564
referencedLanguage: LanguageNames.
CSharp
);
5603
sourceLanguage: LanguageNames.
CSharp
,
5604
referencedLanguage: LanguageNames.
CSharp
);
5637
sourceLanguage: LanguageNames.
CSharp
,
5638
referencedLanguage: LanguageNames.
CSharp
);
5678
sourceLanguage: LanguageNames.
CSharp
,
5679
referencedLanguage: LanguageNames.
CSharp
);
5711
sourceLanguage: LanguageNames.
CSharp
,
5712
referencedLanguage: LanguageNames.
CSharp
);
5743
sourceLanguage: LanguageNames.
CSharp
,
5744
referencedLanguage: LanguageNames.
CSharp
);
5776
sourceLanguage: LanguageNames.
CSharp
,
5777
referencedLanguage: LanguageNames.
CSharp
);
5809
sourceLanguage: LanguageNames.
CSharp
,
5810
referencedLanguage: LanguageNames.
CSharp
);
5843
sourceLanguage: LanguageNames.
CSharp
,
5844
referencedLanguage: LanguageNames.
CSharp
);
5875
sourceLanguage: LanguageNames.
CSharp
,
5876
referencedLanguage: LanguageNames.
CSharp
);
5908
sourceLanguage: LanguageNames.
CSharp
,
5909
referencedLanguage: LanguageNames.
CSharp
);
5942
sourceLanguage: LanguageNames.
CSharp
,
5943
referencedLanguage: LanguageNames.
CSharp
);
5973
sourceLanguage: LanguageNames.
CSharp
,
5974
referencedLanguage: LanguageNames.
CSharp
);
6003
sourceLanguage: LanguageNames.
CSharp
,
6004
referencedLanguage: LanguageNames.
CSharp
);
6035
sourceLanguage: LanguageNames.
CSharp
,
6036
referencedLanguage: LanguageNames.
CSharp
);
6046
sourceLanguage: LanguageNames.
CSharp
,
6047
referencedLanguage: LanguageNames.
CSharp
);
6077
sourceLanguage: LanguageNames.
CSharp
,
6078
referencedLanguage: LanguageNames.
CSharp
);
6111
sourceLanguage: LanguageNames.
CSharp
,
6112
referencedLanguage: LanguageNames.
CSharp
);
6141
sourceLanguage: LanguageNames.
CSharp
,
6142
referencedLanguage: LanguageNames.
CSharp
);
6173
sourceLanguage: LanguageNames.
CSharp
,
6174
referencedLanguage: LanguageNames.
CSharp
);
6184
sourceLanguage: LanguageNames.
CSharp
,
6185
referencedLanguage: LanguageNames.
CSharp
);
6216
sourceLanguage: LanguageNames.
CSharp
,
6217
referencedLanguage: LanguageNames.
CSharp
);
6248
sourceLanguage: LanguageNames.
CSharp
,
6249
referencedLanguage: LanguageNames.
CSharp
);
6282
sourceLanguage: LanguageNames.
CSharp
,
6283
referencedLanguage: LanguageNames.
CSharp
);
6293
sourceLanguage: LanguageNames.
CSharp
,
6294
referencedLanguage: LanguageNames.
CSharp
);
6329
sourceLanguage: LanguageNames.
CSharp
,
6330
referencedLanguage: LanguageNames.
CSharp
);
6366
sourceLanguage: LanguageNames.
CSharp
,
6367
referencedLanguage: LanguageNames.
CSharp
);
6398
sourceLanguage: LanguageNames.
CSharp
,
6399
referencedLanguage: LanguageNames.
CSharp
);
6430
sourceLanguage: LanguageNames.
CSharp
,
6431
referencedLanguage: LanguageNames.
CSharp
);
6465
sourceLanguage: LanguageNames.
CSharp
,
6466
referencedLanguage: LanguageNames.
CSharp
);
6476
sourceLanguage: LanguageNames.
CSharp
,
6477
referencedLanguage: LanguageNames.
CSharp
);
6501
sourceLanguage: LanguageNames.
CSharp
,
6502
referencedLanguage: LanguageNames.
CSharp
);
6526
sourceLanguage: LanguageNames.
CSharp
,
6527
referencedLanguage: LanguageNames.
CSharp
);
6553
sourceLanguage: LanguageNames.
CSharp
,
6554
referencedLanguage: LanguageNames.
CSharp
);
6564
sourceLanguage: LanguageNames.
CSharp
,
6565
referencedLanguage: LanguageNames.
CSharp
);
6593
sourceLanguage: LanguageNames.
CSharp
,
6594
referencedLanguage: LanguageNames.
CSharp
);
6618
sourceLanguage: LanguageNames.
CSharp
,
6619
referencedLanguage: LanguageNames.
CSharp
);
6653
sourceLanguage: LanguageNames.
CSharp
,
6654
referencedLanguage: LanguageNames.
CSharp
);
6682
sourceLanguage: LanguageNames.
CSharp
,
6683
referencedLanguage: LanguageNames.
CSharp
);
6707
sourceLanguage: LanguageNames.
CSharp
,
6708
referencedLanguage: LanguageNames.
CSharp
);
6742
sourceLanguage: LanguageNames.
CSharp
,
6743
referencedLanguage: LanguageNames.
CSharp
);
6773
sourceLanguage: LanguageNames.
CSharp
,
6774
referencedLanguage: LanguageNames.
CSharp
);
6784
sourceLanguage: LanguageNames.
CSharp
,
6785
referencedLanguage: LanguageNames.
CSharp
);
6812
sourceLanguage: LanguageNames.
CSharp
,
6813
referencedLanguage: LanguageNames.
CSharp
);
6823
sourceLanguage: LanguageNames.
CSharp
,
6824
referencedLanguage: LanguageNames.
CSharp
);
6860
sourceLanguage: LanguageNames.
CSharp
,
6861
referencedLanguage: LanguageNames.
CSharp
);
6871
sourceLanguage: LanguageNames.
CSharp
,
6872
referencedLanguage: LanguageNames.
CSharp
);
6904
sourceLanguage: LanguageNames.
CSharp
,
6905
referencedLanguage: LanguageNames.
CSharp
);
6933
sourceLanguage: LanguageNames.
CSharp
,
6934
referencedLanguage: LanguageNames.
CSharp
);
6958
sourceLanguage: LanguageNames.
CSharp
,
6959
referencedLanguage: LanguageNames.
CSharp
);
6987
sourceLanguage: LanguageNames.
CSharp
,
6988
referencedLanguage: LanguageNames.
CSharp
);
7012
sourceLanguage: LanguageNames.
CSharp
,
7013
referencedLanguage: LanguageNames.
CSharp
);
7043
sourceLanguage: LanguageNames.
CSharp
,
7044
referencedLanguage: LanguageNames.
CSharp
);
7054
sourceLanguage: LanguageNames.
CSharp
,
7055
referencedLanguage: LanguageNames.
CSharp
);
7081
sourceLanguage: LanguageNames.
CSharp
,
7082
referencedLanguage: LanguageNames.
CSharp
);
7092
sourceLanguage: LanguageNames.
CSharp
,
7093
referencedLanguage: LanguageNames.
CSharp
);
7121
sourceLanguage: LanguageNames.
CSharp
,
7122
referencedLanguage: LanguageNames.
CSharp
);
7150
sourceLanguage: LanguageNames.
CSharp
,
7151
referencedLanguage: LanguageNames.
CSharp
);
7181
sourceLanguage: LanguageNames.
CSharp
,
7182
referencedLanguage: LanguageNames.
CSharp
);
7192
sourceLanguage: LanguageNames.
CSharp
,
7193
referencedLanguage: LanguageNames.
CSharp
);
7221
sourceLanguage: LanguageNames.
CSharp
,
7222
referencedLanguage: LanguageNames.
CSharp
);
7246
sourceLanguage: LanguageNames.
CSharp
,
7247
referencedLanguage: LanguageNames.
CSharp
);
7275
sourceLanguage: LanguageNames.
CSharp
,
7276
referencedLanguage: LanguageNames.
CSharp
);
7300
sourceLanguage: LanguageNames.
CSharp
,
7301
referencedLanguage: LanguageNames.
CSharp
);
7331
sourceLanguage: LanguageNames.
CSharp
,
7332
referencedLanguage: LanguageNames.
CSharp
);
7342
sourceLanguage: LanguageNames.
CSharp
,
7343
referencedLanguage: LanguageNames.
CSharp
);
7369
sourceLanguage: LanguageNames.
CSharp
,
7370
referencedLanguage: LanguageNames.
CSharp
);
7380
sourceLanguage: LanguageNames.
CSharp
,
7381
referencedLanguage: LanguageNames.
CSharp
);
7409
sourceLanguage: LanguageNames.
CSharp
,
7437
sourceLanguage: LanguageNames.
CSharp
,
7466
sourceLanguage: LanguageNames.
CSharp
,
7467
referencedLanguage: LanguageNames.
CSharp
);
7495
sourceLanguage: LanguageNames.
CSharp
,
7496
referencedLanguage: LanguageNames.
CSharp
);
7524
sourceLanguage: LanguageNames.
CSharp
,
7525
referencedLanguage: LanguageNames.
CSharp
);
7553
sourceLanguage: LanguageNames.
CSharp
,
7554
referencedLanguage: LanguageNames.
CSharp
);
7582
sourceLanguage: LanguageNames.
CSharp
,
7583
referencedLanguage: LanguageNames.
CSharp
);
7611
sourceLanguage: LanguageNames.
CSharp
,
7612
referencedLanguage: LanguageNames.
CSharp
);
7643
sourceLanguage: LanguageNames.
CSharp
,
7644
referencedLanguage: LanguageNames.
CSharp
);
7675
sourceLanguage: LanguageNames.
CSharp
,
7676
referencedLanguage: LanguageNames.
CSharp
);
7707
sourceLanguage: LanguageNames.
CSharp
,
7708
referencedLanguage: LanguageNames.
CSharp
);
7739
sourceLanguage: LanguageNames.
CSharp
,
7740
referencedLanguage: LanguageNames.
CSharp
);
7771
sourceLanguage: LanguageNames.
CSharp
,
7772
referencedLanguage: LanguageNames.
CSharp
);
7803
sourceLanguage: LanguageNames.
CSharp
,
7804
referencedLanguage: LanguageNames.
CSharp
);
7833
sourceLanguage: LanguageNames.
CSharp
,
7834
referencedLanguage: LanguageNames.
CSharp
);
7863
sourceLanguage: LanguageNames.
CSharp
,
7864
referencedLanguage: LanguageNames.
CSharp
);
7893
sourceLanguage: LanguageNames.
CSharp
,
7894
referencedLanguage: LanguageNames.
CSharp
);
7923
sourceLanguage: LanguageNames.
CSharp
,
7924
referencedLanguage: LanguageNames.
CSharp
);
7953
sourceLanguage: LanguageNames.
CSharp
,
7954
referencedLanguage: LanguageNames.
CSharp
);
7983
sourceLanguage: LanguageNames.
CSharp
,
7984
referencedLanguage: LanguageNames.
CSharp
);
8095
sourceLanguage: LanguageNames.
CSharp
,
8530
await VerifyItemWithProjectReferenceAsync(markup, referencedCode, "C", 1, LanguageNames.
CSharp
, LanguageNames.
CSharp
);
Completion\CompletionProviders\TypeImportCompletionProviderTests.cs (86)
81
CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
),
105
CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
),
134
CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
),
167
var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
);
197
var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
);
227
var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
);
251
var markup = GetMarkupWithReference(file2, file1, LanguageNames.
CSharp
, LanguageNames.
CSharp
, isProjectReference);
277
var markup = GetMarkupWithReference(file2, file1, LanguageNames.
CSharp
, LanguageNames.
CSharp
, isProjectReference);
302
var markup = GetMarkupWithReference(file2, file1, LanguageNames.
CSharp
, LanguageNames.
CSharp
, isProjectReference);
327
var markup = GetMarkupWithReference(file2, file1, LanguageNames.
CSharp
, LanguageNames.
CSharp
, isProjectReference);
353
var markup = GetMarkupWithReference(file2, file1, LanguageNames.
CSharp
, LanguageNames.
CSharp
, isProjectReference);
380
var markup = GetMarkupWithReference(file2, file1, LanguageNames.
CSharp
, LanguageNames.
CSharp
, isProjectReference);
408
var markup = GetMarkupWithReference(file2, file1, LanguageNames.
CSharp
, LanguageNames.
CSharp
, isProjectReference);
436
var markup = GetMarkupWithReference(file2, file1, LanguageNames.
CSharp
, LanguageNames.
CSharp
, isProjectReference);
464
var markup = GetMarkupWithReference(file2, file1, LanguageNames.
CSharp
, LanguageNames.
CSharp
, isProjectReference);
494
var markup = GetMarkupWithReference(file2, file1, LanguageNames.
CSharp
, LanguageNames.
CSharp
, isProjectReference);
518
var markup = GetMarkupWithReference(file2, file1, LanguageNames.
CSharp
, LanguageNames.
CSharp
, isProjectReference);
538
var markup = CreateMarkupForProjecWithVBProjectReference(file2, file1, sourceLanguage: LanguageNames.
CSharp
, rootNamespace: "Foo");
564
var markup = CreateMarkupForProjecWithVBProjectReference(file2, file1, sourceLanguage: LanguageNames.
CSharp
, rootNamespace: "");
594
var markup = CreateMarkupForProjecWithVBProjectReference(file2, file1, sourceLanguage: LanguageNames.
CSharp
, rootNamespace: "");
617
var markup = CreateMarkupForProjecWithVBProjectReference(file2, file1, sourceLanguage: LanguageNames.
CSharp
, rootNamespace: "Foo");
638
var markup = CreateMarkupForProjecWithVBProjectReference(file2, file1, sourceLanguage: LanguageNames.
CSharp
, rootNamespace: "Foo");
670
var markup = GetMarkupWithReference(file2, file1, LanguageNames.
CSharp
, LanguageNames.
CSharp
, isProjectReference);
720
var markup = GetMarkupWithReference(file1, file2, LanguageNames.
CSharp
, LanguageNames.
CSharp
, isProjectReference);
754
var markup = GetMarkupWithReference(file1, file2, LanguageNames.
CSharp
, LanguageNames.
CSharp
, isProjectReference);
795
var markup = GetMarkupWithReference(file1, file2, LanguageNames.
CSharp
, LanguageNames.
CSharp
, isProjectReference);
835
var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
);
860
var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
);
888
var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
);
920
var markup = CreateMarkupForProjecWithVBProjectReference(file2, file1, sourceLanguage: LanguageNames.
CSharp
, rootNamespace: "Foo");
930
<Project Language=""{LanguageNames.
CSharp
}"" CommonReferences=""true"">
968
var markup = CreateMarkupForProjectWithAliasedMetadataReference(file2, "alias1", file1, LanguageNames.
CSharp
, LanguageNames.
CSharp
, hasGlobalAlias: false);
989
var markup = CreateMarkupForProjectWithAliasedMetadataReference(file2, "alias1", file1, LanguageNames.
CSharp
, LanguageNames.
CSharp
, hasGlobalAlias: true);
1010
var markup = CreateMarkupForProjectWithAliasedProjectReference(file2, "alias1", file1, LanguageNames.
CSharp
, LanguageNames.
CSharp
);
1033
var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
);
1055
var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
);
1091
var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
);
1114
var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
);
1153
var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
);
1174
var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
);
1210
var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
);
1233
var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
);
1272
var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
);
1297
var markup = CreateMarkupForProjectWithProjectReference(file2, file1, LanguageNames.
CSharp
, LanguageNames.VisualBasic);
1322
var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
);
1344
var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
);
1373
var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
);
1416
var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.
CSharp
);
1454
true => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
),
1455
false => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
)
1488
true => (CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
), true),
1489
false => (CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
), false),
1538
true => (CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
), true),
1539
false => (CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
), !hideAdvancedMembers),
1713
var markup = CreateMarkupForSingleProject(source, globalUsings, LanguageNames.
CSharp
, referencedFileName: "ProjectName.GlobalUsings.g.cs");
1727
var markup = CreateMarkupForSingleProject(source, "", LanguageNames.
CSharp
);
1748
var markup = CreateMarkupForSingleProject(source, globalUsings, LanguageNames.
CSharp
, referencedFileName: "GlobalUsings.cs");
1782
true => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
),
1783
false => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.
CSharp
, LanguageNames.
CSharp
)
1788
markup = CreateMarkupForSingleProject(srcDoc, refDoc, LanguageNames.
CSharp
);
Completion\CompletionServiceTests.cs (8)
38
.AddProject("TestProject", LanguageNames.
CSharp
)
52
.AddProject("TestProject", "Assembly", LanguageNames.
CSharp
)
66
[ExportCompletionProvider(nameof(ThirdPartyCompletionProvider), LanguageNames.
CSharp
)]
82
Assert.Equal(1, options.GetOption(new OptionKey(ThirdPartyOption.Instance, LanguageNames.
CSharp
)));
110
.AddProject("TestProject", "Assembly", LanguageNames.
CSharp
)
114
var options = new TestOptionSet(ImmutableDictionary<OptionKey, object>.Empty.Add(new OptionKey(ThirdPartyOption.Instance, LanguageNames.
CSharp
), 1));
136
workspace.CurrentSolution.Options.WithChangedOption(new OptionKey(ThirdPartyOption.Instance, LanguageNames.
CSharp
), 1))));
171
.AddProject("TestProject", LanguageNames.
CSharp
)
Diagnostics\AbstractCSharpDiagnosticProviderBasedUserDiagnosticTest.cs (1)
22
protected internal override string GetLanguage() => LanguageNames.
CSharp
;
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (2)
834
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
843
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
Diagnostics\FixAllProvider\BatchFixerTests.cs (1)
31
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
DocumentationComments\DocumentationCommentTests.cs (4)
237
VerifyTypingCharacter(code, expected, globalOptions: new OptionsCollection(LanguageNames.
CSharp
)
985
VerifyPressingEnter(code, expected, globalOptions: new OptionsCollection(LanguageNames.
CSharp
)
1641
VerifyPressingEnter(code, expected, globalOptions: new OptionsCollection(LanguageNames.
CSharp
)
2180
VerifyInsertCommentCommand(code, expected, globalOptions: new OptionsCollection(LanguageNames.
CSharp
)
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (3)
40
.AddProject(ProjectInfo.Create(projectId, VersionStamp.Create(), "proj1", "proj1.dll", LanguageNames.
CSharp
, filePath: "/a/b/proj1.csproj"))
353
LanguageNames.
CSharp
,
386
LanguageNames.
CSharp
,
EncapsulateField\EncapsulateFieldTestState.cs (1)
46
workspace.SetAnalyzerFallbackOptions(new OptionsCollection(LanguageNames.
CSharp
)
EventHookup\EventHookupCommandHandlerTests.cs (2)
22
private readonly NamingStylesTestOptionSets _namingOptions = new NamingStylesTestOptionSets(LanguageNames.
CSharp
);
1195
=> new OptionsCollection(LanguageNames.
CSharp
) { { CodeStyleOptions2.QualifyMethodAccess, true, notification } };
ExtractInterface\ExtractInterfaceTests.cs (11)
500
markup, LanguageNames.
CSharp
,
502
options: new OptionsCollection(LanguageNames.
CSharp
)
540
markup, LanguageNames.
CSharp
,
542
options: new OptionsCollection(LanguageNames.
CSharp
)
581
markup, LanguageNames.
CSharp
,
583
options: new OptionsCollection(LanguageNames.
CSharp
)
892
markup, LanguageNames.
CSharp
,
894
options: new OptionsCollection(LanguageNames.
CSharp
)
1050
markup, LanguageNames.
CSharp
,
1051
options: new OptionsCollection(LanguageNames.
CSharp
)
1390
using var testState = ExtractInterfaceTestState.Create(markup, LanguageNames.
CSharp
, compilationOptions: null);
ExtractMethod\ExtractMethodTests.cs (1)
11353
.AddProject(projectId, "Project", "Project.dll", LanguageNames.
CSharp
)
Formatting\CodeCleanupTests.cs (4)
627
[InlineData(LanguageNames.
CSharp
)]
800
{ LanguageNames.
CSharp
, ImmutableArray.Create(analyzer) }
836
if (language == LanguageNames.
CSharp
)
879
workspace.SetAnalyzerFallbackAndGlobalOptions(new OptionsCollection(LanguageNames.
CSharp
)
Formatting\CodeCleanupTests.TestFixers.cs (4)
50
[PartNotDiscoverable, Shared, ExportCodeFixProvider(LanguageNames.
CSharp
)]
62
[PartNotDiscoverable, Shared, ExportCodeFixProvider(LanguageNames.
CSharp
)]
72
[PartNotDiscoverable, Shared, ExportCodeFixProvider(LanguageNames.
CSharp
)]
123
[PartNotDiscoverable, Shared, ExportCodeFixProvider(LanguageNames.
CSharp
)]
Formatting\CSharpFormattingEngineTestBase.cs (1)
20
=> LanguageNames.
CSharp
;
Formatting\CSharpNewDocumentFormattingServiceTests.cs (13)
32
protected override string Language => LanguageNames.
CSharp
;
54
options: new OptionsCollection(LanguageNames.
CSharp
)
77
options: new OptionsCollection(LanguageNames.
CSharp
)
99
options: new OptionsCollection(LanguageNames.
CSharp
)
123
options: new OptionsCollection(LanguageNames.
CSharp
)
140
options: new OptionsCollection(LanguageNames.
CSharp
)
165
options: new OptionsCollection(LanguageNames.
CSharp
)
194
options: new OptionsCollection(LanguageNames.
CSharp
)
221
options: new OptionsCollection(LanguageNames.
CSharp
)
268
options: new OptionsCollection(LanguageNames.
CSharp
)
290
options: new OptionsCollection(LanguageNames.
CSharp
)
311
options: new OptionsCollection(LanguageNames.
CSharp
)
337
options: new OptionsCollection(LanguageNames.
CSharp
)
Formatting\FormattingEngineTests.cs (12)
31
=> new(LanguageNames.
CSharp
)
1170
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
1203
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
1237
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
1273
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
1337
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
1371
var globalOptions = new OptionsCollection(LanguageNames.
CSharp
)
2390
AssertFormatWithView(expected, code, new OptionsCollection(LanguageNames.
CSharp
) { { GenerationOptions.SeparateImportDirectiveGroups, true } });
2420
AssertFormatWithView(expected, code, new OptionsCollection(LanguageNames.
CSharp
) { { GenerationOptions.SeparateImportDirectiveGroups, true } });
2442
AssertFormatWithView(expected, code, new OptionsCollection(LanguageNames.
CSharp
) { { GenerationOptions.SeparateImportDirectiveGroups, true } });
2465
AssertFormatWithView(expected, code, new OptionsCollection(LanguageNames.
CSharp
) { { GenerationOptions.SeparateImportDirectiveGroups, true } });
2488
AssertFormatWithView(expected, code, new OptionsCollection(LanguageNames.
CSharp
) { { GenerationOptions.SeparateImportDirectiveGroups, true } });
Formatting\RazorLineFormattingOptionsTests.cs (1)
47
var project = workspace.AddProject("Test", LanguageNames.
CSharp
);
GenerateConstructors\GenerateConstructorsTests.cs (1)
26
private readonly NamingStylesTestOptionSets options = new(LanguageNames.
CSharp
);
GoToAdjacentMember\CSharpGoToAdjacentMemberTests.cs (1)
19
protected override string LanguageName => LanguageNames.
CSharp
;
InlineDiagnostics\InlineDiagnosticsTaggerProviderTests.cs (1)
55
workspace.GlobalOptions.SetGlobalOption(InlineDiagnosticsOptionsStorage.EnableInlineDiagnostics, LanguageNames.
CSharp
, true);
Intents\AddConstructorParameterIntentTests.cs (1)
227
options: new OptionsCollection(LanguageNames.
CSharp
)
Intents\GenerateConstructorIntentTests.cs (1)
280
options: new OptionsCollection(LanguageNames.
CSharp
)
LineSeparators\LineSeparatorTests.cs (1)
601
var lineSeparatorService = Assert.IsType<CSharpLineSeparatorService>(workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService<ILineSeparatorService>());
MoveToNamespace\MoveToNamespaceTests.cs (1)
33
protected internal override string GetLanguage() => LanguageNames.
CSharp
;
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (2)
220
<Project Language=""{LanguageNames.
CSharp
}"" CommonReferences=""true"" ReferencesOnDisk=""true"" {preprocessorSymbolsAttribute}>
266
var compilationFactory = project.Solution.Services.GetRequiredLanguageService<ICompilationFactoryService>(LanguageNames.
CSharp
);
PdbSourceDocument\ImplementationAssemblyLookupServiceTests.cs (7)
166
<Project Language=""{LanguageNames.
CSharp
}"" CommonReferences=""true"" ReferencesOnDisk=""true"">
233
<Project Language=""{LanguageNames.
CSharp
}"" CommonReferences=""true"" ReferencesOnDisk=""true"">
294
<Project Language=""{LanguageNames.
CSharp
}"" CommonReferences=""true"" ReferencesOnDisk=""true"">
349
<Project Language=""{LanguageNames.
CSharp
}"" CommonReferences=""true"" ReferencesOnDisk=""true"">
400
<Project Language=""{LanguageNames.
CSharp
}"" CommonReferences=""true"" ReferencesOnDisk=""true"">
465
<Project Language=""{LanguageNames.
CSharp
}"" CommonReferences=""true"" ReferencesOnDisk=""true"">
523
<Project Language=""{LanguageNames.
CSharp
}"" CommonReferences=""true"" ReferencesOnDisk=""true"">
PdbSourceDocument\PdbSourceDocumentTests.cs (3)
480
<Project Language=""{LanguageNames.
CSharp
}"" CommonReferences=""true"" ReferencesOnDisk=""true"">
527
<Project Language=""{LanguageNames.
CSharp
}"" CommonReferences=""true"" ReferencesOnDisk=""true"">
932
<Project Language=""{LanguageNames.
CSharp
}"" CommonReferences=""true"" ReferencesOnDisk=""true"">
QuickInfo\SemanticQuickInfoSourceTests.cs (1)
5592
sourceLanguage: LanguageNames.
CSharp
,
Rename\CSharpRenamerTests.cs (1)
15
protected override string LanguageName => LanguageNames.
CSharp
;
SignatureHelp\AttributeSignatureHelpProviderTests.cs (10)
850
sourceLanguage: LanguageNames.
CSharp
,
851
referencedLanguage: LanguageNames.
CSharp
);
883
sourceLanguage: LanguageNames.
CSharp
,
884
referencedLanguage: LanguageNames.
CSharp
);
916
sourceLanguage: LanguageNames.
CSharp
,
917
referencedLanguage: LanguageNames.
CSharp
,
924
sourceLanguage: LanguageNames.
CSharp
,
925
referencedLanguage: LanguageNames.
CSharp
,
969
sourceLanguage: LanguageNames.
CSharp
,
970
referencedLanguage: LanguageNames.
CSharp
);
SignatureHelp\ConstructorInitializerSignatureHelpProviderTests.cs (10)
452
sourceLanguage: LanguageNames.
CSharp
,
453
referencedLanguage: LanguageNames.
CSharp
);
483
sourceLanguage: LanguageNames.
CSharp
,
484
referencedLanguage: LanguageNames.
CSharp
);
514
sourceLanguage: LanguageNames.
CSharp
,
515
referencedLanguage: LanguageNames.
CSharp
,
522
sourceLanguage: LanguageNames.
CSharp
,
523
referencedLanguage: LanguageNames.
CSharp
,
564
sourceLanguage: LanguageNames.
CSharp
,
565
referencedLanguage: LanguageNames.
CSharp
);
SignatureHelp\ElementAccessExpressionSignatureHelpProviderTests.cs (17)
471
sourceLanguage: LanguageNames.
CSharp
,
472
referencedLanguage: LanguageNames.
CSharp
);
508
sourceLanguage: LanguageNames.
CSharp
,
509
referencedLanguage: LanguageNames.
CSharp
);
545
sourceLanguage: LanguageNames.
CSharp
,
546
referencedLanguage: LanguageNames.
CSharp
,
553
sourceLanguage: LanguageNames.
CSharp
,
554
referencedLanguage: LanguageNames.
CSharp
,
604
sourceLanguage: LanguageNames.
CSharp
,
605
referencedLanguage: LanguageNames.
CSharp
);
641
sourceLanguage: LanguageNames.
CSharp
,
642
referencedLanguage: LanguageNames.
CSharp
);
678
sourceLanguage: LanguageNames.
CSharp
,
679
referencedLanguage: LanguageNames.
CSharp
);
716
sourceLanguage: LanguageNames.
CSharp
,
717
referencedLanguage: LanguageNames.
CSharp
);
782
sourceLanguage: LanguageNames.
CSharp
,
SignatureHelp\GenericNamePartiallyWrittenSignatureHelpProviderTests.cs (10)
179
sourceLanguage: LanguageNames.
CSharp
,
180
referencedLanguage: LanguageNames.
CSharp
);
214
sourceLanguage: LanguageNames.
CSharp
,
215
referencedLanguage: LanguageNames.
CSharp
);
249
sourceLanguage: LanguageNames.
CSharp
,
250
referencedLanguage: LanguageNames.
CSharp
,
257
sourceLanguage: LanguageNames.
CSharp
,
258
referencedLanguage: LanguageNames.
CSharp
,
302
sourceLanguage: LanguageNames.
CSharp
,
303
referencedLanguage: LanguageNames.
CSharp
);
SignatureHelp\GenericNameSignatureHelpProviderTests.cs (8)
860
sourceLanguage: LanguageNames.
CSharp
,
861
referencedLanguage: LanguageNames.
CSharp
);
893
sourceLanguage: LanguageNames.
CSharp
,
894
referencedLanguage: LanguageNames.
CSharp
);
926
sourceLanguage: LanguageNames.
CSharp
,
927
referencedLanguage: LanguageNames.
CSharp
,
934
sourceLanguage: LanguageNames.
CSharp
,
935
referencedLanguage: LanguageNames.
CSharp
,
SignatureHelp\InvocationExpressionSignatureHelpProviderTests.cs (34)
1016
sourceLanguage: LanguageNames.
CSharp
,
1017
referencedLanguage: LanguageNames.
CSharp
);
1048
sourceLanguage: LanguageNames.
CSharp
,
1049
referencedLanguage: LanguageNames.
CSharp
);
1080
sourceLanguage: LanguageNames.
CSharp
,
1081
referencedLanguage: LanguageNames.
CSharp
,
1088
sourceLanguage: LanguageNames.
CSharp
,
1089
referencedLanguage: LanguageNames.
CSharp
,
1127
sourceLanguage: LanguageNames.
CSharp
,
1128
referencedLanguage: LanguageNames.
CSharp
);
1166
sourceLanguage: LanguageNames.
CSharp
,
1167
referencedLanguage: LanguageNames.
CSharp
);
1208
sourceLanguage: LanguageNames.
CSharp
,
1209
referencedLanguage: LanguageNames.
CSharp
);
1240
sourceLanguage: LanguageNames.
CSharp
,
1241
referencedLanguage: LanguageNames.
CSharp
);
1283
sourceLanguage: LanguageNames.
CSharp
,
1284
referencedLanguage: LanguageNames.
CSharp
);
1314
sourceLanguage: LanguageNames.
CSharp
,
1315
referencedLanguage: LanguageNames.
CSharp
);
1348
sourceLanguage: LanguageNames.
CSharp
,
1349
referencedLanguage: LanguageNames.
CSharp
);
1380
sourceLanguage: LanguageNames.
CSharp
,
1381
referencedLanguage: LanguageNames.
CSharp
);
1412
sourceLanguage: LanguageNames.
CSharp
,
1413
referencedLanguage: LanguageNames.
CSharp
);
1446
sourceLanguage: LanguageNames.
CSharp
,
1447
referencedLanguage: LanguageNames.
CSharp
);
1481
sourceLanguage: LanguageNames.
CSharp
,
1482
referencedLanguage: LanguageNames.
CSharp
);
1513
sourceLanguage: LanguageNames.
CSharp
,
1514
referencedLanguage: LanguageNames.
CSharp
);
1546
sourceLanguage: LanguageNames.
CSharp
,
1547
referencedLanguage: LanguageNames.
CSharp
);
SignatureHelp\ObjectCreationExpressionSignatureHelpProviderTests.cs (10)
547
sourceLanguage: LanguageNames.
CSharp
,
548
referencedLanguage: LanguageNames.
CSharp
);
583
sourceLanguage: LanguageNames.
CSharp
,
584
referencedLanguage: LanguageNames.
CSharp
);
618
sourceLanguage: LanguageNames.
CSharp
,
619
referencedLanguage: LanguageNames.
CSharp
,
626
sourceLanguage: LanguageNames.
CSharp
,
627
referencedLanguage: LanguageNames.
CSharp
,
672
sourceLanguage: LanguageNames.
CSharp
,
673
referencedLanguage: LanguageNames.
CSharp
);
StringIndentation\StringIndentationTests.cs (1)
27
TestWorkspace.CreateWorkspaceElement(LanguageNames.
CSharp
,
Structure\AbstractCSharpSyntaxNodeStructureTests.cs (1)
13
protected sealed override string LanguageName => LanguageNames.
CSharp
;
Structure\AbstractCSharpSyntaxTriviaStructureTests.cs (1)
11
protected sealed override string LanguageName => LanguageNames.
CSharp
;
Structure\CommentStructureTests.cs (1)
24
protected override string LanguageName => LanguageNames.
CSharp
;
Structure\MetadataAsSource\InvalidIdentifierStructureTests.cs (1)
26
protected override string LanguageName => LanguageNames.
CSharp
;
Workspaces\WorkspaceTests_EditorFeatures.cs (2)
1465
var optionKey = new OptionKey(FormattingOptions2.SmartIndent, LanguageNames.
CSharp
);
1503
var optionKey = new OptionKey(FormattingOptions2.SmartIndent, LanguageNames.
CSharp
);
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Recommendations\RecommenderTests.cs (1)
60
var project = solution.AddProject("test", "test", LanguageNames.
CSharp
);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (10)
Diagnostics\DiagnosticAnalyzerTests.cs (7)
648
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
869
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
1622
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
2276
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
3826
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
4067
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
4105
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Diagnostics\GetDiagnosticsTests.cs (3)
928
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
1468
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
1709
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Microsoft.CodeAnalysis.CSharp.Features (559)
AddDebuggerDisplay\CSharpAddDebuggerDisplayCodeRefactoringProvider.cs (1)
16
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.AddDebuggerDisplay), Shared]
AddFileBanner\CSharpAddFileBannerCodeRefactoringProvider.cs (1)
12
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
,
AddFileBanner\CSharpAddFileBannerNewDocumentFormattingProvider.cs (1)
17
[ExportNewDocumentFormattingProvider(LanguageNames.
CSharp
), Shared]
AddImport\CSharpAddImportCodeFixProvider.cs (1)
177
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddImport), Shared]
AddImport\CSharpAddImportFeatureService.cs (1)
34
[ExportLanguageService(typeof(IAddImportFeatureService), LanguageNames.
CSharp
), Shared]
AddImport\CSharpAddMissingImportsFeatureService.cs (1)
19
[ExportLanguageService(typeof(IAddMissingImportsFeatureService), LanguageNames.
CSharp
), Shared]
AddMissingReference\CSharpAddMissingReferenceCodeFixProvider.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddMissingReference), Shared]
AddPackage\CSharpAddSpecificPackageCodeFixProvider.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddPackage), Shared]
BraceCompletion\BracketBraceCompletionService.cs (1)
19
[ExportBraceCompletionService(LanguageNames.
CSharp
), Shared]
BraceCompletion\CharLiteralBraceCompletionService.cs (1)
13
[ExportBraceCompletionService(LanguageNames.
CSharp
), Shared]
BraceCompletion\CurlyBraceCompletionService.cs (1)
24
[ExportBraceCompletionService(LanguageNames.
CSharp
), Shared]
BraceCompletion\InterpolatedStringBraceCompletionService.cs (1)
18
[ExportBraceCompletionService(LanguageNames.
CSharp
), Shared]
BraceCompletion\InterpolationBraceCompletionService.cs (1)
20
[ExportBraceCompletionService(LanguageNames.
CSharp
), Shared]
BraceCompletion\LessAndGreaterThanBraceCompletionService.cs (1)
19
[ExportBraceCompletionService(LanguageNames.
CSharp
), Shared]
BraceCompletion\ParenthesisBraceCompletionService.cs (1)
15
[ExportBraceCompletionService(LanguageNames.
CSharp
), Shared]
BraceCompletion\StringLiteralBraceCompletionService.cs (1)
18
[ExportBraceCompletionService(LanguageNames.
CSharp
), Shared]
BraceMatching\BlockCommentBraceMatcher.cs (1)
16
[ExportBraceMatcher(LanguageNames.
CSharp
), Shared]
BraceMatching\CSharpDirectiveTriviaBraceMatcher.cs (1)
17
[ExportBraceMatcher(LanguageNames.
CSharp
), Shared]
BraceMatching\CSharpEmbeddedLanguageBraceMatcher.cs (1)
16
[ExportBraceMatcher(LanguageNames.
CSharp
), Shared]
BraceMatching\LessThanGreaterThanBraceMatcher.cs (1)
12
[ExportBraceMatcher(LanguageNames.
CSharp
), Shared]
BraceMatching\OpenCloseBraceBraceMatcher.cs (1)
12
[ExportBraceMatcher(LanguageNames.
CSharp
), Shared]
BraceMatching\OpenCloseBracketBraceMatcher.cs (1)
12
[ExportBraceMatcher(LanguageNames.
CSharp
), Shared]
BraceMatching\OpenCloseParenBraceMatcher.cs (1)
12
[ExportBraceMatcher(LanguageNames.
CSharp
), Shared]
BraceMatching\StringLiteralBraceMatcher.cs (1)
17
[ExportBraceMatcher(LanguageNames.
CSharp
), Shared]
BracePairs\CSharpBracePairsService.cs (1)
13
[ExportLanguageService(typeof(IBracePairsService), LanguageNames.
CSharp
), Shared]
ChangeSignature\CSharpChangeSignatureService.cs (1)
35
[ExportLanguageService(typeof(AbstractChangeSignatureService), LanguageNames.
CSharp
), Shared]
CodeFixes\GenerateType\GenerateTypeCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.GenerateType), Shared]
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (1)
28
[ExportConfigurationFixProvider(PredefinedConfigurationFixProviderNames.Suppression, LanguageNames.
CSharp
), Shared]
CodeLens\CSharpCodeLensDisplayInfoService.cs (1)
17
[ExportLanguageService(typeof(ICodeLensDisplayInfoService), LanguageNames.
CSharp
), Shared]
CodeLens\CSharpCodeLensMemberFinder.cs (1)
18
[ExportLanguageService(typeof(ICodeLensMemberFinder), LanguageNames.
CSharp
), Shared]
CodeRefactorings\AddAwait\CSharpAddAwaitCodeRefactoringProvider.cs (1)
18
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.AddAwait), Shared]
CodeRefactorings\AddMissingImports\CSharpAddMissingImportsRefactoringProvider.cs (1)
12
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.AddMissingImports), Shared]
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
26
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertLocalFunctionToMethod), Shared]
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
23
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.EnableNullable), Shared]
CodeRefactorings\ExtractClass\CSharpExtractClassCodeRefactoringProvider.cs (1)
18
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ExtractClass), Shared]
CodeRefactorings\InlineMethod\CSharpInlineMethodRefactoringProvider.cs (1)
17
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.InlineMethod), Shared]
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
27
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.InlineTemporary), Shared]
CodeRefactorings\MoveStaticMembers\CSharpMoveStaticMembersRefactoringProvider.cs (1)
15
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.MoveStaticMembers), Shared]
CodeRefactorings\MoveType\CSharpMoveTypeService.cs (1)
17
[ExportLanguageService(typeof(IMoveTypeService), LanguageNames.
CSharp
), Shared]
CodeRefactorings\PullMemberUp\CSharpPullMemberUpCodeRefactoringProvider.cs (1)
17
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.PullMemberUp), Shared]
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (1)
29
[ExportLanguageService(typeof(IChangeNamespaceService), LanguageNames.
CSharp
), Shared]
CodeRefactorings\SyncNamespace\CSharpSyncNamespaceCodeRefactoringProvider.cs (1)
19
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.SyncNamespace), Shared]
CodeRefactorings\UseExplicitOrImplicitType\UseExplicitTypeCodeRefactoringProvider.cs (1)
21
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.UseExplicitType), Shared]
CodeRefactorings\UseExplicitOrImplicitType\UseImplicitTypeCodeRefactoringProvider.cs (1)
21
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.UseImplicitType), Shared]
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
32
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.UseRecursivePatterns), Shared]
CommentSelection\CSharpCommentSelectionService.cs (1)
14
[ExportLanguageService(typeof(ICommentSelectionService), LanguageNames.
CSharp
), Shared]
Completion\CompletionProviders\AggregateEmbeddedLanguageCompletionProvider.cs (2)
15
[ExportCompletionProvider(nameof(AggregateEmbeddedLanguageCompletionProvider), LanguageNames.
CSharp
)]
22
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (2)
26
[ExportCompletionProvider(nameof(AttributeNamedParameterCompletionProvider), LanguageNames.
CSharp
)]
44
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\AwaitCompletionProvider.cs (2)
24
[ExportCompletionProvider(nameof(AwaitCompletionProvider), LanguageNames.
CSharp
), Shared]
30
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\CrefCompletionProvider.cs (2)
28
[ExportCompletionProvider(nameof(CrefCompletionProvider), LanguageNames.
CSharp
), Shared]
51
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\CSharpSuggestionModeCompletionProvider.cs (2)
23
[ExportCompletionProvider(nameof(CSharpSuggestionModeCompletionProvider), LanguageNames.
CSharp
), Shared]
29
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\DeclarationName\DeclarationNameCompletionProvider.cs (2)
24
[ExportCompletionProvider(nameof(DeclarationNameCompletionProvider), LanguageNames.
CSharp
)]
33
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (2)
26
[ExportCompletionProvider(nameof(EnumAndCompletionListTagCompletionProvider), LanguageNames.
CSharp
)]
44
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (2)
24
[ExportCompletionProvider(nameof(ExplicitInterfaceMemberCompletionProvider), LanguageNames.
CSharp
), Shared]
30
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (2)
25
[ExportCompletionProvider(nameof(ExplicitInterfaceTypeCompletionProvider), LanguageNames.
CSharp
), Shared]
31
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (2)
21
[ExportCompletionProvider(nameof(ExternAliasCompletionProvider), LanguageNames.
CSharp
)]
32
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\FirstBuiltInCompletionProvider.cs (1)
17
[ExportCompletionProvider(nameof(FirstBuiltInCompletionProvider), LanguageNames.
CSharp
)]
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (2)
23
[ExportCompletionProvider(nameof(FunctionPointerUnmanagedCallingConventionCompletionProvider), LanguageNames.
CSharp
)]
34
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\ImportCompletion\ExtensionMethodImportCompletionProvider.cs (2)
18
[ExportCompletionProvider(nameof(ExtensionMethodImportCompletionProvider), LanguageNames.
CSharp
)]
29
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\ImportCompletion\TypeImportCompletionProvider.cs (2)
20
[ExportCompletionProvider(nameof(TypeImportCompletionProvider), LanguageNames.
CSharp
)]
31
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\ImportCompletion\TypeImportCompletionServiceFactory.cs (2)
13
[ExportLanguageServiceFactory(typeof(ITypeImportCompletionService), LanguageNames.
CSharp
), Shared]
32
protected override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\InternalsVisibleToCompletionProvider.cs (2)
16
[ExportCompletionProvider(nameof(InternalsVisibleToCompletionProvider), LanguageNames.
CSharp
)]
27
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\KeywordCompletionProvider.cs (2)
18
[ExportCompletionProvider(nameof(KeywordCompletionProvider), LanguageNames.
CSharp
)]
178
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\LastBuiltInCompletionProvider.cs (1)
17
[ExportCompletionProvider(nameof(LastBuiltInCompletionProvider), LanguageNames.
CSharp
)]
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (2)
28
[ExportCompletionProvider(nameof(NamedParameterCompletionProvider), LanguageNames.
CSharp
)]
46
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\ObjectAndWithInitializerCompletionProvider.cs (2)
27
[ExportCompletionProvider(nameof(ObjectAndWithInitializerCompletionProvider), LanguageNames.
CSharp
), Shared]
33
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\ObjectCreationCompletionProvider.cs (2)
23
[ExportCompletionProvider(nameof(ObjectCreationCompletionProvider), LanguageNames.
CSharp
)]
34
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider.cs (2)
29
[ExportCompletionProvider(nameof(UnnamedSymbolCompletionProvider), LanguageNames.
CSharp
), Shared]
61
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\OverrideCompletionProvider.cs (2)
21
[ExportCompletionProvider(nameof(OverrideCompletionProvider), LanguageNames.
CSharp
), Shared]
27
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (2)
23
[ExportCompletionProvider(nameof(PartialMethodCompletionProvider), LanguageNames.
CSharp
)]
34
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\PartialTypeCompletionProvider.cs (2)
23
[ExportCompletionProvider(nameof(PartialTypeCompletionProvider), LanguageNames.
CSharp
)]
49
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\PreprocessorCompletionProvider.cs (2)
15
[ExportCompletionProvider(nameof(PreprocessorCompletionProvider), LanguageNames.
CSharp
)]
26
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (2)
25
[ExportCompletionProvider(nameof(PropertySubpatternCompletionProvider), LanguageNames.
CSharp
)]
36
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\Scripting\LoadDirectiveCompletionProvider.cs (1)
15
[ExportCompletionProvider(nameof(LoadDirectiveCompletionProvider), LanguageNames.
CSharp
)]
Completion\CompletionProviders\Scripting\ReferenceDirectiveCompletionProvider.cs (1)
14
[ExportCompletionProvider(nameof(ReferenceDirectiveCompletionProvider), LanguageNames.
CSharp
)]
Completion\CompletionProviders\SnippetCompletionProvider.cs (2)
30
[ExportCompletionProvider(nameof(SnippetCompletionProvider), LanguageNames.
CSharp
)]
65
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\Snippets\CSharpSnippetCompletionProvider.cs (1)
14
[ExportCompletionProvider(nameof(CSharpSnippetCompletionProvider), LanguageNames.
CSharp
)]
Completion\CompletionProviders\SpeculativeTCompletionProvider.cs (2)
22
[ExportCompletionProvider(nameof(SpeculativeTCompletionProvider), LanguageNames.
CSharp
)]
33
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\SymbolCompletionProvider.cs (2)
24
[ExportCompletionProvider(nameof(SymbolCompletionProvider), LanguageNames.
CSharp
)]
72
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\TupleNameCompletionProvider.cs (2)
25
[ExportCompletionProvider(nameof(TupleNameCompletionProvider), LanguageNames.
CSharp
)]
38
internal override string Language => LanguageNames.
CSharp
;
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (2)
28
[ExportCompletionProvider(nameof(XmlDocCommentCompletionProvider), LanguageNames.
CSharp
)]
60
internal override string Language => LanguageNames.
CSharp
;
Completion\CSharpCompletionService.cs (2)
19
[ExportLanguageServiceFactory(typeof(CompletionService), LanguageNames.
CSharp
), Shared]
38
public override string Language => LanguageNames.
CSharp
;
Completion\Providers\ContextVariableArgumentProvider.cs (1)
15
[ExportArgumentProvider(nameof(ContextVariableArgumentProvider), LanguageNames.
CSharp
)]
Completion\Providers\DefaultArgumentProvider.cs (1)
14
[ExportArgumentProvider(nameof(DefaultArgumentProvider), LanguageNames.
CSharp
)]
Completion\Providers\FirstBuiltInArgumentProvider.cs (1)
17
[ExportArgumentProvider(nameof(FirstBuiltInArgumentProvider), LanguageNames.
CSharp
)]
Completion\Providers\LastBuiltInArgumentProvider.cs (1)
17
[ExportArgumentProvider(nameof(LastBuiltInArgumentProvider), LanguageNames.
CSharp
)]
Completion\Providers\OutVariableArgumentProvider.cs (1)
16
[ExportArgumentProvider(nameof(OutVariableArgumentProvider), LanguageNames.
CSharp
)]
ConvertAnonymousType\CSharpConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
18
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertAnonymousTypeToClass), Shared]
ConvertAnonymousType\CSharpConvertAnonymousTypeToTupleCodeRefactoringProvider.cs (1)
20
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertAnonymousTypeToTuple), Shared]
ConvertAutoPropertyToFullProperty\CSharpConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
28
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertAutoPropertyToFullProperty), Shared]
ConvertBetweenRegularAndVerbatimString\ConvertBetweenRegularAndVerbatimInterpolatedStringCodeRefactoringProvider.cs (1)
16
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertBetweenRegularAndVerbatimInterpolatedString), Shared]
ConvertBetweenRegularAndVerbatimString\ConvertBetweenRegularAndVerbatimStringCodeRefactoringProvider.cs (1)
16
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertBetweenRegularAndVerbatimString), Shared]
ConvertCast\CSharpConvertDirectCastToTryCastCodeRefactoringProvider.cs (1)
22
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertDirectCastToTryCast), Shared]
ConvertCast\CSharpConvertTryCastToDirectCastCodeRefactoringProvider.cs (1)
24
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertTryCastToDirectCast), Shared]
ConvertForEachToFor\CSharpConvertForEachToForCodeRefactoringProvider.cs (1)
22
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertForEachToFor), Shared]
ConvertForToForEach\CSharpConvertForToForEachCodeRefactoringProvider.cs (1)
17
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertForToForEach), Shared]
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.cs (1)
16
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertIfToSwitch), Shared]
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (1)
23
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertForEachToLinqQuery), Shared]
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
30
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertLinqQueryToForEach), Shared]
ConvertNamespace\ConvertNamespaceCodeRefactoringProvider.cs (1)
27
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertNamespace), Shared]
ConvertNumericLiteral\CSharpConvertNumericLiteralCodeRefactoringProvider.cs (1)
13
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertNumericLiteral), Shared]
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
35
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertPrimaryToRegularConstructor), Shared]
ConvertProgram\ConvertToProgramMainCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ConvertToProgramMain), Shared]
ConvertProgram\ConvertToProgramMainCodeRefactoringProvider.cs (1)
22
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertToProgramMain), Shared]
ConvertProgram\ConvertToTopLevelStatementsCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ConvertToTopLevelStatements), Shared]
ConvertProgram\ConvertToTopLevelStatementsCodeRefactoringProvider.cs (1)
22
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertToTopLevelStatements), Shared]
ConvertToInterpolatedString\CSharpConvertConcatenationToInterpolatedStringRefactoringProvider.cs (1)
14
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertConcatenationToInterpolatedString), Shared]
ConvertToInterpolatedString\CSharpConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
13
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertPlaceholderToInterpolatedString), Shared]
ConvertToRawString\ConvertStringToRawStringCodeRefactoringProvider.cs (1)
25
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertToRawString), Shared]
ConvertToRecord\CSharpConvertToRecordRefactoringProvider.cs (1)
14
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertToRecord), Shared]
ConvertTupleToStruct\CSharpConvertTupleToStructCodeRefactoringProvider.cs (2)
14
[ExportLanguageService(typeof(IConvertTupleToStructCodeRefactoringProvider), LanguageNames.
CSharp
)]
15
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ConvertTupleToStruct), Shared]
Copilot\CSharpCopilotCodeFixProvider.cs (1)
27
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.CopilotSuggestions), Shared]
Debugging\CSharpBreakpointResolutionService.cs (1)
19
[ExportLanguageService(typeof(IBreakpointResolutionService), LanguageNames.
CSharp
), Shared]
Debugging\CSharpLanguageDebugInfoService.cs (1)
14
[ExportLanguageService(typeof(ILanguageDebugInfoService), LanguageNames.
CSharp
), Shared]
Debugging\CSharpProximityExpressionsService.cs (1)
40
[ExportLanguageService(typeof(IProximityExpressionsService), LanguageNames.
CSharp
), Shared]
DecompiledSource\CSharpDecompiledSourceService.cs (1)
22
[ExportLanguageService(typeof(IDecompiledSourceService), LanguageNames.
CSharp
), Shared]
Diagnostics\Analyzers\CSharpPreferFrameworkTypeDiagnosticAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Diagnostics\Analyzers\CSharpSimplifyTypeNamesDiagnosticAnalyzer.cs (1)
21
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Diagnostics\Analyzers\CSharpUnboundIdentifiersDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Diagnostics\CSharpAnalyzerDriverService.cs (1)
17
[ExportLanguageService(typeof(IAnalyzerDriverService), LanguageNames.
CSharp
), Shared]
Diagnostics\LanguageServer\CSharpLspBuildOnlyDiagnostics.cs (1)
15
LanguageNames.
CSharp
,
DocumentationComments\CSharpDocumentationCommentFormattingService.cs (1)
14
[ExportLanguageService(typeof(IDocumentationCommentFormattingService), LanguageNames.
CSharp
), Shared]
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
21
[ExportLanguageService(typeof(IDocumentationCommentSnippetService), LanguageNames.
CSharp
), Shared]
DocumentHighlighting\CSharpDocumentHighlightsService.cs (1)
23
[ExportLanguageService(typeof(IDocumentHighlightsService), LanguageNames.
CSharp
), Shared]
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
31
[ExportLanguageServiceFactory(typeof(IEditAndContinueAnalyzer), LanguageNames.
CSharp
), Shared]
EmbeddedLanguages\Classification\CSharpEmbeddedLanguageClassificationServiceFactory.cs (1)
16
[ExportLanguageService(typeof(IEmbeddedLanguageClassificationService), LanguageNames.
CSharp
), Shared]
EmbeddedLanguages\CSharpEmbeddedLanguagesProvider.cs (1)
15
[ExportLanguageService(typeof(IEmbeddedLanguagesProvider), LanguageNames.
CSharp
, ServiceLayer.Default), Shared]
EmbeddedLanguages\CSharpJsonDetectionAnalyzer.cs (1)
11
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
EmbeddedLanguages\CSharpJsonDetectionCodeFixProvider.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.JsonDetection), Shared]
EmbeddedLanguages\CSharpJsonDiagnosticAnalyzer.cs (1)
11
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
EmbeddedLanguages\CSharpRegexDiagnosticAnalyzer.cs (1)
11
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
EmbeddedLanguages\CSharpTestEmbeddedLanguageClassifier.cs (1)
21
PredefinedEmbeddedLanguageNames.CSharpTest, [LanguageNames.
CSharp
], supportsUnannotatedAPIs: false,
EncapsulateField\CSharpEncapsulateFieldService.cs (1)
31
[ExportLanguageService(typeof(IEncapsulateFieldService), LanguageNames.
CSharp
), Shared]
ExternalAccess\Pythia\PythiaSignatureHelpProvider.cs (1)
22
[ExportSignatureHelpProvider(nameof(PythiaSignatureHelpProvider), LanguageNames.
CSharp
), Shared]
ExtractInterface\CSharpExtractInterfaceService.cs (1)
23
[ExportLanguageService(typeof(AbstractExtractInterfaceService), LanguageNames.
CSharp
), Shared]
ExtractMethod\CSharpExtractMethodService.cs (1)
15
[ExportLanguageService(typeof(IExtractMethodService), LanguageNames.
CSharp
)]
ExtractMethod\CSharpSyntaxTriviaServiceFactory.cs (1)
15
[ExportLanguageServiceFactory(typeof(ISyntaxTriviaService), LanguageNames.
CSharp
), Shared]
FindUsages\CSharpFindUsagesLSPService.cs (1)
12
[ExportLanguageService(typeof(IFindUsagesLSPService), LanguageNames.
CSharp
), Shared]
FindUsages\CSharpFindUsagesService.cs (1)
12
[ExportLanguageService(typeof(IFindUsagesService), LanguageNames.
CSharp
), Shared]
Formatting\CSharpAccessibilityModifiersNewDocumentFormattingProvider.cs (1)
21
[ExportNewDocumentFormattingProvider(LanguageNames.
CSharp
), Shared]
Formatting\CSharpNamespaceDeclarationNewDocumentFormattingProvider.cs (1)
22
[ExportNewDocumentFormattingProvider(LanguageNames.
CSharp
), Shared]
Formatting\CSharpNewDocumentFormattingService.cs (2)
13
[ExportLanguageService(typeof(INewDocumentFormattingService), LanguageNames.
CSharp
)]
19
protected override string Language => LanguageNames.
CSharp
;
Formatting\CSharpOrganizeUsingsNewDocumentFormattingProvider.cs (1)
18
[ExportNewDocumentFormattingProvider(LanguageNames.
CSharp
), Shared]
Formatting\CSharpUseProgramMainNewDocumentFormattingProvider.cs (1)
16
[ExportNewDocumentFormattingProvider(LanguageNames.
CSharp
), Shared]
FullyQualify\CSharpFullyQualifyCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.FullyQualify), Shared]
FullyQualify\CSharpFullyQualifyService.cs (1)
19
[ExportLanguageService(typeof(IFullyQualifyService), LanguageNames.
CSharp
), Shared]
GenerateConstructors\CSharpGenerateConstructorsCodeRefactoringProvider.cs (2)
23
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.GenerateConstructorFromMembers), Shared]
25
[IntentProvider(WellKnownIntents.GenerateConstructor, LanguageNames.
CSharp
)]
GenerateEqualsAndGetHashCodeFromMembers\CSharpGenerateEqualsAndGetHashCodeService.cs (1)
16
[ExportLanguageService(typeof(IGenerateEqualsAndGetHashCodeService), LanguageNames.
CSharp
), Shared]
GenerateMember\GenerateVariable\CSharpGenerateVariableService.cs (1)
23
[ExportLanguageService(typeof(IGenerateVariableService), LanguageNames.
CSharp
), Shared]
GenerateType\CSharpGenerateTypeService.cs (1)
32
[ExportLanguageService(typeof(IGenerateTypeService), LanguageNames.
CSharp
), Shared]
GoToDefinition\CSharpGoToDefinitionSymbolService.cs (1)
20
[ExportLanguageService(typeof(IGoToDefinitionSymbolService), LanguageNames.
CSharp
), Shared]
Highlighting\KeywordHighlighters\AsyncAwaitHighlighter.cs (1)
21
[ExportHighlighter(LanguageNames.
CSharp
), Shared]
Highlighting\KeywordHighlighters\CheckedExpressionHighlighter.cs (1)
18
[ExportHighlighter(LanguageNames.
CSharp
), Shared]
Highlighting\KeywordHighlighters\CheckedStatementHighlighter.cs (1)
18
[ExportHighlighter(LanguageNames.
CSharp
), Shared]
Highlighting\KeywordHighlighters\ConditionalPreprocessorHighlighter.cs (1)
17
[ExportHighlighter(LanguageNames.
CSharp
), Shared]
Highlighting\KeywordHighlighters\IfStatementHighlighter.cs (1)
22
[ExportHighlighter(LanguageNames.
CSharp
), Shared]
Highlighting\KeywordHighlighters\LockStatementHighlighter.cs (1)
18
[ExportHighlighter(LanguageNames.
CSharp
), Shared]
Highlighting\KeywordHighlighters\LoopHighlighter.cs (1)
19
[ExportHighlighter(LanguageNames.
CSharp
), Shared]
Highlighting\KeywordHighlighters\RegionHighlighter.cs (1)
19
[ExportHighlighter(LanguageNames.
CSharp
), Shared]
Highlighting\KeywordHighlighters\ReturnStatementHighlighter.cs (1)
21
[ExportHighlighter(LanguageNames.
CSharp
), Shared]
Highlighting\KeywordHighlighters\SwitchStatementHighlighter.cs (1)
20
[ExportHighlighter(LanguageNames.
CSharp
), Shared]
Highlighting\KeywordHighlighters\TryStatementHighlighter.cs (1)
18
[ExportHighlighter(LanguageNames.
CSharp
), Shared]
Highlighting\KeywordHighlighters\UnsafeStatementHighlighter.cs (1)
18
[ExportHighlighter(LanguageNames.
CSharp
), Shared]
Highlighting\KeywordHighlighters\UsingStatementHighlighter.cs (1)
18
[ExportHighlighter(LanguageNames.
CSharp
), Shared]
Highlighting\KeywordHighlighters\YieldStatementHighlighter.cs (1)
21
[ExportHighlighter(LanguageNames.
CSharp
), Shared]
ImplementInterface\CSharpImplementExplicitlyCodeRefactoringProvider.cs (1)
22
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ImplementInterfaceExplicitly), Shared]
ImplementInterface\CSharpImplementImplicitlyCodeRefactoringProvider.cs (1)
17
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ImplementInterfaceImplicitly), Shared]
InheritanceMargin\CSharpInheritanceMarginService.cs (1)
17
[ExportLanguageService(typeof(IInheritanceMarginService), LanguageNames.
CSharp
), Shared]
InitializeParameter\CSharpAddParameterCheckCodeRefactoringProvider.cs (1)
18
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.AddParameterCheck), Shared]
InitializeParameter\CSharpInitializeMemberFromParameterCodeRefactoringProvider.cs (1)
13
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.InitializeMemberFromParameter), Shared]
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider.cs (1)
33
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.InitializeMemberFromPrimaryConstructorParameter), Shared]
InlineHints\CSharpInlineHintsService.cs (1)
15
[ExportLanguageService(typeof(IInlineHintsService), LanguageNames.
CSharp
), Shared]
InlineHints\CSharpInlineParameterNameHintsService.cs (1)
21
[ExportLanguageService(typeof(IInlineParameterNameHintsService), LanguageNames.
CSharp
), Shared]
InlineHints\CSharpInlineTypeHintsService.cs (1)
17
[ExportLanguageService(typeof(IInlineTypeHintsService), LanguageNames.
CSharp
), Shared]
IntroduceParameter\CSharpIntroduceParameterCodeRefactoringProvider.cs (1)
14
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.IntroduceParameter), Shared]
IntroduceUsingStatement\CSharpIntroduceUsingStatementCodeRefactoringProvider.cs (1)
21
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.IntroduceUsingStatement), Shared]
IntroduceVariable\CSharpIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
28
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.IntroduceLocalForExpression), Shared]
IntroduceVariable\CSharpIntroduceVariableService.cs (1)
21
[ExportLanguageService(typeof(IIntroduceVariableService), LanguageNames.
CSharp
), Shared]
InvertConditional\CSharpInvertConditionalCodeRefactoringProvider.cs (1)
16
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.InvertConditional), Shared]
InvertIf\CSharpInvertIfCodeRefactoringProvider.cs (1)
24
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.InvertIf), Shared]
InvertLogical\CSharpInvertLogicalCodeRefactoringProvider.cs (1)
14
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.InvertLogical), Shared]
LanguageServices\CSharpStructuralTypeDisplayService.cs (1)
21
[ExportLanguageService(typeof(IStructuralTypeDisplayService), LanguageNames.
CSharp
), Shared]
LanguageServices\CSharpSymbolDisplayServiceFactory.cs (1)
15
[ExportLanguageServiceFactory(typeof(ISymbolDisplayService), LanguageNames.
CSharp
), Shared]
LineSeparators\CSharpLineSeparatorService.cs (1)
21
[ExportLanguageService(typeof(ILineSeparatorService), LanguageNames.
CSharp
), Shared]
MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeRefactoringProvider.cs (1)
16
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.MakeLocalFunctionStatic), Shared]
MetadataAsSource\CSharpMetadataAsSourceServiceFactory.cs (1)
15
[ExportLanguageServiceFactory(typeof(IMetadataAsSourceService), LanguageNames.
CSharp
), Shared]
MoveDeclarationNearReference\CSharpMoveDeclarationNearReferenceCodeRefactoringProvider.cs (1)
13
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.MoveDeclarationNearReference), Shared]
MoveToNamespace\CSharpMoveToNamespaceService.cs (1)
14
[ExportLanguageService(typeof(IMoveToNamespaceService), LanguageNames.
CSharp
), Shared]
NameTupleElement\CSharpNameTupleElementCodeRefactoringProvider.cs (1)
17
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.NameTupleElement), Shared]
NavigateTo\CSharpNavigateToSearchService.cs (1)
12
[ExportLanguageService(typeof(INavigateToSearchService), LanguageNames.
CSharp
), Shared]
Navigation\CSharpFindDefinitionService.cs (1)
12
[ExportLanguageService(typeof(INavigableItemsService), LanguageNames.
CSharp
), Shared]
NavigationBar\CSharpNavigationBarItemService.cs (1)
23
[ExportLanguageService(typeof(INavigationBarItemService), LanguageNames.
CSharp
), Shared]
Options\CSharpEditorConfigOptionsEnumerator.cs (1)
16
[EditorConfigOptionsEnumerator(LanguageNames.
CSharp
), Shared]
Organizing\CSharpOrganizingService.cs (1)
19
[ExportLanguageService(typeof(IOrganizingService), LanguageNames.
CSharp
), Shared]
Organizing\Organizers\ClassDeclarationOrganizer.cs (1)
16
[ExportSyntaxNodeOrganizer(LanguageNames.
CSharp
), Shared]
Organizing\Organizers\ConstructorDeclarationOrganizer.cs (1)
16
[ExportSyntaxNodeOrganizer(LanguageNames.
CSharp
), Shared]
Organizing\Organizers\DestructorDeclarationOrganizer.cs (1)
16
[ExportSyntaxNodeOrganizer(LanguageNames.
CSharp
), Shared]
Organizing\Organizers\EnumDeclarationOrganizer.cs (1)
16
[ExportSyntaxNodeOrganizer(LanguageNames.
CSharp
), Shared]
Organizing\Organizers\EventDeclarationOrganizer.cs (1)
16
[ExportSyntaxNodeOrganizer(LanguageNames.
CSharp
), Shared]
Organizing\Organizers\EventFieldDeclarationOrganizer.cs (1)
16
[ExportSyntaxNodeOrganizer(LanguageNames.
CSharp
), Shared]
Organizing\Organizers\FieldDeclarationOrganizer.cs (1)
16
[ExportSyntaxNodeOrganizer(LanguageNames.
CSharp
), Shared]
Organizing\Organizers\IndexerDeclarationOrganizer.cs (1)
16
[ExportSyntaxNodeOrganizer(LanguageNames.
CSharp
), Shared]
Organizing\Organizers\InterfaceDeclarationOrganizer.cs (1)
16
[ExportSyntaxNodeOrganizer(LanguageNames.
CSharp
), Shared]
Organizing\Organizers\MethodDeclarationOrganizer.cs (1)
16
[ExportSyntaxNodeOrganizer(LanguageNames.
CSharp
), Shared]
Organizing\Organizers\OperatorDeclarationOrganizer.cs (1)
16
[ExportSyntaxNodeOrganizer(LanguageNames.
CSharp
), Shared]
Organizing\Organizers\PropertyDeclarationOrganizer.cs (1)
16
[ExportSyntaxNodeOrganizer(LanguageNames.
CSharp
), Shared]
Organizing\Organizers\RecordDeclarationOrganizer.cs (1)
14
[ExportSyntaxNodeOrganizer(LanguageNames.
CSharp
), Shared]
Organizing\Organizers\StructDeclarationOrganizer.cs (1)
16
[ExportSyntaxNodeOrganizer(LanguageNames.
CSharp
), Shared]
QuickInfo\CSharpDiagnosticAnalyzerQuickInfoProvider.cs (1)
22
[ExportQuickInfoProvider(QuickInfoProviderNames.DiagnosticAnalyzer, LanguageNames.
CSharp
), Shared]
QuickInfo\CSharpEmbeddedLanguageQuickInfoProvider.cs (2)
16
[ExportQuickInfoProvider(QuickInfoProviderNames.EmbeddedLanguages, LanguageNames.
CSharp
)]
24
: base(LanguageNames.
CSharp
, CSharpEmbeddedLanguagesProvider.Info, CSharpSyntaxKinds.Instance, services)
QuickInfo\CSharpQuickInfoSevice.cs (1)
13
[ExportLanguageServiceFactory(typeof(QuickInfoService), LanguageNames.
CSharp
), Shared]
QuickInfo\CSharpSemanticQuickInfoProvider.cs (1)
24
[ExportQuickInfoProvider(QuickInfoProviderNames.Semantic, LanguageNames.
CSharp
), Shared]
QuickInfo\CSharpSyntacticQuickInfoProvider.cs (1)
19
[ExportQuickInfoProvider(QuickInfoProviderNames.Syntactic, LanguageNames.
CSharp
), Shared]
RelatedDocuments\CSharpRelatedDocumentsService.cs (1)
17
[ExportLanguageService(typeof(IRelatedDocumentsService), LanguageNames.
CSharp
), Shared]
RemoveUnusedVariable\CSharpRemoveUnusedVariableCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnusedVariable), Shared]
Rename\CSharpRenameIssuesService.cs (1)
15
[ExportLanguageService(typeof(IRenameIssuesService), LanguageNames.
CSharp
), Shared]
ReplaceConditionalWithStatements\CSharpReplaceConditionalWithStatementsCodeRefactoringProvider.cs (1)
17
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ReplaceConditionalWithStatements), Shared]
ReplaceDocCommentTextWithTag\CSharpReplaceDocCommentTextWithTagCodeRefactoringProvider.cs (1)
13
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ReplaceDocCommentTextWithTag), Shared]
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (1)
27
[ExportLanguageService(typeof(IReplaceMethodWithPropertyService), LanguageNames.
CSharp
), Shared]
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (1)
29
[ExportLanguageService(typeof(IReplacePropertyWithMethodsService), LanguageNames.
CSharp
), Shared]
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (1)
26
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.ReverseForStatement), Shared]
SemanticSearch\CSharpSemanticSearchService.cs (2)
18
[ExportLanguageService(typeof(ISemanticSearchService), LanguageNames.
CSharp
), Shared]
30
var syntaxTreeFactory = services.GetRequiredLanguageService<ISyntaxTreeFactoryService>(LanguageNames.
CSharp
);
SemanticSearch\CSharpSemanticSearchUtilities.cs (1)
16
Language = LanguageNames.
CSharp
,
SignatureHelp\AttributeSignatureHelpProvider.cs (1)
26
[ExportSignatureHelpProvider("AttributeSignatureHelpProvider", LanguageNames.
CSharp
), Shared]
SignatureHelp\ConstructorInitializerSignatureHelpProvider.cs (1)
23
[ExportSignatureHelpProvider("ConstructorInitializerSignatureHelpProvider", LanguageNames.
CSharp
), Shared]
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
28
[ExportSignatureHelpProvider("ElementAccessExpressionSignatureHelpProvider", LanguageNames.
CSharp
), Shared]
SignatureHelp\GenericNamePartiallyWrittenSignatureHelpProvider.cs (1)
17
[ExportSignatureHelpProvider("GenericNamePartiallyWrittenSignatureHelpProvider", LanguageNames.
CSharp
), Shared]
SignatureHelp\GenericNameSignatureHelpProvider.cs (1)
25
[ExportSignatureHelpProvider("GenericNameSignatureHelpProvider", LanguageNames.
CSharp
), Shared]
SignatureHelp\InitializerExpressionSignatureHelpProvider.cs (1)
20
[ExportSignatureHelpProvider(nameof(InitializerExpressionSignatureHelpProvider), LanguageNames.
CSharp
), Shared]
SignatureHelp\InvocationExpressionSignatureHelpProvider.cs (1)
21
[ExportSignatureHelpProvider("InvocationExpressionSignatureHelpProvider", LanguageNames.
CSharp
), Shared]
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider.cs (1)
20
[ExportSignatureHelpProvider("ObjectCreationExpressionSignatureHelpProvider", LanguageNames.
CSharp
), Shared]
SignatureHelp\PrimaryConstructorBaseTypeSignatureHelpProvider.cs (1)
29
[ExportSignatureHelpProvider("PrimaryConstructorBaseTypeSignatureHelpProvider", LanguageNames.
CSharp
), Shared]
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (1)
23
[ExportSignatureHelpProvider("TupleSignatureHelpProvider", LanguageNames.
CSharp
), Shared]
SimplifyThisOrMe\CSharpSimplifyThisOrMeCodeFixProvider.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.SimplifyThisOrMe), Shared]
SimplifyThisOrMe\CSharpSimplifyThisOrMeDiagnosticAnalyzer.cs (1)
17
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
SimplifyTypeNames\SimplifyTypeNamesCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.SimplifyNames), Shared]
Snippets\CSharpClassSnippetProvider.cs (1)
20
[ExportSnippetProvider(nameof(ISnippetProvider), LanguageNames.
CSharp
), Shared]
Snippets\CSharpConsoleSnippetProvider.cs (1)
15
[ExportSnippetProvider(nameof(ISnippetProvider), LanguageNames.
CSharp
), Shared]
Snippets\CSharpConstructorSnippetProvider.cs (1)
25
[ExportSnippetProvider(nameof(ISnippetProvider), LanguageNames.
CSharp
), Shared]
Snippets\CSharpDoWhileLoopSnippetProvider.cs (1)
20
[ExportSnippetProvider(nameof(ISnippetProvider), LanguageNames.
CSharp
), Shared]
Snippets\CSharpElseSnippetProvider.cs (1)
18
[ExportSnippetProvider(nameof(ISnippetProvider), LanguageNames.
CSharp
), Shared]
Snippets\CSharpEnumSnippetProvider.cs (1)
20
[ExportSnippetProvider(nameof(ISnippetProvider), LanguageNames.
CSharp
), Shared]
Snippets\CSharpForEachLoopSnippetProvider.cs (1)
29
[ExportSnippetProvider(nameof(ISnippetProvider), LanguageNames.
CSharp
), Shared]
Snippets\CSharpForLoopSnippetProvider.cs (1)
16
[ExportSnippetProvider(nameof(ISnippetProvider), LanguageNames.
CSharp
), Shared]
Snippets\CSharpIfSnippetProvider.cs (1)
18
[ExportSnippetProvider(nameof(ISnippetProvider), LanguageNames.
CSharp
), Shared]
Snippets\CSharpInterfaceSnippetProvider.cs (1)
20
[ExportSnippetProvider(nameof(ISnippetProvider), LanguageNames.
CSharp
), Shared]
Snippets\CSharpIntMainSnippetProvider.cs (1)
21
[ExportSnippetProvider(nameof(ISnippetProvider), LanguageNames.
CSharp
), Shared]
Snippets\CSharpLockSnippetProvider.cs (1)
19
[ExportSnippetProvider(nameof(ISnippetProvider), LanguageNames.
CSharp
), Shared]
Snippets\CSharpPropgSnippetProvider.cs (1)
17
[ExportSnippetProvider(nameof(ISnippetProvider), LanguageNames.
CSharp
), Shared]
Snippets\CSharpPropiSnippetProvider.cs (1)
19
[ExportSnippetProvider(nameof(ISnippetProvider), LanguageNames.
CSharp
), Shared]
Snippets\CSharpProprSnippetProvider.cs (1)
19
[ExportSnippetProvider(nameof(ISnippetProvider), LanguageNames.
CSharp
), Shared]
Snippets\CSharpPropSnippetProvider.cs (1)
17
[ExportSnippetProvider(nameof(ISnippetProvider), LanguageNames.
CSharp
), Shared]
Snippets\CSharpReversedForLoopSnippetProvider.cs (1)
16
[ExportSnippetProvider(nameof(ISnippetProvider), LanguageNames.
CSharp
), Shared]
Snippets\CSharpSnippetFunctionService.cs (1)
16
[ExportLanguageService(typeof(SnippetFunctionService), LanguageNames.
CSharp
), Shared]
Snippets\CSharpSnippetService.cs (1)
14
[ExportLanguageService(typeof(ISnippetService), LanguageNames.
CSharp
), Shared]
Snippets\CSharpStructSnippetProvider.cs (1)
20
[ExportSnippetProvider(nameof(ISnippetProvider), LanguageNames.
CSharp
), Shared]
Snippets\CSharpVoidMainSnippetProvider.cs (1)
21
[ExportSnippetProvider(nameof(ISnippetProvider), LanguageNames.
CSharp
), Shared]
Snippets\CSharpWhileLoopSnippetProvider.cs (1)
18
[ExportSnippetProvider(nameof(ISnippetProvider), LanguageNames.
CSharp
), Shared]
SolutionCrawler\CSharpDocumentDifferenceService.cs (1)
14
[ExportLanguageService(typeof(IDocumentDifferenceService), LanguageNames.
CSharp
), Shared]
SpellCheck\CSharpSpellcheckCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.SpellCheck), Shared]
SpellCheck\CSharpSpellCheckSpanService.cs (1)
12
[ExportLanguageService(typeof(ISpellCheckSpanService), LanguageNames.
CSharp
), Shared]
SplitOrMergeIfStatements\CSharpIfLikeStatementGenerator.cs (1)
20
[ExportLanguageService(typeof(IIfLikeStatementGenerator), LanguageNames.
CSharp
), Shared]
SplitOrMergeIfStatements\CSharpMergeConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
17
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.MergeConsecutiveIfStatements), Shared]
SplitOrMergeIfStatements\CSharpMergeNestedIfStatementsCodeRefactoringProvider.cs (1)
17
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.MergeNestedIfStatements), Shared]
SplitOrMergeIfStatements\CSharpSplitIntoConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
14
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.SplitIntoConsecutiveIfStatements), Shared]
SplitOrMergeIfStatements\CSharpSplitIntoNestedIfStatementsCodeRefactoringProvider.cs (1)
14
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.SplitIntoNestedIfStatements), Shared]
src\Analyzers\CSharp\Analyzers\AddAccessibilityModifiers\CSharpAddAccessibilityModifiersDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (1)
19
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredPatternParenthesesDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\CodeStyle\CSharpAnalyzerOptionsProvider.cs (1)
92
=> new(provider.Options, LanguageNames.
CSharp
);
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToBlockScopedNamespaceDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToFileScopedNamespaceDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertToProgramMainDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertToTopLevelStatementsDiagnosticAnalyzer.cs (1)
18
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.cs (1)
20
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\ConvertTypeofToNameof\CSharpConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\FileHeaders\CSharpFileHeaderDiagnosticAnalyzer.cs (1)
10
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\ForEachCast\CSharpForEachCastDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\Formatting\CSharpFormattingAnalyzer.cs (1)
11
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
33
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
27
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\MakeAnonymousFunctionStatic\MakeAnonymousFunctionStaticDiagnosticAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\MakeFieldReadonly\CSharpMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\MakeLocalFunctionStatic\MakeLocalFunctionStaticDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
22
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\MakeStructReadOnly\CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\MatchFolderAndNamespace\CSharpMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
22
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\MisplacedUsingDirectives\MisplacedUsingDirectivesDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\NamingStyle\CSharpNamingStyleDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveStatementPlacement\CSharpConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
32
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementDiagnosticAnalyzer.cs (1)
17
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\NewLines\MultipleBlankLines\CSharpMultipleBlankLinesDiagnosticAnalyzer.cs (1)
11
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\OrderModifiers\CSharpOrderModifiersDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\PopulateSwitch\CSharpPopulateSwitchExpressionDiagnosticAnalyzer.cs (1)
11
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\PopulateSwitch\CSharpPopulateSwitchStatementDiagnosticAnalyzer.cs (1)
11
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\QualifyMemberAccess\CSharpQualifyMemberAccessDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionDiagnosticAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveRedundantEquality\CSharpRemoveRedundantEqualityDiagnosticAnalyzer.cs (1)
11
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryCast\CSharpRemoveUnnecessaryCastDiagnosticAnalyzer.cs (1)
19
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryDiscardDesignation\CSharpRemoveUnnecessaryDiscardDesignationDiagnosticAnalyzer.cs (1)
17
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryImports\CSharpRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
22
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
27
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
21
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryParentheses\CSharpRemoveUnnecessaryExpressionParenthesesDiagnosticAnalyzer.cs (1)
17
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryParentheses\CSharpRemoveUnnecessaryPatternParenthesesDiagnosticAnalyzer.cs (1)
17
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
10
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\CSharpRemoveUnreachableCodeDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnusedMembers\CSharpRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\RemoveUnusedParametersAndValues\CSharpRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
18
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\SimplifyBooleanExpression\CSharpSimplifyConditionalDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\SimplifyInterpolation\CSharpSimplifyInterpolationDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\SimplifyLinqExpression\CSharpSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternDiagnosticAnalyzer.cs (1)
23
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseAutoProperty\CSharpUseAutoPropertyAnalyzer.cs (1)
20
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCoalesceExpression\CSharpUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.cs (1)
17
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCoalesceExpression\CSharpUseCoalesceExpressionForNullableTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCoalesceExpression\CSharpUseCoalesceExpressionForTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForArrayDiagnosticAnalyzer.cs (1)
23
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (1)
23
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForCreateDiagnosticAnalyzer.cs (1)
17
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForEmptyDiagnosticAnalyzer.cs (1)
18
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
28
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs (1)
19
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocDiagnosticAnalyzer.cs (1)
18
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerDiagnosticAnalyzer.cs (1)
23
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (1)
27
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseConditionalExpression\CSharpUseConditionalExpressionForAssignmentDiagnosticAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseConditionalExpression\CSharpUseConditionalExpressionForReturnDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (1)
21
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseDefaultLiteral\CSharpUseDefaultLiteralDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseExpressionBody\UseExpressionBodyDiagnosticAnalyzer.cs (1)
15
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (1)
19
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpUseExplicitTypeDiagnosticAnalyzer.cs (1)
10
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpUseImplicitTypeDiagnosticAnalyzer.cs (1)
10
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
42
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (1)
34
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseInferredMemberName\CSharpUseInferredMemberNameDiagnosticAnalyzer.cs (1)
18
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseIsNullCheckForReferenceEqualsDiagnosticAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckDiagnosticAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
41
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseNameofInNullableAttribute\CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (1)
26
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseNullPropagation\CSharpUseNullPropagationDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseObjectInitializer\CSharpUseObjectInitializerDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsDiagnosticAnalyzer.cs (1)
18
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndMemberAccessDiagnosticAnalyzer.cs (1)
25
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
29
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
32
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpUseNotPatternDiagnosticAnalyzer.cs (1)
25
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
51
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
54
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
37
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseThrowExpression\CSharpUseThrowExpressionDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseTupleSwap\CSharpUseTupleSwapDiagnosticAnalyzer.cs (1)
32
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfDiagnosticAnalyzer.cs (1)
30
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
25
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\Analyzers\ValidateFormatString\CSharpValidateFormatStringDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
src\Analyzers\CSharp\CodeFixes\AddAccessibilityModifiers\CSharpAddAccessibilityModifiersCodeFixProvider.cs (1)
13
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddAccessibilityModifiers), Shared]
src\Analyzers\CSharp\CodeFixes\AddAccessibilityModifiers\CSharpAddAccessibilityModifiersService.cs (1)
12
[ExportLanguageService(typeof(IAddAccessibilityModifiersService), LanguageNames.
CSharp
), Shared]
src\Analyzers\CSharp\CodeFixes\AddAnonymousTypeMemberName\CSharpAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddAnonymousTypeMemberName), Shared]
src\Analyzers\CSharp\CodeFixes\AddBraces\CSharpAddBracesCodeFixProvider.cs (1)
17
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddBraces), Shared]
src\Analyzers\CSharp\CodeFixes\AddExplicitCast\CSharpAddExplicitCastCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddExplicitCast), Shared]
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
24
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddInheritdoc), Shared]
src\Analyzers\CSharp\CodeFixes\AddObsoleteAttribute\CSharpAddObsoleteAttributeCodeFixProvider.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddObsoleteAttribute), Shared]
src\Analyzers\CSharp\CodeFixes\AddParameter\CSharpAddParameterCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddParameter), Shared]
src\Analyzers\CSharp\CodeFixes\AliasAmbiguousType\CSharpAliasAmbiguousTypeCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AliasAmbiguousType), Shared]
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAboveReturnCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AssignOutParametersAboveReturn), Shared]
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAtStartCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AssignOutParametersAtStart), Shared]
src\Analyzers\CSharp\CodeFixes\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddParenthesesAroundConditionalExpressionInInterpolatedString), Shared]
src\Analyzers\CSharp\CodeFixes\ConflictMarkerResolution\CSharpResolveConflictMarkerCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ConflictMarkerResolution), Shared]
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceCodeFixProvider.cs (1)
24
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ConvertNamespace), Shared]
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
29
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ConvertSwitchStatementToExpression), Shared]
src\Analyzers\CSharp\CodeFixes\ConvertToAsync\CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
18
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ConvertToAsync), Shared]
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
488
if (documentEditor.OriginalDocument.Project.Language != LanguageNames.
CSharp
)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\CSharpConvertToRecordCodeFixProvider.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ConvertToRecord), Shared]
src\Analyzers\CSharp\CodeFixes\ConvertTypeOfToNameOf\CSharpConvertTypeOfToNameOfCodeFixProvider.cs (1)
17
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ConvertTypeOfToNameOf), Shared]
src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (1)
27
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.DisambiguateSameVariable), Shared]
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (1)
18
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddDocCommentNodes), Shared]
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpRemoveDocCommentNodeCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveDocCommentNode), Shared]
src\Analyzers\CSharp\CodeFixes\FileHeaders\CSharpFileHeaderCodeFixProvider.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.FileHeader), Shared]
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.FixIncorrectConstraint), Shared]
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (1)
25
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.FixReturnType), Shared]
src\Analyzers\CSharp\CodeFixes\ForEachCast\CSharpForEachCastCodeFixProvider.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ForEachCast), Shared]
src\Analyzers\CSharp\CodeFixes\Formatting\CSharpFormattingCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.FixFormatting), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\CSharpGenerateConstructorService.cs (1)
23
[ExportLanguageService(typeof(IGenerateConstructorService), LanguageNames.
CSharp
), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\GenerateConstructorCodeFixProvider.cs (1)
35
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.GenerateConstructor), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateDefaultConstructors\CSharpGenerateDefaultConstructorsCodeFixProvider.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.GenerateDefaultConstructors), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateDefaultConstructors\CSharpGenerateDefaultConstructorsService.cs (1)
20
[ExportLanguageService(typeof(IGenerateDefaultConstructorsService), LanguageNames.
CSharp
), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateEnumMember\CSharpGenerateEnumMemberService.cs (1)
16
[ExportLanguageService(typeof(IGenerateEnumMemberService), LanguageNames.
CSharp
), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateEnumMember\GenerateEnumMemberCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.GenerateEnumMember), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateConversionCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.GenerateConversion), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.GenerateDeconstructMethod), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateMethodCodeFixProvider.cs (1)
43
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.GenerateMethod), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateConversionService.cs (1)
22
[ExportLanguageService(typeof(IGenerateConversionService), LanguageNames.
CSharp
), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateDeconstructMethodService.cs (1)
22
[ExportLanguageService(typeof(IGenerateDeconstructMemberService), LanguageNames.
CSharp
), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateMethodService.cs (1)
23
[ExportLanguageService(typeof(IGenerateParameterizedMemberService), LanguageNames.
CSharp
), Shared]
src\Analyzers\CSharp\CodeFixes\GenerateVariable\CSharpGenerateVariableCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.GenerateVariable), Shared]
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddNew), Shared]
src\Analyzers\CSharp\CodeFixes\ImplementAbstractClass\CSharpImplementAbstractClassCodeFixProvider.cs (1)
13
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ImplementAbstractClass), Shared]
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ImplementInterface), Shared]
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
24
[ExportLanguageService(typeof(IImplementInterfaceService), LanguageNames.
CSharp
), Shared]
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
30
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.InlineDeclaration), Shared]
src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (1)
26
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.InvokeDelegateWithConditionalAccess), Shared]
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpAddYieldCodeFixProvider.cs (1)
24
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ChangeToYield), Shared]
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpChangeToIEnumerableCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ChangeReturnType), Shared]
src\Analyzers\CSharp\CodeFixes\MakeAnonymousFunctionStatic\CSharpMakeAnonymousFunctionStaticCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeAnonymousFunctionStatic), Shared]
src\Analyzers\CSharp\CodeFixes\MakeFieldReadonly\CSharpMakeFieldReadonlyCodeFixProvider.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeFieldReadonly), Shared]
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixProvider.cs (1)
17
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeLocalFunctionStatic), Shared]
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (1)
22
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.PassInCapturedVariables), Shared]
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (1)
22
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeMemberRequired), Shared]
src\Analyzers\CSharp\CodeFixes\MakeMemberStatic\CSharpMakeMemberStaticCodeFixProvider.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeMemberStatic), Shared]
src\Analyzers\CSharp\CodeFixes\MakeMethodAsynchronous\CSharpMakeMethodAsynchronousCodeFixProvider.cs (1)
24
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.AddAsync), Shared]
src\Analyzers\CSharp\CodeFixes\MakeMethodSynchronous\CSharpMakeMethodSynchronousCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeMethodSynchronous), Shared]
src\Analyzers\CSharp\CodeFixes\MakeRefStruct\MakeRefStructCodeFixProvider.cs (1)
18
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeRefStruct), Shared]
src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeStatementAsynchronous), Shared]
src\Analyzers\CSharp\CodeFixes\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeStructFieldsWritable), Shared]
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeStructMemberReadOnly), Shared]
src\Analyzers\CSharp\CodeFixes\MakeStructReadOnly\CSharpMakeStructReadOnlyCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeStructReadOnly), Shared]
src\Analyzers\CSharp\CodeFixes\MakeTypeAbstract\CSharpMakeTypeAbstractCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeTypeAbstract), Shared]
src\Analyzers\CSharp\CodeFixes\MakeTypePartial\CSharpMakeTypePartialCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MakeTypePartial), Shared]
src\Analyzers\CSharp\CodeFixes\MatchFolderAndNamespace\CSharpChangeNamespaceToMatchFolderCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ChangeNamespaceToMatchFolder), Shared]
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
34
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.MoveMisplacedUsingDirectives), Shared]
src\Analyzers\CSharp\CodeFixes\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ArrowExpressionClausePlacement), Shared]
src\Analyzers\CSharp\CodeFixes\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ConditionalExpressionPlacement), Shared]
src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ConsecutiveBracePlacement), Shared]
src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (1)
22
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ConstructorInitializerPlacement), Shared]
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (1)
25
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.EmbeddedStatementPlacement), Shared]
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
24
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.DeclareAsNullable), Shared]
src\Analyzers\CSharp\CodeFixes\OrderModifiers\CSharpOrderModifiersCodeFixProvider.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.OrderModifiers), Shared]
src\Analyzers\CSharp\CodeFixes\PopulateSwitch\CSharpPopulateSwitchExpressionCodeFixProvider.cs (1)
18
[ExportCodeFixProvider(LanguageNames.
CSharp
,
src\Analyzers\CSharp\CodeFixes\PopulateSwitch\CSharpPopulateSwitchStatementCodeFixProvider.cs (1)
13
[ExportCodeFixProvider(LanguageNames.
CSharp
,
src\Analyzers\CSharp\CodeFixes\QualifyMemberAccess\CSharpQualifyMemberAccessCodeFixProvider.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.QualifyMemberAccess), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveAsyncModifier\CSharpRemoveAsyncModifierCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveAsyncModifier), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveConfusingSuppression), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveInKeyword\RemoveInKeywordCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveIn), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveNewModifier\RemoveNewModifierCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveNew), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryCast\CSharpRemoveUnnecessaryCastCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnnecessaryCast), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryDiscardDesignation\CSharpRemoveUnnecessaryDiscardDesignationCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnnecessaryDiscardDesignation), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryImports\CSharpRemoveUnnecessaryImportsCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnnecessaryImports), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionCodeFixProvider.cs (1)
26
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnnecessaryLambdaExpression), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnnecessaryNullableDirective)]
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryParentheses\CSharpRemoveUnnecessaryParenthesesCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnnecessaryParentheses), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnreachableCode), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveUnusedLocalFunction\CSharpRemoveUnusedLocalFunctionCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnusedLocalFunction), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveUnusedMembers\CSharpRemoveUnusedMembersCodeFixProvider.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnusedMembers), Shared]
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
24
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.RemoveUnusedValues), Shared]
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
22
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.ReplaceDefaultLiteral), Shared]
src\Analyzers\CSharp\CodeFixes\SimplifyInterpolation\CSharpSimplifyInterpolationCodeFixProvider.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.SimplifyInterpolation), Shared]
src\Analyzers\CSharp\CodeFixes\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.SimplifyLinqTypeCheckAndCast), Shared]
src\Analyzers\CSharp\CodeFixes\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternCodeFixProvider.cs (1)
24
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.SimplifyPropertyPattern), Shared]
src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.TransposeRecordKeyword), Shared]
src\Analyzers\CSharp\CodeFixes\UnsealClass\CSharpUnsealClassCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UnsealClass), Shared]
src\Analyzers\CSharp\CodeFixes\UpdateProjectToAllowUnsafe\CSharpUpdateProjectToAllowUnsafeCodeFixProvider.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UpdateProjectToAllowUnsafe), Shared]
src\Analyzers\CSharp\CodeFixes\UpgradeProject\CSharpUpgradeProjectCodeFixProvider.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UpgradeProject), Shared]
src\Analyzers\CSharp\CodeFixes\UseCoalesceExpression\CSharpUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCoalesceExpressionForIfNullStatementCheck), Shared]
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
25
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCollectionExpressionForArray), Shared]
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (1)
27
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCollectionExpressionForBuilder), Shared]
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForCreateCodeFixProvider.cs (1)
26
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCollectionExpressionForCreate), Shared]
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForEmptyCodeFixProvider.cs (1)
22
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCollectionExpressionForEmpty), Shared]
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
34
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCollectionExpressionForFluent), Shared]
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForNewCodeFixProvider.cs (1)
25
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCollectionExpressionForNew), Shared]
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCollectionExpressionForStackAlloc), Shared]
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider.cs (1)
17
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCollectionInitializer), Shared]
src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundAssignmentCodeFixProvider.cs (1)
16
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCompoundAssignment), Shared]
src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentCodeFixProvider.cs (1)
26
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseCompoundCoalesceAssignment), Shared]
src\Analyzers\CSharp\CodeFixes\UseConditionalExpression\CSharpUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseConditionalExpressionForAssignment), Shared]
src\Analyzers\CSharp\CodeFixes\UseConditionalExpression\CSharpUseConditionalExpressionForReturnCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseConditionalExpressionForReturn), Shared]
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (1)
25
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseDeconstruction), Shared]
src\Analyzers\CSharp\CodeFixes\UseDefaultLiteral\CSharpUseDefaultLiteralCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseDefaultLiteral), Shared]
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseExplicitArrayInExpressionTree), Shared]
src\Analyzers\CSharp\CodeFixes\UseExplicitTypeForConst\UseExplicitTypeForConstCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseExplicitTypeForConst), Shared]
src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseExpressionBody), Shared]
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseExpressionBodyForLambda), Shared]
src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
27
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseImplicitObjectCreation), Shared]
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (1)
27
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseExplicitType), Shared]
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseImplicitTypeCodeFixProvider.cs (1)
18
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseImplicitType), Shared]
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseIndexOperatorCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseIndexOperator), Shared]
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (1)
31
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseRangeOperator), Shared]
src\Analyzers\CSharp\CodeFixes\UseInferredMemberName\CSharpUseInferredMemberNameCodeFixProvider.cs (1)
13
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseInferredMemberName), Shared]
src\Analyzers\CSharp\CodeFixes\UseInterpolatedVerbatimString\CSharpUseInterpolatedVerbatimStringCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseInterpolatedVerbatimString), Shared]
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorCodeFixProvider.cs (1)
26
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseIsNullCheckForCastAndEqualityOperator), Shared]
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForReferenceEqualsCodeFixProvider.cs (1)
18
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseIsNullCheckForReferenceEquals), Shared]
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckCodeFixProvider.cs (1)
22
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseNullCheckOverTypeCheck), Shared]
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
32
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseLocalFunction), Shared]
src\Analyzers\CSharp\CodeFixes\UseNameofInAttribute\CSharpUseNameofInAttributeCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseNameofInAttribute), Shared]
src\Analyzers\CSharp\CodeFixes\UseNullPropagation\CSharpUseNullPropagationCodeFixProvider.cs (1)
14
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseNullPropagation), Shared]
src\Analyzers\CSharp\CodeFixes\UseObjectInitializer\CSharpUseObjectInitializerCodeFixProvider.cs (1)
24
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseObjectInitializer), Shared]
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
28
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UsePatternCombinators), Shared]
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (1)
25
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UsePatternMatchingAsAndMemberAccess), Shared]
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
25
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UsePatternMatchingAsAndNullCheck), Shared]
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpIsAndCastCheckCodeFixProvider.cs (1)
22
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UsePatternMatchingIsAndCastCheck), Shared]
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpUseNotPatternCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseNotPattern), Shared]
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
35
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UsePrimaryConstructor), Shared]
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
31
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseSimpleUsingStatement), Shared]
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
24
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseSystemThreadingLock), Shared]
src\Analyzers\CSharp\CodeFixes\UseThrowExpression\UseThrowExpressionCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
,
src\Analyzers\CSharp\CodeFixes\UseTupleSwap\CSharpUseTupleSwapCodeFixProvider.cs (1)
22
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseTupleSwap), Shared]
src\Analyzers\CSharp\CodeFixes\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseUnboundGenericTypeInNameOf), Shared]
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
25
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseUtf8StringLiteral), Shared]
StringIndentation\CSharpStringIndentationService.cs (1)
22
[ExportLanguageService(typeof(IStringIndentationService), LanguageNames.
CSharp
), Shared]
Structure\CSharpBlockStructureService.cs (2)
16
[ExportLanguageServiceFactory(typeof(BlockStructureService), LanguageNames.
CSharp
), Shared]
36
public override string Language => LanguageNames.
CSharp
;
SyncNamespaces\CSharpSyncNamespacesService.cs (1)
17
[ExportLanguageService(typeof(ISyncNamespacesService), LanguageNames.
CSharp
), Shared]
TaskList\CSharpTaskListService.cs (1)
18
[ExportLanguageService(typeof(ITaskListService), LanguageNames.
CSharp
), Shared]
Testing\CSharpTestMethodFinder.cs (1)
16
[ExportLanguageService(typeof(ITestMethodFinder), LanguageNames.
CSharp
), Shared]
UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
30
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UseAutoProperty), Shared]
UseExpressionBody\UseExpressionBodyCodeRefactoringProvider.cs (1)
29
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.UseExpressionBody), Shared]
UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeRefactoringProvider.cs (1)
24
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.UseExpressionBodyForLambda), Shared]
UseNamedArguments\CSharpUseNamedArgumentsCodeRefactoringProvider.cs (1)
20
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.UseNamedArguments), Shared]
UsePatternMatching\CSharpIsAndCastCheckWithoutNameCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = PredefinedCodeFixProviderNames.UsePatternMatchingIsAndCastCheckWithoutName), Shared]
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
34
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Wrapping\CSharpWrappingCodeRefactoringProvider.cs (1)
18
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.Wrapping), Shared]
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (56)
CodeActions\AbstractCSharpCodeActionTest_NoEditor.cs (1)
16
protected internal override string GetLanguage() => LanguageNames.
CSharp
;
ConvertAutoPropertyToFullProperty\ConvertAutoPropertyToFullPropertyTests.cs (2)
1224
""", LanguageNames.
CSharp
, file1, file2);
1271
""", LanguageNames.
CSharp
, file1, file2);
ConvertTupleToStruct\ConvertTupleToStructTests.cs (2)
34
=> new(LanguageNames.
CSharp
)
54
options ??= new OptionsCollection(LanguageNames.
CSharp
);
Diagnostics\AbstractCSharpDiagnosticProviderBasedUserDiagnosticTest_NoEditor.cs (1)
25
protected internal override string GetLanguage() => LanguageNames.
CSharp
;
Diagnostics\Configuration\ConfigureCodeStyle\BooleanCodeStyleOptionConfigurationTests.cs (1)
22
protected internal override string GetLanguage() => LanguageNames.
CSharp
;
Diagnostics\Configuration\ConfigureCodeStyle\EnumCodeStyleOptionConfigurationTests.cs (1)
22
protected internal override string GetLanguage() => LanguageNames.
CSharp
;
Diagnostics\Configuration\ConfigureCodeStyle\MultipleCodeStyleOptionConfigurationTests.cs (1)
33
protected internal override string GetLanguage() => LanguageNames.
CSharp
;
Diagnostics\Configuration\ConfigureSeverity\AllAnalyzersSeverityConfigurationTests.cs (1)
43
protected internal override string GetLanguage() => LanguageNames.
CSharp
;
Diagnostics\Configuration\ConfigureSeverity\CategoryBasedSeverityConfigurationTests.cs (1)
43
protected internal override string GetLanguage() => LanguageNames.
CSharp
;
Diagnostics\Configuration\ConfigureSeverity\CodeStyleOptionBasedSeverityConfigurationTests.cs (1)
22
protected internal override string GetLanguage() => LanguageNames.
CSharp
;
Diagnostics\Configuration\ConfigureSeverity\CSharpCodeStyleOptionBasedSeverityConfigurationTests.cs (1)
22
protected internal override string GetLanguage() => LanguageNames.
CSharp
;
Diagnostics\Configuration\ConfigureSeverity\DotNetDiagnosticSeverityBasedSeverityConfigurationTests.cs (1)
43
protected internal override string GetLanguage() => LanguageNames.
CSharp
;
Diagnostics\Configuration\ConfigureSeverity\MultipleCodeStyleOptionBasedSeverityConfigurationTests.cs (1)
22
protected internal override string GetLanguage() => LanguageNames.
CSharp
;
Diagnostics\Configuration\ConfigureSeverity\VarForBuiltInTypesSeverityConfigurationTests.cs (1)
22
protected internal override string GetLanguage() => LanguageNames.
CSharp
;
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (5)
49
protected internal sealed override string GetLanguage() => LanguageNames.
CSharp
;
414
var options = new OptionsCollection(LanguageNames.
CSharp
)
439
var options = new OptionsCollection(LanguageNames.
CSharp
)
1118
var options = new OptionsCollection(LanguageNames.
CSharp
)
1148
var options = new OptionsCollection(LanguageNames.
CSharp
)
Diagnostics\Suppression\SuppressionTests.cs (2)
35
protected internal override string GetLanguage() => LanguageNames.
CSharp
;
453
new CodeChangeProviderMetadata("SuppressionProvider", languages: [LanguageNames.
CSharp
]));
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (2)
44
AddProject(ProjectInfo.Create(projectId, VersionStamp.Create(), "proj", "proj", LanguageNames.
CSharp
)).GetProject(projectId).
463
AddProject(ProjectInfo.Create(projectId, VersionStamp.Create(), "proj", "proj", LanguageNames.
CSharp
)).GetProject(projectId).
EditAndContinue\Helpers\CSharpEditAndContinueTestVerifier.cs (1)
20
public override string LanguageName => LanguageNames.
CSharp
;
ExtractClass\ExtractClassTests.cs (1)
53
return Task.FromResult<Workspace>(TestWorkspace.Create(WorkspaceKind, LanguageNames.
CSharp
, unusedCompilationOptions, unusedParseOptions));
ExtractMethod\ExtractMethodCodeRefactoringTests.cs (4)
5418
options: new(LanguageNames.
CSharp
)
5461
options: new(LanguageNames.
CSharp
)
5497
options: new(LanguageNames.
CSharp
)
5533
options: new(LanguageNames.
CSharp
)
GenerateComparisonOperators\GenerateComparisonOperatorsTests.cs (1)
93
new OptionsCollection(LanguageNames.
CSharp
)
IntroduceUsingStatement\IntroduceUsingStatementTests.cs (2)
23
private static OptionsCollection DoNotPreferSimpleUsingStatement => new(LanguageNames.
CSharp
)
28
private static OptionsCollection PreferSimpleUsingStatement => new(LanguageNames.
CSharp
)
SemanticSearch\CSharpSemanticSearchServiceTests.cs (4)
66
var service = solution.Services.GetRequiredLanguageService<ISemanticSearchService>(LanguageNames.
CSharp
);
103
var service = solution.Services.GetRequiredLanguageService<ISemanticSearchService>(LanguageNames.
CSharp
);
153
var service = solution.Services.GetRequiredLanguageService<ISemanticSearchService>(LanguageNames.
CSharp
);
207
var service = solution.Services.GetRequiredLanguageService<ISemanticSearchService>(LanguageNames.
CSharp
);
Snippets\AbstractCSharpSnippetProviderTests.cs (1)
11
protected sealed override string LanguageName => LanguageNames.
CSharp
;
src\Analyzers\CSharp\Tests\AliasAmbiguousType\AliasAmbiguousTypeTests.cs (1)
678
var options = new OptionsCollection(LanguageNames.
CSharp
)
src\Analyzers\CSharp\Tests\GenerateConstructor\GenerateConstructorTests.cs (1)
28
private readonly NamingStylesTestOptionSets options = new NamingStylesTestOptionSets(LanguageNames.
CSharp
);
src\Analyzers\CSharp\Tests\ImplementInterface\ImplementInterfaceTests.cs (7)
27
private readonly NamingStylesTestOptionSets _options = new(LanguageNames.
CSharp
);
30
=> new(LanguageNames.
CSharp
)
41
=> new(LanguageNames.
CSharp
)
52
=> new(LanguageNames.
CSharp
)
645
new OptionsCollection(LanguageNames.
CSharp
)
8120
new OptionsCollection(LanguageNames.
CSharp
)
8305
new OptionsCollection(LanguageNames.
CSharp
)
src\Analyzers\CSharp\Tests\InlineDeclaration\CSharpInlineDeclarationTests.cs (1)
2625
""", options: new(LanguageNames.
CSharp
)
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (1)
25
private static readonly NamingStylesTestOptionSets s_options = new(LanguageNames.
CSharp
);
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (1)
46
Assert.All(newSolution.Projects.Where(p => p.Language == LanguageNames.
CSharp
),
src\Analyzers\CSharp\Tests\UseConditionalExpression\UseConditionalExpressionForAssignmentTests.cs (4)
56
private static readonly OptionsCollection PreferImplicitTypeAlways = new(LanguageNames.
CSharp
)
799
""", options: new OptionsCollection(LanguageNames.
CSharp
) { { CSharpCodeStyleOptions.VarForBuiltInTypes, CodeStyleOption2.TrueWithSilentEnforcement } });
831
""", options: new OptionsCollection(LanguageNames.
CSharp
) { { CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSilentEnforcement } });
863
""", options: new OptionsCollection(LanguageNames.
CSharp
) { { CSharpCodeStyleOptions.VarElsewhere, CodeStyleOption2.TrueWithSilentEnforcement } });
UsePatternCombinators\CSharpUsePatternCombinatorsDiagnosticAnalyzerTests.cs (1)
28
private static readonly OptionsCollection s_disabled = new(LanguageNames.
CSharp
)
Microsoft.CodeAnalysis.CSharp.Scripting (1)
ScriptOptionsExtensions.cs (1)
18
: (options.ParseOptions is CSharpParseOptions existing) ? existing : throw new InvalidOperationException(string.Format(ScriptingResources.CannotSetLanguageSpecificOption, LanguageNames.
CSharp
, nameof(LanguageVersion)));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests.cs (1)
4188
[Generator(LanguageNames.
CSharp
)]
Microsoft.CodeAnalysis.CSharp.Workspaces (49)
CaseCorrection\CSharpCaseCorrectionService.cs (1)
16
[ExportLanguageService(typeof(ICaseCorrectionService), LanguageNames.
CSharp
), Shared]
Classification\CSharpClassificationService.cs (1)
15
[ExportLanguageService(typeof(IClassificationService), LanguageNames.
CSharp
), Shared]
Classification\SyntaxClassification\CSharpSyntaxClassificationService.cs (1)
18
[ExportLanguageService(typeof(ISyntaxClassificationService), LanguageNames.
CSharp
), Export, Shared]
CodeCleanup\CSharpCodeCleanerServiceFactory.cs (1)
13
[ExportLanguageServiceFactory(typeof(ICodeCleanerService), LanguageNames.
CSharp
), Shared]
CodeGeneration\CSharpSyntaxGenerator.cs (1)
28
[ExportLanguageService(typeof(SyntaxGenerator), LanguageNames.
CSharp
), Shared]
Diagnostics\CSharpDiagnosticPropertiesService.cs (1)
14
[ExportLanguageService(typeof(IDiagnosticPropertiesService), LanguageNames.
CSharp
), Shared]
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
27
[ExportLanguageService(typeof(IDeclaredSymbolInfoFactoryService), LanguageNames.
CSharp
), Shared]
Formatting\CSharpFormattingService.cs (1)
12
[ExportLanguageService(typeof(IFormattingService), LanguageNames.
CSharp
), Shared]
Formatting\CSharpSyntaxFormattingService.cs (1)
31
[ExportLanguageServiceFactory(typeof(ISyntaxFormattingService), LanguageNames.
CSharp
), Shared]
LanguageServices\FixAllSpanMappingService\CSharpFixAllSpanMappingService.cs (1)
19
[ExportLanguageService(typeof(IFixAllSpanMappingService), LanguageNames.
CSharp
), Shared]
ObsoleteSymbol\CSharpObsoleteSymbolService.cs (1)
12
[ExportLanguageService(typeof(IObsoleteSymbolService), LanguageNames.
CSharp
)]
OrganizeImports\CSharpOrganizeImportsService.cs (1)
15
[ExportLanguageService(typeof(IOrganizeImportsService), LanguageNames.
CSharp
), Shared]
ReassignedVariable\CSharpReassignedVariableService.cs (1)
15
[ExportLanguageService(typeof(IReassignedVariableService), LanguageNames.
CSharp
), Shared]
Recommendations\CSharpRecommendationService.cs (1)
15
[ExportLanguageService(typeof(IRecommendationService), LanguageNames.
CSharp
), Shared]
Rename\CSharpRenameRewriterLanguageService.cs (1)
32
[ExportLanguageService(typeof(IRenameRewriterLanguageService), LanguageNames.
CSharp
), Shared]
SemanticModelReuse\CSharpSemanticModelReuseLanguageService.cs (1)
16
[ExportLanguageService(typeof(ISemanticModelReuseLanguageService), LanguageNames.
CSharp
), Shared]
Serialization\CSharpOptionsSerializationService.cs (1)
17
[ExportLanguageService(typeof(IOptionsSerializationService), LanguageNames.
CSharp
), Shared]
Simplification\CSharpSimplificationService.cs (1)
23
[ExportLanguageService(typeof(ISimplificationService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpCodeGenerationOptions.cs (1)
43
: base(options, LanguageNames.
CSharp
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
25
=> s_editorConfigOptionsBuilder.CreateEditorConfigOption(name, defaultValue, group, LanguageNames.
CSharp
, serializerFactory);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpFormattingOptions2.cs (2)
68
var option = new Option2<T>(name, defaultValue, group, LanguageNames.
CSharp
, isEditorConfigOption: true, serializer: serializer);
279
languageName: LanguageNames.
CSharp
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpSyntaxFormattingOptions.cs (1)
71
: base(options, LanguageNames.
CSharp
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\CSharpSimplifierOptions.cs (1)
37
: base(options, LanguageNames.
CSharp
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationServiceFactory.cs (1)
13
[ExportLanguageServiceFactory(typeof(ICodeGenerationService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeRefactorings\CSharpRefactoringHelpersService.cs (1)
22
[ExportLanguageService(typeof(IRefactoringHelpersService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (1)
23
[ExportLanguageService(typeof(ImportAdderService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharLanguageServiceFactory.cs (1)
13
[ExportLanguageServiceFactory(typeof(IVirtualCharLanguageService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContextService.cs (1)
13
[ExportLanguageService(typeof(ISyntaxContextService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
24
[ExportLanguageService(typeof(IIndentationService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpAddImportsService.cs (2)
23
[ExportLanguageService(typeof(IAddImportsService), LanguageNames.
CSharp
), Shared]
30
=> LanguageNames.
CSharp
;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpBlockFactsService.cs (1)
13
[ExportLanguageService(typeof(IBlockFactsService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpCommandLineParserService.cs (1)
15
[ExportLanguageService(typeof(ICommandLineParserService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpFileBannerFactsService.cs (1)
13
[ExportLanguageService(typeof(IFileBannerFactsService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpGeneratedCodeRecognitionService.cs (1)
14
[ExportLanguageService(typeof(IGeneratedCodeRecognitionService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpHeaderFactsService.cs (1)
13
[ExportLanguageService(typeof(IHeaderFactsService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpMoveDeclarationNearReferenceService.cs (1)
18
[ExportLanguageService(typeof(IMoveDeclarationNearReferenceService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.cs (1)
23
[ExportLanguageService(typeof(IRemoveUnnecessaryImportsService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
27
[ExportLanguageService(typeof(IReplaceDiscardDeclarationsWithAssignmentsService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsServiceFactory.cs (1)
15
[ExportLanguageServiceFactory(typeof(ISemanticFactsService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSymbolDeclarationService.cs (1)
15
[ExportLanguageService(typeof(ISymbolDeclarationService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxFactsServiceFactory.cs (1)
15
[ExportLanguageServiceFactory(typeof(ISyntaxFactsService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
23
[ExportLanguageService(typeof(SyntaxGeneratorInternal), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxKindsServiceFactory.cs (1)
15
[ExportLanguageServiceFactory(typeof(ISyntaxKindsService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.cs (1)
16
[ExportLanguageService(typeof(ITypeInferenceService), LanguageNames.
CSharp
), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\CSharpInitializeParameterService.cs (1)
20
[ExportLanguageService(typeof(IInitializeParameterService), LanguageNames.
CSharp
), Shared]
Workspace\LanguageServices\CSharpCompilationFactoryService.cs (1)
15
[ExportLanguageService(typeof(ICompilationFactoryService), LanguageNames.
CSharp
), Shared]
Workspace\LanguageServices\CSharpSyntaxTreeFactoryService.cs (1)
18
[ExportLanguageService(typeof(ISyntaxTreeFactoryService), LanguageNames.
CSharp
), Shared]
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (111)
CodeGeneration\AddAttributesTests.cs (1)
33
LanguageNames.
CSharp
,
CodeGeneration\AddImportsTests.cs (2)
37
LanguageNames.
CSharp
,
783
LanguageNames.
CSharp
,
CodeGeneration\SymbolEditorTests.cs (2)
29
=> _g ??= SyntaxGenerator.GetGenerator(new AdhocWorkspace(), LanguageNames.
CSharp
);
42
var proj = ProjectInfo.Create(pid, VersionStamp.Default, "test", "test.dll", LanguageNames.
CSharp
, documents: docs,
CodeGeneration\SyntaxGeneratorTests.cs (1)
39
=> _generator ??= SyntaxGenerator.GetGenerator(Workspace, LanguageNames.
CSharp
);
Formatting\CSharpFormattingTestBase.cs (1)
50
return AssertFormatAsync(expected, code, spans, LanguageNames.
CSharp
, changedOptionSet, testWithTransformation, parseOptions);
Formatting\FormattingElasticTriviaTests.cs (1)
109
var generator = SyntaxGenerator.GetGenerator(workspace, LanguageNames.
CSharp
);
Formatting\FormattingMultipleSpanTests.cs (3)
127
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
152
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
164
var project = workspace.CurrentSolution.AddProject("Project", "Project.dll", LanguageNames.
CSharp
);
Formatting\FormattingTests.cs (93)
961
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
1002
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
1032
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
1065
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
1155
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
1194
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
1233
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
1272
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
1311
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
1350
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
1389
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
1428
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
1507
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
1578
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
1645
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
1727
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
1882
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
2066
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
2131
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
2231
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
5210
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
5232
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
5256
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
5280
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
6026
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
6180
var optionSet = new OptionsCollection(LanguageNames.
CSharp
) { { FormattingOptions2.UseTabs, true } };
6288
var optionSet = new OptionsCollection(LanguageNames.
CSharp
)
6380
var optionSet = new OptionsCollection(LanguageNames.
CSharp
) { { CSharpFormattingOptions2.SpaceAfterControlFlowStatementKeyword, false } };
6416
var optionSet = new OptionsCollection(LanguageNames.
CSharp
) { { CSharpFormattingOptions2.SpaceAfterComma, false } };
6530
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
6750
var optionSet = new OptionsCollection(LanguageNames.
CSharp
) { { FormattingOptions2.UseTabs, true } };
6771
var options = new OptionsCollection(LanguageNames.
CSharp
) { { CSharpFormattingOptions2.WrappingPreserveSingleLine, false } };
6789
var options = new OptionsCollection(LanguageNames.
CSharp
) { { CSharpFormattingOptions2.WrappingPreserveSingleLine, false } };
6815
var options = new OptionsCollection(LanguageNames.
CSharp
) { { CSharpFormattingOptions2.WrappingKeepStatementsOnSingleLine, false } };
6840
var options = new OptionsCollection(LanguageNames.
CSharp
)
6871
var options = new OptionsCollection(LanguageNames.
CSharp
)
6902
var options = new OptionsCollection(LanguageNames.
CSharp
)
6933
var options = new OptionsCollection(LanguageNames.
CSharp
)
6964
var options = new OptionsCollection(LanguageNames.
CSharp
)
6995
var options = new OptionsCollection(LanguageNames.
CSharp
)
7026
var options = new OptionsCollection(LanguageNames.
CSharp
)
7057
var options = new OptionsCollection(LanguageNames.
CSharp
)
7088
var options = new OptionsCollection(LanguageNames.
CSharp
)
7119
var options = new OptionsCollection(LanguageNames.
CSharp
)
7150
var options = new OptionsCollection(LanguageNames.
CSharp
)
7181
var options = new OptionsCollection(LanguageNames.
CSharp
)
7212
var options = new OptionsCollection(LanguageNames.
CSharp
)
7243
var options = new OptionsCollection(LanguageNames.
CSharp
)
7274
var options = new OptionsCollection(LanguageNames.
CSharp
)
7305
var options = new OptionsCollection(LanguageNames.
CSharp
)
7340
var options = new OptionsCollection(LanguageNames.
CSharp
)
7362
var options = new OptionsCollection(LanguageNames.
CSharp
)
7385
var options = new OptionsCollection(LanguageNames.
CSharp
) { { CSharpFormattingOptions2.SpaceBeforeOpenSquareBracket, true } };
7404
var options = new OptionsCollection(LanguageNames.
CSharp
) { { CSharpFormattingOptions2.SpaceWithinSquareBrackets, true } };
7434
var options = new OptionsCollection(LanguageNames.
CSharp
)
7473
var options = new OptionsCollection(LanguageNames.
CSharp
)
7526
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
8080
var optionSet = new OptionsCollection(LanguageNames.
CSharp
) { { FormattingOptions2.UseTabs, true } };
8105
var optionSet = new OptionsCollection(LanguageNames.
CSharp
) { { FormattingOptions2.UseTabs, true } };
8285
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
8348
var optionSet = new OptionsCollection(LanguageNames.
CSharp
)
8449
var optionSet = new OptionsCollection(LanguageNames.
CSharp
)
8480
var optionSet = new OptionsCollection(LanguageNames.
CSharp
)
8512
var optionSet = new OptionsCollection(LanguageNames.
CSharp
)
8545
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
8651
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
8690
var optionSet = new OptionsCollection(LanguageNames.
CSharp
) { { FormattingOptions2.UseTabs, true } };
8710
var optionSet = new OptionsCollection(LanguageNames.
CSharp
) { { FormattingOptions2.UseTabs, true } };
8732
var optionSet = new OptionsCollection(LanguageNames.
CSharp
) { { FormattingOptions2.UseTabs, true } };
8771
var optionSet = new OptionsCollection(LanguageNames.
CSharp
) { { FormattingOptions2.UseTabs, true } };
8794
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
8832
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
8870
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
8925
var changedOptionSet = new OptionsCollection(LanguageNames.
CSharp
)
9501
var changedOptionSet = new OptionsCollection(LanguageNames.
CSharp
) { { SpacingAfterMethodDeclarationName, spacingAfterMethodDeclarationName } };
9519
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
9545
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
9642
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
9664
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
9923
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
9983
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
10093
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
10129
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
10167
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
10263
var options = new OptionsCollection(LanguageNames.
CSharp
)
10280
options = new OptionsCollection(LanguageNames.
CSharp
)
10318
var options = new OptionsCollection(LanguageNames.
CSharp
)
10335
options = new OptionsCollection(LanguageNames.
CSharp
)
10373
var options = new OptionsCollection(LanguageNames.
CSharp
)
10390
options = new OptionsCollection(LanguageNames.
CSharp
)
10432
var options = new OptionsCollection(LanguageNames.
CSharp
)
10451
options = new OptionsCollection(LanguageNames.
CSharp
)
10607
var optionSet = new OptionsCollection(LanguageNames.
CSharp
) { { FormattingOptions2.UseTabs, true } };
Formatting\FormattingTests_Patterns.cs (4)
71
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
160
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
217
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
305
var changingOptions = new OptionsCollection(LanguageNames.
CSharp
)
Formatting\FormattingTreeEditTests.cs (1)
24
var project = ws.AddProject("project", LanguageNames.
CSharp
);
OrganizeImports\OrganizeUsingsTests.cs (2)
30
var project = workspace.CurrentSolution.AddProject("Project", "Project.dll", LanguageNames.
CSharp
);
91
var project = workspace.CurrentSolution.AddProject("Project", "Project.dll", LanguageNames.
CSharp
);
Microsoft.CodeAnalysis.EditorFeatures (12)
EditorConfigSettings\Aggregator\SettingsAggregator.cs (1)
117
TryAddProviderForLanguage(LanguageNames.
CSharp
);
EditorConfigSettings\Data\Setting.cs (1)
61
var optionKey = new OptionKey2(option, LanguageNames.
CSharp
);
EditorConfigSettings\DataProvider\Analyzer\AnalyzerSettingsProvider.cs (1)
41
IEnumerable<DiagnosticAnalyzer> csharpAnalyzers = analyzerReference.GetAnalyzers(LanguageNames.
CSharp
);
EditorConfigSettings\DataProvider\SettingsProviderBase.cs (1)
70
language: LanguageNames.
CSharp
,
EditorConfigSettings\Updater\NamingStyles\SourceTextExtensions.cs (3)
71
return LanguageNames.
CSharp
;
93
language ??= LanguageNames.
CSharp
;
105
var csharpNamingStylePreferences = globalOptions.GetOption(NamingStyleOptions.NamingPreferences, LanguageNames.
CSharp
);
EditorConfigSettings\Updater\SettingsUpdateHelper.cs (1)
83
LanguageNames.
CSharp
=> Language.CSharp,
IntelliSense\AsyncCompletion\CompletionSource.cs (1)
396
var filterSet = new FilterSet(document.Project.Language is LanguageNames.
CSharp
or LanguageNames.VisualBasic);
Intents\DeleteParameterIntentProvider.cs (1)
20
[IntentProvider(WellKnownIntents.DeleteParameter, LanguageNames.
CSharp
), Shared]
Intents\RenameIntentProvider.cs (1)
20
[IntentProvider(WellKnownIntents.Rename, LanguageNames.
CSharp
), Shared]
RenameTracking\RenameTrackingCodeRefactoringProvider.cs (1)
15
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic,
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (10)
ChangeSignature\AddedParameterOrExistingIndex.cs (1)
68
LanguageNames.
CSharp
=> semanticModel.GetSpeculativeTypeInfo(0, CSharp.SyntaxFactory.ParseTypeName(_addedParameterFullyQualifiedTypeName!), SpeculativeBindingOption.BindAsTypeOrNamespace).Type,
Completion\AbstractCompletionProviderTests.cs (1)
822
return languageName == LanguageNames.
CSharp
? @"LanguageVersion = ""preview""" : string.Empty;
Diagnostics\DiagnosticTaggerWrapper.cs (1)
45
workspace.GlobalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.
CSharp
, BackgroundAnalysisScope.OpenFiles);
ExtractInterface\AbstractExtractInterfaceTests.cs (2)
33
LanguageNames.
CSharp
,
49
LanguageNames.
CSharp
,
ExtractInterface\ExtractInterfaceTestState.cs (1)
45
: languageName == LanguageNames.
CSharp
Formatting\CoreFormatterTestsBase.cs (1)
158
=> this.GetLanguageName() == LanguageNames.
CSharp
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
319
=> CreateTestLspServerAsync(markups, LanguageNames.
CSharp
, mutatingLspWorkspace, initializationOptions, composition);
Workspaces\CSharpTestWorkspaceFixture.cs (1)
17
LanguageNames.
CSharp
,
Workspaces\EditorTestWorkspace_Create.cs (1)
137
return Create(LanguageNames.
CSharp
, compilationOptions, parseOptions, files, sourceGeneratedFiles, composition, metadataReferences, isMarkup: isMarkup, openDocuments: openDocuments);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (4)
Intellisense\TestStateFactory.vb (3)
28
testState.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerInArgumentLists, LanguageNames.
CSharp
, showCompletionInArgumentLists)
29
testState.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, False)
60
testState.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerInArgumentLists, LanguageNames.
CSharp
, showCompletionInArgumentLists)
Utilities\AssertEx.vb (1)
36
If language = LanguageNames.
CSharp
Then
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (258)
CodeActions\CodeChangeProviderMetadataTests.cs (3)
48
[InlineData(typeof(CodeFixProvider), LanguageNames.
CSharp
)]
50
[InlineData(typeof(CodeRefactoringProvider), LanguageNames.
CSharp
)]
52
[InlineData(typeof(IConfigurationFixProvider), LanguageNames.
CSharp
)]
CodeFixes\CodeFixServiceTests.cs (10)
345
new CodeChangeProviderMetadata("Test", languages: LanguageNames.
CSharp
)));
410
=> [new Lazy<CodeFixProvider, CodeChangeProviderMetadata>(() => new MockFixer(), new CodeChangeProviderMetadata("Test", languages: LanguageNames.
CSharp
))];
765
? SpecializedCollections.SingletonEnumerable(new Lazy<CodeFixProvider, CodeChangeProviderMetadata>(() => vsixFixer, new CodeChangeProviderMetadata(name: nameof(VsixCodeFixProvider), languages: LanguageNames.
CSharp
)))
907
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
961
LanguageNames.
CSharp
,
971
LanguageNames.
CSharp
,
980
LanguageNames.
CSharp
,
988
[ExportCodeFixProvider(LanguageNames.
CSharp
)]
1048
workspace.GlobalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.
CSharp
, BackgroundAnalysisScope.FullSolution);
1161
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
CodeFixes\ExtensionOrderingTests.cs (4)
36
var csharpProviders = providersPerLanguage[LanguageNames.
CSharp
];
65
TestCore(LanguageNames.
CSharp
);
96
var csharpProviders = providersPerLanguage[LanguageNames.
CSharp
];
113
[InlineData(LanguageNames.
CSharp
)]
CodeGeneration\AbstractCodeGenerationTests.cs (4)
81
var codeDefFactory = workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService<SyntaxGenerator>();
88
TokenUtilities.AssertTokensEqual(cs, node.ToFullString(), LanguageNames.
CSharp
);
93
var simplifiedRootNode = Simplify(workspace, WrapExpressionInBoilerplate(node, codeDefFactory), LanguageNames.
CSharp
);
96
TokenUtilities.AssertTokensEqual(csSimple, expression.NormalizeWhitespace().ToFullString(), LanguageNames.
CSharp
);
CodeGeneration\CodeGenerationTests.cs (2)
727
if (language == LanguageNames.
CSharp
)
974
? LanguageNames.VisualBasic : LanguageNames.
CSharp
;
CodeGeneration\CodeGenerationTests.CSharp.cs (3)
1093
options: new OptionsCollection(LanguageNames.
CSharp
)
1406
CreateModifierTokens(new Editing.DeclarationModifiers(isSealed: true, isPartial: true), LanguageNames.
CSharp
));
1592
forceLanguage: LanguageNames.
CSharp
,
CodeGeneration\CodeGenerationTests.Shared.cs (1)
347
forceLanguage: LanguageNames.
CSharp
);
CodeRefactorings\CodeRefactoringServiceTest.cs (4)
258
LanguageNames.
CSharp
,
268
LanguageNames.
CSharp
,
277
LanguageNames.
CSharp
,
285
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
)]
CodeRefactorings\ErrorCases\CodeRefactoringExceptionInComputeRefactorings.cs (1)
15
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = "Test")]
CodeRefactorings\ErrorCases\CodeRefactoringExceptionInComputeRefactoringsAsync.cs (1)
15
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = "Test")]
Diagnostics\AnalyzerLoadFailureTests.cs (1)
15
[CombinatorialValues(LanguageNames.
CSharp
, LanguageNames.VisualBasic, null)] string? languageName)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (17)
84
globalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.
CSharp
, BackgroundAnalysisScope.FullSolution);
133
globalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.
CSharp
, BackgroundAnalysisScope.FullSolution);
152
globalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.
CSharp
, BackgroundAnalysisScope.FullSolution);
162
LanguageNames.
CSharp
,
263
LanguageNames.
CSharp
));
296
globalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.
CSharp
, BackgroundAnalysisScope.FullSolution);
307
LanguageNames.
CSharp
,
372
globalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.
CSharp
, BackgroundAnalysisScope.FullSolution);
385
LanguageNames.
CSharp
,
424
var projectInfo = ProjectInfo.Create(ProjectId.CreateNewId(), VersionStamp.Create(), "CSharpProject", "CSharpProject", LanguageNames.
CSharp
);
506
workspace.GlobalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.
CSharp
, analysisScope);
616
workspace.GlobalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.
CSharp
, analysisScope);
620
workspace.GlobalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.CompilerDiagnosticsScopeOption, LanguageNames.
CSharp
, compilerDiagnosticsScope);
622
workspace.InitializeDocuments(TestWorkspace.CreateWorkspaceElement(LanguageNames.
CSharp
, files: files, sourceGeneratedFiles: sourceGeneratedFiles), openDocuments: false);
864
globalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.
CSharp
,
889
LanguageNames.
CSharp
).WithHasAllInformation(hasAllInformation: false));
1030
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Diagnostics\DiagnosticDataTests.cs (4)
112
var document = workspace.CurrentSolution.AddProject("TestProject", "TestProject", LanguageNames.
CSharp
).AddDocument("TestDocument", code);
139
var additionalDocument = workspace.CurrentSolution.AddProject("TestProject", "TestProject", LanguageNames.
CSharp
)
223
var firstDocument = workspace.CurrentSolution.AddProject("TestProject", "TestProject", LanguageNames.
CSharp
)
228
secondDocument = firstDocument.Project.Solution.AddProject("TestProject2", "TestProject2", LanguageNames.
CSharp
)
Diagnostics\IDEDiagnosticIDConfigurationTests.cs (2)
537
VerifyConfigureSeverityCore(expected, LanguageNames.
CSharp
);
930
VerifyConfigureCodeStyleOptionsCore(expected, LanguageNames.
CSharp
);
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
75
if (language == LanguageNames.
CSharp
)
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
247
AddProject(projectId, "test", "test", LanguageNames.
CSharp
).
EditorConfigSettings\Data\CodeStyleSettingsTest.cs (2)
37
LanguageNames.
CSharp
,
61
LanguageNames.
CSharp
,
InheritanceMargin\InheritanceMarginTests.cs (29)
366
return VerifyNoItemForDocumentAsync(markup, LanguageNames.
CSharp
, testHost);
394
return VerifyInSingleDocumentAsync(markup, LanguageNames.
CSharp
, testHost, itemForBar, itemForGetEnumerator);
425
LanguageNames.
CSharp
,
459
LanguageNames.
CSharp
,
492
LanguageNames.
CSharp
,
513
return VerifyNoItemForDocumentAsync(markup, LanguageNames.
CSharp
, testHost);
536
LanguageNames.
CSharp
,
597
LanguageNames.
CSharp
,
667
LanguageNames.
CSharp
,
787
LanguageNames.
CSharp
,
889
LanguageNames.
CSharp
,
1024
LanguageNames.
CSharp
,
1122
LanguageNames.
CSharp
,
1184
LanguageNames.
CSharp
,
1242
LanguageNames.
CSharp
,
1369
LanguageNames.
CSharp
,
1428
LanguageNames.
CSharp
,
1442
markup1, markup2, LanguageNames.
CSharp
,
1461
markup1, markup2, LanguageNames.
CSharp
,
1485
markup1, markup2, LanguageNames.
CSharp
,
1504
markup1, markup2, LanguageNames.
CSharp
,
2217
(markup1, LanguageNames.
CSharp
),
2291
(markup2, LanguageNames.
CSharp
),
2355
(markup1, LanguageNames.
CSharp
),
2420
(markup1, LanguageNames.
CSharp
),
2421
(markup2, LanguageNames.
CSharp
),
2439
LanguageNames.
CSharp
,
2466
LanguageNames.
CSharp
,
2486
LanguageNames.
CSharp
,
LinkedFiles\LinkedFileDiffMergingEditorTests.cs (1)
46
=> LanguageNames.
CSharp
;
MetadataAsSource\AbstractMetadataAsSourceTests.cs (1)
78
.AddProject(projectId, "Metadata", "Metadata", LanguageNames.
CSharp
).GetProject(projectId)
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (3)
48
projectLanguage ??= LanguageNames.
CSharp
;
60
workspace.SetAnalyzerFallbackOptions(new OptionsCollection(LanguageNames.
CSharp
)
241
? LanguageNames.VisualBasic : LanguageNames.
CSharp
;
MetadataAsSource\MetadataAsSourceTests.cs (38)
34
OriginatingProjectLanguage.CSharp => LanguageNames.
CSharp
,
1084
LanguageNames.
CSharp
, [metadataSource], languageVersion: "10", fileScopedNamespaces: true);
1107
LanguageNames.
CSharp
, [metadataSource], languageVersion: "9", fileScopedNamespaces: true);
1131
LanguageNames.
CSharp
, [metadataSource], languageVersion: "10");
1864
await TestSymbolIdMatchesMetadataAsync(LanguageNames.
CSharp
);
1871
await TestNotReusedOnAssemblyDiffersAsync(LanguageNames.
CSharp
);
1892
using var context = TestContext.Create(LanguageNames.
CSharp
, [metadataSource]);
1925
var project = context.CurrentSolution.AddProject(projectId, "ProjectB", "ProjectB", LanguageNames.
CSharp
).GetRequiredProject(projectId)
1937
using var context = TestContext.Create(LanguageNames.
CSharp
);
1951
using var context = TestContext.Create(LanguageNames.
CSharp
);
1987
await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.
CSharp
, expected);
2021
await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.
CSharp
, expected);
2950
LanguageNames.
CSharp
,
3526
LanguageNames.
CSharp
,
3572
LanguageNames.
CSharp
,
3607
LanguageNames.
CSharp
,
3630
await GenerateAndVerifySourceLineAsync(source, LanguageNames.
CSharp
, expected);
3661
await GenerateAndVerifySourceLineAsync(source, LanguageNames.
CSharp
, expected);
3692
await GenerateAndVerifySourceLineAsync(source, LanguageNames.
CSharp
, expected);
3723
await GenerateAndVerifySourceLineAsync(source, LanguageNames.
CSharp
, expected);
5277
LanguageNames.
CSharp
,
5325
LanguageNames.
CSharp
,
5362
LanguageNames.
CSharp
,
5426
LanguageNames.
CSharp
,
5487
LanguageNames.
CSharp
,
5556
LanguageNames.
CSharp
,
5612
LanguageNames.
CSharp
,
5669
LanguageNames.
CSharp
,
5723
LanguageNames.
CSharp
,
5777
LanguageNames.
CSharp
,
5829
LanguageNames.
CSharp
,
5881
LanguageNames.
CSharp
,
5933
LanguageNames.
CSharp
,
5983
LanguageNames.
CSharp
,
6053
LanguageNames.
CSharp
,
6133
LanguageNames.
CSharp
,
6183
LanguageNames.
CSharp
,
6223
await GenerateAndVerifySourceAsync(source, symbolName, LanguageNames.
CSharp
, expectedCS, includeXmlDocComments: true);
MetadataAsSource\MetadataAsSourceTests.CSharp.cs (10)
82
await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.
CSharp
, languageVersion: "Preview", metadataLanguageVersion: "Preview", expected: expected, signaturesOnly: signaturesOnly);
132
await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.
CSharp
, languageVersion: "Preview", metadataLanguageVersion: "Preview", expected: expected, signaturesOnly: signaturesOnly);
182
await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.
CSharp
, expected: expected, signaturesOnly: signaturesOnly);
188
using var context = TestContext.Create(LanguageNames.
CSharp
);
451
await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.
CSharp
, languageVersion: "Preview", metadataLanguageVersion: "Preview", expected: expected, signaturesOnly: signaturesOnly);
519
await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.
CSharp
, expected: expected, signaturesOnly: signaturesOnly);
618
await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.
CSharp
, languageVersion: "Preview", metadataLanguageVersion: "Preview", expected: expected, signaturesOnly: signaturesOnly);
666
await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.
CSharp
, languageVersion: "Preview", metadataLanguageVersion: "Preview", expected: expected, signaturesOnly: true, metadataCommonReferences: "CommonReferencesNet6");
712
await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.
CSharp
, expected: expected, signaturesOnly: signaturesOnly, languageVersion: "Preview", metadataLanguageVersion: "Preview");
780
await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.
CSharp
, languageVersion: "Preview", metadataLanguageVersion: "Preview", expected: expected, signaturesOnly: signaturesOnly);
Options\GlobalOptionsTests.cs (1)
180
[InlineData(LanguageNames.
CSharp
)]
Preview\PreviewWorkspaceTests.cs (4)
55
var project = solution.AddProject("project", "project.dll", LanguageNames.
CSharp
);
69
var project = solution.AddProject("project", "project.dll", LanguageNames.
CSharp
);
98
var project = solution.AddProject("project", "project.dll", LanguageNames.
CSharp
);
133
var project = previewWorkspace.CurrentSolution.AddProject("project", "project.dll", LanguageNames.
CSharp
);
RenameTracking\RenameTrackingTaggerProviderTests.cs (61)
31
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
39
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
52
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
65
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
78
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
91
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
104
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
117
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
130
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
148
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
164
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
184
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
197
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
226
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
243
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
256
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
275
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
292
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
309
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
328
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
344
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
362
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
380
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
394
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
408
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
428
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
442
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
457
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
475
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
497
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
519
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
544
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
578
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
595
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
615
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
630
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
723
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
754
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
, onBeforeGlobalSymbolRenamedReturnValue: false);
787
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
, onAfterGlobalSymbolRenamedReturnValue: false);
909
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
933
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
946
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
978
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
1006
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
1041
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
1076
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
1111
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
1130
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
1147
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
1175
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
1211
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
1240
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
1278
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
1316
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
1354
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
1391
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
1439
using var state = RenameTrackingTestState.CreateFromWorkspaceXml(workspaceXml, LanguageNames.
CSharp
);
1467
using var state = RenameTrackingTestState.CreateFromWorkspaceXml(workspaceXml, LanguageNames.
CSharp
);
1485
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
1498
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
1513
using var state = RenameTrackingTestState.Create(code, LanguageNames.
CSharp
);
RenameTracking\RenameTrackingTestState.cs (1)
107
if (languageName is LanguageNames.
CSharp
or
Structure\AbstractStructureTaggerProviderTests.cs (7)
33
TextContainsRegionOrUsing(input, true, LanguageNames.
CSharp
);
46
TextContainsRegionOrUsing(input, true, LanguageNames.
CSharp
);
56
TextContainsRegionOrUsing(input, true, LanguageNames.
CSharp
);
66
TextContainsRegionOrUsing(input, true, LanguageNames.
CSharp
);
76
TextContainsRegionOrUsing(input, true, LanguageNames.
CSharp
);
106
TextContainsRegionOrUsing(input, true, LanguageNames.
CSharp
);
116
TextContainsRegionOrUsing(input, true, LanguageNames.
CSharp
);
Structure\StructureTaggerTests.cs (14)
59
globalOptions.SetGlobalOption(BlockStructureOptionsStorage.CollapseRegionsWhenCollapsingToDefinitions, LanguageNames.
CSharp
, collapseRegionsWhenCollapsingToDefinitions);
60
globalOptions.SetGlobalOption(BlockStructureOptionsStorage.ShowBlockStructureGuidesForDeclarationLevelConstructs, LanguageNames.
CSharp
, showBlockStructureGuidesForDeclarationLevelConstructs);
61
globalOptions.SetGlobalOption(BlockStructureOptionsStorage.ShowBlockStructureGuidesForCodeLevelConstructs, LanguageNames.
CSharp
, showBlockStructureGuidesForCodeLevelConstructs);
62
globalOptions.SetGlobalOption(BlockStructureOptionsStorage.ShowBlockStructureGuidesForCommentsAndPreprocessorRegions, LanguageNames.
CSharp
, showBlockStructureGuidesForCommentsAndPreprocessorRegions);
126
globalOptions.SetGlobalOption(BlockStructureOptionsStorage.CollapseRegionsWhenCollapsingToDefinitions, LanguageNames.
CSharp
, collapseRegionsWhenCollapsingToDefinitions);
127
globalOptions.SetGlobalOption(BlockStructureOptionsStorage.ShowBlockStructureGuidesForDeclarationLevelConstructs, LanguageNames.
CSharp
, showBlockStructureGuidesForDeclarationLevelConstructs);
128
globalOptions.SetGlobalOption(BlockStructureOptionsStorage.ShowBlockStructureGuidesForCodeLevelConstructs, LanguageNames.
CSharp
, showBlockStructureGuidesForCodeLevelConstructs);
171
globalOptions.SetGlobalOption(BlockStructureOptionsStorage.CollapseRegionsWhenCollapsingToDefinitions, LanguageNames.
CSharp
, collapseRegionsWhenCollapsingToDefinitions);
172
globalOptions.SetGlobalOption(BlockStructureOptionsStorage.ShowBlockStructureGuidesForDeclarationLevelConstructs, LanguageNames.
CSharp
, showBlockStructureGuidesForDeclarationLevelConstructs);
173
globalOptions.SetGlobalOption(BlockStructureOptionsStorage.ShowBlockStructureGuidesForCodeLevelConstructs, LanguageNames.
CSharp
, showBlockStructureGuidesForCodeLevelConstructs);
174
globalOptions.SetGlobalOption(BlockStructureOptionsStorage.ShowBlockStructureGuidesForCommentsAndPreprocessorRegions, LanguageNames.
CSharp
, showBlockStructureGuidesForCommentsAndPreprocessorRegions);
216
globalOptions.SetGlobalOption(BlockStructureOptionsStorage.CollapseRegionsWhenCollapsingToDefinitions, LanguageNames.
CSharp
, collapseRegionsWhenCollapsingToDefinitions);
217
globalOptions.SetGlobalOption(BlockStructureOptionsStorage.ShowBlockStructureGuidesForDeclarationLevelConstructs, LanguageNames.
CSharp
, showBlockStructureGuidesForDeclarationLevelConstructs);
218
globalOptions.SetGlobalOption(BlockStructureOptionsStorage.ShowBlockStructureGuidesForCodeLevelConstructs, LanguageNames.
CSharp
, showBlockStructureGuidesForCodeLevelConstructs);
SymbolFinder\DependentTypeFinderTests.cs (24)
29
var suffix = languageName == LanguageNames.
CSharp
? "cs" : "vb";
56
solution = AddProjectWithMetadataReferences(solution, "PortableProject", LanguageNames.
CSharp
, @"
66
solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.
CSharp
, @"
97
solution = AddProjectWithMetadataReferences(solution, "PortableProject", LanguageNames.
CSharp
, @"
107
solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.
CSharp
, @"
144
solution = AddProjectWithMetadataReferences(solution, "PortableProject", LanguageNames.
CSharp
, @"
154
solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.
CSharp
, @"
189
solution = AddProjectWithMetadataReferences(solution, "PortableProject", LanguageNames.
CSharp
, @"
199
solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.
CSharp
, @"
272
solution = AddProjectWithMetadataReferences(solution, "PortableProject", LanguageNames.
CSharp
, @"
314
solution = AddProjectWithMetadataReferences(solution, "PortableProject", LanguageNames.
CSharp
, @"
324
solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.
CSharp
, @"
405
solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.
CSharp
, @"
435
solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.
CSharp
, @"", Net40.References.mscorlib);
466
solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.
CSharp
, @"
515
solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.
CSharp
, @"
567
solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.
CSharp
, @"
594
solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.
CSharp
, @"
640
var csProject = solution.Projects.Single(p => p.Language == LanguageNames.
CSharp
);
667
solution = AddProjectWithMetadataReferences(solution, "NormalProject1", LanguageNames.
CSharp
, @"
688
solution = AddProjectWithMetadataReferences(solution, "NormalProject2", LanguageNames.
CSharp
, @"
730
solution = AddProjectWithMetadataReferences(solution, "PortableProject1", LanguageNames.
CSharp
, @"
742
solution = AddProjectWithMetadataReferences(solution, "PortableProject2", LanguageNames.
CSharp
, @"
774
solution = AddProjectWithMetadataReferences(solution, "PortableProject", LanguageNames.
CSharp
, @"
SymbolKey\SymbolKeyCrossLanguageTests.cs (1)
41
var csDocument = solution.Projects.Single(p => p.Language == LanguageNames.
CSharp
).Documents.Single();
TextEditor\OpenDocumentTests.cs (1)
41
var projectId = workspace.AddProject($"Project{i}", LanguageNames.
CSharp
).Id;
Workspaces\DefaultMefHostTests.cs (1)
26
var csservice = ws.Services.GetLanguageServices(LanguageNames.
CSharp
).GetService<Microsoft.CodeAnalysis.Completion.CompletionService>();
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
NavigateTo\NavigateToItemProvider.Callback.cs (1)
118
LanguageNames.
CSharp
=> "csharp",
Suggestions\SuggestedActionsSource.cs (1)
96
case LanguageNames.
CSharp
:
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (208)
Classification\ClassificationTests.vb (1)
320
Dim project = workspace.CurrentSolution.Projects.First(Function(p) p.Language = LanguageNames.
CSharp
)
Classification\SyntacticChangeRangeComputerTests.vb (1)
14
Return Test(markup, newText, LanguageNames.
CSharp
)
CodeFixes\CodeFixServiceTests.vb (6)
65
New Mef.CodeChangeProviderMetadata(New Dictionary(Of String, Object)() From {{"Name", "C#"}, {"Languages", {LanguageNames.
CSharp
}}}))},
137
New Mef.CodeChangeProviderMetadata(New Dictionary(Of String, Object)() From {{"Name", "C#"}, {"Languages", {LanguageNames.
CSharp
}}}))},
210
<ExportCodeFixProvider(LanguageNames.
CSharp
, Name:="WorkspaceCodeFixProvider"), [Shared]>
226
Contract.ThrowIfFalse(context.Document.Project.Language = LanguageNames.
CSharp
)
235
<ExportCodeFixProvider(LanguageNames.
CSharp
, Name:="ProjectCodeFixProvider"), [Shared]>
251
Contract.ThrowIfFalse(context.Document.Project.Language = LanguageNames.
CSharp
)
Diagnostics\AbstractCrossLanguageUserDiagnosticTest.vb (1)
143
New AnalyzerFileReference(DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.
CSharp
).GetType().Assembly.Location, TestAnalyzerAssemblyLoader.LoadFromFile),
Diagnostics\AddImport\AddImportCrossLanguageTests.vb (1)
25
If language = LanguageNames.
CSharp
Then
Diagnostics\AddMissingReference\AddMissingReferenceTests.vb (1)
31
CType(If(language = LanguageNames.
CSharp
,
Diagnostics\DiagnosticServiceTests.vb (7)
339
Dim p1 = solution.Projects.Single(Function(p) p.Language = LanguageNames.
CSharp
)
383
{LanguageNames.
CSharp
, ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer1)},
1439
<DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)>
1468
<DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)>
2116
workspace.GlobalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.
CSharp
, BackgroundAnalysisScope.FullSolution)
2179
Dim analyzer = DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.
CSharp
)
2375
<DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)>
Diagnostics\GenerateFromUsage\GenerateConstructorCrossLanguageTests.vb (1)
13
If language = LanguageNames.
CSharp
Then
Diagnostics\GenerateFromUsage\GenerateMethodCrossLanguageTests.vb (1)
20
If language = LanguageNames.
CSharp
Then
Diagnostics\GenerateFromUsage\GenerateVariableCrossLanguageTests.vb (1)
22
If language = LanguageNames.
CSharp
Then
Diagnostics\ImplementInterface\ImplementInterfaceCrossLanguageTests.vb (1)
16
If language = LanguageNames.
CSharp
Then
Diagnostics\UseAutoProperty\UseAutoPropertyTests.vb (1)
16
If language = LanguageNames.
CSharp
Then
GoToBase\CSharpGoToBaseTests.vb (1)
12
Await GoToBaseTestsBase.TestAsync(source, LanguageNames.
CSharp
, shouldSucceed, metadataDefinitions)
GoToDefinition\GoToDefinitionTestsBase.vb (1)
42
Dim goToDefService = If(document.Project.Language = LanguageNames.
CSharp
,
IntelliSense\CompletionServiceTests.vb (1)
115
<ExportCompletionProviderMef1(NameOf(MyRoleProvider), LanguageNames.
CSharp
)>
IntelliSense\CSharpCompletionCommandHandlerTests.vb (103)
120
State.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerInArgumentLists, LanguageNames.
CSharp
, showCompletionInArgumentLists)
154
State.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerInArgumentLists, LanguageNames.
CSharp
, showCompletionInArgumentLists)
935
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.
CSharp
, True)
1246
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.EnterKeyBehavior, LanguageNames.
CSharp
, EnterKeyRule.AfterFullyTypedWord)
1274
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.EnterKeyBehavior, LanguageNames.
CSharp
, EnterKeyRule.AfterFullyTypedWord)
1617
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.
CSharp
, True)
1645
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.
CSharp
, True)
4190
<ExportCompletionProvider(NameOf(SlowProvider), LanguageNames.
CSharp
)>
4213
Return LanguageNames.
CSharp
4241
Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
4258
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.
CSharp
, True)
4287
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.
CSharp
, True)
4980
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.
CSharp
, True)
5008
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.
CSharp
, True)
5130
Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
5133
state.Workspace.GlobalOptions.SetGlobalOption(CompletionViewOptionsStorage.BlockForCompletionItems, LanguageNames.
CSharp
, False)
5152
state.Workspace.GlobalOptions.SetGlobalOption(CompletionViewOptionsStorage.BlockForCompletionItems, LanguageNames.
CSharp
, False)
5181
Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
5184
state.Workspace.GlobalOptions.SetGlobalOption(CompletionViewOptionsStorage.BlockForCompletionItems, LanguageNames.
CSharp
, False)
5257
Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
5261
globalOptions.SetGlobalOption(CompletionViewOptionsStorage.BlockForCompletionItems, LanguageNames.
CSharp
, False)
5326
Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
5353
globalOptions.SetGlobalOption(CompletionViewOptionsStorage.BlockForCompletionItems, LanguageNames.
CSharp
, False)
5373
globalOptions.SetGlobalOption(CompletionViewOptionsStorage.BlockForCompletionItems, LanguageNames.
CSharp
, True)
5410
<ExportCompletionProvider(NameOf(CompletedTaskControlledCompletionProvider), LanguageNames.
CSharp
)>
5423
<ExportCompletionProvider(NameOf(BooleanTaskControlledCompletionProvider), LanguageNames.
CSharp
)>
5617
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.
CSharp
, True)
5843
Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
5911
Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
6019
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.
CSharp
, True)
6266
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.
CSharp
, True)
6290
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.
CSharp
, True)
6338
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.
CSharp
, True)
6591
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.
CSharp
, True)
6617
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.
CSharp
, True)
6643
Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
6668
Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
6698
Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
6701
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.
CSharp
, True)
6727
Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
6752
Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
6777
Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
6804
Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
6807
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.
CSharp
, True)
6854
Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
6857
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.
CSharp
, True)
6926
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
6928
Dim service = state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of ITypeImportCompletionService)()
6975
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
7075
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
7112
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
7151
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
7621
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
7687
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
7753
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
7819
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
7886
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
7922
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
8013
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
8073
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
8115
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowNameSuggestions, LanguageNames.
CSharp
, True)
8144
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowNameSuggestions, LanguageNames.
CSharp
, True)
8199
<ExportCompletionProvider(NameOf(MultipleChangeCompletionProvider), LanguageNames.
CSharp
)>
8244
<ExportCompletionProvider(NameOf(IntelliCodeMockProvider), LanguageNames.
CSharp
)>
8618
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
8933
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
8979
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
9029
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
9082
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
9132
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
9173
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
9211
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
9256
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
9301
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
9537
Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
9569
Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
9587
<[Shared], ExportCompletionProvider(NameOf(TestMatchPriorityCompletionProvider), LanguageNames.
CSharp
)>
9662
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.
CSharp
, True)
9672
<ExportCompletionProvider(NameOf(IntelliCodeMockWeirdProvider), LanguageNames.
CSharp
)>
9716
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.
CSharp
, True)
10250
<ExportCompletionProvider(NameOf(PreselectionProvider), LanguageNames.
CSharp
)>
10263
Return LanguageNames.
CSharp
10294
Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
10311
<ExportCompletionProvider(NameOf(NotifyCommittingItemCompletionProvider), LanguageNames.
CSharp
)>
10337
Return LanguageNames.
CSharp
10372
globalOptions.SetGlobalOption(CompletionViewOptionsStorage.BlockForCompletionItems, LanguageNames.
CSharp
, True)
10373
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
10377
Dim completionService = workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
10427
globalOptions.SetGlobalOption(CompletionViewOptionsStorage.BlockForCompletionItems, LanguageNames.
CSharp
, True)
10428
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
10432
Dim completionService = workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
10480
globalOptions.SetGlobalOption(CompletionViewOptionsStorage.BlockForCompletionItems, LanguageNames.
CSharp
, True)
10481
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
10486
Dim completionService = workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)()
10620
<ExportCompletionProvider(NameOf(TestProvider), LanguageNames.
CSharp
)>
10651
Return LanguageNames.
CSharp
10757
<ExportCompletionProvider(NameOf(ItemWithAdditionalFilterTextsProvider), LanguageNames.
CSharp
)>
10797
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowNewSnippetExperienceUserOption, LanguageNames.
CSharp
, True)
10871
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowNewSnippetExperienceUserOption, LanguageNames.
CSharp
, False)
10894
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowNewSnippetExperienceUserOption, LanguageNames.
CSharp
, False)
11946
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
12032
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnTyping, LanguageNames.
CSharp
, False)
12364
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
IntelliSense\CSharpCompletionCommandHandlerTests_DefaultsSource.vb (7)
416
<ExportCompletionProvider(NameOf(IntelliCodeMockProvider), LanguageNames.
CSharp
)>
495
workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
499
Dim completionService = DirectCast(workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)(), MockCompletionServiceFactory.Service)
564
workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
567
Dim completionService = DirectCast(workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService(Of CompletionService)(), MockCompletionServiceFactory.Service)
624
<ExportLanguageServiceFactory(GetType(CompletionService), LanguageNames.
CSharp
), [Shared], PartNotDiscoverable>
654
Return LanguageNames.
CSharp
IntelliSense\CSharpSignatureHelpCommandHandlerTests.vb (1)
886
state.Workspace.GetService(Of IGlobalOptionService).SetGlobalOption(SignatureHelpViewOptionsStorage.ShowSignatureHelp, LanguageNames.
CSharp
, False)
IntelliSense\IntellisenseQuickInfoBuilderTests.vb (20)
339
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
412
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
459
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
516
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
575
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
648
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
696
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
745
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
794
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
841
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
878
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
920
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
963
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
1014
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
1065
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
1119
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
1158
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
1198
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
1245
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
1300
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
IntelliSense\IntellisenseQuickInfoBuilderTests_Code.vb (2)
36
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
85
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
IntelliSense\IntellisenseQuickInfoBuilderTests_Inheritdoc.vb (7)
37
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
77
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
123
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
177
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
223
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
274
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
332
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
IntelliSense\IntellisenseQuickInfoBuilderTests_Links.vb (3)
38
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
85
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
130
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
IntelliSense\IntellisenseQuickInfoBuilderTests_Lists.vb (5)
42
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
105
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
164
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
229
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
308
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
IntelliSense\IntellisenseQuickInfoBuilderTests_Styles.vb (1)
46
Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.
CSharp
)
ReferenceHighlighting\DocumentHighlightsServiceTests.vb (1)
42
Dim csharpDocument = solution.Projects.Single(Function(p) p.Language = LanguageNames.
CSharp
).Documents.Single()
Simplification\ParameterSimplificationTests.vb (1)
20
Dim project = solution.AddProject(projId, "Project", "Project.dll", LanguageNames.
CSharp
) _
Simplification\TypeNameSimplifierTest.vb (25)
1463
Dim simplificationOption = New OptionsCollection(LanguageNames.
CSharp
) From {
1500
Dim simplificationOption = New OptionsCollection(LanguageNames.
CSharp
) From {
1539
Dim simplificationOption = New OptionsCollection(LanguageNames.
CSharp
) From {
1608
Dim simplificationOption = New OptionsCollection(LanguageNames.
CSharp
) From {
2501
Dim simplificationOptionSet = New OptionsCollection(LanguageNames.
CSharp
) From
2541
Await TestAsync(input, expected, QualifyFieldAccessOption(LanguageNames.
CSharp
))
2577
Await TestAsync(input, expected, QualifyFieldAccessOption(LanguageNames.
CSharp
))
2613
Await TestAsync(input, expected, QualifyFieldAccessOption(LanguageNames.
CSharp
))
2649
Await TestAsync(input, expected, QualifyFieldAccessOption(LanguageNames.
CSharp
))
2685
Await TestAsync(input, expected, QualifyPropertyAccessOption(LanguageNames.
CSharp
))
2721
Await TestAsync(input, expected, QualifyPropertyAccessOption(LanguageNames.
CSharp
))
2757
Await TestAsync(input, expected, QualifyPropertyAccessOption(LanguageNames.
CSharp
))
2793
Await TestAsync(input, expected, QualifyPropertyAccessOption(LanguageNames.
CSharp
))
2829
Await TestAsync(input, expected, QualifyPropertyAccessOption(LanguageNames.
CSharp
))
2863
Await TestAsync(input, expected, QualifyMethodAccessOption(LanguageNames.
CSharp
))
2897
Await TestAsync(input, expected, QualifyMethodAccessOption(LanguageNames.
CSharp
))
2933
Await TestAsync(input, expected, QualifyMethodAccessOption(LanguageNames.
CSharp
))
2967
Await TestAsync(input, expected, QualifyMethodAccessOption(LanguageNames.
CSharp
))
3013
Await TestAsync(input, expected, QualifyMethodAccessOption(LanguageNames.
CSharp
))
3053
Await TestAsync(input, expected, QualifyEventAccessOption(LanguageNames.
CSharp
))
3095
Await TestAsync(input, expected, QualifyEventAccessOption(LanguageNames.
CSharp
))
3131
Await TestAsync(input, expected, QualifyPropertyAccessOptionWithNotification(LanguageNames.
CSharp
, NotificationOption2.Silent))
3167
Await TestAsync(input, expected, QualifyPropertyAccessOptionWithNotification(LanguageNames.
CSharp
, NotificationOption2.Suggestion))
3203
Await TestAsync(input, expected, QualifyPropertyAccessOptionWithNotification(LanguageNames.
CSharp
, NotificationOption2.Warning))
3239
Await TestAsync(input, expected, QualifyPropertyAccessOptionWithNotification(LanguageNames.
CSharp
, NotificationOption2.Error))
Workspaces\SymbolDescriptionServiceTests.vb (1)
43
Await TestAsync(GetLanguageServiceProvider(workspace, LanguageNames.
CSharp
), workspace, expectedDescription)
Workspaces\TryFindSourceDefinitionTests.vb (5)
63
Assert.Equal(LanguageNames.
CSharp
, fieldType.Language)
113
Assert.Equal(LanguageNames.
CSharp
, mappedType.Language)
150
Assert.Equal(LanguageNames.
CSharp
, mappedMember.Language)
187
Assert.Equal(LanguageNames.
CSharp
, mappedMember.Language)
224
Assert.Equal(LanguageNames.
CSharp
, mappedMember.Language)
Microsoft.CodeAnalysis.ExternalAccess.AspNetCore (3)
Internal\EmbeddedLanguages\AspNetCoreEmbeddedLanguageBraceMatcher.cs (1)
18
[LanguageNames.
CSharp
],
Internal\EmbeddedLanguages\AspNetCoreEmbeddedLanguageClassifier.cs (1)
15
[LanguageNames.
CSharp
],
Internal\EmbeddedLanguages\AspNetCoreEmbeddedLanguageDocumentHighlighter.cs (1)
17
[LanguageNames.
CSharp
],
Microsoft.CodeAnalysis.ExternalAccess.Copilot (3)
Internal\Analyzer\CSharp\CSharpCopilotCodeAnalysisService.cs (1)
25
[ExportLanguageService(typeof(ICopilotCodeAnalysisService), LanguageNames.
CSharp
), Shared]
Internal\CodeMapper\CopilotCSharpMapCodeService.cs (1)
18
[ExportLanguageService(typeof(IMapCodeService), language: LanguageNames.
CSharp
), Shared]
Internal\RelatedDocuments\CSharpCopilotRelatedDocumentsService.cs (1)
17
[ExportLanguageService(typeof(ICopilotRelatedDocumentsService), language: LanguageNames.
CSharp
), Shared]
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (2)
Options\OmniSharpSolutionAnalyzerConfigOptionsUpdater.cs (2)
26
oldFallbackOptions.TryGetValue(LanguageNames.
CSharp
, out var csharpFallbackOptions);
53
LanguageNames.
CSharp
,
Microsoft.CodeAnalysis.ExternalAccess.Razor (6)
Cohost\Handlers\OnAutoInsert.cs (1)
23
var services = document.Project.Solution.Services.ExportProvider.GetExports<IBraceCompletionService, LanguageMetadata>().Where(s => s.Metadata.Language == LanguageNames.
CSharp
).SelectAsArray(s => s.Value);
RazorCSharpFormattingInteractionService.cs (4)
41
Contract.ThrowIfFalse(document.Project.Language is LanguageNames.
CSharp
);
67
Contract.ThrowIfFalse(root.Language is LanguageNames.
CSharp
);
77
Contract.ThrowIfFalse(root.Language is LanguageNames.
CSharp
);
86
: legacyOptionsService.GetSyntaxFormattingOptions(services.GetLanguageServices(LanguageNames.
CSharp
));
RazorGlobalOptions.cs (1)
31
=> new(_globalOptions.GetAutoFormattingOptions(LanguageNames.
CSharp
));
Microsoft.CodeAnalysis.Features (61)
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.cs (2)
26
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic,
30
[IntentProvider(WellKnownIntents.AddConstructorParameter, LanguageNames.
CSharp
)]
AddImport\References\ProjectSymbolReference.cs (1)
38
: _project.Language == LanguageNames.
CSharp
ChangeSignature\AbstractChangeSignatureCodeRefactoringProvider.cs (1)
15
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic,
CodeFixes\Configuration\ConfigurationUpdater.cs (5)
618
if ((_language.Equals(LanguageNames.
CSharp
) || _language.Equals(LanguageNames.VisualBasic)) &&
626
if (_language.Equals(LanguageNames.
CSharp
) && splicedFileExtensions.Contains("cs"))
642
if ((_language.Equals(LanguageNames.
CSharp
) && splicedFileExtensions.Contains("cs")) ||
737
if (_language is LanguageNames.
CSharp
or LanguageNames.VisualBasic)
755
if (_language.Equals(LanguageNames.
CSharp
) && compilerDiagOrNotPerLang)
CodeFixes\Configuration\ConfigureCodeStyle\ConfigureCodeStyleOptionCodeFixProvider.cs (1)
25
[ExportConfigurationFixProvider(PredefinedConfigurationFixProviderNames.ConfigureCodeStyleOption, LanguageNames.
CSharp
, LanguageNames.VisualBasic), Shared]
CodeFixes\Configuration\ConfigureSeverity\ConfigureSeverityLevelCodeFixProvider.cs (1)
20
[ExportConfigurationFixProvider(PredefinedConfigurationFixProviderNames.ConfigureSeverity, LanguageNames.
CSharp
, LanguageNames.VisualBasic), Shared]
CodeFixesAndRefactorings\AbstractFixAllGetFixesService.cs (1)
138
: language == LanguageNames.
CSharp
CodeRefactorings\ExtractMethod\AbstractExtractMethodCodeRefactoringProvider.cs (1)
22
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic,
CodeRefactorings\MoveType\MoveTypeCodeRefactoringProvider.cs (1)
12
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic,
ConvertToInterpolatedString\ConvertRegularStringToInterpolatedStringRefactoringProvider.cs (1)
21
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeRefactoringProviderNames.ConvertToInterpolatedString), Shared]
EditAndContinue\Utilities\Extensions.cs (1)
106
LanguageNames.
CSharp
=> filePath.EndsWith(".g.i.cs", StringComparison.OrdinalIgnoreCase),
EmbeddedLanguages\Json\LanguageServices\JsonBraceMatcher.cs (1)
24
[LanguageNames.
CSharp
, LanguageNames.VisualBasic],
EmbeddedLanguages\Json\LanguageServices\JsonClassifier.cs (1)
26
[LanguageNames.
CSharp
, LanguageNames.VisualBasic],
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexBraceMatcher.cs (1)
27
[LanguageNames.
CSharp
, LanguageNames.VisualBasic],
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexClassifier.cs (1)
28
[LanguageNames.
CSharp
, LanguageNames.VisualBasic],
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexDocumentHighlighter.cs (1)
24
[LanguageNames.
CSharp
, LanguageNames.VisualBasic],
EncapsulateField\EncapsulateFieldRefactoringProvider.cs (1)
13
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeRefactoringProviderNames.EncapsulateField), Shared]
ExtractInterface\ExtractInterfaceCodeRefactoringProvider.cs (1)
16
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic,
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (1)
23
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeRefactoringProviderNames.GenerateComparisonOperators), Shared]
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (1)
30
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic,
GenerateOverrides\GenerateOverridesCodeRefactoringProvider.cs (1)
17
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic,
GenerateType\AbstractGenerateTypeService.Editor.cs (4)
132
_generateTypeOptionsResult.Project.Language == LanguageNames.
CSharp
183
if (targetProject.Language == LanguageNames.
CSharp
||
506
if ((_semanticDocument.Project == _generateTypeOptionsResult.Project && _semanticDocument.Project.Language == LanguageNames.
CSharp
) ||
507
(_targetProjectChangeInLanguage == TargetProjectChangeInLanguage.NoChange && _generateTypeOptionsResult.Project.Language == LanguageNames.
CSharp
) ||
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (2)
219
LanguageNames.
CSharp
=> Glyph.CSharpFile,
570
LanguageNames.
CSharp
=> Glyph.CSharpFile,
IntroduceVariable\IntroduceVariableCodeRefactoringProvider.cs (1)
18
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeRefactoringProviderNames.IntroduceVariable), Shared]
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (4)
32
this.LanguageName = signaturesOnly ? sourceProject.Language : LanguageNames.
CSharp
;
42
var extension = LanguageName == LanguageNames.
CSharp
? ".cs" : ".vb";
65
var extension = LanguageName == LanguageNames.
CSharp
? ".cs" : ".vb";
70
var assemblyInfoString = LanguageName == LanguageNames.
CSharp
MoveToNamespace\MoveToNamespaceCodeActionProvider.cs (1)
13
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, Name = PredefinedCodeRefactoringProviderNames.MoveToNamespace), Shared]
Options\EditorConfig\EditorConfigFileGenerator.cs (1)
28
if (language == LanguageNames.
CSharp
)
PreferFrameworkType\PreferFrameworkTypeCodeFixProvider.cs (1)
18
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.PreferFrameworkType), Shared]
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (1)
26
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeRefactoringProviderNames.ReplaceMethodWithProperty), Shared]
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
27
[ExportCodeRefactoringProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic,
SemanticSearch\SemanticSearchUtilities.cs (1)
58
=> Path.Combine(s_thisAssemblyDirectory, QueryDocumentName + (language == LanguageNames.
CSharp
? ".cs" : ".vb"));
Shared\Extensions\ProjectExtensions.cs (1)
14
return project.Language == LanguageNames.
CSharp
? Glyph.CSharpProject :
src\Analyzers\Core\Analyzers\UseExplicitTupleName\UseExplicitTupleNameDiagnosticAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
src\Analyzers\Core\Analyzers\UseSystemHashCode\UseSystemHashCodeDiagnosticAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
src\Analyzers\Core\CodeFixes\AddRequiredParentheses\AddRequiredParenthesesCodeFixProvider.cs (1)
18
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.AddRequiredParentheses), Shared]
src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (1)
30
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic,
src\Analyzers\Core\CodeFixes\NewLines\ConsecutiveStatementPlacement\ConsecutiveStatementPlacementCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.ConsecutiveStatementPlacement), Shared]
src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.RemoveBlankLines), Shared]
src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.RemoveRedundantEquality), Shared]
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.RemoveUnnecessaryAttributeSuppressions), Shared]
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (1)
23
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.RemoveUnnecessaryPragmaSuppressions), Shared]
src\Analyzers\Core\CodeFixes\SimplifyBooleanExpression\SimplifyConditionalCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.SimplifyConditionalExpression), Shared]
src\Analyzers\Core\CodeFixes\SimplifyLinqExpression\SimplifyLinqExpressionCodeFixProvider.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.SimplifyLinqExpression), Shared]
src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.UpdateLegacySuppressions), Shared]
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.UseCoalesceExpressionForNullableTernaryConditionalCheck), Shared]
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.UseCoalesceExpressionForTernaryConditionalCheck), Shared]
src\Analyzers\Core\CodeFixes\UseExplicitTupleName\UseExplicitTupleNameCodeFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.UseExplicitTupleName), Shared]
src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (1)
21
[ExportCodeFixProvider(LanguageNames.
CSharp
, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.UseSystemHashCode), Shared]
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
104
if (_compilation.Language == LanguageNames.
CSharp
)
Microsoft.CodeAnalysis.Features.Test.Utilities (5)
EditAndContinue\Extensions.cs (5)
55
public static Project AddTestProject(this Solution solution, string projectName, string language = LanguageNames.
CSharp
)
59
=> AddTestProject(solution, projectName, LanguageNames.
CSharp
, out id);
86
public static ProjectInfo CreateProjectInfo(string projectName, string language = LanguageNames.
CSharp
)
95
LanguageNames.
CSharp
=> CSharpParseOptions.Default.WithNoRefSafetyRulesAttribute(),
103
LanguageNames.
CSharp
=> ".csproj",
Microsoft.CodeAnalysis.Features.UnitTests (15)
EditAndContinue\ActiveStatementsMapTests.cs (3)
117
.AddProject("proj", "proj", LanguageNames.
CSharp
)
172
.AddProject("proj", "proj", LanguageNames.
CSharp
)
223
.AddProject("proj", "proj", LanguageNames.
CSharp
)
EditAndContinue\CompileTimeSolutionProviderTests.cs (2)
42
AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj", "proj", LanguageNames.
CSharp
, filePath: projectFilePath)).
112
.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj", "proj", LanguageNames.
CSharp
))
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (7)
83
.AddTestProject("P", LanguageNames.
CSharp
, out var projectPId).Solution
377
public async Task DesignTimeOnlyDocument_Wpf([CombinatorialValues(LanguageNames.
CSharp
, LanguageNames.VisualBasic)] string language, bool delayLoad, bool open, bool designTimeOnlyAddedAfterSessionStarts)
380
var sourceDesignTimeOnly = (language == LanguageNames.
CSharp
) ? "class B { }" : "Class C : End Class";
381
var sourceDesignTimeOnly2 = (language == LanguageNames.
CSharp
) ? "class B2 { }" : "Class C2 : End Class";
385
var extension = (language == LanguageNames.
CSharp
) ? ".cs" : ".vb";
764
AddProject("test", "test", LanguageNames.
CSharp
).
920
AddProject(projectId, "test", "test", LanguageNames.
CSharp
).
EditAndContinue\EditSessionActiveStatementsTests.cs (1)
69
.AddProject("proj", "proj", LanguageNames.
CSharp
)
EditAndContinue\EmitSolutionUpdateResultsTests.cs (1)
71
AddProject("proj", "proj", LanguageNames.
CSharp
).
EditAndContinue\RemoteEditAndContinueServiceTests.cs (1)
79
.AddProject(projectId, "proj", "proj", LanguageNames.
CSharp
)
Microsoft.CodeAnalysis.LanguageServer (1)
Services\StarredCompletions\StarredCompletionProvider.cs (1)
13
[ExportCompletionProvider("CSharpStarredCompletionProvider", LanguageNames.
CSharp
), Shared]
Microsoft.CodeAnalysis.LanguageServer.Protocol (11)
DefaultCapabilitiesProvider.cs (1)
31
.Where(lz => lz.Metadata.Language is LanguageNames.
CSharp
or LanguageNames.VisualBasic)
Extensions\Extensions.cs (1)
224
case LanguageNames.
CSharp
:
Extensions\ProtocolConversions.cs (2)
822
if (project.Language == LanguageNames.
CSharp
)
958
(LanguageNames.
CSharp
) => CSharpMarkdownLanguageName,
Features\DecompiledSource\CSharpCodeDecompilerDecompilationService.cs (1)
21
[ExportLanguageService(typeof(IDecompilationService), LanguageNames.
CSharp
), Shared]
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (1)
78
=> language == null ? noLanguageId : (language == LanguageNames.
CSharp
) ? csharpId : vbId;
Features\Options\CompletionOptionsStorage.cs (1)
19
LanguageNames.
CSharp
=> options.GetOption(TriggerOnTypingLetters, language) && options.GetOption(TriggerOnDeletion, language) is true,
Handler\Configuration\DidChangeConfigurationNotificationHandler.cs (2)
43
.Add(LanguageNames.
CSharp
, "csharp")
46
public static readonly ImmutableArray<string> SupportedLanguages = [LanguageNames.
CSharp
, LanguageNames.VisualBasic];
LanguageInfoProvider.cs (1)
18
private static readonly LanguageInformation s_csharpLanguageInformation = new(LanguageNames.
CSharp
, ".csx");
ProtocolConstants.cs (1)
13
public static ImmutableArray<string> RoslynLspLanguages = [LanguageNames.
CSharp
, LanguageNames.VisualBasic, LanguageNames.FSharp];
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (86)
CodeLens\CSharpCodeLensTests.cs (2)
417
globalOptions.SetGlobalOption(LspOptionsStorage.LspEnableReferencesCodeLens, LanguageNames.
CSharp
, false);
550
globalOptions.SetGlobalOption(LspOptionsStorage.LspEnableTestsCodeLens, LanguageNames.
CSharp
, false);
Completion\CompletionFeaturesTests.cs (18)
119
testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, true);
204
testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, true);
324
testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerInArgumentLists, LanguageNames.
CSharp
, true);
391
await using var testLspServer = await CreateTestLspServerAsync(new[] { markup }, LanguageNames.
CSharp
, mutatingLspWorkspace,
395
var mockService = testLspServer.TestWorkspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService<CompletionService>() as CSharpLspMockCompletionService;
438
await using var testLspServer = await CreateTestLspServerAsync(new[] { markup }, LanguageNames.
CSharp
, mutatingLspWorkspace,
442
var mockService = testLspServer.TestWorkspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService<CompletionService>() as CSharpLspMockCompletionService;
577
public override string Language => LanguageNames.
CSharp
;
611
[ExportLanguageServiceFactory(typeof(CompletionService), LanguageNames.
CSharp
, ServiceLayer.Test), Shared]
688
testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, true);
765
await using var testLspServer = await CreateTestLspServerAsync(new[] { markup }, LanguageNames.
CSharp
, mutatingLspWorkspace,
769
var mockService = testLspServer.TestWorkspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService<CompletionService>() as CSharpLspMockCompletionService;
830
testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerInArgumentLists, LanguageNames.
CSharp
, true);
870
public override string Language => LanguageNames.
CSharp
;
902
[ExportLanguageServiceFactory(typeof(CompletionService), LanguageNames.
CSharp
, ServiceLayer.Test), Shared]
925
await using var testLspServer = await CreateTestLspServerAsync(new[] { markup }, LanguageNames.
CSharp
, mutatingLspWorkspace,
929
var mockService = testLspServer.TestWorkspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetRequiredService<CompletionService>() as CSharpLspThrowExceptionOnChangeCompletionService;
1007
await using var testLspServer = await CreateTestLspServerAsync(new[] { markup }, LanguageNames.
CSharp
, mutatingLspWorkspace,
Completion\CompletionResolveTests.cs (3)
359
testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.SnippetsBehavior, LanguageNames.
CSharp
, SnippetsRule.AlwaysInclude);
360
testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowNewSnippetExperienceUserOption, LanguageNames.
CSharp
, true);
487
public override string Language => LanguageNames.
CSharp
;
Completion\CompletionTests.cs (3)
300
testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, true);
324
testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.SnippetsBehavior, LanguageNames.
CSharp
, SnippetsRule.NeverInclude);
1460
testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.SnippetsBehavior, LanguageNames.
CSharp
, SnippetsRule.NeverInclude);
Diagnostics\AbstractPullDiagnosticTestsBase.cs (4)
43
builder.Add(LanguageNames.
CSharp
, ImmutableArray.Create(
44
DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.
CSharp
),
348
globalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.
CSharp
, analyzerDiagnosticsScope);
351
globalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.CompilerDiagnosticsScopeOption, LanguageNames.
CSharp
, compilerDiagnosticsScope.Value);
Diagnostics\AdditionalFileDiagnosticsTests.cs (3)
118
=> new(ImmutableDictionary<string, ImmutableArray<DiagnosticAnalyzer>>.Empty.Add(LanguageNames.
CSharp
, ImmutableArray.Create(
119
DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.
CSharp
),
122
[DiagnosticAnalyzer(LanguageNames.
CSharp
), PartNotDiscoverable]
Diagnostics\BuildOnlyDiagnosticIdsHandlerTests.cs (6)
31
var expectedBuildOnlyDiagnosticIds = GetExpectedBuildOnlyDiagnosticIds(LanguageNames.
CSharp
);
53
builder.Add(LanguageNames.
CSharp
, ImmutableArray.Create(
54
DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.
CSharp
),
73
LanguageNames.
CSharp
=> typeof(CSharp.LanguageServer.CSharpLspBuildOnlyDiagnostics),
88
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
100
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
Diagnostics\NonLocalDiagnosticTests.cs (3)
71
=> new(ImmutableDictionary<string, ImmutableArray<DiagnosticAnalyzer>>.Empty.Add(LanguageNames.
CSharp
, ImmutableArray.Create(
72
DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.
CSharp
),
75
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Diagnostics\PullDiagnosticTests.cs (6)
705
testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(FadingOptions.FadeOutUnusedImports, LanguageNames.
CSharp
, true);
744
testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(FadingOptions.FadeOutUnusedImports, LanguageNames.
CSharp
, false);
2085
options.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.
CSharp
, BackgroundAnalysisScope.OpenFiles);
2086
options.SetGlobalOption(SolutionCrawlerOptionsStorage.CompilerDiagnosticsScopeOption, LanguageNames.
CSharp
, CompilerDiagnosticsScope.OpenFiles);
2121
options.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.
CSharp
, BackgroundAnalysisScope.FullSolution);
2122
options.SetGlobalOption(SolutionCrawlerOptionsStorage.CompilerDiagnosticsScopeOption, LanguageNames.
CSharp
, CompilerDiagnosticsScope.FullSolution);
Diagnostics\WorkspaceProjectDiagnosticsTests.cs (3)
67
=> new(ImmutableDictionary<string, ImmutableArray<DiagnosticAnalyzer>>.Empty.Add(LanguageNames.
CSharp
, ImmutableArray.Create(
68
DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.
CSharp
),
71
[DiagnosticAnalyzer(LanguageNames.
CSharp
), PartNotDiscoverable]
InlayHint\CSharpInlayHintTests.cs (4)
119
testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(InlineHintsOptionsStorage.EnabledForParameters, LanguageNames.
CSharp
, true);
120
testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(InlineHintsOptionsStorage.EnabledForTypes, LanguageNames.
CSharp
, true);
170
testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(InlineHintsOptionsStorage.EnabledForParameters, LanguageNames.
CSharp
, true);
171
testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(InlineHintsOptionsStorage.EnabledForTypes, LanguageNames.
CSharp
, true);
InlineCompletions\TestSnippetInfoService.cs (1)
18
[ExportLanguageService(typeof(ISnippetInfoService), LanguageNames.
CSharp
), Shared, PartNotDiscoverable]
MapCode\MapCodeTests.cs (1)
25
[ExportLanguageService(typeof(IMapCodeService), language: LanguageNames.
CSharp
, layer: ServiceLayer.Test), Shared, PartNotDiscoverable]
Miscellaneous\LspMiscellaneousFilesWorkspaceTests.cs (2)
242
Assert.Equal(LanguageNames.
CSharp
, miscDoc.Project.Language);
286
Assert.Equal(LanguageNames.
CSharp
, miscDoc.Project.Language);
OnAutoInsert\OnAutoInsertTests.cs (2)
387
string languageName = LanguageNames.
CSharp
,
391
if (languageName == LanguageNames.
CSharp
)
Options\SolutionAnalyzerConfigOptionsUpdaterTests.cs (18)
45
Assert.Equal(4, globalOptions.GetOption(FormattingOptions2.IndentationSize, LanguageNames.
CSharp
));
51
var project = new TestHostProject(workspace, "proj1", LanguageNames.
CSharp
);
54
AssertOptionValue(FormattingOptions2.InsertFinalNewLine, LanguageNames.
CSharp
, "false");
55
AssertOptionValue(FormattingOptions2.IndentationSize, LanguageNames.
CSharp
, "4");
60
new KeyValuePair<OptionKey2, object?>(new OptionKey2(FormattingOptions2.IndentationSize, LanguageNames.
CSharp
), 3),
65
AssertOptionValue(FormattingOptions2.InsertFinalNewLine, LanguageNames.
CSharp
, "true");
66
AssertOptionValue(FormattingOptions2.IndentationSize, LanguageNames.
CSharp
, "3");
78
Assert.False(workspace.CurrentSolution.FallbackAnalyzerOptions.TryGetValue(LanguageNames.
CSharp
, out _));
82
workspace.AddTestProject(new TestHostProject(workspace, "proj3", LanguageNames.
CSharp
));
85
AssertOptionValue(FormattingOptions2.InsertFinalNewLine, LanguageNames.
CSharp
, "true");
87
AssertOptionValue(FormattingOptions2.IndentationSize, LanguageNames.
CSharp
, "3");
92
AssertOptionValue(FormattingOptions2.InsertFinalNewLine, LanguageNames.
CSharp
, "false");
94
AssertOptionValue(FormattingOptions2.IndentationSize, LanguageNames.
CSharp
, "3");
110
var testProjectWithoutConfig = new TestHostProject(workspace, "proj_without_config", LanguageNames.
CSharp
);
117
var testProjectWithConfig = new TestHostProject(workspace, "proj_with_config", LanguageNames.
CSharp
);
147
globalOptions.SetGlobalOption(NamingStyleOptions.NamingPreferences, LanguageNames.
CSharp
, hostPeferences);
149
Assert.True(workspace.CurrentSolution.FallbackAnalyzerOptions.TryGetValue(LanguageNames.
CSharp
, out var fallbackOptions));
264
var project = new TestHostProject(workspace, "proj1", LanguageNames.
CSharp
);
UriTests.cs (7)
188
Assert.Equal(LanguageNames.
CSharp
, lspDocument.Project.Language);
200
Assert.Equal(LanguageNames.
CSharp
, lspDocument.Project.Language);
205
Assert.Equal(LanguageNames.
CSharp
, encodedDocument.Project.Language);
240
Assert.Equal(LanguageNames.
CSharp
, lspDocument.Project.Language);
248
Assert.Equal(LanguageNames.
CSharp
, lspDocument.Project.Language);
253
Assert.Equal(LanguageNames.
CSharp
, lowerCaseDocument.Project.Language);
288
Assert.Equal(LanguageNames.
CSharp
, lspDocument.Project.Language);
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
WorkspaceProjectFactoryServiceTests.cs (1)
38
new WorkspaceProjectCreationInfo(LanguageNames.
CSharp
, "DisplayName", FilePath: null, new Dictionary<string, string>()),
Microsoft.CodeAnalysis.Rebuild (3)
CompilationFactory.cs (1)
38
LanguageNames.
CSharp
=> CSharpCompilationFactory.Create(assemblyFileName, optionsReader),
CSharpCompilationFactory.cs (2)
32
Debug.Assert(optionsReader.GetLanguageName() == LanguageNames.
CSharp
);
39
Debug.Assert(optionsReader.GetLanguageName() == LanguageNames.
CSharp
);
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Host\RemoteDocumentDifferenceService.cs (1)
26
[ExportLanguageService(typeof(IDocumentDifferenceService), LanguageNames.
CSharp
, layer: ServiceLayer.Host), Shared]
Services\SourceGeneration\RemoteSourceGenerationService.cs (2)
78
{ LanguageNames.
CSharp
, (new(), static analyzerReference => HasSourceGenerators(analyzerReference, LanguageNames.
CSharp
)) },
Microsoft.CodeAnalysis.Test.Utilities (78)
Compilation\ControlFlowGraphVerifier.cs (10)
608
case LanguageNames.
CSharp
:
651
case LanguageNames.
CSharp
:
833
case LanguageNames.
CSharp
:
862
if (reference.Language != LanguageNames.
CSharp
)
875
if (reference.Language != LanguageNames.
CSharp
)
891
if (reference.Language != LanguageNames.
CSharp
)
923
if (reference.Language != LanguageNames.
CSharp
)
952
if (reference.Language == LanguageNames.
CSharp
)
1046
case LanguageNames.
CSharp
:
1096
case LanguageNames.
CSharp
:
Compilation\TestOperationVisitor.cs (3)
56
Assert.Equal(LanguageNames.
CSharp
, operation.Parent.Language);
850
case LanguageNames.
CSharp
:
1176
if (operation.Syntax.Language == LanguageNames.
CSharp
)
Diagnostics\CommonDiagnosticAnalyzers.cs (53)
28
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
511
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
530
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
572
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
626
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
665
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
692
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
732
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
747
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
771
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
803
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
810
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
829
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
839
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
860
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
881
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
915
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
980
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
987
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
1026
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
1048
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
1086
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
1115
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
1187
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
1225
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
1374
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
1399
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
1450
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
1680
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
1714
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
1844
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
1868
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
2156
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
2181
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
2217
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
2240
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
2258
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
2282
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
2314
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
2346
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
2382
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
2466
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
2490
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
2549
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
2574
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
2616
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
2665
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
2702
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
2857
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
2903
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
2972
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
3059
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
3223
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
Diagnostics\DiagnosticExtensions.cs (5)
396
return languageName == LanguageNames.
CSharp
?
404
builder.Add(LanguageNames.
CSharp
, ImmutableArray.Create(GetCompilerDiagnosticAnalyzer(LanguageNames.
CSharp
)));
418
builder.Add(LanguageNames.
CSharp
, ImmutableArray.Create(GetCompilerDiagnosticAnalyzerReference(LanguageNames.
CSharp
)));
Diagnostics\SuppressMessageAttributeTests.cs (3)
1258
new[] { new WarningOnCodeBodyAnalyzer(LanguageNames.
CSharp
) });
1366
await VerifyAsync(source, LanguageNames.
CSharp
, analyzers, diagnostics);
1371
return VerifyTokenDiagnosticsAsync(markup, LanguageNames.
CSharp
, diagnostics);
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (1)
137
if (_language == LanguageNames.
CSharp
)
Syntax\TokenUtilities.cs (3)
74
if (language == LanguageNames.
CSharp
)
86
if (node.Language == LanguageNames.
CSharp
)
98
if (language == LanguageNames.
CSharp
)
Microsoft.CodeAnalysis.TestAnalyzerReference (1)
NonSourceFileRefactoring.cs (1)
15
LanguageNames.
CSharp
,
Microsoft.CodeAnalysis.UnitTests (80)
Analyzers\AnalyzerFileReferenceTests.cs (31)
102
Assert.Equal(6, analyzerTypeNameMap[LanguageNames.
CSharp
].Count);
103
Assert.Contains("Microsoft.CodeAnalysis.UnitTests.AnalyzerFileReferenceTests+TestAnalyzerCS", analyzerTypeNameMap[LanguageNames.
CSharp
]);
104
Assert.Contains("Microsoft.CodeAnalysis.UnitTests.TestAnalyzerCSVB", analyzerTypeNameMap[LanguageNames.
CSharp
]);
105
Assert.Contains("Microsoft.CodeAnalysis.UnitTests.AnalyzerFileReferenceTests+TestAnalyzer", analyzerTypeNameMap[LanguageNames.
CSharp
]);
106
Assert.Contains("Microsoft.CodeAnalysis.UnitTests.AnalyzerFileReferenceTests+SomeType+NestedAnalyzer", analyzerTypeNameMap[LanguageNames.
CSharp
]);
107
Assert.Contains("Microsoft.CodeAnalysis.UnitTests.AbstractAnalyzer", analyzerTypeNameMap[LanguageNames.
CSharp
]);
108
Assert.Contains("Microsoft.CodeAnalysis.UnitTests.OpenGenericAnalyzer`1", analyzerTypeNameMap[LanguageNames.
CSharp
]);
109
Assert.DoesNotContain("Microsoft.CodeAnalysis.UnitTests.Test.NotAnAnalyzer", analyzerTypeNameMap[LanguageNames.
CSharp
]);
125
var analyzers = reference.GetAnalyzers(LanguageNames.
CSharp
);
151
reference.AddAnalyzers(builder, LanguageNames.
CSharp
);
170
reference.AddAnalyzers(builder, LanguageNames.
CSharp
);
187
reference.AddAnalyzers(builder, LanguageNames.
CSharp
);
247
reference.AddAnalyzers(builder, LanguageNames.
CSharp
);
265
reference.AddAnalyzers(builder, LanguageNames.
CSharp
);
287
reference.AddAnalyzers(builder, LanguageNames.
CSharp
);
392
var generators = reference.GetGenerators(LanguageNames.
CSharp
);
405
var generators = reference.GetGenerators(LanguageNames.
CSharp
);
498
reference.AddGenerators(builder, LanguageNames.
CSharp
);
519
var csharpAnalyzers = reference.GetAnalyzers(LanguageNames.
CSharp
).Select(a => a.GetType().FullName).ToArray();
552
var csharpGenerators = reference.GetGenerators(LanguageNames.
CSharp
).Select(g => g.GetGeneratorType().FullName).ToArray();
595
[DiagnosticAnalyzer(LanguageNames.
CSharp
, new string[] { LanguageNames.VisualBasic })]
602
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
625
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
658
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
668
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
675
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
711
[Generator(LanguageNames.
CSharp
)]
717
[Generator(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
720
[Generator(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
726
[Generator(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
737
[Generator(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
Diagnostics\SuppressMessageAttributeCompilerTests.cs (3)
69
string fileName = language == LanguageNames.
CSharp
? "Test.cs" : "Test.vb";
73
var syntaxTree = language == LanguageNames.
CSharp
?
77
if (language == LanguageNames.
CSharp
)
Diagnostics\SuppressMessageTargetSymbolResolverTests.cs (46)
26
VerifyNamespaceResolution("namespace $$N {}", LanguageNames.
CSharp
, false, "N");
49
LanguageNames.
CSharp
, false, "A.B.C");
75
LanguageNames.
CSharp
, false, "IGoo");
101
LanguageNames.
CSharp
, false, "A+B", "A#B");
119
VerifyTypeResolution("class $$C {}", LanguageNames.
CSharp
, false, "C");
186
LanguageNames.
CSharp
, false, "N1.N2.C");
212
LanguageNames.
CSharp
, false, "C+D");
242
LanguageNames.
CSharp
, false, "N.C+D+E");
272
LanguageNames.
CSharp
, false, "D`3");
295
LanguageNames.
CSharp
, false, "D");
331
LanguageNames.
CSharp
, false, "A.B");
355
LanguageNames.
CSharp
, false,
382
var syntaxTree = CreateSyntaxTree(source, LanguageNames.
CSharp
);
383
var compilation = CreateCompilation(syntaxTree, LanguageNames.
CSharp
, "");
396
LanguageNames.
CSharp
, false,
428
LanguageNames.
CSharp
, false,
455
LanguageNames.
CSharp
, false, "e:C.E");
478
LanguageNames.
CSharp
, false,
515
LanguageNames.
CSharp
, false,
534
LanguageNames.
CSharp
, false,
550
LanguageNames.
CSharp
, false,
584
LanguageNames.
CSharp
, false,
617
LanguageNames.
CSharp
, false,
628
LanguageNames.
CSharp
, false, "C.Goo():System.Int32");
667
LanguageNames.
CSharp
, false, "I.#M`2()");
676
LanguageNames.
CSharp
, false, "I.M():System.Void");
708
LanguageNames.
CSharp
, false,
736
LanguageNames.
CSharp
, false,
767
LanguageNames.
CSharp
, false,
804
LanguageNames.
CSharp
, false,
849
LanguageNames.
CSharp
, false,
871
LanguageNames.
CSharp
, false,
888
LanguageNames.
CSharp
, false,
918
LanguageNames.
CSharp
, false,
953
LanguageNames.
CSharp
, false,
988
LanguageNames.
CSharp
, false,
1025
LanguageNames.
CSharp
, false,
1065
LanguageNames.
CSharp
, false,
1103
LanguageNames.
CSharp
, false,
1137
LanguageNames.
CSharp
, false,
1164
LanguageNames.
CSharp
, false,
1206
LanguageNames.
CSharp
, false,
1256
LanguageNames.
CSharp
, false, names);
1429
if (language == LanguageNames.
CSharp
)
1453
string fileName = language == LanguageNames.
CSharp
? "Test.cs" : "Test.vb";
1455
return language == LanguageNames.
CSharp
?
Microsoft.CodeAnalysis.Workspaces (18)
FindSymbols\FindReferences\FindReferenceCache.cs (1)
87
LanguageNames.
CSharp
=> StringComparer.Ordinal,
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (1)
55
var isCSharp = project.Language == LanguageNames.
CSharp
;
Remote\RemoteSupportedLanguages.cs (1)
12
=> language is LanguageNames.
CSharp
or LanguageNames.VisualBasic;
Rename\Renamer.SyncNamespaceDocumentAction.cs (1)
67
if (document.Project.Language == LanguageNames.
CSharp
)
Shared\Extensions\SyntaxGeneratorExtensions.cs (2)
59
else if (overriddenProperty.IsIndexer() && document.Project.Language == LanguageNames.
CSharp
)
79
if (document.Project.Language == LanguageNames.
CSharp
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\PredefinedEmbeddedLanguageClassifierNames.cs (1)
13
public const string CSharpTest = $"{LanguageNames.
CSharp
}-Test";
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
72
Debug.Assert(LanguageName is LanguageNames.
CSharp
== Definition.ConfigName.StartsWith(OptionDefinition.CSharpConfigNamePrefix, StringComparison.Ordinal));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
56
if (isNativeIntegerType && reader.Compilation.Language == LanguageNames.
CSharp
)
Tags\WellKnownTags.cs (2)
137
internal static readonly ImmutableArray<string> CSharpFile = [WellKnownTags.File, LanguageNames.
CSharp
];
140
internal static readonly ImmutableArray<string> CSharpProject = [WellKnownTags.Project, LanguageNames.
CSharp
];
Workspace\Host\Mef\ExportLanguageServiceAttribute.cs (1)
18
/// <param name="language">The language that the service is target for; <see cref="LanguageNames.
CSharp
"/>, etc.</param>
Workspace\Host\Mef\ExportLanguageServiceFactoryAttribute.cs (1)
18
/// <param name="language">The language that the service is target for; <see cref="LanguageNames.
CSharp
"/>, etc.</param>
Workspace\ProjectSystem\ProjectSystemProject.cs (2)
226
LanguageNames.
CSharp
=> [new(rootPath, [".cs", ".razor", ".cshtml"])],
1137
LanguageNames.
CSharp
=> DirectoryNameEndsWith(fullPath, s_csharpCodeStyleAnalyzerSdkDirectory),
Workspace\Solution\ProjectState.cs (1)
358
LanguageNames.
CSharp
=> ".cs",
Workspace\Solution\SolutionCompilationState.RootedSymbolSet.cs (1)
107
if (this.Compilation.Language == LanguageNames.
CSharp
&&
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
49
{ LanguageNames.
CSharp
, new() },
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildWorkspace.cs (1)
457
LanguageNames.
CSharp
=> ".cs",
MSBuild\ProjectFileExtensionRegistry.cs (1)
27
{ "csproj", LanguageNames.
CSharp
},
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (21)
MSBuildWorkspaceTestBase.cs (1)
117
var p1 = sol.Projects.First(p => p.Language == LanguageNames.
CSharp
);
NewlyCreatedProjectsFromDotNetNew.cs (3)
74
await AssertTemplateProjectLoadsCleanlyAsync(templateName, LanguageNames.
CSharp
);
168
LanguageNames.
CSharp
=> "csproj",
179
LanguageNames.
CSharp
=> "C#",
VisualStudioMSBuildWorkspaceTests.cs (17)
243
var p1 = sol.Projects.First(p => p.Language == LanguageNames.
CSharp
);
258
var p1 = sol.Projects.First(p => p.Language == LanguageNames.
CSharp
);
266
[InlineData(LanguageNames.
CSharp
)]
270
var files = language == LanguageNames.
CSharp
288
[InlineData(LanguageNames.
CSharp
)]
312
var p1 = sol.Projects.First(p => p.Language == LanguageNames.
CSharp
);
335
var p1 = sol.Projects.First(p => p.Language == LanguageNames.
CSharp
);
421
var solution3 = solution2.AddProject(pid2, "foo", "foo", LanguageNames.
CSharp
);
892
workspace.AssociateFileExtensionWithLanguage("vbproj", LanguageNames.
CSharp
);
911
workspace.AssociateFileExtensionWithLanguage("ANYPROJ", LanguageNames.
CSharp
);
1153
var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_language_1_is_not_supported, projFileName, LanguageNames.
CSharp
);
1171
var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_language_1_is_not_supported, projFileName, LanguageNames.
CSharp
);
1186
var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_language_1_is_not_supported, projectName, LanguageNames.
CSharp
);
2587
var csproject = workspace.CurrentSolution.Projects.First(p => p.Language == LanguageNames.
CSharp
);
3123
var projectFile = await buildHost.LoadProjectFileAsync(projectFilePath, LanguageNames.
CSharp
, CancellationToken.None);
3127
.GetLanguageServices(LanguageNames.
CSharp
)
3277
Assert.Equal(LanguageNames.
CSharp
, csharpProject.Language);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (17)
Options\OptionsTestHelpers.cs (1)
114
=> option.IsPerLanguage ? [LanguageNames.
CSharp
, LanguageNames.VisualBasic] : [null];
OptionsCollection.cs (1)
33
public string DefaultExtension => languageName == LanguageNames.
CSharp
? "cs" : "vb";
SolutionUtilities.cs (1)
105
public static Project AddEmptyProject(Solution solution, string languageName = LanguageNames.
CSharp
, string name = "TestProject")
Workspaces\TestHostProject`1.cs (1)
143
language = language ?? LanguageNames.
CSharp
;
Workspaces\TestWorkspace_Create.cs (1)
137
return Create(LanguageNames.
CSharp
, compilationOptions, parseOptions, files, sourceGeneratedFiles, composition, metadataReferences, isMarkup: isMarkup, openDocuments: openDocuments);
Workspaces\TestWorkspace_XmlConsumption.cs (10)
146
(language == LanguageNames.
CSharp
? ".csproj" :
235
return language is LanguageNames.
CSharp
or LanguageNames.VisualBasic
276
if (language == LanguageNames.
CSharp
)
309
if (language == LanguageNames.
CSharp
)
352
return language == LanguageNames.
CSharp
? "CSharpAssembly" + projectId :
401
return language is LanguageNames.
CSharp
or LanguageNames.VisualBasic
498
return language == LanguageNames.
CSharp
527
if (language == LanguageNames.
CSharp
)
705
return language == LanguageNames.
CSharp
? name + ".cs" : name + ".vb";
792
if (LanguageNames.
CSharp
== options.Language)
Workspaces\TestWorkspace_XmlCreation.cs (1)
34
extension ??= (language == LanguageNames.
CSharp
) ? CSharpExtension : VisualBasicExtension;
Workspaces\TestWorkspace`1.cs (1)
224
if (language == LanguageNames.
CSharp
)
Microsoft.CodeAnalysis.Workspaces.UnitTests (395)
BatchFixAllProviderTests.cs (2)
53
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
143
public override string Language => LanguageNames.
CSharp
;
CodeCleanup\CodeCleanupTests.cs (8)
32
var document = CreateDocument("class C { }", LanguageNames.
CSharp
);
40
var document = CreateDocument("class C { }", LanguageNames.
CSharp
);
49
var document = CreateDocument("class C { }", LanguageNames.
CSharp
);
58
var document = CreateDocument("class C { }", LanguageNames.
CSharp
);
68
var document = CreateDocument("class C { }", LanguageNames.
CSharp
);
133
var document = CreateDocument("class C { }", LanguageNames.
CSharp
);
368
private static async Task VerifyRange(string codeWithMarker, string language = LanguageNames.
CSharp
)
380
private static async Task VerifyRange(string codeWithMarker, MockCodeCleanupProvider transformer, string language = LanguageNames.
CSharp
)
CommandLineProject\CommandLineProjectTests.cs (13)
25
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.
CSharp
, commandLine, @"C:\ProjectDirectory");
40
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.
CSharp
, commandLine, @"C:\ProjectDirectory", ws);
49
_ = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.
CSharp
, commandLine, @"C:\ProjectDirectory", ws);
56
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.
CSharp
, commandLine, @"C:\ProjectDirectory");
67
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.
CSharp
, commandLine, @"C:\ProjectDirectory");
79
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.
CSharp
, commandLine, @"C:\ProjectDirectory");
90
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.
CSharp
, commandLine, @"C:\ProjectDirectory");
102
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.
CSharp
, commandLine, @"C:\ProjectDirectory");
113
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.
CSharp
, commandLine, @"C:\ProjectDirectory");
124
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.
CSharp
, commandLine, @"C:\ProjectDirectory");
136
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.
CSharp
, commandLine, @"C:\ProjectDirectory");
150
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.
CSharp
, commandLine, assemblyBaseDir);
165
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.
CSharp
, commandLine, assemblyBaseDir);
CommandLineProject\CommandLineProjectWorkspaceTests.cs (2)
28
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.
CSharp
, commandLine, tempDirectory.Path, ws);
55
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.
CSharp
, commandLine, @"C:\ProjectDirectory");
FindAllDeclarationsTests.cs (3)
136
.AddProject(csharpId, "CSharp", "CSharp", LanguageNames.
CSharp
)
162
.AddProject(submission0Id, submission0Name, submission0Name, LanguageNames.
CSharp
)
177
.AddProject(submission1Id, submission1Name, submission1Name, LanguageNames.
CSharp
)
FindAllDeclarationsTests.TestSolutionsAndProject.cs (2)
97
.AddProject(pid, "TestCases", "TestCases", LanguageNames.
CSharp
)
117
.AddProject(pid, "TestCases" + i, "TestCases" + i, LanguageNames.
CSharp
)
FindReferencesTests.cs (11)
29
var suffix = languageName == LanguageNames.
CSharp
? "cs" : "vb";
45
var suffix = languageName == LanguageNames.
CSharp
? "cs" : "vb";
59
private static Solution GetSingleDocumentSolution(Workspace workspace, string sourceText, string languageName = LanguageNames.
CSharp
)
74
.AddProject(pid, "goo", "goo", LanguageNames.
CSharp
)
123
.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
276
.AddProject(prj1Id, "testDeclareReferences", "testAssembly", LanguageNames.
CSharp
)
365
solution = AddProjectWithMetadataReferences(solution, "NetStandardProject", LanguageNames.
CSharp
, @"
374
solution = AddProjectWithMetadataReferences(solution, "NetCoreProject", LanguageNames.
CSharp
, @"
456
solution = AddProjectWithMetadataReferences(solution, "PortableProject", LanguageNames.
CSharp
, @"
467
solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.
CSharp
, @"
614
var solution = GetSingleDocumentSolution(workspace, text, LanguageNames.
CSharp
);
Formatter\FormatterTests.cs (1)
113
var csProject = workspace.AddProject("CS", LanguageNames.
CSharp
);
FormattingTests.cs (1)
37
var service = workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetService<ISyntaxFormattingService>();
GeneratedCodeRecognitionTests.cs (1)
102
.AddProject(projectId, projectName, projectName, LanguageNames.
CSharp
)
Host\LanguageServices\TestCSharpCompilationFactoryServiceWithIncrementalGeneratorTracking.cs (1)
17
[ExportLanguageService(typeof(ICompilationFactoryService), LanguageNames.
CSharp
, ServiceLayer.Test), Shared, PartNotDiscoverable]
LinkedFileDiffMerging\LinkedFileDiffMergingTests.Features.cs (2)
95
LanguageNames.
CSharp
);
180
LanguageNames.
CSharp
);
LinkedFileDiffMerging\LinkedFileDiffMergingTests.TextMerging.cs (11)
21
LanguageNames.
CSharp
);
31
LanguageNames.
CSharp
);
41
LanguageNames.
CSharp
);
51
LanguageNames.
CSharp
);
69
LanguageNames.
CSharp
);
87
LanguageNames.
CSharp
);
128
LanguageNames.
CSharp
);
177
LanguageNames.
CSharp
);
205
LanguageNames.
CSharp
);
209
[InlineData(LanguageNames.
CSharp
)]
231
[InlineData(LanguageNames.
CSharp
)]
Options\DocumentOptionSetTests.cs (18)
22
new OptionKey(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.
CSharp
),
29
var set = new DocumentOptionSet(configOptions, underlyingSet, LanguageNames.
CSharp
);
33
Assert.Equal(new CodeStyleOption<bool>(internalCodeStyleOption), set.GetOption(CodeStyleOptions.QualifyEventAccess, LanguageNames.
CSharp
));
36
Assert.Equal(new CodeStyleOption<bool>(internalCodeStyleOption), set.GetOption(CodeStyleOptions.QualifyEventAccess, LanguageNames.
CSharp
));
39
Assert.Equal(new CodeStyleOption<bool>(true, NotificationOption.Error), set.GetOption(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.
CSharp
));
42
Assert.Equal(new CodeStyleOption<bool>(true, NotificationOption.Error), set.GetOption(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.
CSharp
));
45
Assert.Equal(RecommendationOptions.FilterOutOfScopeLocals.DefaultValue, set.GetOption(RecommendationOptions.FilterOutOfScopeLocals, LanguageNames.
CSharp
));
52
new OptionKey(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.
CSharp
),
55
var set = new DocumentOptionSet(configOptions: null, underlyingSet, LanguageNames.
CSharp
);
58
Assert.Equal(CodeStyleOptions.QualifyEventAccess.DefaultValue, set.GetOption(CodeStyleOptions.QualifyEventAccess, LanguageNames.
CSharp
));
61
Assert.Equal(CodeStyleOptions.QualifyEventAccess.DefaultValue, set.GetOption(CodeStyleOptions.QualifyEventAccess, LanguageNames.
CSharp
));
64
Assert.Equal(new CodeStyleOption<bool>(true, NotificationOption.Error), set.GetOption(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.
CSharp
));
67
Assert.Equal(new CodeStyleOption<bool>(true, NotificationOption.Error), set.GetOption(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.
CSharp
));
74
var set = new DocumentOptionSet(configOptions: null, underlyingSet, LanguageNames.
CSharp
);
77
var optionKey = new OptionKey(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.
CSharp
);
91
var set = new DocumentOptionSet(configOptions: null, underlyingSet, LanguageNames.
CSharp
);
131
var set = new DocumentOptionSet(configOptions, underlyingSet, LanguageNames.
CSharp
);
153
var set = new DocumentOptionSet(configOptions: null, underlyingSet, LanguageNames.
CSharp
);
Remote\ServiceDescriptorTests.cs (1)
223
[InlineData(LanguageNames.
CSharp
)]
SemanticModelReuse\SemanticModelReuseTests.cs (11)
38
var document = CreateDocument("", LanguageNames.
CSharp
);
49
var document = CreateDocument(source, LanguageNames.
CSharp
);
63
var document = CreateDocument(source, LanguageNames.
CSharp
);
84
var document1 = CreateDocument(source, LanguageNames.
CSharp
);
101
var document1 = CreateDocument(source, LanguageNames.
CSharp
);
124
var document1 = CreateDocument(source, LanguageNames.
CSharp
);
147
var document1 = CreateDocument(source, LanguageNames.
CSharp
);
170
var document1 = CreateDocument(source, LanguageNames.
CSharp
);
193
var document1 = CreateDocument(source, LanguageNames.
CSharp
);
217
var document1 = CreateDocument(source, LanguageNames.
CSharp
);
246
var document1 = CreateDocument(source1, LanguageNames.
CSharp
);
Simplifier\SimplifierTests.cs (3)
28
var project = workspace.AddProject("CSharpTest", LanguageNames.
CSharp
);
76
var csProject = workspace.AddProject("CS", LanguageNames.
CSharp
);
114
var languages = option.IsPerLanguage ? [LanguageNames.
CSharp
, LanguageNames.VisualBasic] : new string?[] { null };
SolutionTests\ProjectDependencyGraphTests.cs (3)
246
var projectAInfo = ProjectInfo.Create(projectAId, VersionStamp.Create(), "A", "A", LanguageNames.
CSharp
,
254
solution = solution.AddProject(projectBId, "B", "B", LanguageNames.
CSharp
);
713
return solution.AddProject(ProjectInfo.Create(projectId, VersionStamp.Create(), projectName, projectName, LanguageNames.
CSharp
, projectName));
SolutionTests\SolutionTests.cs (210)
59
.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.
CSharp
, Path.Combine(s_projectDir, "proj1.dll")))
81
.AddProject(projectId1, "proj1", "proj1.dll", LanguageNames.
CSharp
).WithProjectParseOptions(projectId1, parseOptions1)
85
.AddProject(projectId2, "proj2", "proj2.dll", LanguageNames.
CSharp
).WithProjectParseOptions(projectId2, parseOptions2)
332
.AddProject(projectId, "goo", "goo.dll", LanguageNames.
CSharp
)
842
.AddProject(projectId1, "proj1", "proj1.dll", LanguageNames.
CSharp
).WithProjectParseOptions(projectId1, parseOptions1)
1091
.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.
CSharp
, Path.Combine(s_projectDir, "proj1.dll")))
1092
.AddProject(ProjectInfo.Create(projectId2, VersionStamp.Default, "proj2", "proj2", LanguageNames.
CSharp
, Path.Combine(s_projectDir, "proj2.dll")))
1171
language: LanguageNames.
CSharp
,
1300
.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.
CSharp
, Path.Combine(s_projectDir, "proj1.dll")));
1310
language: LanguageNames.
CSharp
,
1335
.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.
CSharp
, Path.Combine(s_projectDir, "proj1.dll")));
1345
language: LanguageNames.
CSharp
,
1370
.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.
CSharp
, Path.Combine(s_projectDir, "proj1.dll")));
1405
.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.
CSharp
, Path.Combine(s_projectDir, "proj1.dll")));
1415
language: LanguageNames.
CSharp
,
1439
.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
);
1461
.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
);
1488
var solution = workspace.CurrentSolution.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
);
1516
.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
);
1539
.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
);
1562
AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
);
1585
AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
);
1622
.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
)
1676
.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
);
1699
.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
);
1722
.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
);
1732
public void WithProjectCompilationOptionsReplacesSyntaxTreeOptionProvider([CombinatorialValues(LanguageNames.
CSharp
, LanguageNames.VisualBasic)] string languageName)
1764
.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
);
1788
.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
)
1806
[InlineData("#if DEBUG", false, LanguageNames.
CSharp
)]
1807
[InlineData(@"#region ""goo""", true, LanguageNames.
CSharp
)]
1808
[InlineData(@"#nullable enable", true, LanguageNames.
CSharp
)]
1809
[InlineData(@"#elif DEBUG", true, LanguageNames.
CSharp
)]
1810
[InlineData("// File", true, LanguageNames.
CSharp
)]
1835
ParseOptions newOptions = languageName == LanguageNames.
CSharp
1860
.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
)
1879
.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
)
1898
.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
)
1917
solution = solution.AddProject(projectId2, "proj2", "proj2.dll", LanguageNames.
CSharp
);
1968
.AddProject(projectId2, "proj2", "proj2.dll", LanguageNames.
CSharp
)
1969
.AddProject(projectId3, "proj3", "proj3.dll", LanguageNames.
CSharp
);
2008
solution = solution.AddProject(projectId2, "proj2", "proj2.dll", LanguageNames.
CSharp
);
2047
.AddProject(projectId0, "non-submission", "non-submission.dll", LanguageNames.
CSharp
)
2048
.AddProject(ProjectInfo.Create(submissionId1, VersionStamp.Default, name: "submission1", assemblyName: "submission1.dll", LanguageNames.
CSharp
, isSubmission: true))
2049
.AddProject(ProjectInfo.Create(submissionId2, VersionStamp.Default, name: "submission2", assemblyName: "submission2.dll", LanguageNames.
CSharp
, isSubmission: true))
2050
.AddProject(ProjectInfo.Create(submissionId3, VersionStamp.Default, name: "submission3", assemblyName: "submission3.dll", LanguageNames.
CSharp
, isSubmission: true))
2290
.Add(LanguageNames.
CSharp
, StructuredAnalyzerConfigOptions.Create(new DictionaryAnalyzerConfigOptions(ImmutableDictionary<string, string>.Empty
2297
.Add(LanguageNames.
CSharp
, StructuredAnalyzerConfigOptions.Create(new DictionaryAnalyzerConfigOptions(ImmutableDictionary<string, string>.Empty
2361
var solution = workspace.CurrentSolution.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
).
2387
var solution = workspace.CurrentSolution.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
).
2417
var solution = workspace.CurrentSolution.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
).
2446
var solution = workspace.CurrentSolution.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
).
2475
var solution = workspace.CurrentSolution.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
).
2506
var solution = workspace.CurrentSolution.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
).
2531
solution = solution.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
);
2544
solution = solution.AddProject(project1, "goo", "goo.dll", LanguageNames.
CSharp
);
2557
solution = solution.AddProject(project1, "name", "assemblyName", LanguageNames.
CSharp
);
2558
solution = solution.AddProject(project2, "name", "assemblyName", LanguageNames.
CSharp
);
2570
.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
2616
.AddProject(projectId, "goo", "goo.dll", LanguageNames.
CSharp
)
2640
.AddProject(projectId1, "project1", "project1.dll", LanguageNames.
CSharp
)
2641
.AddProject(projectId2, "project2", "project2.dll", LanguageNames.
CSharp
)
2668
.AddProject(projectId1, "project1", "project1.dll", LanguageNames.
CSharp
);
2692
.AddProject(projectId, "project1", "project1.dll", LanguageNames.
CSharp
)
2713
.AddProject(projectId1, "project1", "project1.dll", LanguageNames.
CSharp
)
2714
.AddProject(projectId2, "project2", "project2.dll", LanguageNames.
CSharp
)
2734
.AddProject(projectId1, "project1", "project1.dll", LanguageNames.
CSharp
)
2735
.AddProject(projectId2, "project2", "project2.dll", LanguageNames.
CSharp
)
2753
.AddProject(projectId1, "project1", "project1.dll", LanguageNames.
CSharp
)
2754
.AddProject(projectId2, "project2", "project2.dll", LanguageNames.
CSharp
)
2772
.AddProject(projectId1, "project1", "project1.dll", LanguageNames.
CSharp
)
2773
.AddProject(projectId2, "project2", "project2.dll", LanguageNames.
CSharp
)
2787
.AddProject("goo", "goo.dll", LanguageNames.
CSharp
)
2806
.AddProject(pm1, "goo", "goo.dll", LanguageNames.
CSharp
)
2807
.AddProject(pm2, "bar", "bar.dll", LanguageNames.
CSharp
)
2823
.AddProject(pm1, "goo", "goo.dll", LanguageNames.
CSharp
)
2927
solution = solution.AddProject(projectIds[i], i.ToString(), i.ToString(), LanguageNames.
CSharp
);
2945
solution = solution.AddProject(project1, "goo", "goo.dll", LanguageNames.
CSharp
);
2983
solution = solution.AddProject(project1, "goo", "goo.dll", LanguageNames.
CSharp
);
3041
solution = solution.AddProject(project1, "goo", "goo.dll", LanguageNames.
CSharp
);
3060
sol = sol.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
);
3080
sol = sol.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3081
.AddProject(pid2, "bar", "bar.dll", LanguageNames.
CSharp
)
3106
sol = sol.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3107
.AddProject(pid2, "bar", "bar.dll", LanguageNames.
CSharp
)
3120
var sol3 = sol2.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
);
3139
.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3160
.AddProject(projectId, "ProjectName", "AssemblyName", LanguageNames.
CSharp
)
3183
.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3212
[InlineData(LanguageNames.
CSharp
)]
3219
var source = (language == LanguageNames.
CSharp
) ? "class C {}" : "Class C : End Class";
3233
if (language == LanguageNames.
CSharp
)
3265
.AddProject(projectId, "goo", "goo.dll", LanguageNames.
CSharp
)
3300
sol = sol.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3327
.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3349
.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3370
.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3394
.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3416
.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3437
.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3457
.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3477
.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3497
.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3516
.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3547
.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3579
.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3605
.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3639
.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3720
.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3745
.AddProject(pid, "goo", "goo.dll", LanguageNames.
CSharp
)
3761
[InlineData(LanguageNames.
CSharp
)]
3773
.AddDocument(did, "test", SourceText.From(language == LanguageNames.
CSharp
? "class C {}" : "Class C : End Class", Encoding.UTF8, SourceHashAlgorithm.Sha256), filePath: "old path");
3792
var newRoot = (language == LanguageNames.
CSharp
) ? CS.SyntaxFactory.ParseCompilationUnit("""
3842
var service = ws.Services.GetLanguageServices(LanguageNames.
CSharp
).GetService<ITestLanguageService>();
3846
var service2 = ws2.Services.GetLanguageServices(LanguageNames.
CSharp
).GetService<ITestLanguageService>();
3881
[ExportLanguageService(typeof(ITestLanguageService), LanguageNames.
CSharp
, ServiceLayer.Default), Shared, PartNotDiscoverable]
3891
[ExportLanguageService(typeof(ITestLanguageService), LanguageNames.
CSharp
, "Quasimodo"), Shared, PartNotDiscoverable]
3911
.AddProject(pid, "goo", "goo", LanguageNames.
CSharp
)
3965
.AddProject(pid3, "Bar", "Bar.dll", LanguageNames.
CSharp
)
3990
var proj = ws.AddProject("proj", LanguageNames.
CSharp
);
4007
var project = workspace.AddProject("CSharpProject", LanguageNames.
CSharp
);
4022
LanguageNames.
CSharp
,
4050
LanguageNames.
CSharp
,
4073
var project = workspace.CurrentSolution.AddProject("CSharpProject", "CSharpProject", LanguageNames.
CSharp
);
4098
var project = workspace.CurrentSolution.AddProject("CSharpProject", "CSharpProject", LanguageNames.
CSharp
);
4126
var project = workspace.CurrentSolution.AddProject("CSharpProject", "CSharpProject", LanguageNames.
CSharp
);
4171
var project = workspace.CurrentSolution.AddProject("CSharpProject", "CSharpProject", LanguageNames.
CSharp
);
4223
LanguageNames.
CSharp
,
4249
var project = workspace.CurrentSolution.AddProject("TestProject", "TestProject", LanguageNames.
CSharp
)
4267
var project = workspace.CurrentSolution.AddProject("TestProject", "TestProject", LanguageNames.
CSharp
)
4283
var originalProject = workspace.CurrentSolution.AddProject("TestProject", "TestProject", LanguageNames.
CSharp
)
4307
var originalProject = workspace.CurrentSolution.AddProject("TestProject", "TestProject", LanguageNames.
CSharp
)
4335
var document = workspace.CurrentSolution.AddProject("TestProject", "TestProject", LanguageNames.
CSharp
)
4351
var solution = workspace.CurrentSolution.AddProject("TestProject", "TestProject", LanguageNames.
CSharp
).Solution;
4408
var document1 = currentSolution.AddProject("TestProject1", "TestProject1", LanguageNames.
CSharp
)
4412
var document2 = currentSolution.AddProject("TestProject2", "TestProject2", LanguageNames.
CSharp
)
4548
var dummyProject = solution.AddProject("dummy", "dummy", LanguageNames.
CSharp
);
4573
solution = solution.AddProject(pid, "test", "test.dll", LanguageNames.
CSharp
);
4637
solution = solution.AddProject(pid, "test", "test.dll", LanguageNames.
CSharp
);
4668
public async Task TestAddingEditorConfigFileWithDiagnosticSeverity([CombinatorialValues(LanguageNames.
CSharp
, LanguageNames.VisualBasic)] string languageName)
4672
var extension = languageName == LanguageNames.
CSharp
? ".cs" : ".vb";
4704
public async Task TestAddingAndRemovingEditorConfigFileWithDiagnosticSeverity([CombinatorialValues(LanguageNames.
CSharp
, LanguageNames.VisualBasic)] string languageName)
4708
var extension = languageName == LanguageNames.
CSharp
? ".cs" : ".vb";
4745
public async Task TestChangingAnEditorConfigFile([CombinatorialValues(LanguageNames.
CSharp
, LanguageNames.VisualBasic)] string languageName)
4749
var extension = languageName == LanguageNames.
CSharp
? ".cs" : ".vb";
4798
solution = solution.AddProject(projectId, "Test", "Test.dll", LanguageNames.
CSharp
);
4829
solution = solution.AddProject(projectId, "Test", "Test.dll", LanguageNames.
CSharp
)
4942
ProjectInfo.Create(projectId, VersionStamp.Default, "Test", "Test", LanguageNames.
CSharp
)
4964
projects.Add(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test1", "Test1", LanguageNames.
CSharp
));
4965
projects.Add(ProjectInfo.Create(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.
CSharp
));
4970
Assert.Equal(2, solution.SolutionState.ProjectCountByLanguage[LanguageNames.
CSharp
]);
4988
projects.Add(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test1", "Test1", LanguageNames.
CSharp
, projectReferences: [new ProjectReference(projectId2)]));
4989
projects.Add(ProjectInfo.Create(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.
CSharp
));
4994
Assert.Equal(2, solution.SolutionState.ProjectCountByLanguage[LanguageNames.
CSharp
]);
5016
projects.Add(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test1", "Test1", LanguageNames.
CSharp
));
5017
projects.Add(ProjectInfo.Create(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.
CSharp
, projectReferences: [new ProjectReference(projectId1)]));
5022
Assert.Equal(2, solution.SolutionState.ProjectCountByLanguage[LanguageNames.
CSharp
]);
5042
solution = solution.AddProject(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test1", "Test1", LanguageNames.
CSharp
));
5047
projects.Add(ProjectInfo.Create(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.
CSharp
));
5048
projects.Add(ProjectInfo.Create(projectId3, VersionStamp.Default, "Test3", "Test3", LanguageNames.
CSharp
));
5053
Assert.Equal(3, solution.SolutionState.ProjectCountByLanguage[LanguageNames.
CSharp
]);
5072
solution = solution.AddProject(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test1", "Test1", LanguageNames.
CSharp
, projectReferences: [new ProjectReference(projectId2)]));
5078
projects.Add(ProjectInfo.Create(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.
CSharp
));
5079
projects.Add(ProjectInfo.Create(projectId3, VersionStamp.Default, "Test3", "Test3", LanguageNames.
CSharp
));
5084
Assert.Equal(3, solution.SolutionState.ProjectCountByLanguage[LanguageNames.
CSharp
]);
5103
solution = solution.AddProject(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test1", "Test1", LanguageNames.
CSharp
,
5110
projects.Add(ProjectInfo.Create(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.
CSharp
));
5111
projects.Add(ProjectInfo.Create(projectId3, VersionStamp.Default, "Test3", "Test3", LanguageNames.
CSharp
));
5116
Assert.Equal(3, solution.SolutionState.ProjectCountByLanguage[LanguageNames.
CSharp
]);
5141
projects.Add(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test2", "Test2", LanguageNames.
CSharp
));
5142
projects.Add(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test3", "Test3", LanguageNames.
CSharp
));
5160
projects.Add(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test1", "Test1", LanguageNames.
CSharp
,
5162
projects.Add(ProjectInfo.Create(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.
CSharp
));
5163
projects.Add(ProjectInfo.Create(projectId3, VersionStamp.Default, "Test3", "Test3", LanguageNames.
CSharp
));
5168
Assert.Equal(3, solution.SolutionState.ProjectCountByLanguage[LanguageNames.
CSharp
]);
5184
Assert.Equal(1, solution.SolutionState.ProjectCountByLanguage[LanguageNames.
CSharp
]);
5206
projects.Add(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test1", "Test1", LanguageNames.
CSharp
));
5207
projects.Add(ProjectInfo.Create(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.
CSharp
));
5208
projects.Add(ProjectInfo.Create(projectId3, VersionStamp.Default, "Test3", "Test3", LanguageNames.
CSharp
));
5213
Assert.Equal(3, solution.SolutionState.ProjectCountByLanguage[LanguageNames.
CSharp
]);
5228
Assert.Equal(1, solution.SolutionState.ProjectCountByLanguage[LanguageNames.
CSharp
]);
5249
projects.Add(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test2", "Test2", LanguageNames.
CSharp
));
5250
projects.Add(ProjectInfo.Create(projectId2, VersionStamp.Default, "Test3", "Test3", LanguageNames.
CSharp
));
5272
ProjectInfo.Create(csProjectId, VersionStamp.Default, "CS1", "CS1", LanguageNames.
CSharp
),
5277
.AddProject("CS2", "CS2", LanguageNames.
CSharp
).Solution
5282
(LanguageNames.
CSharp
, 2),
5290
(LanguageNames.
CSharp
, 1),
5298
(LanguageNames.
CSharp
, 1),
5328
LanguageNames.
CSharp
,
5356
LanguageNames.
CSharp
,
5366
LanguageNames.
CSharp
,
5393
var options = s0.Options.WithChangedOption(option, LanguageNames.
CSharp
, changedValue);
5411
Assert.Equal(changedValue, optionSet.GetOption(option, LanguageNames.
CSharp
));
5429
language: LanguageNames.
CSharp
,
5510
language: LanguageNames.
CSharp
,
5544
.AddProject("TestProject", "TestProject", LanguageNames.
CSharp
)
5564
.AddProject("TestProject1", "TestProject1", LanguageNames.
CSharp
)
5566
.AddProject("TestProject2", "TestProject2", LanguageNames.
CSharp
)
5577
var project = workspace.CurrentSolution.AddProject("CSharpProject", "CSharpProject", LanguageNames.
CSharp
);
5594
var project = workspace.CurrentSolution.AddProject("CSharpProject", "CSharpProject", LanguageNames.
CSharp
);
5614
var project1 = workspace.CurrentSolution.AddProject("CSharpProject1", "CSharpProject1", LanguageNames.
CSharp
);
5615
var project2 = project1.Solution.AddProject("CSharpProject2", "CSharpProject2", LanguageNames.
CSharp
);
5642
var project1 = workspace.CurrentSolution.AddProject("CSharpProject1", "CSharpProject1", LanguageNames.
CSharp
);
5643
var project2 = project1.Solution.AddProject("CSharpProject2", "CSharpProject2", LanguageNames.
CSharp
);
5672
var project1 = workspace.CurrentSolution.AddProject("CSharpProject1", "CSharpProject1", LanguageNames.
CSharp
);
5673
var project2 = project1.Solution.AddProject("CSharpProject2", "CSharpProject2", LanguageNames.
CSharp
);
5705
var project1 = workspace.CurrentSolution.AddProject("CSharpProject1", "CSharpProject1", LanguageNames.
CSharp
);
5731
.AddProject("CSharpProject1", "CSharpProject1", LanguageNames.
CSharp
)
5804
.AddProject($"Project1", $"Project1", LanguageNames.
CSharp
)
5814
.AddProject($"Project2", $"Project2", LanguageNames.
CSharp
)
SolutionTests\SolutionWithSourceGeneratorTests.cs (2)
426
solution = solution.AddProject(projectIdWithReference, "WithReference", "WithReference", LanguageNames.
CSharp
)
1028
var project1 = solution.AddProject("P1", "P1", LanguageNames.
CSharp
);
SolutionTests\TryApplyChangesTests.cs (1)
39
OnProjectAdded(ProjectInfo.Create(ProjectId.CreateNewId(), VersionStamp.Default, "TestProject", "TestProject", LanguageNames.
CSharp
));
SymbolKeyTests.cs (51)
58
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
113
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
128
var netstandardReferences = await ReferenceAssemblies.NetStandard.NetStandard20.ResolveAsync(LanguageNames.
CSharp
, cancellationToken: default);
129
var netcoreReferences = await ReferenceAssemblies.Net.Net70.ResolveAsync(LanguageNames.
CSharp
, cancellationToken: default);
131
var compilation1 = GetCompilation(source, LanguageNames.
CSharp
, references: [.. netstandardReferences]);
132
var compilation2 = GetCompilation(source, LanguageNames.
CSharp
, references: [.. netcoreReferences]);
149
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
165
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
181
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
287
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
303
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
331
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
358
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
376
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
397
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
416
var compilation1 = GetCompilation(source1, LanguageNames.
CSharp
);
417
var compilation2 = GetCompilation(source2, LanguageNames.
CSharp
);
440
var compilation1 = GetCompilation(source1, LanguageNames.
CSharp
);
441
var compilation2 = GetCompilation(source2, LanguageNames.
CSharp
);
507
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
541
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
563
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
590
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
617
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
653
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
675
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
700
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
718
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
736
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
756
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
779
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
822
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
836
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
864
var project = workspace.AddProject("Test", LanguageNames.
CSharp
);
911
var project = workspace.AddProject("Test", LanguageNames.
CSharp
);
952
var compilation1 = GetCompilation(source1, LanguageNames.
CSharp
);
953
var compilation2 = GetCompilation(source2, LanguageNames.
CSharp
);
979
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
1018
var compilation1 = GetCompilation(source, LanguageNames.
CSharp
, "File1.cs");
1019
var compilation2 = GetCompilation(source, LanguageNames.
CSharp
, "File2.cs");
1055
var compilation1 = GetCompilation(source, LanguageNames.
CSharp
, "File1.cs");
1056
var compilation2 = GetCompilation(source, LanguageNames.
CSharp
, "File2.cs");
1088
var compilation1 = GetCompilation(source, LanguageNames.
CSharp
, "File1.cs", []);
1089
var compilation2 = GetCompilation(source, LanguageNames.
CSharp
, "File2.cs", []);
1169
var compilation1 = GetCompilation(source1, LanguageNames.
CSharp
, "File1.cs");
1170
var compilation2 = GetCompilation(source2, LanguageNames.
CSharp
, "File2.cs",
1256
var comp = GetCompilation(source, LanguageNames.
CSharp
);
1272
var compilation1 = GetCompilation(source1, LanguageNames.
CSharp
, "File1.cs");
1310
var compilation1 = GetCompilation("", LanguageNames.
CSharp
);
1402
var compilation = GetCompilation(source, LanguageNames.
CSharp
);
1479
if (language == LanguageNames.
CSharp
)
SyntaxNodeTests.cs (1)
88
.AddProject(pid, "proj", "proj", LanguageNames.
CSharp
)
SyntaxReferenceTests.cs (1)
31
.AddProject(pid, "Test", "Test.dll", LanguageNames.
CSharp
)
WorkspaceServiceTests\GlobalOptionServiceTests.cs (2)
278
TestPublicOption(workspace, perLanguageOption, language: LanguageNames.
CSharp
, newValueCodeStyleOption);
279
TestInternalOption(workspace, perLanguageOption2, language: LanguageNames.
CSharp
, newValueCodeStyleOption2);
WorkspaceTests\AdhocWorkspaceTests.cs (20)
33
language: LanguageNames.
CSharp
);
48
var project = ws.AddProject("TestProject", LanguageNames.
CSharp
);
51
Assert.Equal(LanguageNames.
CSharp
, project.Language);
58
var project = ws.AddProject("TestProject", LanguageNames.
CSharp
);
70
var project = ws.AddProject("TestProject", LanguageNames.
CSharp
);
88
language: LanguageNames.
CSharp
);
115
language: LanguageNames.
CSharp
);
162
LanguageNames.
CSharp
,
177
Assert.Equal(LanguageNames.
CSharp
, proj.Language);
193
language: LanguageNames.
CSharp
);
221
language: LanguageNames.
CSharp
,
255
language: LanguageNames.
CSharp
,
294
language: LanguageNames.
CSharp
)
328
language: LanguageNames.
CSharp
,
377
var projid = ws.AddProject("TestProject", LanguageNames.
CSharp
).Id;
414
var projectId = ws.AddProject("TestProject", LanguageNames.
CSharp
).Id;
445
var projectId = ws.AddProject("TestProject", LanguageNames.
CSharp
).Id;
480
var projectId = ws.AddProject("TestProject", LanguageNames.
CSharp
).Id;
512
var projectId = ws.AddProject("TestProject", LanguageNames.
CSharp
).Id;
543
var projectId = ws.AddProject("TestProject", LanguageNames.
CSharp
).Id;
WorkspaceTests\WorkspaceReferenceTests.cs (7)
26
LanguageNames.
CSharp
,
55
LanguageNames.
CSharp
,
65
LanguageNames.
CSharp
,
105
LanguageNames.
CSharp
,
135
LanguageNames.
CSharp
,
145
LanguageNames.
CSharp
,
179
LanguageNames.
CSharp
,
WorkspaceTests\WorkspaceTests.cs (6)
24
var projectId = ws.AddProject("TestProject", LanguageNames.
CSharp
).Id;
37
var projectId = ws.AddProject("TestProject", LanguageNames.
CSharp
).Id;
53
var projectId = ws.AddProject("TestProject", LanguageNames.
CSharp
).Id;
71
var projectId = ws.AddProject("TestProject", LanguageNames.
CSharp
).Id;
88
var projectId = ws.AddProject("TestProject", LanguageNames.
CSharp
).Id;
104
var projectId = ws.AddProject("TestProject", LanguageNames.
CSharp
).Id;
Microsoft.DotNet.CodeAnalysis (4)
Analyzers\AppContextDefaultsAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Analyzers\MembersMustExistAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Analyzers\PinvokeAnalyzer.cs (1)
16
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Analyzers\ResourceUsageAnalyzer.cs (1)
12
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Microsoft.Interop.ComInterfaceGenerator (8)
Analyzers\AddGeneratedComClassAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Analyzers\AddGeneratedComClassFixer.cs (1)
17
[ExportCodeFixProvider(LanguageNames.
CSharp
), Shared]
Analyzers\AddMarshalAsToElementFixer.cs (1)
15
[ExportCodeFixProvider(LanguageNames.
CSharp
), Shared]
Analyzers\ComHostingDoesNotSupportGeneratedComInterfaceAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
17
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Analyzers\ConvertComImportToGeneratedComInterfaceFixer.cs (1)
19
[ExportCodeFixProvider(LanguageNames.
CSharp
), Shared]
Analyzers\GeneratedComInterfaceAttributeAnalyzer.cs (1)
17
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (1)
18
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Microsoft.Interop.LibraryImportGenerator (7)
Analyzers\AddDisableRuntimeMarshallingAttributeFixer.cs (1)
17
[ExportCodeFixProvider(LanguageNames.
CSharp
), Shared]
Analyzers\ConvertToLibraryImportAnalyzer.cs (1)
18
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Analyzers\ConvertToLibraryImportFixer.cs (1)
26
[ExportCodeFixProvider(LanguageNames.
CSharp
), Shared]
Analyzers\CustomMarshallerAttributeAnalyzer.cs (1)
18
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Analyzers\CustomMarshallerAttributeFixer.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
), Shared]
Analyzers\NativeMarshallingAttributeAnalyzer.cs (1)
19
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Analyzers\ShapeBreakingDiagnosticSuppressor.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
Microsoft.Maui.Controls.BindingSourceGen (1)
BindingSourceGenerator.cs (1)
13
[Generator(LanguageNames.
CSharp
)]
Microsoft.Maui.Controls.SourceGen (1)
CodeBehindGenerator.cs (1)
20
[Generator(LanguageNames.
CSharp
)]
Microsoft.ML.CodeAnalyzer.Tests (2)
Code\BestFriendTest.cs (1)
66
var projectA = solution.AddProject("ProjectA", "ProjectA", LanguageNames.
CSharp
);
Code\RelaxTestNamingTest.cs (1)
103
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Microsoft.ML.InternalCodeAnalyzer (12)
BaseTestClassAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
BestFriendAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
BestFriendOnPublicDeclarationsAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
ContractsCheckAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
ContractsCheckNameofFixProvider.cs (1)
20
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = nameof(ContractsCheckNameofFixProvider)), Shared]
InstanceInitializerAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
NameAnalyzer.cs (1)
24
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
NameFixProvider.cs (1)
29
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = nameof(NameFixProvider)), Shared]
ParameterVariableNameAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
RelaxTestNamingSuppressor.cs (1)
12
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
SingleVariableDeclarationAnalyzer.cs (1)
14
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
TypeParamNameAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
Microsoft.VisualStudio.LanguageServices (33)
ChangeSignature\ChangeSignatureDialogViewModel.ParameterViewModels.cs (2)
180
case LanguageNames.
CSharp
:
233
case LanguageNames.
CSharp
:
CommonControls\NewTypeDestinationSelectionViewModel.cs (2)
19
LanguageNames.
CSharp
,
43
_fileExtension = languageName == LanguageNames.
CSharp
? ".cs" : ".vb";
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (3)
103
.Where(p => p.Language is LanguageNames.
CSharp
or LanguageNames.VisualBasic)
208
var csharpAnalysisScope = globalOptions.GetOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.
CSharp
);
211
var containsCSharpProject = solution.Projects.Any(static project => project.Language == LanguageNames.
CSharp
);
EditorConfigSettings\SettingsEditorFactory.cs (1)
84
if (!_workspace.CurrentSolution.Projects.Any(p => p.Language is LanguageNames.
CSharp
or LanguageNames.VisualBasic))
EditorConfigSettings\Whitespace\ViewModel\IndentationSizeViewModel.cs (1)
27
_key = new OptionKey2(FormattingOptions2.IndentationSize, LanguageNames.
CSharp
);
EditorConfigSettings\Whitespace\ViewModel\NewLineViewModel.cs (1)
27
_key = new OptionKey2(FormattingOptions2.NewLine, LanguageNames.
CSharp
);
EditorConfigSettings\Whitespace\ViewModel\TabSizeViewModelFactory.cs (1)
25
_key = new OptionKey2(FormattingOptions2.TabSize, LanguageNames.
CSharp
);
GenerateType\GenerateTypeDialogViewModel.cs (7)
166
else if (languageName == LanguageNames.
CSharp
)
192
PopulateAccessList("internal", Accessibility.Internal, LanguageNames.
CSharp
);
196
PopulateAccessList("public", Accessibility.Public, LanguageNames.
CSharp
);
445
if (_selectedProject.Language == LanguageNames.
CSharp
)
679
if (this.SelectedProject.Language == LanguageNames.
CSharp
)
754
this.AccessList = document.Project.Language == LanguageNames.
CSharp
761
this.KindList = document.Project.Language == LanguageNames.
CSharp
GenerateType\VisualStudioGenerateTypeOptionsServiceFactory.cs (1)
52
document.Project.Language == LanguageNames.
CSharp
? ".cs" : ".vb",
Implementation\HierarchyItemToProjectIdMap.cs (1)
44
if (p.Language is not LanguageNames.
CSharp
Library\ObjectBrowser\Lists\ProjectListItem.cs (1)
27
case LanguageNames.
CSharp
:
MoveStaticMembers\VisualStudioMoveStaticMembersOptionsService.cs (1)
65
var newFileName = Path.ChangeExtension(typeName, language == LanguageNames.
CSharp
? ".cs" : ".vb");
Options\VisualStudioOptionStorage.cs (1)
57
LanguageNames.
CSharp
=> "CSharp",
Packaging\PackageInstallerServiceFactory.cs (1)
554
if (project?.Language is LanguageNames.
CSharp
or
Preview\FileChange.cs (1)
234
= document.Project.Language == LanguageNames.
CSharp
? (ushort)StandardGlyphGroup.GlyphCSharpFile :
PreviewPane\PreviewPaneService.cs (2)
114
if (optionLanguage == LanguageNames.
CSharp
)
125
if (optionLanguage == LanguageNames.
CSharp
)
Progression\GraphBuilder.cs (1)
409
if (propertySymbol.IsIndexer && LanguageNames.
CSharp
== propertySymbol.Language)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
1320
LanguageNames.
CSharp
=> ".cs",
SyncNamespaces\SyncNamespacesCommandHandler.cs (2)
80
.Any(project => project.Language.Equals(LanguageNames.
CSharp
, StringComparison.OrdinalIgnoreCase));
109
.Where(project => project.Language.Equals(LanguageNames.
CSharp
, StringComparison.OrdinalIgnoreCase))
Venus\ContainedDocument.cs (2)
967
if (_project.Language == LanguageNames.
CSharp
)
1055
if (_project.Language == LanguageNames.
CSharp
)
Microsoft.VisualStudio.LanguageServices.CSharp (133)
ChangeSignature\CSharpChangeSignatureViewModelFactoryService.cs (1)
18
[ExportLanguageService(typeof(IChangeSignatureViewModelFactoryService), LanguageNames.
CSharp
), Shared]
CodeModel\CSharpCodeModelNavigationPointServiceFactory.cs (1)
17
[ExportLanguageServiceFactory(typeof(ICodeModelNavigationPointService), LanguageNames.
CSharp
), Shared]
CodeModel\CSharpCodeModelService.NodeLocator.cs (1)
29
protected override string LanguageName => LanguageNames.
CSharp
;
CodeModel\CSharpCodeModelServiceFactory.cs (1)
18
[ExportLanguageServiceFactory(typeof(ICodeModelService), LanguageNames.
CSharp
), Shared]
CSharpPackage.cs (2)
149
LanguageNames.
CSharp
,
157
return LanguageNames.
CSharp
;
EditorConfigSettings\DataProvider\CodeStyle\CSharpCodeStyleSettingsLanguageServiceFactory.cs (1)
16
[ExportLanguageServiceFactory(typeof(ILanguageSettingsProviderFactory<CodeStyleSetting>), LanguageNames.
CSharp
), Shared]
EditorConfigSettings\DataProvider\Whitespace\CSharpWhitespaceSettingsLanguageServiceFactory.cs (1)
16
[ExportLanguageServiceFactory(typeof(ILanguageSettingsProviderFactory<Setting>), LanguageNames.
CSharp
), Shared]
Interactive\CSharpInteractiveWindowCommandCompletionProvider.cs (2)
25
[ExportCompletionProviderMef1("ReplCommandCompletionProvider", LanguageNames.
CSharp
)]
37
=> LanguageNames.
CSharp
;
LanguageService\CSharpCreateServicesOnTextViewConnection.cs (2)
36
: base(workspace, globalOptions, listenerProvider, threadingContext, LanguageNames.
CSharp
)
43
if (GlobalOptions.GetOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
) != true)
LanguageService\CSharpEditorFactory.cs (1)
29
protected override string LanguageName => LanguageNames.
CSharp
;
LanguageService\CSharpHelpContextService.cs (1)
28
[ExportLanguageService(typeof(IHelpContextService), LanguageNames.
CSharp
), Shared]
LanguageService\CSharpLanguageService.cs (1)
65
return LanguageNames.
CSharp
;
LanguageService\CSharpOptionPageService.cs (1)
18
[ExportLanguageService(typeof(IOptionPageService), LanguageNames.
CSharp
), Shared]
ObjectBrowser\CSharpLibraryService.cs (1)
16
[ExportLanguageService(typeof(ILibraryService), LanguageNames.
CSharp
), Shared]
Options\AdvancedOptionPageControl.xaml.cs (71)
57
BindToOption(Run_background_code_analysis_for, SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.
CSharp
, label: Run_background_code_analysis_for_label);
58
BindToOption(Show_compiler_errors_and_warnings_for, SolutionCrawlerOptionsStorage.CompilerDiagnosticsScopeOption, LanguageNames.
CSharp
, label: Show_compiler_errors_and_warnings_for_label);
59
BindToOption(DisplayDiagnosticsInline, InlineDiagnosticsOptionsStorage.EnableInlineDiagnostics, LanguageNames.
CSharp
);
60
BindToOption(at_the_end_of_the_line_of_code, InlineDiagnosticsOptionsStorage.Location, InlineDiagnosticsLocations.PlacedAtEndOfCode, LanguageNames.
CSharp
);
61
BindToOption(on_the_right_edge_of_the_editor_window, InlineDiagnosticsOptionsStorage.Location, InlineDiagnosticsLocations.PlacedAtEndOfEditor, LanguageNames.
CSharp
);
107
BindToOption(PlaceSystemNamespaceFirst, GenerationOptions.PlaceSystemNamespaceFirst, LanguageNames.
CSharp
);
108
BindToOption(SeparateImportGroups, GenerationOptions.SeparateImportDirectiveGroups, LanguageNames.
CSharp
);
109
BindToOption(SuggestForTypesInReferenceAssemblies, SymbolSearchOptionsStorage.SearchReferenceAssemblies, LanguageNames.
CSharp
);
110
BindToOption(SuggestForTypesInNuGetPackages, SymbolSearchOptionsStorage.SearchNuGetPackages, LanguageNames.
CSharp
);
111
BindToOption(AddUsingsOnPaste, AddImportOnPasteOptionsStorage.AddImportsOnPaste, LanguageNames.
CSharp
);
114
BindToOption(EnableHighlightReferences, ReferenceHighlightingOptionsStorage.ReferenceHighlighting, LanguageNames.
CSharp
);
115
BindToOption(EnableHighlightKeywords, KeywordHighlightingOptionsStorage.KeywordHighlighting, LanguageNames.
CSharp
);
118
BindToOption(EnterOutliningMode, OutliningOptionsStorage.Outlining, LanguageNames.
CSharp
);
119
BindToOption(Collapse_regions_on_file_open, BlockStructureOptionsStorage.CollapseRegionsWhenFirstOpened, LanguageNames.
CSharp
);
120
BindToOption(Collapse_usings_on_file_open, BlockStructureOptionsStorage.CollapseImportsWhenFirstOpened, LanguageNames.
CSharp
);
121
BindToOption(Collapse_sourcelink_embedded_decompiled_files_on_open, BlockStructureOptionsStorage.CollapseSourceLinkEmbeddedDecompiledFilesWhenFirstOpened, LanguageNames.
CSharp
);
122
BindToOption(Collapse_metadata_signature_files_on_open, BlockStructureOptionsStorage.CollapseMetadataSignatureFilesWhenFirstOpened, LanguageNames.
CSharp
);
123
BindToOption(DisplayLineSeparators, LineSeparatorsOptionsStorage.LineSeparator, LanguageNames.
CSharp
);
124
BindToOption(Show_outlining_for_declaration_level_constructs, BlockStructureOptionsStorage.ShowOutliningForDeclarationLevelConstructs, LanguageNames.
CSharp
);
125
BindToOption(Show_outlining_for_code_level_constructs, BlockStructureOptionsStorage.ShowOutliningForCodeLevelConstructs, LanguageNames.
CSharp
);
126
BindToOption(Show_outlining_for_comments_and_preprocessor_regions, BlockStructureOptionsStorage.ShowOutliningForCommentsAndPreprocessorRegions, LanguageNames.
CSharp
);
127
BindToOption(Collapse_regions_when_collapsing_to_definitions, BlockStructureOptionsStorage.CollapseRegionsWhenCollapsingToDefinitions, LanguageNames.
CSharp
);
128
BindToOption(Collapse_local_functions_when_collapsing_to_definitions, BlockStructureOptionsStorage.CollapseLocalFunctionsWhenCollapsingToDefinitions, LanguageNames.
CSharp
);
131
BindToOption(Fade_out_unused_usings, FadingOptions.FadeOutUnusedImports, LanguageNames.
CSharp
);
132
BindToOption(Fade_out_unused_members, FadingOptions.FadeOutUnusedMembers, LanguageNames.
CSharp
);
133
BindToOption(Fade_out_unreachable_code, FadingOptions.FadeOutUnreachableCode, LanguageNames.
CSharp
);
136
BindToOption(Show_guides_for_declaration_level_constructs, BlockStructureOptionsStorage.ShowBlockStructureGuidesForDeclarationLevelConstructs, LanguageNames.
CSharp
);
137
BindToOption(Show_guides_for_code_level_constructs, BlockStructureOptionsStorage.ShowBlockStructureGuidesForCodeLevelConstructs, LanguageNames.
CSharp
);
138
BindToOption(Show_guides_for_comments_and_preprocessor_regions, BlockStructureOptionsStorage.ShowBlockStructureGuidesForCommentsAndPreprocessorRegions, LanguageNames.
CSharp
);
141
BindToOption(GenerateXmlDocCommentsForTripleSlash, DocumentationCommentOptionsStorage.AutoXmlDocCommentGeneration, LanguageNames.
CSharp
);
142
BindToOption(InsertSlashSlashAtTheStartOfNewLinesWhenWritingSingleLineComments, SplitCommentOptionsStorage.Enabled, LanguageNames.
CSharp
);
143
BindToOption(InsertAsteriskAtTheStartOfNewLinesWhenWritingBlockComments, BlockCommentEditingOptionsStorage.AutoInsertBlockCommentStartString, LanguageNames.
CSharp
);
146
BindToOption(ShowRemarksInQuickInfo, QuickInfoOptionsStorage.ShowRemarksInQuickInfo, LanguageNames.
CSharp
);
147
BindToOption(RenameTrackingPreview, RenameTrackingOptionsStorage.RenameTrackingPreview, LanguageNames.
CSharp
);
149
BindToOption(Fix_text_pasted_into_string_literals_experimental, StringCopyPasteOptionsStorage.AutomaticallyFixStringContentsOnPaste, LanguageNames.
CSharp
);
150
BindToOption(Report_invalid_placeholders_in_string_dot_format_calls, FormatStringValidationOptionStorage.ReportInvalidPlaceholdersInStringDotFormatCalls, LanguageNames.
CSharp
);
151
BindToOption(Underline_reassigned_variables, ClassificationOptionsStorage.ClassifyReassignedVariables, LanguageNames.
CSharp
);
152
BindToOption(Strike_out_obsolete_symbols, ClassificationOptionsStorage.ClassifyObsoleteSymbols, LanguageNames.
CSharp
);
155
BindToOption(Colorize_regular_expressions, ClassificationOptionsStorage.ColorizeRegexPatterns, LanguageNames.
CSharp
);
156
BindToOption(Report_invalid_regular_expressions, RegexOptionsStorage.ReportInvalidRegexPatterns, LanguageNames.
CSharp
);
157
BindToOption(Highlight_related_regular_expression_components_under_cursor, HighlightingOptionsStorage.HighlightRelatedRegexComponentsUnderCursor, LanguageNames.
CSharp
);
158
BindToOption(Show_completion_list, CompletionOptionsStorage.ProvideRegexCompletions, LanguageNames.
CSharp
);
161
BindToOption(Colorize_JSON_strings, ClassificationOptionsStorage.ColorizeJsonPatterns, LanguageNames.
CSharp
);
162
BindToOption(Report_invalid_JSON_strings, JsonDetectionOptionsStorage.ReportInvalidJsonPatterns, LanguageNames.
CSharp
);
163
BindToOption(Highlight_related_JSON_components_under_cursor, HighlightingOptionsStorage.HighlightRelatedJsonComponentsUnderCursor, LanguageNames.
CSharp
);
169
BindToOption(with_other_members_of_the_same_kind, ImplementTypeOptionsStorage.InsertionBehavior, ImplementTypeInsertionBehavior.WithOtherMembersOfTheSameKind, LanguageNames.
CSharp
);
170
BindToOption(at_the_end, ImplementTypeOptionsStorage.InsertionBehavior, ImplementTypeInsertionBehavior.AtTheEnd, LanguageNames.
CSharp
);
171
BindToOption(prefer_throwing_properties, ImplementTypeOptionsStorage.PropertyGenerationBehavior, ImplementTypePropertyGenerationBehavior.PreferThrowingProperties, LanguageNames.
CSharp
);
172
BindToOption(prefer_auto_properties, ImplementTypeOptionsStorage.PropertyGenerationBehavior, ImplementTypePropertyGenerationBehavior.PreferAutoProperties, LanguageNames.
CSharp
);
176
BindToOption(ColorHints, InlineHintsViewOptionsStorage.ColorHints, LanguageNames.
CSharp
);
178
BindToOption(DisplayInlineParameterNameHints, InlineHintsOptionsStorage.EnabledForParameters, LanguageNames.
CSharp
);
179
BindToOption(ShowHintsForLiterals, InlineHintsOptionsStorage.ForLiteralParameters, LanguageNames.
CSharp
);
180
BindToOption(ShowHintsForNewExpressions, InlineHintsOptionsStorage.ForObjectCreationParameters, LanguageNames.
CSharp
);
181
BindToOption(ShowHintsForEverythingElse, InlineHintsOptionsStorage.ForOtherParameters, LanguageNames.
CSharp
);
182
BindToOption(ShowHintsForIndexers, InlineHintsOptionsStorage.ForIndexerParameters, LanguageNames.
CSharp
);
183
BindToOption(SuppressHintsWhenParameterNameMatchesTheMethodsIntent, InlineHintsOptionsStorage.SuppressForParametersThatMatchMethodIntent, LanguageNames.
CSharp
);
184
BindToOption(SuppressHintsWhenParameterNamesDifferOnlyBySuffix, InlineHintsOptionsStorage.SuppressForParametersThatDifferOnlyBySuffix, LanguageNames.
CSharp
);
185
BindToOption(SuppressHintsWhenParameterNamesMatchArgumentNames, InlineHintsOptionsStorage.SuppressForParametersThatMatchArgumentName, LanguageNames.
CSharp
);
187
BindToOption(DisplayInlineTypeHints, InlineHintsOptionsStorage.EnabledForTypes, LanguageNames.
CSharp
);
188
BindToOption(ShowHintsForVariablesWithInferredTypes, InlineHintsOptionsStorage.ForImplicitVariableTypes, LanguageNames.
CSharp
);
189
BindToOption(ShowHintsForLambdaParameterTypes, InlineHintsOptionsStorage.ForLambdaParameterTypes, LanguageNames.
CSharp
);
190
BindToOption(ShowHintsForImplicitObjectCreation, InlineHintsOptionsStorage.ForImplicitObjectCreation, LanguageNames.
CSharp
);
191
BindToOption(ShowHintsForCollectionExpressions, InlineHintsOptionsStorage.ForCollectionExpressions, LanguageNames.
CSharp
);
195
BindToOption(ShowInheritanceMargin, InheritanceMarginOptionsStorage.ShowInheritanceMargin, LanguageNames.
CSharp
, () => true);
197
BindToOption(IncludeGlobalImports, InheritanceMarginOptionsStorage.InheritanceMarginIncludeGlobalImports, LanguageNames.
CSharp
);
222
var enabledForParameters = this.OptionStore.GetOption(InlineHintsOptionsStorage.EnabledForParameters, LanguageNames.
CSharp
);
231
var enabledForTypes = this.OptionStore.GetOption(InlineHintsOptionsStorage.EnabledForTypes, LanguageNames.
CSharp
);
240
this.OptionStore.SetOption(InlineHintsOptionsStorage.EnabledForParameters, LanguageNames.
CSharp
, true);
246
this.OptionStore.SetOption(InlineHintsOptionsStorage.EnabledForParameters, LanguageNames.
CSharp
, false);
252
this.OptionStore.SetOption(InlineHintsOptionsStorage.EnabledForTypes, LanguageNames.
CSharp
, true);
258
this.OptionStore.SetOption(InlineHintsOptionsStorage.EnabledForTypes, LanguageNames.
CSharp
, false);
Options\AutomationObject\AutomationObject.cs (1)
17
: base(legacyGlobalOptions, LanguageNames.
CSharp
)
Options\CSharpVisualStudioCopilotOptionsService.cs (1)
18
[ExportLanguageService(typeof(ICopilotOptionsService), LanguageNames.
CSharp
), Shared]
Options\Formatting\CodeStylePage.cs (2)
25
enumerator.GetOptions(LanguageNames.
CSharp
),
26
LanguageNames.
CSharp
);
Options\Formatting\FormattingOptionPageControl.xaml.cs (5)
35
BindToOption(FormatWhenTypingCheckBox, AutoFormattingOptionsStorage.FormatOnTyping, LanguageNames.
CSharp
);
36
BindToOption(FormatOnCloseBraceCheckBox, AutoFormattingOptionsStorage.FormatOnCloseBrace, LanguageNames.
CSharp
);
37
BindToOption(FormatOnSemicolonCheckBox, AutoFormattingOptionsStorage.FormatOnSemicolon, LanguageNames.
CSharp
);
38
BindToOption(FormatOnReturnCheckBox, AutoFormattingOptionsStorage.FormatOnReturn, LanguageNames.
CSharp
);
39
BindToOption(FormatOnPasteCheckBox, FormattingOptionsStorage.FormatOnPaste, LanguageNames.
CSharp
);
Options\Formatting\IndentationViewModel.cs (1)
79
public IndentationViewModel(OptionStore optionStore, IServiceProvider serviceProvider) : base(optionStore, serviceProvider, LanguageNames.
CSharp
)
Options\Formatting\NewLinesViewModel.cs (1)
205
public NewLinesViewModel(OptionStore optionStore, IServiceProvider serviceProvider) : base(optionStore, serviceProvider, LanguageNames.
CSharp
)
Options\Formatting\SpacingViewModel.cs (1)
108
public SpacingViewModel(OptionStore optionStore, IServiceProvider serviceProvider) : base(optionStore, serviceProvider, LanguageNames.
CSharp
)
Options\Formatting\StyleViewModel.cs (1)
2192
internal StyleViewModel(OptionStore optionStore, IServiceProvider serviceProvider) : base(optionStore, serviceProvider, LanguageNames.
CSharp
)
Options\Formatting\WrappingViewModel.cs (1)
37
public WrappingViewModel(OptionStore optionStore, IServiceProvider serviceProvider) : base(optionStore, serviceProvider, LanguageNames.
CSharp
)
Options\IntelliSenseOptionPageControl.xaml.cs (17)
21
BindToOption(Show_completion_list_after_a_character_is_typed, CompletionOptionsStorage.TriggerOnTypingLetters, LanguageNames.
CSharp
);
22
BindToOption(Show_completion_list_after_a_character_is_deleted, CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.
CSharp
, onNullValue: static () => false);
25
BindToOption(Automatically_show_completion_list_in_argument_lists, CompletionOptionsStorage.TriggerInArgumentLists, LanguageNames.
CSharp
);
26
BindToOption(Highlight_matching_portions_of_completion_list_items, CompletionViewOptionsStorage.HighlightMatchingPortionsOfCompletionListItems, LanguageNames.
CSharp
);
27
BindToOption(Show_completion_item_filters, CompletionViewOptionsStorage.ShowCompletionItemFilters, LanguageNames.
CSharp
);
30
BindToOption(Never_include_snippets, CompletionOptionsStorage.SnippetsBehavior, SnippetsRule.NeverInclude, LanguageNames.
CSharp
);
31
BindToOption(Always_include_snippets, CompletionOptionsStorage.SnippetsBehavior, SnippetsRule.AlwaysInclude, LanguageNames.
CSharp
);
32
BindToOption(Include_snippets_when_question_Tab_is_typed_after_an_identifier, CompletionOptionsStorage.SnippetsBehavior, SnippetsRule.IncludeAfterTypingIdentifierQuestionTab, LanguageNames.
CSharp
);
35
BindToOption(Never_add_new_line_on_enter, CompletionOptionsStorage.EnterKeyBehavior, EnterKeyRule.Never, LanguageNames.
CSharp
);
36
BindToOption(Only_add_new_line_on_enter_with_whole_word, CompletionOptionsStorage.EnterKeyBehavior, EnterKeyRule.AfterFullyTypedWord, LanguageNames.
CSharp
);
37
BindToOption(Always_add_new_line_on_enter, CompletionOptionsStorage.EnterKeyBehavior, EnterKeyRule.Always, LanguageNames.
CSharp
);
40
BindToOption(Show_name_suggestions, CompletionOptionsStorage.ShowNameSuggestions, LanguageNames.
CSharp
);
42
BindToOption(Show_items_from_unimported_namespaces, CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, onNullValue: static () => true);
44
BindToOption(Tab_twice_to_insert_arguments, CompletionViewOptionsStorage.EnableArgumentCompletionSnippets, LanguageNames.
CSharp
, onNullValue: static () => false);
45
BindToOption(Show_new_snippet_experience, CompletionOptionsStorage.ShowNewSnippetExperienceUserOption, LanguageNames.
CSharp
,
51
var snippetValue = this.OptionStore.GetOption(CompletionOptionsStorage.SnippetsBehavior, LanguageNames.
CSharp
);
60
var enterKeyBehavior = this.OptionStore.GetOption(CompletionOptionsStorage.EnterKeyBehavior, LanguageNames.
CSharp
);
Options\NamingStylesOptionPage.cs (1)
30
_grid = new NamingStyleOptionPageControl(optionStore, _notificationService, LanguageNames.
CSharp
);
Progression\CSharpProgressionLanguageService.cs (1)
21
[ExportLanguageService(typeof(IProgressionLanguageService), LanguageNames.
CSharp
), Shared]
ProjectSystemShim\CSharpEntryPointFinderService.cs (1)
14
[ExportLanguageService(typeof(IEntryPointFinderService), LanguageNames.
CSharp
), Shared]
ProjectSystemShim\CSharpProjectExistsUIContextProviderLanguageService.cs (1)
14
[ExportLanguageService(typeof(IProjectExistsUIContextProviderLanguageService), LanguageNames.
CSharp
), Shared]
ProjectSystemShim\CSharpProjectShim.cs (1)
56
LanguageNames.
CSharp
,
SemanticSearch\SemanticSearchToolWindow.cs (1)
45
Title = string.Format(ServicesVSResources.Semantic_search_0, LanguageNames.
CSharp
);
SemanticSearch\SemanticSearchToolWindowImpl.cs (2)
110
textDocument.Rename(SemanticSearchUtilities.GetDocumentFilePath(LanguageNames.
CSharp
));
378
LanguageNames.
CSharp
,
Snippets\CSharpSnippetExpansionLanguageHelper.cs (1)
34
[ExportLanguageService(typeof(ISnippetExpansionLanguageHelper), LanguageNames.
CSharp
), Shared]
Snippets\CSharpSnippetInfoService.cs (1)
20
[ExportLanguageService(typeof(ISnippetInfoService), LanguageNames.
CSharp
), Shared]
Utilities\CSharpCompilationOptionsChangingService.cs (1)
15
[ExportLanguageService(typeof(ICompilationOptionsChangingService), LanguageNames.
CSharp
), Shared]
Utilities\CSharpParseOptionsChangingService.cs (1)
16
[ExportLanguageService(typeof(IParseOptionsChangingService), LanguageNames.
CSharp
), Shared]
Venus\CSharpAdditionalFormattingRuleLanguageService.cs (1)
17
[ExportLanguageService(typeof(IAdditionalFormattingRuleLanguageService), LanguageNames.
CSharp
), Shared]
Venus\CSharpVenusBraceMatchingService.cs (1)
16
[ExportLanguageService(typeof(IVenusBraceMatchingService), LanguageNames.
CSharp
), Shared]
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (11)
EditorConfigSettings\Aggregator\SettingsAggregatorTests.cs (1)
29
.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.
CSharp
)
EditorConfigSettings\DataProvider\DataProviderTests.cs (6)
30
.AddProject(ProjectInfo.Create(projectId, VersionStamp.Create(), "proj1", "proj1.dll", LanguageNames.
CSharp
, filePath: projectFilePath))
60
var settingsProviderFactory = GettingSettingsProviderFactoryFromLanguageService<T>(LanguageNames.
CSharp
);
164
var settingsProviderFactory = GettingSettingsProviderFactoryFromLanguageService<CodeStyleSetting>(LanguageNames.
CSharp
);
204
var settingsProviderFactory = GettingSettingsProviderFactoryFromLanguageService<Setting>(LanguageNames.
CSharp
);
218
var settingsProviderFactory = GettingSettingsProviderFactoryFromLanguageServiceWithNullProjectPath<Setting>(LanguageNames.
CSharp
);
240
var settingsProviderFactory = GettingSettingsProviderFactoryFromLanguageServiceWithNullProjectPath<CodeStyleSetting>(LanguageNames.
CSharp
);
F1Help\F1HelpTests.cs (1)
29
var service = Assert.IsType<CSharpHelpContextService>(workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetService<IHelpContextService>());
PersistentStorage\AbstractPersistentStorageTests.cs (1)
988
solution = solution.AddProject(ProjectInfo.Create(ProjectId.CreateNewId(), VersionStamp.Create(), "Project1", "Project1", LanguageNames.
CSharp
,
ProjectSystemShim\CSharpHelpers.cs (1)
88
LanguageNames.
CSharp
,
UnifiedSettings\CSharpUnifiedSettingsTests.cs (1)
116
TestUnifiedSettingsCategory(registrationJsonObject, categoryBasePath: "textEditor.csharp.intellisense", languageName: LanguageNames.
CSharp
, pkgdefFile);
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Client\Razor\CSharpLspRazorProjectFactory.cs (1)
26
var projectInfo = ProjectInfo.Create(ProjectId.CreateNewId(projectName), VersionStamp.Default, projectName, projectName, LanguageNames.
CSharp
);
Client\RemoteLanguageServiceWorkspace.cs (1)
350
return LanguageNames.
CSharp
;
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (2)
UnifiedSettings\UnifiedSettingsTests.vb (1)
161
Case LanguageNames.
CSharp
UnifiedSettings\UnifiedSettingsTests_UnifiedSettingsStorage.vb (1)
48
Case LanguageNames.
CSharp
Microsoft.VisualStudio.LanguageServices.UnitTests (222)
AbstractTextViewFilterTests.vb (5)
22
<Project Language=<%= LanguageNames.
CSharp
%> CommonReferences="true">
57
<Project Language=<%= LanguageNames.
CSharp
%> CommonReferences="true">
87
<Project Language=<%= LanguageNames.
CSharp
%> CommonReferences="true">
119
<Project Language=<%= LanguageNames.
CSharp
%> CommonReferences="true">
149
<Project Language=<%= LanguageNames.
CSharp
%> CommonReferences="true">
ChangeSignature\AddParameterViewModelTests.vb (7)
25
Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.
CSharp
)
56
Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.
CSharp
)
154
Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.
CSharp
)
187
Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.
CSharp
)
231
Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.
CSharp
)
320
Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.
CSharp
)
360
Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.
CSharp
)
ChangeSignature\ChangeSignatureViewModelTests.vb (11)
36
Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.
CSharp
)
65
Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.
CSharp
)
94
Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.
CSharp
)
131
Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.
CSharp
)
168
Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.
CSharp
)
226
Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.
CSharp
)
245
Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.
CSharp
)
265
Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.
CSharp
)
284
Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.
CSharp
)
307
Dim state = Await GetViewModelTestStateAsync(markup, LanguageNames.
CSharp
)
333
Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.
CSharp
)
CodeModel\CSharp\CodeAccessorFunctionTests.vb (1)
76
Return LanguageNames.
CSharp
CodeModel\CSharp\CodeAttributeTests.vb (1)
1083
Return LanguageNames.
CSharp
CodeModel\CSharp\CodeClassTests.vb (1)
3995
Return LanguageNames.
CSharp
CodeModel\CSharp\CodeDelegateTests.vb (1)
386
Return LanguageNames.
CSharp
CodeModel\CSharp\CodeEnumTests.vb (1)
588
Return LanguageNames.
CSharp
CodeModel\CSharp\CodeEventTests.vb (1)
974
Return LanguageNames.
CSharp
CodeModel\CSharp\CodeFunctionTests.vb (1)
2706
Return LanguageNames.
CSharp
CodeModel\CSharp\CodeImportTests.vb (1)
91
Return LanguageNames.
CSharp
CodeModel\CSharp\CodeInterfaceTests.vb (1)
432
Return LanguageNames.
CSharp
CodeModel\CSharp\CodeNamespaceTests.vb (1)
634
Return LanguageNames.
CSharp
CodeModel\CSharp\CodeParameterTests.vb (1)
1254
Return LanguageNames.
CSharp
CodeModel\CSharp\CodePropertyTests.vb (1)
1693
Return LanguageNames.
CSharp
CodeModel\CSharp\CodeStructTests.vb (1)
535
Return LanguageNames.
CSharp
CodeModel\CSharp\CodeVariableTests.vb (1)
2027
Return LanguageNames.
CSharp
CodeModel\CSharp\EventCollectorTests.vb (1)
1043
Return LanguageNames.
CSharp
CodeModel\CSharp\ExternalCodeClassTests.vb (1)
103
Return LanguageNames.
CSharp
CodeModel\CSharp\ExternalCodeFunctionTests.vb (1)
51
Protected Overrides ReadOnly Property LanguageName As String = LanguageNames.
CSharp
CodeModel\CSharp\ExternalCodeParameterTests.vb (1)
111
Protected Overrides ReadOnly Property LanguageName As String = LanguageNames.
CSharp
CodeModel\CSharp\ExternalCodePropertyTests.vb (1)
215
Protected Overrides ReadOnly Property LanguageName As String = LanguageNames.
CSharp
CodeModel\CSharp\FileCodeModelTests.vb (1)
1312
Return LanguageNames.
CSharp
CodeModel\CSharp\RootCodeModelTests.vb (1)
315
Return LanguageNames.
CSharp
CommonControls\MemberSelectionViewModelTests.vb (3)
54
Dim viewModel = Await GetViewModelAsync(markUp, LanguageNames.
CSharp
)
94
Dim viewModel = Await GetViewModelAsync(markUp, LanguageNames.
CSharp
)
142
Dim viewModel = Await GetViewModelAsync(markUp, LanguageNames.
CSharp
)
CommonControls\NewTypeDestinationSelectionViewModelTests.vb (10)
32
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass")
57
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass")
71
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass")
91
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass", defaultNamespace:="Outer.Inner")
111
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass", defaultNamespace:="Outer.Inner", generatedNameTypeParameterSuffix:="<X, Y>")
131
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IC", defaultNamespace:="Ns")
147
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass")
168
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass")
187
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IC")
202
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass")
Completion\CSharpCompletionSnippetNoteTests.vb (3)
119
Dim testSnippetInfoService = DirectCast(state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetService(Of ISnippetInfoService)(), TestCSharpSnippetInfoService)
137
Dim testSnippetInfoService = DirectCast(state.Workspace.Services.GetLanguageServices(LanguageNames.
CSharp
).GetService(Of ISnippetInfoService)(), TestCSharpSnippetInfoService)
139
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowNewSnippetExperienceUserOption, LanguageNames.
CSharp
, False)
Completion\CSharpMockCompletionProvider.vb (2)
11
<ExportCompletionProvider(NameOf(CSharpMockCompletionProvider), LanguageNames.
CSharp
)>
24
Return LanguageNames.
CSharp
Completion\TestCSharpSnippetInfoService.vb (1)
15
<ExportLanguageService(GetType(ISnippetInfoService), LanguageNames.
CSharp
, ServiceLayer.Test), [Shared], PartNotDiscoverable>
DebuggerIntelliSense\CSharpDebuggerIntellisenseTests.vb (2)
776
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
805
state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.
CSharp
, True)
DebuggerIntelliSense\TestState.vb (1)
48
If language = LanguageNames.
CSharp
Then
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (3)
49
ImmutableDictionary(Of String, ImmutableArray(Of DiagnosticAnalyzer)).Empty.Add(LanguageNames.
CSharp
, ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)))
95
ImmutableDictionary(Of String, ImmutableArray(Of DiagnosticAnalyzer)).Empty.Add(LanguageNames.
CSharp
, ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer)))
226
Dim compiler = DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.
CSharp
)
Diagnostics\VisualStudioDiagnosticAnalyzerProviderTests.vb (1)
56
Dim analyzerReferenceMap = hostAnalyzers.GetOrCreateHostDiagnosticAnalyzersPerReference(LanguageNames.
CSharp
)
ExtractInterface\ExtractInterfaceViewModelTests.vb (16)
34
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass")
46
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IC")
60
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IC")
76
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass")
95
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass")
111
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass", conflictingTypeNames:=New List(Of String) From {"IMyClass"})
126
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass")
142
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass")
158
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass")
174
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass")
190
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass")
207
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass")
224
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass")
237
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass")
251
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass")
267
Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.
CSharp
, "IMyClass")
GenerateType\GenerateTypeViewModelTests.vb (8)
323
Dim viewModel = Await GetViewModelAsync(documentContentMarkup, LanguageNames.
CSharp
, typeKindvalue:=TypeKindOptions.Attribute, isAttribute:=True)
376
Dim viewModel = Await GetViewModelAsync(documentContentMarkup, LanguageNames.
CSharp
, typeKindvalue:=TypeKindOptions.Class, isPublicOnlyAccessibility:=False, isAttribute:=True)
388
Dim viewModel = Await GetViewModelAsync(documentContentMarkup, LanguageNames.
CSharp
, typeKindvalue:=TypeKindOptions.Class, isPublicOnlyAccessibility:=False, isAttribute:=True)
399
Dim viewModel = Await GetViewModelAsync(documentContentMarkup, LanguageNames.
CSharp
, typeKindvalue:=TypeKindOptions.BaseList)
416
Dim viewModel = Await GetViewModelAsync(documentContentMarkup, LanguageNames.
CSharp
, typeKindvalue:=TypeKindOptions.Interface, isPublicOnlyAccessibility:=True)
572
Dim viewModel = Await GetViewModelAsync(workspaceXml, LanguageNames.
CSharp
)
595
Dim viewModel = Await GetViewModelAsync(workspaceXml, LanguageNames.
CSharp
)
862
If(document.Project.Language = LanguageNames.
CSharp
, ".cs", ".vb"),
InheritanceMargin\InheritanceMarginViewModelTests.vb (5)
166
Return VerifyAsync(markup, LanguageNames.
CSharp
, New Dictionary(Of Integer, GlyphViewModelData) From {
200
Return VerifyAsync(markup, LanguageNames.
CSharp
, New Dictionary(Of Integer, GlyphViewModelData) From {
241
Return VerifyAsync(markup, LanguageNames.
CSharp
, New Dictionary(Of Integer, GlyphViewModelData) From {
293
Return VerifyAsync(markup, LanguageNames.
CSharp
, New Dictionary(Of Integer, GlyphViewModelData) From {
340
Return VerifyAsync(markup, LanguageNames.
CSharp
, New Dictionary(Of Integer, GlyphViewModelData) From {
LanguageBlockTests.vb (8)
123
", LanguageNames.
CSharp
)
137
", LanguageNames.
CSharp
)
151
", LanguageNames.
CSharp
, "N")
165
", LanguageNames.
CSharp
, "Program")
181
", LanguageNames.
CSharp
, "void Program.M()")
200
", LanguageNames.
CSharp
, "int Program.P")
216
", LanguageNames.
CSharp
, SourceCodeKind.Script)
221
", LanguageNames.
CSharp
, SourceCodeKind.Regular)
MoveStaticMembers\MoveStaticMembersViewModelTest.vb (3)
49
Dim language = If(cSharp, LanguageNames.
CSharp
, LanguageNames.VisualBasic)
104
Dim cancelledOptions = VisualStudioMoveStaticMembersOptionsService.GenerateOptions(LanguageNames.
CSharp
, viewModel, False)
107
Dim options = VisualStudioMoveStaticMembersOptionsService.GenerateOptions(LanguageNames.
CSharp
, viewModel, True)
ObjectBrowser\CSharp\ObjectBrowerTests.vb (1)
20
Return LanguageNames.
CSharp
Options\CSharpEditorConfigGeneratorTests.vb (5)
268
Dim groupedOptions = workspace.GetService(Of EditorConfigOptionsEnumerator).GetOptions(LanguageNames.
CSharp
)
269
Dim actualText = EditorConfigFileGenerator.Generate(groupedOptions, Options, LanguageNames.
CSharp
)
278
options.SetOption(CodeStyleOptions2.PreferExplicitTupleNames, LanguageNames.
CSharp
, New CodeStyleOption2(Of Boolean)(False, NotificationOption2.[Error]))
526
Dim groupedOptions = workspace.GetService(Of EditorConfigOptionsEnumerator).GetOptions(LanguageNames.
CSharp
)
527
Dim actualText = EditorConfigFileGenerator.Generate(groupedOptions, options, LanguageNames.
CSharp
)
Preview\PreviewChangesTests.vb (2)
65
<Project Language=<%= LanguageNames.
CSharp
%> CommonReferences="true">
170
<Project Language=<%= LanguageNames.
CSharp
%> CommonReferences="true">
ProjectSystemShim\VisualStudioProjectTests\AnalyzerReferenceTests.vb (10)
24
"Project", LanguageNames.
CSharp
, CancellationToken.None)
46
"Project", LanguageNames.
CSharp
, CancellationToken.None)
52
Dim analyzers = environment.Workspace.CurrentSolution.Projects.Single().AnalyzerReferences.Single().GetAnalyzers(LanguageNames.
CSharp
)
66
"Project", LanguageNames.
CSharp
, CancellationToken.None)
72
Dim analyzers = environment.Workspace.CurrentSolution.Projects.Single().AnalyzerReferences.Single().GetAnalyzers(LanguageNames.
CSharp
)
85
"Project", LanguageNames.
CSharp
, CancellationToken.None)
91
Dim analyzers = environment.Workspace.CurrentSolution.Projects.Single().AnalyzerReferences.Single().GetAnalyzers(LanguageNames.
CSharp
)
120
"Project", LanguageNames.
CSharp
, CancellationToken.None)
196
"Project", LanguageNames.
CSharp
, CancellationToken.None)
212
"Project", LanguageNames.
CSharp
, CancellationToken.None)
ProjectSystemShim\VisualStudioProjectTests\DynamicFileTests.vb (5)
19
"project", LanguageNames.
CSharp
, CancellationToken.None)
33
"project", LanguageNames.
CSharp
, CancellationToken.None)
55
"project", LanguageNames.
CSharp
, CancellationToken.None)
67
"project", LanguageNames.
CSharp
, CancellationToken.None)
83
"project", LanguageNames.
CSharp
, CancellationToken.None)
ProjectSystemShim\VisualStudioProjectTests\FileChangeTests.vb (2)
28
"project", LanguageNames.
CSharp
, projectInfo, CancellationToken.None)
52
"project", LanguageNames.
CSharp
, projectInfo, CancellationToken.None)
ProjectSystemShim\VisualStudioProjectTests\MetadataToProjectReferenceConversionTests.vb (25)
21
"project1", LanguageNames.
CSharp
, CancellationToken.None)
24
"project2", LanguageNames.
CSharp
, CancellationToken.None)
56
"project1", LanguageNames.
CSharp
, CancellationToken.None)
59
"project2", LanguageNames.
CSharp
, CancellationToken.None)
92
"referencingProject", LanguageNames.
CSharp
, CancellationToken.None)
95
"project1", LanguageNames.
CSharp
, CancellationToken.None)
110
"project2", LanguageNames.
CSharp
, CancellationToken.None)
128
"referencingProject", LanguageNames.
CSharp
, CancellationToken.None)
131
"project1", LanguageNames.
CSharp
, CancellationToken.None)
146
"project2", LanguageNames.
CSharp
, CancellationToken.None)
169
Dim referencingProject = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("referencingProject", LanguageNames.
CSharp
, CancellationToken.None)
170
Dim referencedProject = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("referencedProject", LanguageNames.
CSharp
, CancellationToken.None)
196
Dim referencingProject = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("referencingProject", LanguageNames.
CSharp
, CancellationToken.None)
197
Dim referencedProject = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("referencedProject", LanguageNames.
CSharp
, CancellationToken.None)
227
Dim referencingProject = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("referencingProject", LanguageNames.
CSharp
, CancellationToken.None)
228
Dim referencedProject = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("referencedProject", LanguageNames.
CSharp
, CancellationToken.None)
259
Dim referencingProject = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("referencingProject", LanguageNames.
CSharp
, CancellationToken.None)
260
Dim referencedProject = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("referencedProject", LanguageNames.
CSharp
, CancellationToken.None)
293
Dim referencingProject = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("referencingProject", LanguageNames.
CSharp
, CancellationToken.None)
294
Dim referencedProject = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("referencedProject", LanguageNames.
CSharp
, CancellationToken.None)
319
Dim project1 = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("project1", LanguageNames.
CSharp
, CancellationToken.None)
320
Dim project2 = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("project2", LanguageNames.
CSharp
, CancellationToken.None)
340
Dim project1 = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("project1", LanguageNames.
CSharp
, CancellationToken.None)
341
Dim project2 = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("project2", LanguageNames.
CSharp
, CancellationToken.None)
361
Dim project = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("project", LanguageNames.
CSharp
, CancellationToken.None)
ProjectSystemShim\VisualStudioProjectTests\PrimaryProjectTests.vb (3)
18
"project", LanguageNames.
CSharp
, CancellationToken.None)
28
"project", LanguageNames.
CSharp
, CancellationToken.None)
39
"project", LanguageNames.
CSharp
, CancellationToken.None)
ProjectSystemShim\VisualStudioProjectTests\ProjectSystemProjectFactoryTests.vb (1)
23
"project1", LanguageNames.
CSharp
, creationInfo, CancellationToken.None)
ProjectSystemShim\VisualStudioProjectTests\SolutionIdTests.vb (4)
18
"Project1", LanguageNames.
CSharp
, CancellationToken.None)
24
"Project2", LanguageNames.
CSharp
, CancellationToken.None)
35
"Project1", LanguageNames.
CSharp
, CancellationToken.None)
38
"Project2", LanguageNames.
CSharp
, CancellationToken.None)
ProjectSystemShim\VisualStudioProjectTests\SourceTextContainerTests.vb (1)
21
"project", LanguageNames.
CSharp
, CancellationToken.None)
ProjectSystemShim\VisualStudioProjectTests\WorkspaceChangedEventTests.vb (7)
20
"Project", LanguageNames.
CSharp
, CancellationToken.None)
39
"Project", LanguageNames.
CSharp
, CancellationToken.None)
60
"Project", LanguageNames.
CSharp
, CancellationToken.None)
80
"Project", LanguageNames.
CSharp
, CancellationToken.None)
99
"Project", LanguageNames.
CSharp
, CancellationToken.None)
115
"Project", LanguageNames.
CSharp
, CancellationToken.None)
129
"Project", LanguageNames.
CSharp
, CancellationToken.None)
PullMemberUp\PullMemberUpViewModelTest.vb (5)
43
Dim viewModel = Await GetViewModelAsync(markUp, LanguageNames.
CSharp
)
86
Dim viewModel = Await GetViewModelAsync(markUp, LanguageNames.
CSharp
)
126
Dim viewModel = Await GetViewModelAsync(markUp, LanguageNames.
CSharp
)
171
Dim viewModel = Await GetViewModelAsync(markUp, LanguageNames.
CSharp
)
214
Dim viewModel = Await GetViewModelAsync(markUp, LanguageNames.
CSharp
)
RQName\RQNameTests.vb (16)
23
Await TestWorkerAsync(markup, LanguageNames.
CSharp
, expectedRQName)
31
Await TestWorkerAsync(markup, LanguageNames.
CSharp
, expectedRQName)
39
Await TestWorkerAsync(markup, LanguageNames.
CSharp
, expectedRQName)
47
Await TestWorkerAsync(markup, LanguageNames.
CSharp
, expectedRQName)
55
Await TestWorkerAsync(markup, LanguageNames.
CSharp
, expectedRQName)
63
Await TestWorkerAsync(markup, LanguageNames.
CSharp
, expectedRQName)
75
Await TestWorkerAsync(markup, LanguageNames.
CSharp
, expectedRQName)
90
Await TestWorkerAsync(markup, LanguageNames.
CSharp
, expectedRQName)
102
Await TestWorkerAsync(markup, LanguageNames.
CSharp
, expectedRQName)
114
Await TestWorkerAsync(markup, LanguageNames.
CSharp
, expectedRQName)
126
Await TestWorkerAsync(markup, LanguageNames.
CSharp
, expectedRQName)
156
Await TestWorkerAsync(markup, LanguageNames.
CSharp
, expectedRQName)
175
Await TestWorkerAsync(markup, LanguageNames.
CSharp
, expectedRQName)
190
Await TestWorkerAsync(markup, LanguageNames.
CSharp
, expectedRQName)
215
Await TestWorkerAsync(markup, LanguageNames.
CSharp
, expectedRQName)
231
Await TestWorkerAsync(markup, LanguageNames.
CSharp
, expectedRQName)
Snippets\CSharpSnippetCommandHandlerTests.vb (17)
18
Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.
CSharp
)
32
Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.
CSharp
)
46
Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.
CSharp
)
59
Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.
CSharp
, startActiveSession:=True)
72
Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.
CSharp
)
84
Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.
CSharp
)
118
Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.
CSharp
, startActiveSession:=True)
130
Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.
CSharp
)
141
Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.
CSharp
, startActiveSession:=True)
151
Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.
CSharp
)
161
Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.
CSharp
, startActiveSession:=True)
173
Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.
CSharp
)
191
Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.
CSharp
)
209
Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.
CSharp
)
220
Dim testState = SnippetTestState.CreateSubmissionTestState(markup, LanguageNames.
CSharp
)
234
Dim testState = SnippetTestState.CreateSubmissionTestState(markup, LanguageNames.
CSharp
)
253
Dim testState = SnippetTestState.CreateSubmissionTestState(markup, LanguageNames.
CSharp
)
Snippets\CSharpSnippetExpansionClientTests.vb (5)
188
<Project Language=<%= LanguageNames.
CSharp
%> CommonReferences="true">
218
<Project Language=<%= LanguageNames.
CSharp
%> CommonReferences="true">
248
<Project Language=<%= LanguageNames.
CSharp
%> CommonReferences="true">
285
<Project Language=<%= LanguageNames.
CSharp
%> CommonReferences="true">
358
<Project Language=<%= LanguageNames.
CSharp
%> CommonReferences="true">
Snippets\SnippetTestState.vb (3)
49
Dim contentType = If(languageName = LanguageNames.
CSharp
, ContentTypeNames.CSharpContentType, ContentTypeNames.VisualBasicContentType)
50
Dim name = If(languageName = LanguageNames.
CSharp
, "CSharp Snippets", "VB Snippets")
213
<ExportLanguageService(GetType(ISnippetExpansionLanguageHelper), LanguageNames.
CSharp
, ServiceLayer.Test), [Shared]>
Roslyn.VisualStudio.DiagnosticsWindow (1)
OptionPages\InternalOptionsControl.cs (1)
120
AddPerLanguageOption(panel, option, LanguageNames.
CSharp
);
Roslyn.VisualStudio.Next.UnitTests (68)
Remote\RemoteHostClientServiceFactoryTests.cs (1)
47
var project = workspace.AddProject("proj", LanguageNames.
CSharp
);
Remote\SnapshotSerializationTests.cs (1)
49
var project1 = solution.AddProject("Project", "Project.dll", LanguageNames.
CSharp
);
Services\ServiceHubServicesTests.cs (35)
52
workspace.InitializeDocuments(LanguageNames.
CSharp
, files: [code], openDocuments: false);
74
workspace.InitializeDocuments(LanguageNames.
CSharp
, files: [code], openDocuments: false);
127
workspace.InitializeDocuments(LanguageNames.
CSharp
, files: [source], openDocuments: false);
290
solution = AddProject(solution, LanguageNames.
CSharp
, documents: [], additionalDocuments: [], p2pReferences: []);
291
solution = AddProject(solution, LanguageNames.
CSharp
, documents: [], additionalDocuments: [], p2pReferences: []);
357
p1, VersionStamp.Create(), "p1", "p1", LanguageNames.
CSharp
, outputFilePath: file.Path,
360
p2, VersionStamp.Create(), "p2", "p2", LanguageNames.
CSharp
,
430
.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
769
.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
911
.AddProject(ProjectInfo.Create(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
920
.AddProject(ProjectInfo.Create(projectId2, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
962
.AddProject(ProjectInfo.Create(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
971
.AddProject(ProjectInfo.Create(projectId2, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
1003
.AddProject(ProjectInfo.Create(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
1012
.AddProject(ProjectInfo.Create(projectId2, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
1046
.AddProject(ProjectInfo.Create(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
1055
.AddProject(ProjectInfo.Create(projectId2, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
1098
.AddProject(ProjectInfo.Create(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
1107
.AddProject(ProjectInfo.Create(projectId2, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
1151
.AddProject(ProjectInfo.Create(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
1160
.AddProject(ProjectInfo.Create(projectId2, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
1204
.AddProject(ProjectInfo.Create(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
1213
.AddProject(ProjectInfo.Create(projectId2, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
1249
.AddProject(ProjectInfo.Create(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
1258
.AddProject(ProjectInfo.Create(projectId2, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
1294
.AddProject(ProjectInfo.Create(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
1303
.AddProject(ProjectInfo.Create(projectId2, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
1337
.AddProject(ProjectInfo.Create(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
1346
.AddProject(ProjectInfo.Create(projectId2, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
1543
.AddProject(ProjectInfo.Create(projectId1, VersionStamp.Default, name: "Test", assemblyName: "Test", language: LanguageNames.
CSharp
))
1626
if (document.Project.Language == LanguageNames.
CSharp
)
1661
solution = AddProject(solution, LanguageNames.
CSharp
,
1679
solution = AddProject(solution, LanguageNames.
CSharp
,
1687
solution = AddProject(solution, LanguageNames.
CSharp
,
1697
solution = AddProject(solution, LanguageNames.
CSharp
,
Services\SolutionAssetCacheTests.cs (1)
108
workspace.SetCurrentSolution(solution => solution.AddProject("Project", "Assembly", LanguageNames.
CSharp
).Solution, WorkspaceChangeKind.ProjectAdded);
Services\SolutionServiceTests.cs (21)
88
ProjectId.CreateNewId(), VersionStamp.Create(), "test", "test.dll", LanguageNames.
CSharp
,
117
ProjectId.CreateNewId(), VersionStamp.Create(), "test", "test.dll", LanguageNames.
CSharp
,
171
.Add(LanguageNames.
CSharp
, StructuredAnalyzerConfigOptions.Create(new DictionaryAnalyzerConfigOptions(ImmutableDictionary<string, string>.Empty
222
solution = solution.AddProject("CS" + i, "CS" + i, LanguageNames.
CSharp
).Solution;
232
(LanguageNames.
CSharp
, version + 2),
308
s = s.AddProject("newProject", "newProject", LanguageNames.
CSharp
).Solution;
497
.WithChangedOption(FormattingOptions.NewLine, LanguageNames.
CSharp
, newOptionValue)
551
var project2 = solution.AddProject("P2", "P2", LanguageNames.
CSharp
);
592
var project2 = solution.AddProject("P2", "P2", LanguageNames.
CSharp
);
633
var project2 = solution.AddProject("P2", "P2", LanguageNames.
CSharp
);
634
var project3 = project2.Solution.AddProject("P3", "P3", LanguageNames.
CSharp
);
666
var project2 = solution.AddProject("P2", "P2", LanguageNames.
CSharp
);
667
var project3 = project2.Solution.AddProject("P3", "P3", LanguageNames.
CSharp
);
707
var project2 = solution.AddProject("P2", "P2", LanguageNames.
CSharp
);
708
var project3 = project2.Solution.AddProject("P3", "P3", LanguageNames.
CSharp
);
747
var project2 = solution.AddProject("P2", "P2", LanguageNames.
CSharp
);
748
var project3 = project2.Solution.AddProject("P3", "P3", LanguageNames.
CSharp
);
845
var csharpProject = project1SyncedSolution.Projects.Single(p => p.Language == LanguageNames.
CSharp
);
857
var csharpProject = project2SyncedSolution.Projects.Single(p => p.Language == LanguageNames.
CSharp
);
875
var project2 = solution.AddProject("P2", "P2", LanguageNames.
CSharp
);
944
var project2 = solution.AddProject("P2", "P2", LanguageNames.
CSharp
);
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (9)
48
using var workspace = CreateWorkspace(LanguageNames.
CSharp
, code);
56
workspace.SetAnalyzerFallbackOptions(LanguageNames.
CSharp
, ("csharp_style_var_when_type_is_apparent", "false:suggestion"));
109
using var workspace = CreateWorkspace(LanguageNames.
CSharp
, code);
149
using var workspace = CreateWorkspace(LanguageNames.
CSharp
, code);
187
using var workspace = CreateWorkspace(LanguageNames.
CSharp
, code);
252
var workspace = (language == LanguageNames.
CSharp
)
256
workspace.GlobalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.
CSharp
, BackgroundAnalysisScope.FullSolution);
262
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
282
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
System.Private.CoreLib.Generators (1)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (1)
23
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
System.Text.RegularExpressions.Generator (3)
RegexGenerator.cs (1)
20
[Generator(LanguageNames.
CSharp
)]
UpgradeToGeneratedRegexAnalyzer.cs (1)
20
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
UpgradeToGeneratedRegexCodeFixer.cs (1)
27
[ExportCodeFixProvider(LanguageNames.
CSharp
), Shared]
System.Windows.Forms.Analyzers (2)
System\Windows\Forms\Analyzers\AppManifestAnalyzer.cs (2)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
, LanguageNames.VisualBasic)]
65
case LanguageNames.
CSharp
:
System.Windows.Forms.Analyzers.CodeFixes.CSharp (1)
System\Windows\Forms\CSharp\CodeFixes\AddDesignerSerializationVisibility\AddDesignerSerializationVisibilityCodeFixProvider.cs (1)
18
[ExportCodeFixProvider(LanguageNames.
CSharp
, Name = nameof(AddDesignerSerializationVisibilityCodeFixProvider)), Shared]
System.Windows.Forms.Analyzers.CSharp (3)
System\Windows\Forms\CSharp\Analyzers\AvoidPassingTaskWithoutCancellationToken\AvoidPassingTaskWithoutCancellationTokenAnalyzer.cs (1)
13
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
System\Windows\Forms\CSharp\Analyzers\MissingPropertySerializationConfiguration\MissingPropertySerializationConfigurationAnalyzer.cs (1)
12
[DiagnosticAnalyzer(LanguageNames.
CSharp
)]
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ApplicationConfigurationGenerator.cs (1)
11
[Generator(LanguageNames.
CSharp
)]
VBCSCompiler (2)
src\Compilers\Server\VBCSCompiler\BuildProtocolUtil.cs (1)
28
language = LanguageNames.
CSharp
;
src\Compilers\Server\VBCSCompiler\CompilerRequestHandler.cs (1)
82
case LanguageNames.
CSharp
: