4059 references to CSharp
AnalyzerRunner (10)
CodeRefactoringRunner.cs (1)
129(LanguageNames.CSharp, typeof(Microsoft.CodeAnalysis.CSharp.SyntaxKind)),
DiagnosticAnalyzerRunner.cs (6)
46if (project.Language is not LanguageNames.CSharp and not LanguageNames.VisualBasic) 97if (project.Language is not LanguageNames.CSharp and not LanguageNames.VisualBasic) 108if (project.Language is not LanguageNames.CSharp and not LanguageNames.VisualBasic) 307var csharpAnalyzers = analyzerReference.GetAnalyzers(LanguageNames.CSharp); 310.Add(LanguageNames.CSharp, csharpAnalyzers) 329if (project.Language is not LanguageNames.CSharp and not LanguageNames.VisualBasic)
IncrementalAnalyzerRunner.cs (1)
42globalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.CSharp, _options.AnalysisScope);
Program.cs (2)
145var projects = solution.Projects.Where(project => project.Language is LanguageNames.CSharp or LanguageNames.VisualBasic).ToList(); 176var 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)
50var languageForGetAnalyzers = language == "CSharp" ? LanguageNames.CSharp : LanguageNames.VisualBasic;
IdeCoreBenchmarks (4)
FormatterBenchmarks.cs (1)
50.AddProject(projectId, "ProjectName", "AssemblyName", LanguageNames.CSharp)
ProjectOperationBenchmarks.cs (1)
66solution = 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)
162Solution = 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)
111if (language != LanguageNames.CSharp && language != LanguageNames.VisualBasic) 133protected static Document CreateDocument(string source, string language = LanguageNames.CSharp) 144private static Project CreateProject(string[] sources, string language = LanguageNames.CSharp) 147string fileExt = language == LanguageNames.CSharp ? CSharpDefaultFileExt : VisualBasicDefaultExt;
Verifiers\CodeFixVerifier.cs (1)
48VerifyFix(LanguageNames.CSharp, GetCSharpDiagnosticAnalyzer(), GetCSharpCodeFixProvider(), oldSource, newSource, codeFixIndex, allowNewCompilerDiagnostics);
Verifiers\DiagnosticVerifier.cs (2)
46VerifyDiagnostics(new[] { source }, LanguageNames.CSharp, GetCSharpDiagnosticAnalyzer(), expected); 68VerifyDiagnostics(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)
111if (language != LanguageNames.CSharp && language != LanguageNames.VisualBasic) 133protected static Document CreateDocument(string source, string language = LanguageNames.CSharp) 144private static Project CreateProject(string[] sources, string language = LanguageNames.CSharp) 147string fileExt = language == LanguageNames.CSharp ? CSharpDefaultFileExt : VisualBasicDefaultExt;
Verifiers\CodeFixVerifier.cs (1)
48VerifyFix(LanguageNames.CSharp, GetCSharpDiagnosticAnalyzer(), GetCSharpCodeFixProvider(), oldSource, newSource, codeFixIndex, allowNewCompilerDiagnostics);
Verifiers\DiagnosticVerifier.cs (2)
46VerifyDiagnostics(new[] { source }, LanguageNames.CSharp, GetCSharpDiagnosticAnalyzer(), expected); 68VerifyDiagnostics(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)
129return _generators.GetExtensions(LanguageNames.CSharp); 300return ImmutableArray.Create(LanguageNames.CSharp);
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
104if (_compilation.Language == LanguageNames.CSharp)
DocumentationCommentId.cs (1)
302if (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)
104if (_compilation.Language == LanguageNames.CSharp)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\PredefinedEmbeddedLanguageClassifierNames.cs (1)
13public const string CSharpTest = $"{LanguageNames.CSharp}-Test";
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
72Debug.Assert(LanguageName is LanguageNames.CSharp == Definition.ConfigName.StartsWith(OptionDefinition.CSharpConfigNamePrefix, StringComparison.Ordinal));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
56if (isNativeIntegerType && reader.Compilation.Language == LanguageNames.CSharp)
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
Host\Mef\CodeStyleHostLanguageServices.cs (1)
42case 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)
33public 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)
341Arguments.ResolveAnalyzersFromArguments(LanguageNames.CSharp, diagnostics, messageProvider, AssemblyLoader, compilationOptions, skipAnalyzers, out analyzers, out generators);
Compilation\CSharpCompilation.cs (1)
167return LanguageNames.CSharp;
Compilation\CSharpCompilerDiagnosticAnalyzer.cs (1)
15[DiagnosticAnalyzer(LanguageNames.CSharp)]
Compilation\CSharpSemanticModel.cs (1)
4920return LanguageNames.CSharp;
CSharpCompilationOptions.cs (1)
267public override string Language => LanguageNames.CSharp;
CSharpExtensions.cs (5)
69return (object)token.Language == (object)LanguageNames.CSharp ? (SyntaxKind)token.RawContextualKind : SyntaxKind.None; 791if (conversionExpression.Language == LanguageNames.CSharp) 817if (compoundAssignment.Language == LanguageNames.CSharp) 843if (compoundAssignment.Language == LanguageNames.CSharp) 868if (spread.Language == LanguageNames.CSharp)
CSharpParseOptions.cs (1)
86public override string Language => LanguageNames.CSharp;
Symbols\PublicModel\PreprocessingSymbol.cs (1)
100string ISymbol.Language => LanguageNames.CSharp;
Symbols\PublicModel\Symbol.cs (2)
189throw new ArgumentException(CSharpResources.WrongSemanticModelType, LanguageNames.CSharp); 197string ISymbol.Language => LanguageNames.CSharp;
Syntax\CSharpSyntaxNode.cs (1)
160get { return LanguageNames.CSharp; }
Syntax\InternalSyntax\CSharpSyntaxNode.cs (1)
58get { 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)
68var option = new Option2<T>(name, defaultValue, group, LanguageNames.CSharp, isEditorConfigOption: true, serializer: serializer); 279languageName: 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)
488if (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)
678var options = new OptionsCollection(LanguageNames.CSharp)
src\Analyzers\CSharp\Tests\GenerateConstructor\GenerateConstructorTests.cs (1)
28private readonly NamingStylesTestOptionSets options = new NamingStylesTestOptionSets(LanguageNames.CSharp);
src\Analyzers\CSharp\Tests\ImplementInterface\ImplementInterfaceTests.cs (7)
27private readonly NamingStylesTestOptionSets _options = new(LanguageNames.CSharp); 30=> new(LanguageNames.CSharp) 41=> new(LanguageNames.CSharp) 52=> new(LanguageNames.CSharp) 645new OptionsCollection(LanguageNames.CSharp) 8120new OptionsCollection(LanguageNames.CSharp) 8305new OptionsCollection(LanguageNames.CSharp)
src\Analyzers\CSharp\Tests\InlineDeclaration\CSharpInlineDeclarationTests.cs (1)
2625""", options: new(LanguageNames.CSharp)
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (1)
25private static readonly NamingStylesTestOptionSets s_options = new(LanguageNames.CSharp);
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (1)
46Assert.All(newSolution.Projects.Where(p => p.Language == LanguageNames.CSharp),
src\Analyzers\CSharp\Tests\UseConditionalExpression\UseConditionalExpressionForAssignmentTests.cs (4)
56private 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)
25protected 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)
63if (!_editorOptionsService.GlobalOptions.GetOption(BlockCommentEditingOptionsStorage.AutoInsertBlockCommentStartString, LanguageNames.CSharp))
BlockCommentEditing\CloseBlockCommentCommandHandler.cs (1)
48if (_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] 46var isSmartIndent = _editorOptionsService.GlobalOptions.GetOption(IndentationOptionsStorage.SmartIndent, LanguageNames.CSharp) == FormattingOptions2.IndentStyle.Smart; 57var 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)
99if (!_globalOptions.GetOption(StringCopyPasteOptionsStorage.AutomaticallyFixStringContentsOnPaste, LanguageNames.CSharp))
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (987)
AutomaticCompletion\AutomaticBraceCompletionTests.cs (18)
782var globalOptions = new OptionsCollection(LanguageNames.CSharp) 856var globalOptions = new OptionsCollection(LanguageNames.CSharp) 926var globalOptions = new OptionsCollection(LanguageNames.CSharp) 986var globalOptions = new OptionsCollection(LanguageNames.CSharp) 1046var globalOptions = new OptionsCollection(LanguageNames.CSharp) 1108var globalOptions = new OptionsCollection(LanguageNames.CSharp) 1138var globalOptions = new OptionsCollection(LanguageNames.CSharp) 1173var globalOptions = new OptionsCollection(LanguageNames.CSharp) 1216var globalOptions = new OptionsCollection(LanguageNames.CSharp) 1323var globalOptions = new OptionsCollection(LanguageNames.CSharp) 1366var globalOptions = new OptionsCollection(LanguageNames.CSharp) 1410var globalOptions = new OptionsCollection(LanguageNames.CSharp) 1454var globalOptions = new OptionsCollection(LanguageNames.CSharp) 1498var globalOptions = new OptionsCollection(LanguageNames.CSharp) 1542var globalOptions = new OptionsCollection(LanguageNames.CSharp) 1587var globalOptions = new OptionsCollection(LanguageNames.CSharp) 1638var globalOptions = new OptionsCollection(LanguageNames.CSharp) 1664var globalOptions = new OptionsCollection(LanguageNames.CSharp)
AutomaticCompletion\AutomaticLineEnderTests.cs (1)
3724protected override string Language => LanguageNames.CSharp;
BlockCommentEditing\CloseBlockCommentTests.cs (1)
286globalOptions.SetGlobalOption(BlockCommentEditingOptionsStorage.AutoInsertBlockCommentStartString, LanguageNames.CSharp, false);
ChangeSignature\AddParameterTests.AddImports.cs (3)
50await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 86await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 155await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
ChangeSignature\AddParameterTests.Cascading.cs (11)
52await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 88await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 124await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 162await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 200await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 250await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 300await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 339await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 431await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 454await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 477await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
ChangeSignature\AddParameterTests.cs (36)
114await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 141await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 178await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 215await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 244await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 275await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 306await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 361await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 398await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 446await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, 492await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, 523await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 553await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 584await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 636await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, 680await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 717await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 750await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 796await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 835await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 874await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 905await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 940await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 975await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 1008await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 1045await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 1081await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 1119await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 1150await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 1195await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 1240await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 1289await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 1327await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 1360await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 1393await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 1426await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
ChangeSignature\AddParameterTests.Delegates.cs (22)
51await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, 87await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, 123await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, 161await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 196await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 233await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 278await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 321await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 368await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 419await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 472await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 509await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 544await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 579await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 644await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 683await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 730await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 761await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 816await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 851await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, 897await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 946await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
ChangeSignature\AddParameterTests.Formatting.cs (16)
56await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 95await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 134await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 164await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 194await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 230await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 268await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 308await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 348await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 372await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 395await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 418await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 440await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 463await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 486await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 509LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode,
ChangeSignature\AddParameterTests.OptionalParameter.Infer.cs (8)
43await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 72await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 101await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 132await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 160await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 191await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 222await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 257await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
ChangeSignature\AddParameterTests.OptionalParameter.Omit.cs (5)
44await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 72await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 104await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 138await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 168await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
ChangeSignature\AddParameterTests.OptionalParameter.SymbolKinds.cs (4)
59await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 101await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 135await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 164await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
ChangeSignature\ChangeSignature_CheckAllSignatureChanges.cs (2)
70LanguageNames.CSharp, 176LanguageNames.CSharp,
ChangeSignature\ChangeSignature_Delegates.cs (22)
24=> LanguageNames.CSharp; 54await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, 86await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, 118await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, 152await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 183await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 218await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 259await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 298await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 341await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 388await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 437await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 470await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 501await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 532await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 593await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 628await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 673await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 702await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 755await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 788await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, 832await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
ChangeSignature\ChangeSignature_Formatting.cs (15)
48await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 82await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 116await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 145await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 174await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 209await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 246await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 285await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 324await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 347await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 370await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 393await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 416await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 438await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode); 463await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: expectedUpdatedCode);
ChangeSignature\ChangeSignatureTests.cs (2)
64LanguageNames.CSharp, 93LanguageNames.CSharp,
ChangeSignature\RemoveParametersTests.cs (4)
116await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 188await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 421await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode); 445await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: updatedSignature, expectedUpdatedInvocationDocumentCode: updatedCode);
ChangeSignature\ReorderParametersTests.Cascading.cs (9)
46await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 78await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 110await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 144await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 178await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 224await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 270await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 305await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 390await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
ChangeSignature\ReorderParametersTests.cs (32)
49await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 83await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 109await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 137await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 165await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 217await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 269await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 303await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 343await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, 382await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, 409await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 435await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 479await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, 520await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 552await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 580await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 618await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 650await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 684await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 710await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 741await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 772await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 801await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 834await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 865await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 898await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 926await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 968await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 1010await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 1036await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 1062await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 1088await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode);
ChangeSignature\ReorderParametersTests.InvocationErrors.cs (4)
31await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, expectedSuccess: false, expectedFailureReason: ChangeSignatureFailureKind.IncorrectKind); 49await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, expectedSuccess: false, expectedFailureReason: ChangeSignatureFailureKind.IncorrectKind); 56await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, expectedSuccess: true); 72await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, expectedSuccess: false, expectedFailureReason: ChangeSignatureFailureKind.IncorrectKind);
ChangeSignature\ReorderParametersTests.InvocationLocation.cs (27)
43await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, 70await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, 97await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 123await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 139await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, expectedSuccess: false, expectedFailureReason: ChangeSignatureFailureKind.DefinedInMetadata); 155await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, expectedSuccess: false, expectedFailureReason: ChangeSignatureFailureKind.DefinedInMetadata); 171await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, expectedSuccess: false, expectedFailureReason: ChangeSignatureFailureKind.DefinedInMetadata); 184await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, expectedSuccess: false, expectedFailureReason: ChangeSignatureFailureKind.IncorrectKind); 202LanguageNames.CSharp, markup, expectedSuccess: false); 255await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 291await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 337await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 383await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 429await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 459await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 483await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 515await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 553await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 585await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, 614await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, 643await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, 672await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 710await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 748await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, 783await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, 818await TestChangeSignatureViaCommandAsync(LanguageNames.CSharp, markup, updatedSignature: permutation, expectedUpdatedInvocationDocumentCode: updatedCode); 928LanguageNames.CSharp, markup, updatedSignature: permutation,
CodeActions\AbstractCSharpCodeActionTest.cs (1)
15protected internal override string GetLanguage() => LanguageNames.CSharp;
CodeActions\AddUsing\AddUsingNuGetTests.cs (2)
36workspace.GlobalOptions.SetGlobalOption(SymbolSearchOptionsStorage.SearchNuGetPackages, LanguageNames.CSharp, true); 37workspace.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)
3275var options = new NamingStylesTestOptionSets(LanguageNames.CSharp);
CodeActions\GenerateType\GenerateTypeTests_Dialog.cs (99)
30languageName: LanguageNames.CSharp, 61languageName: LanguageNames.CSharp, 95languageName: LanguageNames.CSharp, 129languageName: LanguageNames.CSharp, 162languageName: LanguageNames.CSharp, 197languageName: LanguageNames.CSharp, 235languageName: LanguageNames.CSharp, 267languageName: LanguageNames.CSharp, 303languageName: LanguageNames.CSharp, 337languageName: LanguageNames.CSharp, 377languageName: LanguageNames.CSharp, 417languageName: LanguageNames.CSharp, 451languageName: LanguageNames.CSharp, 492languageName: LanguageNames.CSharp, 542languageName: LanguageNames.CSharp, 575languageName: LanguageNames.CSharp, 619languageName: LanguageNames.CSharp, 664languageName: LanguageNames.CSharp, 713languageName: LanguageNames.CSharp, 750languageName: LanguageNames.CSharp, 788languageName: LanguageNames.CSharp, 820languageName: LanguageNames.CSharp, 866languageName: LanguageNames.CSharp, 898languageName: LanguageNames.CSharp, 944languageName: LanguageNames.CSharp, 992languageName: LanguageNames.CSharp, 1043languageName: LanguageNames.CSharp, 1106languageName: LanguageNames.CSharp, 1150languageName: LanguageNames.CSharp, 1195languageName: LanguageNames.CSharp, 1253languageName: LanguageNames.CSharp, 1287languageName: LanguageNames.CSharp, 1336languageName: LanguageNames.CSharp, 1371languageName: LanguageNames.CSharp, 1421languageName: LanguageNames.CSharp, 1463languageName: LanguageNames.CSharp, 1496languageName: LanguageNames.CSharp, 1544languageName: LanguageNames.CSharp, 1579languageName: LanguageNames.CSharp, 1628languageName: LanguageNames.CSharp, 1672languageName: LanguageNames.CSharp, 1711languageName: LanguageNames.CSharp, 1750languageName: LanguageNames.CSharp, 1785languageName: LanguageNames.CSharp, 1836languageName: LanguageNames.CSharp, 1885languageName: LanguageNames.CSharp, 1928languageName: LanguageNames.CSharp, 1955languageName: LanguageNames.CSharp, 1977languageName: LanguageNames.CSharp, 1999languageName: LanguageNames.CSharp, 2025languageName: LanguageNames.CSharp, 2059languageName: LanguageNames.CSharp, 2096languageName: LanguageNames.CSharp, 2134languageName: LanguageNames.CSharp, 2172languageName: LanguageNames.CSharp, 2205languageName: LanguageNames.CSharp, 2239languageName: LanguageNames.CSharp, 2256languageName: LanguageNames.CSharp, 2285languageName: LanguageNames.CSharp, 2317languageName: LanguageNames.CSharp, 2352languageName: LanguageNames.CSharp, 2388languageName: LanguageNames.CSharp, 2423languageName: LanguageNames.CSharp, 2457languageName: LanguageNames.CSharp, 2490languageName: LanguageNames.CSharp, 2523languageName: LanguageNames.CSharp, 2554languageName: LanguageNames.CSharp, 2583languageName: LanguageNames.CSharp, 2613languageName: LanguageNames.CSharp, 2645languageName: LanguageNames.CSharp, 2680languageName: LanguageNames.CSharp, 2714languageName: LanguageNames.CSharp, 2747languageName: LanguageNames.CSharp, 2779languageName: LanguageNames.CSharp, 2808languageName: LanguageNames.CSharp, 2840languageName: LanguageNames.CSharp, 2875languageName: LanguageNames.CSharp, 2909languageName: LanguageNames.CSharp, 2942languageName: LanguageNames.CSharp, 2974languageName: LanguageNames.CSharp, 3003languageName: LanguageNames.CSharp, 3043languageName: LanguageNames.CSharp, 3068languageName: LanguageNames.CSharp, 3097languageName: LanguageNames.CSharp, 3131languageName: LanguageNames.CSharp, 3168languageName: LanguageNames.CSharp, 3208languageName: LanguageNames.CSharp, 3254languageName: LanguageNames.CSharp, 3293languageName: LanguageNames.CSharp, 3322languageName: LanguageNames.CSharp, 3354languageName: LanguageNames.CSharp, 3388languageName: LanguageNames.CSharp, 3417languageName: LanguageNames.CSharp, 3446languageName: LanguageNames.CSharp, 3477languageName: LanguageNames.CSharp, 3512languageName: LanguageNames.CSharp, 3549languageName: LanguageNames.CSharp, 3582languageName: LanguageNames.CSharp, 3618languageName: LanguageNames.CSharp,
CodeActions\InitializeParameter\InitializeMemberFromParameterTests.cs (1)
24private readonly NamingStylesTestOptionSets options = new(LanguageNames.CSharp);
CodeActions\InitializeParameter\InitializeMemberFromPrimaryConstructorParameterTests.cs (1)
24private readonly NamingStylesTestOptionSets _options = new(LanguageNames.CSharp);
CodeActions\MoveType\CSharpMoveTypeTestsBase.cs (1)
16protected internal override string GetLanguage() => LanguageNames.CSharp;
CodeActions\PreviewTests.cs (1)
81solution = solution.AddProject(ProjectInfo.Create(s_addedProjectId, VersionStamp.Create(), AddedProjectName, AddedProjectName, LanguageNames.CSharp));
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (1)
30protected internal override string GetLanguage() => LanguageNames.CSharp;
Completion\ArgumentProviders\ArgumentProviderOrderTests.cs (5)
29var orderedCSharpArgumentProviders = ExtensionOrderer.Order(argumentProviderExports.Where(export => export.Metadata.Language == LanguageNames.CSharp)); 62var orderedCSharpArgumentProviders = ExtensionOrderer.Order(argumentProviderExports.Where(export => export.Metadata.Language == LanguageNames.CSharp)); 102var orderedCSharpArgumentProviders = ExtensionOrderer.Order(argumentProviderExports.Where(export => export.Metadata.Language == LanguageNames.CSharp)); 113var orderedCSharpArgumentProviders = ExtensionOrderer.Order(argumentProviderExports.Where(export => export.Metadata.Language == LanguageNames.CSharp)); 124var csharpArgumentProviders = argumentProviderExports.Where(export => export.Metadata.Language == LanguageNames.CSharp);
Completion\ArgumentProviders\OutVariableArgumentProviderTests.cs (3)
19private static readonly OptionsCollection s_useExplicitTypeOptions = new(LanguageNames.CSharp) 26private static readonly OptionsCollection s_useExplicitMetadataTypeOptions = new(LanguageNames.CSharp) 34private static readonly OptionsCollection s_useImplicitTypeOptions = new(LanguageNames.CSharp)
Completion\CompletionProviders\CompletionProviderOrderTests.cs (5)
30var orderedCSharpCompletionProviders = ExtensionOrderer.Order(completionProviderExports.Where(export => export.Metadata.Language == LanguageNames.CSharp)); 94var orderedCSharpCompletionProviders = ExtensionOrderer.Order(completionProviderExports.Where(export => export.Metadata.Language == LanguageNames.CSharp)); 134var orderedCSharpCompletionProviders = ExtensionOrderer.Order(completionProviderExports.Where(export => export.Metadata.Language == LanguageNames.CSharp)); 145var orderedCSharpCompletionProviders = ExtensionOrderer.Order(completionProviderExports.Where(export => export.Metadata.Language == LanguageNames.CSharp)); 156var csharpCompletionProviders = completionProviderExports.Where(export => export.Metadata.Language == LanguageNames.CSharp);
Completion\CompletionProviders\ConversionCompletionProviderTests.cs (10)
690sourceLanguage: LanguageNames.CSharp, 691referencedLanguage: LanguageNames.CSharp); 731sourceLanguage: LanguageNames.CSharp, 732referencedLanguage: LanguageNames.CSharp); 772sourceLanguage: LanguageNames.CSharp, 773referencedLanguage: LanguageNames.CSharp); 813sourceLanguage: LanguageNames.CSharp, 814referencedLanguage: LanguageNames.CSharp); 824sourceLanguage: LanguageNames.CSharp, 825referencedLanguage: LanguageNames.CSharp);
Completion\CompletionProviders\CrefCompletionProviderTests.cs (1)
444using var workspace = EditorTestWorkspace.Create(LanguageNames.CSharp, new CSharpCompilationOptions(OutputKind.ConsoleApplication), new CSharpParseOptions(), [text], composition: GetComposition());
Completion\CompletionProviders\DeclarationNameCompletionProviderTests.cs (4)
708workspace.SetAnalyzerFallbackOptions(new OptionsCollection(LanguageNames.CSharp) 2358workspace.SetAnalyzerFallbackOptions(new OptionsCollection(LanguageNames.CSharp) 2386workspace.SetAnalyzerFallbackOptions(new OptionsCollection(LanguageNames.CSharp) 2802workspace.SetAnalyzerFallbackOptions(new OptionsCollection(LanguageNames.CSharp)
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProviderTests.cs (24)
79sourceLanguage: LanguageNames.CSharp, 80referencedLanguage: LanguageNames.CSharp); 108sourceLanguage: LanguageNames.CSharp, 109referencedLanguage: LanguageNames.CSharp); 139sourceLanguage: LanguageNames.CSharp, 140referencedLanguage: LanguageNames.CSharp); 150sourceLanguage: LanguageNames.CSharp, 151referencedLanguage: LanguageNames.CSharp); 1224sourceLanguage: LanguageNames.CSharp, 1225referencedLanguage: LanguageNames.CSharp); 1233sourceLanguage: LanguageNames.CSharp, 1234referencedLanguage: LanguageNames.CSharp); 1270sourceLanguage: LanguageNames.CSharp, 1271referencedLanguage: LanguageNames.CSharp); 1279sourceLanguage: LanguageNames.CSharp, 1280referencedLanguage: LanguageNames.CSharp); 1318sourceLanguage: LanguageNames.CSharp, 1319referencedLanguage: LanguageNames.CSharp); 1329sourceLanguage: LanguageNames.CSharp, 1330referencedLanguage: LanguageNames.CSharp); 1340sourceLanguage: LanguageNames.CSharp, 1341referencedLanguage: LanguageNames.CSharp); 1351sourceLanguage: LanguageNames.CSharp, 1352referencedLanguage: LanguageNames.CSharp);
Completion\CompletionProviders\ExtensionMethodImportCompletionProviderTests.cs (58)
81string currentLanguage = LanguageNames.CSharp, 82string referencedLanguage = LanguageNames.CSharp) 930var markup = GetMarkup(file2, file1, ReferenceType.Project, currentLanguage: LanguageNames.CSharp, referencedLanguage: LanguageNames.VisualBasic); 967var markup = CreateMarkupForProjecWithVBProjectReference(file2, file1, sourceLanguage: LanguageNames.CSharp, rootNamespace: "Root"); 1004var markup = CreateMarkupForProjecWithVBProjectReference(file2, file1, sourceLanguage: LanguageNames.CSharp); 1218var markup = CreateMarkupForSingleProject(currentFile, file1, LanguageNames.CSharp); 1276ReferenceType.Project => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), 1277ReferenceType.Metadata => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), 1336var markup = CreateMarkupForProjectWithMultupleProjectReferences(srcDoc, LanguageNames.CSharp, LanguageNames.CSharp, [refDoc1, refDoc2]); 1384var markup = GetMarkupWithReference(file2, file1, LanguageNames.CSharp, LanguageNames.CSharp, isProjectReference: true); 1451ReferenceType.Project => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), 1452ReferenceType.Metadata => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), 1511ReferenceType.Project => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), 1512ReferenceType.Metadata => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), 1560ReferenceType.Project => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), 1561ReferenceType.Metadata => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), 1603ReferenceType.Project => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), 1604ReferenceType.Metadata => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), 1646ReferenceType.Project => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), 1647ReferenceType.Metadata => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), 1689ReferenceType.Project => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), 1690ReferenceType.Metadata => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), 1739ReferenceType.Project => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), 1740ReferenceType.Metadata => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), 1794ReferenceType.Project => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), 1795ReferenceType.Metadata => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), 1840ReferenceType.Project => (CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), true), 1841ReferenceType.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), 2016var markup = CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp);
Completion\CompletionProviders\IndexerCompletionProviderTests.cs (8)
389sourceLanguage: LanguageNames.CSharp, 390referencedLanguage: LanguageNames.CSharp); 429sourceLanguage: LanguageNames.CSharp, 430referencedLanguage: LanguageNames.CSharp); 440sourceLanguage: LanguageNames.CSharp, 441referencedLanguage: LanguageNames.CSharp); 483sourceLanguage: LanguageNames.CSharp, 484referencedLanguage: LanguageNames.CSharp);
Completion\CompletionProviders\LoadDirectiveCompletionProviderTests.cs (2)
85var provider = workspace.ExportProvider.GetExports<CompletionProvider, CompletionProviderMetadata>().Single(p => p.Metadata.Language == LanguageNames.CSharp && p.Metadata.Name == nameof(LoadDirectiveCompletionProvider)).Value; 86var languageServices = workspace.Services.GetLanguageServices(LanguageNames.CSharp);
Completion\CompletionProviders\ObjectInitializerCompletionProviderTests.cs (9)
579sourceLanguage: LanguageNames.CSharp, 580referencedLanguage: LanguageNames.CSharp); 608sourceLanguage: LanguageNames.CSharp, 609referencedLanguage: LanguageNames.CSharp); 639sourceLanguage: LanguageNames.CSharp, 640referencedLanguage: LanguageNames.CSharp); 650sourceLanguage: LanguageNames.CSharp, 651referencedLanguage: LanguageNames.CSharp); 728sourceLanguage: LanguageNames.CSharp,
Completion\CompletionProviders\OperatorCompletionProviderTests.cs (6)
770sourceLanguage: LanguageNames.CSharp, 771referencedLanguage: LanguageNames.CSharp); 811sourceLanguage: LanguageNames.CSharp, 812referencedLanguage: LanguageNames.CSharp); 822sourceLanguage: LanguageNames.CSharp, 823referencedLanguage: 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); 3007sourceLanguage: LanguageNames.CSharp, 3008referencedLanguage: LanguageNames.CSharp); 3058using 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)
887workspace.SetAnalyzerFallbackOptions(new OptionsCollection(LanguageNames.CSharp) 919workspace.SetAnalyzerFallbackOptions(new OptionsCollection(LanguageNames.CSharp)
Completion\CompletionProviders\ReferenceDirectiveCompletionProviderTests.cs (2)
126var provider = workspace.ExportProvider.GetExports<CompletionProvider, CompletionProviderMetadata>().Single(p => p.Metadata.Language == LanguageNames.CSharp && p.Metadata.Name == nameof(ReferenceDirectiveCompletionProvider)).Value; 127var 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)
5083sourceLanguage: LanguageNames.CSharp, 5084referencedLanguage: LanguageNames.CSharp); 5115sourceLanguage: LanguageNames.CSharp, 5116referencedLanguage: LanguageNames.CSharp); 5149sourceLanguage: LanguageNames.CSharp, 5150referencedLanguage: LanguageNames.CSharp); 5160sourceLanguage: LanguageNames.CSharp, 5161referencedLanguage: LanguageNames.CSharp); 5198sourceLanguage: LanguageNames.CSharp, 5199referencedLanguage: LanguageNames.CSharp); 5236sourceLanguage: LanguageNames.CSharp, 5237referencedLanguage: LanguageNames.CSharp); 5274sourceLanguage: LanguageNames.CSharp, 5275referencedLanguage: LanguageNames.CSharp); 5311sourceLanguage: LanguageNames.CSharp, 5312referencedLanguage: LanguageNames.CSharp); 5348sourceLanguage: LanguageNames.CSharp, 5349referencedLanguage: LanguageNames.CSharp); 5387sourceLanguage: LanguageNames.CSharp, 5388referencedLanguage: LanguageNames.CSharp); 5398sourceLanguage: LanguageNames.CSharp, 5399referencedLanguage: LanguageNames.CSharp); 5440sourceLanguage: LanguageNames.CSharp, 5441referencedLanguage: LanguageNames.CSharp); 5481sourceLanguage: LanguageNames.CSharp, 5482referencedLanguage: LanguageNames.CSharp); 5522sourceLanguage: LanguageNames.CSharp, 5523referencedLanguage: LanguageNames.CSharp); 5563sourceLanguage: LanguageNames.CSharp, 5564referencedLanguage: LanguageNames.CSharp); 5603sourceLanguage: LanguageNames.CSharp, 5604referencedLanguage: LanguageNames.CSharp); 5637sourceLanguage: LanguageNames.CSharp, 5638referencedLanguage: LanguageNames.CSharp); 5678sourceLanguage: LanguageNames.CSharp, 5679referencedLanguage: LanguageNames.CSharp); 5711sourceLanguage: LanguageNames.CSharp, 5712referencedLanguage: LanguageNames.CSharp); 5743sourceLanguage: LanguageNames.CSharp, 5744referencedLanguage: LanguageNames.CSharp); 5776sourceLanguage: LanguageNames.CSharp, 5777referencedLanguage: LanguageNames.CSharp); 5809sourceLanguage: LanguageNames.CSharp, 5810referencedLanguage: LanguageNames.CSharp); 5843sourceLanguage: LanguageNames.CSharp, 5844referencedLanguage: LanguageNames.CSharp); 5875sourceLanguage: LanguageNames.CSharp, 5876referencedLanguage: LanguageNames.CSharp); 5908sourceLanguage: LanguageNames.CSharp, 5909referencedLanguage: LanguageNames.CSharp); 5942sourceLanguage: LanguageNames.CSharp, 5943referencedLanguage: LanguageNames.CSharp); 5973sourceLanguage: LanguageNames.CSharp, 5974referencedLanguage: LanguageNames.CSharp); 6003sourceLanguage: LanguageNames.CSharp, 6004referencedLanguage: LanguageNames.CSharp); 6035sourceLanguage: LanguageNames.CSharp, 6036referencedLanguage: LanguageNames.CSharp); 6046sourceLanguage: LanguageNames.CSharp, 6047referencedLanguage: LanguageNames.CSharp); 6077sourceLanguage: LanguageNames.CSharp, 6078referencedLanguage: LanguageNames.CSharp); 6111sourceLanguage: LanguageNames.CSharp, 6112referencedLanguage: LanguageNames.CSharp); 6141sourceLanguage: LanguageNames.CSharp, 6142referencedLanguage: LanguageNames.CSharp); 6173sourceLanguage: LanguageNames.CSharp, 6174referencedLanguage: LanguageNames.CSharp); 6184sourceLanguage: LanguageNames.CSharp, 6185referencedLanguage: LanguageNames.CSharp); 6216sourceLanguage: LanguageNames.CSharp, 6217referencedLanguage: LanguageNames.CSharp); 6248sourceLanguage: LanguageNames.CSharp, 6249referencedLanguage: LanguageNames.CSharp); 6282sourceLanguage: LanguageNames.CSharp, 6283referencedLanguage: LanguageNames.CSharp); 6293sourceLanguage: LanguageNames.CSharp, 6294referencedLanguage: LanguageNames.CSharp); 6329sourceLanguage: LanguageNames.CSharp, 6330referencedLanguage: LanguageNames.CSharp); 6366sourceLanguage: LanguageNames.CSharp, 6367referencedLanguage: LanguageNames.CSharp); 6398sourceLanguage: LanguageNames.CSharp, 6399referencedLanguage: LanguageNames.CSharp); 6430sourceLanguage: LanguageNames.CSharp, 6431referencedLanguage: LanguageNames.CSharp); 6465sourceLanguage: LanguageNames.CSharp, 6466referencedLanguage: LanguageNames.CSharp); 6476sourceLanguage: LanguageNames.CSharp, 6477referencedLanguage: LanguageNames.CSharp); 6501sourceLanguage: LanguageNames.CSharp, 6502referencedLanguage: LanguageNames.CSharp); 6526sourceLanguage: LanguageNames.CSharp, 6527referencedLanguage: LanguageNames.CSharp); 6553sourceLanguage: LanguageNames.CSharp, 6554referencedLanguage: LanguageNames.CSharp); 6564sourceLanguage: LanguageNames.CSharp, 6565referencedLanguage: LanguageNames.CSharp); 6593sourceLanguage: LanguageNames.CSharp, 6594referencedLanguage: LanguageNames.CSharp); 6618sourceLanguage: LanguageNames.CSharp, 6619referencedLanguage: LanguageNames.CSharp); 6653sourceLanguage: LanguageNames.CSharp, 6654referencedLanguage: LanguageNames.CSharp); 6682sourceLanguage: LanguageNames.CSharp, 6683referencedLanguage: LanguageNames.CSharp); 6707sourceLanguage: LanguageNames.CSharp, 6708referencedLanguage: LanguageNames.CSharp); 6742sourceLanguage: LanguageNames.CSharp, 6743referencedLanguage: LanguageNames.CSharp); 6773sourceLanguage: LanguageNames.CSharp, 6774referencedLanguage: LanguageNames.CSharp); 6784sourceLanguage: LanguageNames.CSharp, 6785referencedLanguage: LanguageNames.CSharp); 6812sourceLanguage: LanguageNames.CSharp, 6813referencedLanguage: LanguageNames.CSharp); 6823sourceLanguage: LanguageNames.CSharp, 6824referencedLanguage: LanguageNames.CSharp); 6860sourceLanguage: LanguageNames.CSharp, 6861referencedLanguage: LanguageNames.CSharp); 6871sourceLanguage: LanguageNames.CSharp, 6872referencedLanguage: LanguageNames.CSharp); 6904sourceLanguage: LanguageNames.CSharp, 6905referencedLanguage: LanguageNames.CSharp); 6933sourceLanguage: LanguageNames.CSharp, 6934referencedLanguage: LanguageNames.CSharp); 6958sourceLanguage: LanguageNames.CSharp, 6959referencedLanguage: LanguageNames.CSharp); 6987sourceLanguage: LanguageNames.CSharp, 6988referencedLanguage: LanguageNames.CSharp); 7012sourceLanguage: LanguageNames.CSharp, 7013referencedLanguage: LanguageNames.CSharp); 7043sourceLanguage: LanguageNames.CSharp, 7044referencedLanguage: LanguageNames.CSharp); 7054sourceLanguage: LanguageNames.CSharp, 7055referencedLanguage: LanguageNames.CSharp); 7081sourceLanguage: LanguageNames.CSharp, 7082referencedLanguage: LanguageNames.CSharp); 7092sourceLanguage: LanguageNames.CSharp, 7093referencedLanguage: LanguageNames.CSharp); 7121sourceLanguage: LanguageNames.CSharp, 7122referencedLanguage: LanguageNames.CSharp); 7150sourceLanguage: LanguageNames.CSharp, 7151referencedLanguage: LanguageNames.CSharp); 7181sourceLanguage: LanguageNames.CSharp, 7182referencedLanguage: LanguageNames.CSharp); 7192sourceLanguage: LanguageNames.CSharp, 7193referencedLanguage: LanguageNames.CSharp); 7221sourceLanguage: LanguageNames.CSharp, 7222referencedLanguage: LanguageNames.CSharp); 7246sourceLanguage: LanguageNames.CSharp, 7247referencedLanguage: LanguageNames.CSharp); 7275sourceLanguage: LanguageNames.CSharp, 7276referencedLanguage: LanguageNames.CSharp); 7300sourceLanguage: LanguageNames.CSharp, 7301referencedLanguage: LanguageNames.CSharp); 7331sourceLanguage: LanguageNames.CSharp, 7332referencedLanguage: LanguageNames.CSharp); 7342sourceLanguage: LanguageNames.CSharp, 7343referencedLanguage: LanguageNames.CSharp); 7369sourceLanguage: LanguageNames.CSharp, 7370referencedLanguage: LanguageNames.CSharp); 7380sourceLanguage: LanguageNames.CSharp, 7381referencedLanguage: LanguageNames.CSharp); 7409sourceLanguage: LanguageNames.CSharp, 7437sourceLanguage: LanguageNames.CSharp, 7466sourceLanguage: LanguageNames.CSharp, 7467referencedLanguage: LanguageNames.CSharp); 7495sourceLanguage: LanguageNames.CSharp, 7496referencedLanguage: LanguageNames.CSharp); 7524sourceLanguage: LanguageNames.CSharp, 7525referencedLanguage: LanguageNames.CSharp); 7553sourceLanguage: LanguageNames.CSharp, 7554referencedLanguage: LanguageNames.CSharp); 7582sourceLanguage: LanguageNames.CSharp, 7583referencedLanguage: LanguageNames.CSharp); 7611sourceLanguage: LanguageNames.CSharp, 7612referencedLanguage: LanguageNames.CSharp); 7643sourceLanguage: LanguageNames.CSharp, 7644referencedLanguage: LanguageNames.CSharp); 7675sourceLanguage: LanguageNames.CSharp, 7676referencedLanguage: LanguageNames.CSharp); 7707sourceLanguage: LanguageNames.CSharp, 7708referencedLanguage: LanguageNames.CSharp); 7739sourceLanguage: LanguageNames.CSharp, 7740referencedLanguage: LanguageNames.CSharp); 7771sourceLanguage: LanguageNames.CSharp, 7772referencedLanguage: LanguageNames.CSharp); 7803sourceLanguage: LanguageNames.CSharp, 7804referencedLanguage: LanguageNames.CSharp); 7833sourceLanguage: LanguageNames.CSharp, 7834referencedLanguage: LanguageNames.CSharp); 7863sourceLanguage: LanguageNames.CSharp, 7864referencedLanguage: LanguageNames.CSharp); 7893sourceLanguage: LanguageNames.CSharp, 7894referencedLanguage: LanguageNames.CSharp); 7923sourceLanguage: LanguageNames.CSharp, 7924referencedLanguage: LanguageNames.CSharp); 7953sourceLanguage: LanguageNames.CSharp, 7954referencedLanguage: LanguageNames.CSharp); 7983sourceLanguage: LanguageNames.CSharp, 7984referencedLanguage: LanguageNames.CSharp); 8095sourceLanguage: LanguageNames.CSharp, 8530await VerifyItemWithProjectReferenceAsync(markup, referencedCode, "C", 1, LanguageNames.CSharp, LanguageNames.CSharp);
Completion\CompletionProviders\TypeImportCompletionProviderTests.cs (86)
81CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp), 105CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp), 134CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp), 167var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp); 197var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp); 227var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp); 251var markup = GetMarkupWithReference(file2, file1, LanguageNames.CSharp, LanguageNames.CSharp, isProjectReference); 277var markup = GetMarkupWithReference(file2, file1, LanguageNames.CSharp, LanguageNames.CSharp, isProjectReference); 302var markup = GetMarkupWithReference(file2, file1, LanguageNames.CSharp, LanguageNames.CSharp, isProjectReference); 327var markup = GetMarkupWithReference(file2, file1, LanguageNames.CSharp, LanguageNames.CSharp, isProjectReference); 353var markup = GetMarkupWithReference(file2, file1, LanguageNames.CSharp, LanguageNames.CSharp, isProjectReference); 380var markup = GetMarkupWithReference(file2, file1, LanguageNames.CSharp, LanguageNames.CSharp, isProjectReference); 408var markup = GetMarkupWithReference(file2, file1, LanguageNames.CSharp, LanguageNames.CSharp, isProjectReference); 436var markup = GetMarkupWithReference(file2, file1, LanguageNames.CSharp, LanguageNames.CSharp, isProjectReference); 464var markup = GetMarkupWithReference(file2, file1, LanguageNames.CSharp, LanguageNames.CSharp, isProjectReference); 494var markup = GetMarkupWithReference(file2, file1, LanguageNames.CSharp, LanguageNames.CSharp, isProjectReference); 518var markup = GetMarkupWithReference(file2, file1, LanguageNames.CSharp, LanguageNames.CSharp, isProjectReference); 538var markup = CreateMarkupForProjecWithVBProjectReference(file2, file1, sourceLanguage: LanguageNames.CSharp, rootNamespace: "Foo"); 564var markup = CreateMarkupForProjecWithVBProjectReference(file2, file1, sourceLanguage: LanguageNames.CSharp, rootNamespace: ""); 594var markup = CreateMarkupForProjecWithVBProjectReference(file2, file1, sourceLanguage: LanguageNames.CSharp, rootNamespace: ""); 617var markup = CreateMarkupForProjecWithVBProjectReference(file2, file1, sourceLanguage: LanguageNames.CSharp, rootNamespace: "Foo"); 638var markup = CreateMarkupForProjecWithVBProjectReference(file2, file1, sourceLanguage: LanguageNames.CSharp, rootNamespace: "Foo"); 670var markup = GetMarkupWithReference(file2, file1, LanguageNames.CSharp, LanguageNames.CSharp, isProjectReference); 720var markup = GetMarkupWithReference(file1, file2, LanguageNames.CSharp, LanguageNames.CSharp, isProjectReference); 754var markup = GetMarkupWithReference(file1, file2, LanguageNames.CSharp, LanguageNames.CSharp, isProjectReference); 795var markup = GetMarkupWithReference(file1, file2, LanguageNames.CSharp, LanguageNames.CSharp, isProjectReference); 835var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp); 860var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp); 888var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp); 920var markup = CreateMarkupForProjecWithVBProjectReference(file2, file1, sourceLanguage: LanguageNames.CSharp, rootNamespace: "Foo"); 930<Project Language=""{LanguageNames.CSharp}"" CommonReferences=""true""> 968var markup = CreateMarkupForProjectWithAliasedMetadataReference(file2, "alias1", file1, LanguageNames.CSharp, LanguageNames.CSharp, hasGlobalAlias: false); 989var markup = CreateMarkupForProjectWithAliasedMetadataReference(file2, "alias1", file1, LanguageNames.CSharp, LanguageNames.CSharp, hasGlobalAlias: true); 1010var markup = CreateMarkupForProjectWithAliasedProjectReference(file2, "alias1", file1, LanguageNames.CSharp, LanguageNames.CSharp); 1033var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp); 1055var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp); 1091var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp); 1114var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp); 1153var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp); 1174var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp); 1210var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp); 1233var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp); 1272var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp); 1297var markup = CreateMarkupForProjectWithProjectReference(file2, file1, LanguageNames.CSharp, LanguageNames.VisualBasic); 1322var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp); 1344var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp); 1373var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp); 1416var markup = CreateMarkupForSingleProject(file2, file1, LanguageNames.CSharp); 1454true => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), 1455false => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp) 1488true => (CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), true), 1489false => (CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), false), 1538true => (CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), true), 1539false => (CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), !hideAdvancedMembers), 1713var markup = CreateMarkupForSingleProject(source, globalUsings, LanguageNames.CSharp, referencedFileName: "ProjectName.GlobalUsings.g.cs"); 1727var markup = CreateMarkupForSingleProject(source, "", LanguageNames.CSharp); 1748var markup = CreateMarkupForSingleProject(source, globalUsings, LanguageNames.CSharp, referencedFileName: "GlobalUsings.cs"); 1782true => CreateMarkupForProjectWithProjectReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp), 1783false => CreateMarkupForProjectWithMetadataReference(srcDoc, refDoc, LanguageNames.CSharp, LanguageNames.CSharp) 1788markup = 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)] 82Assert.Equal(1, options.GetOption(new OptionKey(ThirdPartyOption.Instance, LanguageNames.CSharp))); 110.AddProject("TestProject", "Assembly", LanguageNames.CSharp) 114var options = new TestOptionSet(ImmutableDictionary<OptionKey, object>.Empty.Add(new OptionKey(ThirdPartyOption.Instance, LanguageNames.CSharp), 1)); 136workspace.CurrentSolution.Options.WithChangedOption(new OptionKey(ThirdPartyOption.Instance, LanguageNames.CSharp), 1)))); 171.AddProject("TestProject", LanguageNames.CSharp)
Diagnostics\AbstractCSharpDiagnosticProviderBasedUserDiagnosticTest.cs (1)
22protected 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)
237VerifyTypingCharacter(code, expected, globalOptions: new OptionsCollection(LanguageNames.CSharp) 985VerifyPressingEnter(code, expected, globalOptions: new OptionsCollection(LanguageNames.CSharp) 1641VerifyPressingEnter(code, expected, globalOptions: new OptionsCollection(LanguageNames.CSharp) 2180VerifyInsertCommentCommand(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")) 353LanguageNames.CSharp, 386LanguageNames.CSharp,
EncapsulateField\EncapsulateFieldTestState.cs (1)
46workspace.SetAnalyzerFallbackOptions(new OptionsCollection(LanguageNames.CSharp)
EventHookup\EventHookupCommandHandlerTests.cs (2)
22private readonly NamingStylesTestOptionSets _namingOptions = new NamingStylesTestOptionSets(LanguageNames.CSharp); 1195=> new OptionsCollection(LanguageNames.CSharp) { { CodeStyleOptions2.QualifyMethodAccess, true, notification } };
ExtractInterface\ExtractInterfaceTests.cs (11)
500markup, LanguageNames.CSharp, 502options: new OptionsCollection(LanguageNames.CSharp) 540markup, LanguageNames.CSharp, 542options: new OptionsCollection(LanguageNames.CSharp) 581markup, LanguageNames.CSharp, 583options: new OptionsCollection(LanguageNames.CSharp) 892markup, LanguageNames.CSharp, 894options: new OptionsCollection(LanguageNames.CSharp) 1050markup, LanguageNames.CSharp, 1051options: new OptionsCollection(LanguageNames.CSharp) 1390using 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) } 836if (language == LanguageNames.CSharp) 879workspace.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)
32protected override string Language => LanguageNames.CSharp; 54options: new OptionsCollection(LanguageNames.CSharp) 77options: new OptionsCollection(LanguageNames.CSharp) 99options: new OptionsCollection(LanguageNames.CSharp) 123options: new OptionsCollection(LanguageNames.CSharp) 140options: new OptionsCollection(LanguageNames.CSharp) 165options: new OptionsCollection(LanguageNames.CSharp) 194options: new OptionsCollection(LanguageNames.CSharp) 221options: new OptionsCollection(LanguageNames.CSharp) 268options: new OptionsCollection(LanguageNames.CSharp) 290options: new OptionsCollection(LanguageNames.CSharp) 311options: new OptionsCollection(LanguageNames.CSharp) 337options: new OptionsCollection(LanguageNames.CSharp)
Formatting\FormattingEngineTests.cs (12)
31=> new(LanguageNames.CSharp) 1170var globalOptions = new OptionsCollection(LanguageNames.CSharp) 1203var globalOptions = new OptionsCollection(LanguageNames.CSharp) 1237var globalOptions = new OptionsCollection(LanguageNames.CSharp) 1273var globalOptions = new OptionsCollection(LanguageNames.CSharp) 1337var globalOptions = new OptionsCollection(LanguageNames.CSharp) 1371var globalOptions = new OptionsCollection(LanguageNames.CSharp) 2390AssertFormatWithView(expected, code, new OptionsCollection(LanguageNames.CSharp) { { GenerationOptions.SeparateImportDirectiveGroups, true } }); 2420AssertFormatWithView(expected, code, new OptionsCollection(LanguageNames.CSharp) { { GenerationOptions.SeparateImportDirectiveGroups, true } }); 2442AssertFormatWithView(expected, code, new OptionsCollection(LanguageNames.CSharp) { { GenerationOptions.SeparateImportDirectiveGroups, true } }); 2465AssertFormatWithView(expected, code, new OptionsCollection(LanguageNames.CSharp) { { GenerationOptions.SeparateImportDirectiveGroups, true } }); 2488AssertFormatWithView(expected, code, new OptionsCollection(LanguageNames.CSharp) { { GenerationOptions.SeparateImportDirectiveGroups, true } });
Formatting\RazorLineFormattingOptionsTests.cs (1)
47var project = workspace.AddProject("Test", LanguageNames.CSharp);
GenerateConstructors\GenerateConstructorsTests.cs (1)
26private readonly NamingStylesTestOptionSets options = new(LanguageNames.CSharp);
GoToAdjacentMember\CSharpGoToAdjacentMemberTests.cs (1)
19protected override string LanguageName => LanguageNames.CSharp;
InlineDiagnostics\InlineDiagnosticsTaggerProviderTests.cs (1)
55workspace.GlobalOptions.SetGlobalOption(InlineDiagnosticsOptionsStorage.EnableInlineDiagnostics, LanguageNames.CSharp, true);
Intents\AddConstructorParameterIntentTests.cs (1)
227options: new OptionsCollection(LanguageNames.CSharp)
Intents\GenerateConstructorIntentTests.cs (1)
280options: new OptionsCollection(LanguageNames.CSharp)
LineSeparators\LineSeparatorTests.cs (1)
601var lineSeparatorService = Assert.IsType<CSharpLineSeparatorService>(workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService<ILineSeparatorService>());
MoveToNamespace\MoveToNamespaceTests.cs (1)
33protected internal override string GetLanguage() => LanguageNames.CSharp;
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (2)
220<Project Language=""{LanguageNames.CSharp}"" CommonReferences=""true"" ReferencesOnDisk=""true"" {preprocessorSymbolsAttribute}> 266var 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)
5592sourceLanguage: LanguageNames.CSharp,
Rename\CSharpRenamerTests.cs (1)
15protected override string LanguageName => LanguageNames.CSharp;
SignatureHelp\AttributeSignatureHelpProviderTests.cs (10)
850sourceLanguage: LanguageNames.CSharp, 851referencedLanguage: LanguageNames.CSharp); 883sourceLanguage: LanguageNames.CSharp, 884referencedLanguage: LanguageNames.CSharp); 916sourceLanguage: LanguageNames.CSharp, 917referencedLanguage: LanguageNames.CSharp, 924sourceLanguage: LanguageNames.CSharp, 925referencedLanguage: LanguageNames.CSharp, 969sourceLanguage: LanguageNames.CSharp, 970referencedLanguage: LanguageNames.CSharp);
SignatureHelp\ConstructorInitializerSignatureHelpProviderTests.cs (10)
452sourceLanguage: LanguageNames.CSharp, 453referencedLanguage: LanguageNames.CSharp); 483sourceLanguage: LanguageNames.CSharp, 484referencedLanguage: LanguageNames.CSharp); 514sourceLanguage: LanguageNames.CSharp, 515referencedLanguage: LanguageNames.CSharp, 522sourceLanguage: LanguageNames.CSharp, 523referencedLanguage: LanguageNames.CSharp, 564sourceLanguage: LanguageNames.CSharp, 565referencedLanguage: LanguageNames.CSharp);
SignatureHelp\ElementAccessExpressionSignatureHelpProviderTests.cs (17)
471sourceLanguage: LanguageNames.CSharp, 472referencedLanguage: LanguageNames.CSharp); 508sourceLanguage: LanguageNames.CSharp, 509referencedLanguage: LanguageNames.CSharp); 545sourceLanguage: LanguageNames.CSharp, 546referencedLanguage: LanguageNames.CSharp, 553sourceLanguage: LanguageNames.CSharp, 554referencedLanguage: LanguageNames.CSharp, 604sourceLanguage: LanguageNames.CSharp, 605referencedLanguage: LanguageNames.CSharp); 641sourceLanguage: LanguageNames.CSharp, 642referencedLanguage: LanguageNames.CSharp); 678sourceLanguage: LanguageNames.CSharp, 679referencedLanguage: LanguageNames.CSharp); 716sourceLanguage: LanguageNames.CSharp, 717referencedLanguage: LanguageNames.CSharp); 782sourceLanguage: LanguageNames.CSharp,
SignatureHelp\GenericNamePartiallyWrittenSignatureHelpProviderTests.cs (10)
179sourceLanguage: LanguageNames.CSharp, 180referencedLanguage: LanguageNames.CSharp); 214sourceLanguage: LanguageNames.CSharp, 215referencedLanguage: LanguageNames.CSharp); 249sourceLanguage: LanguageNames.CSharp, 250referencedLanguage: LanguageNames.CSharp, 257sourceLanguage: LanguageNames.CSharp, 258referencedLanguage: LanguageNames.CSharp, 302sourceLanguage: LanguageNames.CSharp, 303referencedLanguage: LanguageNames.CSharp);
SignatureHelp\GenericNameSignatureHelpProviderTests.cs (8)
860sourceLanguage: LanguageNames.CSharp, 861referencedLanguage: LanguageNames.CSharp); 893sourceLanguage: LanguageNames.CSharp, 894referencedLanguage: LanguageNames.CSharp); 926sourceLanguage: LanguageNames.CSharp, 927referencedLanguage: LanguageNames.CSharp, 934sourceLanguage: LanguageNames.CSharp, 935referencedLanguage: LanguageNames.CSharp,
SignatureHelp\InvocationExpressionSignatureHelpProviderTests.cs (34)
1016sourceLanguage: LanguageNames.CSharp, 1017referencedLanguage: LanguageNames.CSharp); 1048sourceLanguage: LanguageNames.CSharp, 1049referencedLanguage: LanguageNames.CSharp); 1080sourceLanguage: LanguageNames.CSharp, 1081referencedLanguage: LanguageNames.CSharp, 1088sourceLanguage: LanguageNames.CSharp, 1089referencedLanguage: LanguageNames.CSharp, 1127sourceLanguage: LanguageNames.CSharp, 1128referencedLanguage: LanguageNames.CSharp); 1166sourceLanguage: LanguageNames.CSharp, 1167referencedLanguage: LanguageNames.CSharp); 1208sourceLanguage: LanguageNames.CSharp, 1209referencedLanguage: LanguageNames.CSharp); 1240sourceLanguage: LanguageNames.CSharp, 1241referencedLanguage: LanguageNames.CSharp); 1283sourceLanguage: LanguageNames.CSharp, 1284referencedLanguage: LanguageNames.CSharp); 1314sourceLanguage: LanguageNames.CSharp, 1315referencedLanguage: LanguageNames.CSharp); 1348sourceLanguage: LanguageNames.CSharp, 1349referencedLanguage: LanguageNames.CSharp); 1380sourceLanguage: LanguageNames.CSharp, 1381referencedLanguage: LanguageNames.CSharp); 1412sourceLanguage: LanguageNames.CSharp, 1413referencedLanguage: LanguageNames.CSharp); 1446sourceLanguage: LanguageNames.CSharp, 1447referencedLanguage: LanguageNames.CSharp); 1481sourceLanguage: LanguageNames.CSharp, 1482referencedLanguage: LanguageNames.CSharp); 1513sourceLanguage: LanguageNames.CSharp, 1514referencedLanguage: LanguageNames.CSharp); 1546sourceLanguage: LanguageNames.CSharp, 1547referencedLanguage: LanguageNames.CSharp);
SignatureHelp\ObjectCreationExpressionSignatureHelpProviderTests.cs (10)
547sourceLanguage: LanguageNames.CSharp, 548referencedLanguage: LanguageNames.CSharp); 583sourceLanguage: LanguageNames.CSharp, 584referencedLanguage: LanguageNames.CSharp); 618sourceLanguage: LanguageNames.CSharp, 619referencedLanguage: LanguageNames.CSharp, 626sourceLanguage: LanguageNames.CSharp, 627referencedLanguage: LanguageNames.CSharp, 672sourceLanguage: LanguageNames.CSharp, 673referencedLanguage: LanguageNames.CSharp);
StringIndentation\StringIndentationTests.cs (1)
27TestWorkspace.CreateWorkspaceElement(LanguageNames.CSharp,
Structure\AbstractCSharpSyntaxNodeStructureTests.cs (1)
13protected sealed override string LanguageName => LanguageNames.CSharp;
Structure\AbstractCSharpSyntaxTriviaStructureTests.cs (1)
11protected sealed override string LanguageName => LanguageNames.CSharp;
Structure\CommentStructureTests.cs (1)
24protected override string LanguageName => LanguageNames.CSharp;
Structure\MetadataAsSource\InvalidIdentifierStructureTests.cs (1)
26protected override string LanguageName => LanguageNames.CSharp;
Workspaces\WorkspaceTests_EditorFeatures.cs (2)
1465var optionKey = new OptionKey(FormattingOptions2.SmartIndent, LanguageNames.CSharp); 1503var optionKey = new OptionKey(FormattingOptions2.SmartIndent, LanguageNames.CSharp);
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Recommendations\RecommenderTests.cs (1)
60var 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)] 22internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (2)
26[ExportCompletionProvider(nameof(AttributeNamedParameterCompletionProvider), LanguageNames.CSharp)] 44internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\AwaitCompletionProvider.cs (2)
24[ExportCompletionProvider(nameof(AwaitCompletionProvider), LanguageNames.CSharp), Shared] 30internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\CrefCompletionProvider.cs (2)
28[ExportCompletionProvider(nameof(CrefCompletionProvider), LanguageNames.CSharp), Shared] 51internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\CSharpSuggestionModeCompletionProvider.cs (2)
23[ExportCompletionProvider(nameof(CSharpSuggestionModeCompletionProvider), LanguageNames.CSharp), Shared] 29internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\DeclarationName\DeclarationNameCompletionProvider.cs (2)
24[ExportCompletionProvider(nameof(DeclarationNameCompletionProvider), LanguageNames.CSharp)] 33internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (2)
26[ExportCompletionProvider(nameof(EnumAndCompletionListTagCompletionProvider), LanguageNames.CSharp)] 44internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (2)
24[ExportCompletionProvider(nameof(ExplicitInterfaceMemberCompletionProvider), LanguageNames.CSharp), Shared] 30internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (2)
25[ExportCompletionProvider(nameof(ExplicitInterfaceTypeCompletionProvider), LanguageNames.CSharp), Shared] 31internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (2)
21[ExportCompletionProvider(nameof(ExternAliasCompletionProvider), LanguageNames.CSharp)] 32internal 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)] 34internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\ImportCompletion\ExtensionMethodImportCompletionProvider.cs (2)
18[ExportCompletionProvider(nameof(ExtensionMethodImportCompletionProvider), LanguageNames.CSharp)] 29internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\ImportCompletion\TypeImportCompletionProvider.cs (2)
20[ExportCompletionProvider(nameof(TypeImportCompletionProvider), LanguageNames.CSharp)] 31internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\ImportCompletion\TypeImportCompletionServiceFactory.cs (2)
13[ExportLanguageServiceFactory(typeof(ITypeImportCompletionService), LanguageNames.CSharp), Shared] 32protected override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\InternalsVisibleToCompletionProvider.cs (2)
16[ExportCompletionProvider(nameof(InternalsVisibleToCompletionProvider), LanguageNames.CSharp)] 27internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\KeywordCompletionProvider.cs (2)
18[ExportCompletionProvider(nameof(KeywordCompletionProvider), LanguageNames.CSharp)] 178internal 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)] 46internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\ObjectAndWithInitializerCompletionProvider.cs (2)
27[ExportCompletionProvider(nameof(ObjectAndWithInitializerCompletionProvider), LanguageNames.CSharp), Shared] 33internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\ObjectCreationCompletionProvider.cs (2)
23[ExportCompletionProvider(nameof(ObjectCreationCompletionProvider), LanguageNames.CSharp)] 34internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider.cs (2)
29[ExportCompletionProvider(nameof(UnnamedSymbolCompletionProvider), LanguageNames.CSharp), Shared] 61internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\OverrideCompletionProvider.cs (2)
21[ExportCompletionProvider(nameof(OverrideCompletionProvider), LanguageNames.CSharp), Shared] 27internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (2)
23[ExportCompletionProvider(nameof(PartialMethodCompletionProvider), LanguageNames.CSharp)] 34internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\PartialTypeCompletionProvider.cs (2)
23[ExportCompletionProvider(nameof(PartialTypeCompletionProvider), LanguageNames.CSharp)] 49internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\PreprocessorCompletionProvider.cs (2)
15[ExportCompletionProvider(nameof(PreprocessorCompletionProvider), LanguageNames.CSharp)] 26internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (2)
25[ExportCompletionProvider(nameof(PropertySubpatternCompletionProvider), LanguageNames.CSharp)] 36internal 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)] 65internal 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)] 33internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\SymbolCompletionProvider.cs (2)
24[ExportCompletionProvider(nameof(SymbolCompletionProvider), LanguageNames.CSharp)] 72internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\TupleNameCompletionProvider.cs (2)
25[ExportCompletionProvider(nameof(TupleNameCompletionProvider), LanguageNames.CSharp)] 38internal override string Language => LanguageNames.CSharp;
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (2)
28[ExportCompletionProvider(nameof(XmlDocCommentCompletionProvider), LanguageNames.CSharp)] 60internal override string Language => LanguageNames.CSharp;
Completion\CSharpCompletionService.cs (2)
19[ExportLanguageServiceFactory(typeof(CompletionService), LanguageNames.CSharp), Shared] 38public 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)
15LanguageNames.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)
21PredefinedEmbeddedLanguageNames.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)] 19protected 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] 30var syntaxTreeFactory = services.GetRequiredLanguageService<ISyntaxTreeFactoryService>(LanguageNames.CSharp);
SemanticSearch\CSharpSemanticSearchUtilities.cs (1)
16Language = 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)
488if (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] 36public 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)
16protected 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) 54options ??= new OptionsCollection(LanguageNames.CSharp);
Diagnostics\AbstractCSharpDiagnosticProviderBasedUserDiagnosticTest_NoEditor.cs (1)
25protected internal override string GetLanguage() => LanguageNames.CSharp;
Diagnostics\Configuration\ConfigureCodeStyle\BooleanCodeStyleOptionConfigurationTests.cs (1)
22protected internal override string GetLanguage() => LanguageNames.CSharp;
Diagnostics\Configuration\ConfigureCodeStyle\EnumCodeStyleOptionConfigurationTests.cs (1)
22protected internal override string GetLanguage() => LanguageNames.CSharp;
Diagnostics\Configuration\ConfigureCodeStyle\MultipleCodeStyleOptionConfigurationTests.cs (1)
33protected internal override string GetLanguage() => LanguageNames.CSharp;
Diagnostics\Configuration\ConfigureSeverity\AllAnalyzersSeverityConfigurationTests.cs (1)
43protected internal override string GetLanguage() => LanguageNames.CSharp;
Diagnostics\Configuration\ConfigureSeverity\CategoryBasedSeverityConfigurationTests.cs (1)
43protected internal override string GetLanguage() => LanguageNames.CSharp;
Diagnostics\Configuration\ConfigureSeverity\CodeStyleOptionBasedSeverityConfigurationTests.cs (1)
22protected internal override string GetLanguage() => LanguageNames.CSharp;
Diagnostics\Configuration\ConfigureSeverity\CSharpCodeStyleOptionBasedSeverityConfigurationTests.cs (1)
22protected internal override string GetLanguage() => LanguageNames.CSharp;
Diagnostics\Configuration\ConfigureSeverity\DotNetDiagnosticSeverityBasedSeverityConfigurationTests.cs (1)
43protected internal override string GetLanguage() => LanguageNames.CSharp;
Diagnostics\Configuration\ConfigureSeverity\MultipleCodeStyleOptionBasedSeverityConfigurationTests.cs (1)
22protected internal override string GetLanguage() => LanguageNames.CSharp;
Diagnostics\Configuration\ConfigureSeverity\VarForBuiltInTypesSeverityConfigurationTests.cs (1)
22protected internal override string GetLanguage() => LanguageNames.CSharp;
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (5)
49protected internal sealed override string GetLanguage() => LanguageNames.CSharp; 414var options = new OptionsCollection(LanguageNames.CSharp) 439var options = new OptionsCollection(LanguageNames.CSharp) 1118var options = new OptionsCollection(LanguageNames.CSharp) 1148var options = new OptionsCollection(LanguageNames.CSharp)
Diagnostics\Suppression\SuppressionTests.cs (2)
35protected internal override string GetLanguage() => LanguageNames.CSharp; 453new CodeChangeProviderMetadata("SuppressionProvider", languages: [LanguageNames.CSharp]));
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (2)
44AddProject(ProjectInfo.Create(projectId, VersionStamp.Create(), "proj", "proj", LanguageNames.CSharp)).GetProject(projectId). 463AddProject(ProjectInfo.Create(projectId, VersionStamp.Create(), "proj", "proj", LanguageNames.CSharp)).GetProject(projectId).
EditAndContinue\Helpers\CSharpEditAndContinueTestVerifier.cs (1)
20public override string LanguageName => LanguageNames.CSharp;
ExtractClass\ExtractClassTests.cs (1)
53return Task.FromResult<Workspace>(TestWorkspace.Create(WorkspaceKind, LanguageNames.CSharp, unusedCompilationOptions, unusedParseOptions));
ExtractMethod\ExtractMethodCodeRefactoringTests.cs (4)
5418options: new(LanguageNames.CSharp) 5461options: new(LanguageNames.CSharp) 5497options: new(LanguageNames.CSharp) 5533options: new(LanguageNames.CSharp)
GenerateComparisonOperators\GenerateComparisonOperatorsTests.cs (1)
93new OptionsCollection(LanguageNames.CSharp)
IntroduceUsingStatement\IntroduceUsingStatementTests.cs (2)
23private static OptionsCollection DoNotPreferSimpleUsingStatement => new(LanguageNames.CSharp) 28private static OptionsCollection PreferSimpleUsingStatement => new(LanguageNames.CSharp)
SemanticSearch\CSharpSemanticSearchServiceTests.cs (4)
66var service = solution.Services.GetRequiredLanguageService<ISemanticSearchService>(LanguageNames.CSharp); 103var service = solution.Services.GetRequiredLanguageService<ISemanticSearchService>(LanguageNames.CSharp); 153var service = solution.Services.GetRequiredLanguageService<ISemanticSearchService>(LanguageNames.CSharp); 207var service = solution.Services.GetRequiredLanguageService<ISemanticSearchService>(LanguageNames.CSharp);
Snippets\AbstractCSharpSnippetProviderTests.cs (1)
11protected sealed override string LanguageName => LanguageNames.CSharp;
src\Analyzers\CSharp\Tests\AliasAmbiguousType\AliasAmbiguousTypeTests.cs (1)
678var options = new OptionsCollection(LanguageNames.CSharp)
src\Analyzers\CSharp\Tests\GenerateConstructor\GenerateConstructorTests.cs (1)
28private readonly NamingStylesTestOptionSets options = new NamingStylesTestOptionSets(LanguageNames.CSharp);
src\Analyzers\CSharp\Tests\ImplementInterface\ImplementInterfaceTests.cs (7)
27private readonly NamingStylesTestOptionSets _options = new(LanguageNames.CSharp); 30=> new(LanguageNames.CSharp) 41=> new(LanguageNames.CSharp) 52=> new(LanguageNames.CSharp) 645new OptionsCollection(LanguageNames.CSharp) 8120new OptionsCollection(LanguageNames.CSharp) 8305new OptionsCollection(LanguageNames.CSharp)
src\Analyzers\CSharp\Tests\InlineDeclaration\CSharpInlineDeclarationTests.cs (1)
2625""", options: new(LanguageNames.CSharp)
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (1)
25private static readonly NamingStylesTestOptionSets s_options = new(LanguageNames.CSharp);
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (1)
46Assert.All(newSolution.Projects.Where(p => p.Language == LanguageNames.CSharp),
src\Analyzers\CSharp\Tests\UseConditionalExpression\UseConditionalExpressionForAssignmentTests.cs (4)
56private 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)
28private 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)
68var option = new Option2<T>(name, defaultValue, group, LanguageNames.CSharp, isEditorConfigOption: true, serializer: serializer); 279languageName: 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)
33LanguageNames.CSharp,
CodeGeneration\AddImportsTests.cs (2)
37LanguageNames.CSharp, 783LanguageNames.CSharp,
CodeGeneration\SymbolEditorTests.cs (2)
29=> _g ??= SyntaxGenerator.GetGenerator(new AdhocWorkspace(), LanguageNames.CSharp); 42var 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)
50return AssertFormatAsync(expected, code, spans, LanguageNames.CSharp, changedOptionSet, testWithTransformation, parseOptions);
Formatting\FormattingElasticTriviaTests.cs (1)
109var generator = SyntaxGenerator.GetGenerator(workspace, LanguageNames.CSharp);
Formatting\FormattingMultipleSpanTests.cs (3)
127var changingOptions = new OptionsCollection(LanguageNames.CSharp) 152var changingOptions = new OptionsCollection(LanguageNames.CSharp) 164var project = workspace.CurrentSolution.AddProject("Project", "Project.dll", LanguageNames.CSharp);
Formatting\FormattingTests.cs (93)
961var changingOptions = new OptionsCollection(LanguageNames.CSharp) 1002var changingOptions = new OptionsCollection(LanguageNames.CSharp) 1032var changingOptions = new OptionsCollection(LanguageNames.CSharp) 1065var changingOptions = new OptionsCollection(LanguageNames.CSharp) 1155var changingOptions = new OptionsCollection(LanguageNames.CSharp) 1194var changingOptions = new OptionsCollection(LanguageNames.CSharp) 1233var changingOptions = new OptionsCollection(LanguageNames.CSharp) 1272var changingOptions = new OptionsCollection(LanguageNames.CSharp) 1311var changingOptions = new OptionsCollection(LanguageNames.CSharp) 1350var changingOptions = new OptionsCollection(LanguageNames.CSharp) 1389var changingOptions = new OptionsCollection(LanguageNames.CSharp) 1428var changingOptions = new OptionsCollection(LanguageNames.CSharp) 1507var changingOptions = new OptionsCollection(LanguageNames.CSharp) 1578var changingOptions = new OptionsCollection(LanguageNames.CSharp) 1645var changingOptions = new OptionsCollection(LanguageNames.CSharp) 1727var changingOptions = new OptionsCollection(LanguageNames.CSharp) 1882var changingOptions = new OptionsCollection(LanguageNames.CSharp) 2066var changingOptions = new OptionsCollection(LanguageNames.CSharp) 2131var changingOptions = new OptionsCollection(LanguageNames.CSharp) 2231var changingOptions = new OptionsCollection(LanguageNames.CSharp) 5210var changingOptions = new OptionsCollection(LanguageNames.CSharp) 5232var changingOptions = new OptionsCollection(LanguageNames.CSharp) 5256var changingOptions = new OptionsCollection(LanguageNames.CSharp) 5280var changingOptions = new OptionsCollection(LanguageNames.CSharp) 6026var changingOptions = new OptionsCollection(LanguageNames.CSharp) 6180var optionSet = new OptionsCollection(LanguageNames.CSharp) { { FormattingOptions2.UseTabs, true } }; 6288var optionSet = new OptionsCollection(LanguageNames.CSharp) 6380var optionSet = new OptionsCollection(LanguageNames.CSharp) { { CSharpFormattingOptions2.SpaceAfterControlFlowStatementKeyword, false } }; 6416var optionSet = new OptionsCollection(LanguageNames.CSharp) { { CSharpFormattingOptions2.SpaceAfterComma, false } }; 6530var changingOptions = new OptionsCollection(LanguageNames.CSharp) 6750var optionSet = new OptionsCollection(LanguageNames.CSharp) { { FormattingOptions2.UseTabs, true } }; 6771var options = new OptionsCollection(LanguageNames.CSharp) { { CSharpFormattingOptions2.WrappingPreserveSingleLine, false } }; 6789var options = new OptionsCollection(LanguageNames.CSharp) { { CSharpFormattingOptions2.WrappingPreserveSingleLine, false } }; 6815var options = new OptionsCollection(LanguageNames.CSharp) { { CSharpFormattingOptions2.WrappingKeepStatementsOnSingleLine, false } }; 6840var options = new OptionsCollection(LanguageNames.CSharp) 6871var options = new OptionsCollection(LanguageNames.CSharp) 6902var options = new OptionsCollection(LanguageNames.CSharp) 6933var options = new OptionsCollection(LanguageNames.CSharp) 6964var options = new OptionsCollection(LanguageNames.CSharp) 6995var options = new OptionsCollection(LanguageNames.CSharp) 7026var options = new OptionsCollection(LanguageNames.CSharp) 7057var options = new OptionsCollection(LanguageNames.CSharp) 7088var options = new OptionsCollection(LanguageNames.CSharp) 7119var options = new OptionsCollection(LanguageNames.CSharp) 7150var options = new OptionsCollection(LanguageNames.CSharp) 7181var options = new OptionsCollection(LanguageNames.CSharp) 7212var options = new OptionsCollection(LanguageNames.CSharp) 7243var options = new OptionsCollection(LanguageNames.CSharp) 7274var options = new OptionsCollection(LanguageNames.CSharp) 7305var options = new OptionsCollection(LanguageNames.CSharp) 7340var options = new OptionsCollection(LanguageNames.CSharp) 7362var options = new OptionsCollection(LanguageNames.CSharp) 7385var options = new OptionsCollection(LanguageNames.CSharp) { { CSharpFormattingOptions2.SpaceBeforeOpenSquareBracket, true } }; 7404var options = new OptionsCollection(LanguageNames.CSharp) { { CSharpFormattingOptions2.SpaceWithinSquareBrackets, true } }; 7434var options = new OptionsCollection(LanguageNames.CSharp) 7473var options = new OptionsCollection(LanguageNames.CSharp) 7526var changingOptions = new OptionsCollection(LanguageNames.CSharp) 8080var optionSet = new OptionsCollection(LanguageNames.CSharp) { { FormattingOptions2.UseTabs, true } }; 8105var optionSet = new OptionsCollection(LanguageNames.CSharp) { { FormattingOptions2.UseTabs, true } }; 8285var changingOptions = new OptionsCollection(LanguageNames.CSharp) 8348var optionSet = new OptionsCollection(LanguageNames.CSharp) 8449var optionSet = new OptionsCollection(LanguageNames.CSharp) 8480var optionSet = new OptionsCollection(LanguageNames.CSharp) 8512var optionSet = new OptionsCollection(LanguageNames.CSharp) 8545var changingOptions = new OptionsCollection(LanguageNames.CSharp) 8651var changingOptions = new OptionsCollection(LanguageNames.CSharp) 8690var optionSet = new OptionsCollection(LanguageNames.CSharp) { { FormattingOptions2.UseTabs, true } }; 8710var optionSet = new OptionsCollection(LanguageNames.CSharp) { { FormattingOptions2.UseTabs, true } }; 8732var optionSet = new OptionsCollection(LanguageNames.CSharp) { { FormattingOptions2.UseTabs, true } }; 8771var optionSet = new OptionsCollection(LanguageNames.CSharp) { { FormattingOptions2.UseTabs, true } }; 8794var changingOptions = new OptionsCollection(LanguageNames.CSharp) 8832var changingOptions = new OptionsCollection(LanguageNames.CSharp) 8870var changingOptions = new OptionsCollection(LanguageNames.CSharp) 8925var changedOptionSet = new OptionsCollection(LanguageNames.CSharp) 9501var changedOptionSet = new OptionsCollection(LanguageNames.CSharp) { { SpacingAfterMethodDeclarationName, spacingAfterMethodDeclarationName } }; 9519var changingOptions = new OptionsCollection(LanguageNames.CSharp) 9545var changingOptions = new OptionsCollection(LanguageNames.CSharp) 9642var changingOptions = new OptionsCollection(LanguageNames.CSharp) 9664var changingOptions = new OptionsCollection(LanguageNames.CSharp) 9923var changingOptions = new OptionsCollection(LanguageNames.CSharp) 9983var changingOptions = new OptionsCollection(LanguageNames.CSharp) 10093var changingOptions = new OptionsCollection(LanguageNames.CSharp) 10129var changingOptions = new OptionsCollection(LanguageNames.CSharp) 10167var changingOptions = new OptionsCollection(LanguageNames.CSharp) 10263var options = new OptionsCollection(LanguageNames.CSharp) 10280options = new OptionsCollection(LanguageNames.CSharp) 10318var options = new OptionsCollection(LanguageNames.CSharp) 10335options = new OptionsCollection(LanguageNames.CSharp) 10373var options = new OptionsCollection(LanguageNames.CSharp) 10390options = new OptionsCollection(LanguageNames.CSharp) 10432var options = new OptionsCollection(LanguageNames.CSharp) 10451options = new OptionsCollection(LanguageNames.CSharp) 10607var optionSet = new OptionsCollection(LanguageNames.CSharp) { { FormattingOptions2.UseTabs, true } };
Formatting\FormattingTests_Patterns.cs (4)
71var changingOptions = new OptionsCollection(LanguageNames.CSharp) 160var changingOptions = new OptionsCollection(LanguageNames.CSharp) 217var changingOptions = new OptionsCollection(LanguageNames.CSharp) 305var changingOptions = new OptionsCollection(LanguageNames.CSharp)
Formatting\FormattingTreeEditTests.cs (1)
24var project = ws.AddProject("project", LanguageNames.CSharp);
OrganizeImports\OrganizeUsingsTests.cs (2)
30var project = workspace.CurrentSolution.AddProject("Project", "Project.dll", LanguageNames.CSharp); 91var project = workspace.CurrentSolution.AddProject("Project", "Project.dll", LanguageNames.CSharp);
Microsoft.CodeAnalysis.EditorFeatures (12)
EditorConfigSettings\Aggregator\SettingsAggregator.cs (1)
117TryAddProviderForLanguage(LanguageNames.CSharp);
EditorConfigSettings\Data\Setting.cs (1)
61var optionKey = new OptionKey2(option, LanguageNames.CSharp);
EditorConfigSettings\DataProvider\Analyzer\AnalyzerSettingsProvider.cs (1)
41IEnumerable<DiagnosticAnalyzer> csharpAnalyzers = analyzerReference.GetAnalyzers(LanguageNames.CSharp);
EditorConfigSettings\DataProvider\SettingsProviderBase.cs (1)
70language: LanguageNames.CSharp,
EditorConfigSettings\Updater\NamingStyles\SourceTextExtensions.cs (3)
71return LanguageNames.CSharp; 93language ??= LanguageNames.CSharp; 105var csharpNamingStylePreferences = globalOptions.GetOption(NamingStyleOptions.NamingPreferences, LanguageNames.CSharp);
EditorConfigSettings\Updater\SettingsUpdateHelper.cs (1)
83LanguageNames.CSharp => Language.CSharp,
IntelliSense\AsyncCompletion\CompletionSource.cs (1)
396var 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)
68LanguageNames.CSharp => semanticModel.GetSpeculativeTypeInfo(0, CSharp.SyntaxFactory.ParseTypeName(_addedParameterFullyQualifiedTypeName!), SpeculativeBindingOption.BindAsTypeOrNamespace).Type,
Completion\AbstractCompletionProviderTests.cs (1)
822return languageName == LanguageNames.CSharp ? @"LanguageVersion = ""preview""" : string.Empty;
Diagnostics\DiagnosticTaggerWrapper.cs (1)
45workspace.GlobalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.CSharp, BackgroundAnalysisScope.OpenFiles);
ExtractInterface\AbstractExtractInterfaceTests.cs (2)
33LanguageNames.CSharp, 49LanguageNames.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)
17LanguageNames.CSharp,
Workspaces\EditorTestWorkspace_Create.cs (1)
137return Create(LanguageNames.CSharp, compilationOptions, parseOptions, files, sourceGeneratedFiles, composition, metadataReferences, isMarkup: isMarkup, openDocuments: openDocuments);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (4)
Intellisense\TestStateFactory.vb (3)
28testState.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerInArgumentLists, LanguageNames.CSharp, showCompletionInArgumentLists) 29testState.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, False) 60testState.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerInArgumentLists, LanguageNames.CSharp, showCompletionInArgumentLists)
Utilities\AssertEx.vb (1)
36If 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)
345new 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)] 961LanguageNames.CSharp, 971LanguageNames.CSharp, 980LanguageNames.CSharp, 988[ExportCodeFixProvider(LanguageNames.CSharp)] 1048workspace.GlobalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.CSharp, BackgroundAnalysisScope.FullSolution); 1161[DiagnosticAnalyzer(LanguageNames.CSharp)]
CodeFixes\ExtensionOrderingTests.cs (4)
36var csharpProviders = providersPerLanguage[LanguageNames.CSharp]; 65TestCore(LanguageNames.CSharp); 96var csharpProviders = providersPerLanguage[LanguageNames.CSharp]; 113[InlineData(LanguageNames.CSharp)]
CodeGeneration\AbstractCodeGenerationTests.cs (4)
81var codeDefFactory = workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService<SyntaxGenerator>(); 88TokenUtilities.AssertTokensEqual(cs, node.ToFullString(), LanguageNames.CSharp); 93var simplifiedRootNode = Simplify(workspace, WrapExpressionInBoilerplate(node, codeDefFactory), LanguageNames.CSharp); 96TokenUtilities.AssertTokensEqual(csSimple, expression.NormalizeWhitespace().ToFullString(), LanguageNames.CSharp);
CodeGeneration\CodeGenerationTests.cs (2)
727if (language == LanguageNames.CSharp) 974? LanguageNames.VisualBasic : LanguageNames.CSharp;
CodeGeneration\CodeGenerationTests.CSharp.cs (3)
1093options: new OptionsCollection(LanguageNames.CSharp) 1406CreateModifierTokens(new Editing.DeclarationModifiers(isSealed: true, isPartial: true), LanguageNames.CSharp)); 1592forceLanguage: LanguageNames.CSharp,
CodeGeneration\CodeGenerationTests.Shared.cs (1)
347forceLanguage: LanguageNames.CSharp);
CodeRefactorings\CodeRefactoringServiceTest.cs (4)
258LanguageNames.CSharp, 268LanguageNames.CSharp, 277LanguageNames.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)
84globalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.CSharp, BackgroundAnalysisScope.FullSolution); 133globalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.CSharp, BackgroundAnalysisScope.FullSolution); 152globalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.CSharp, BackgroundAnalysisScope.FullSolution); 162LanguageNames.CSharp, 263LanguageNames.CSharp)); 296globalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.CSharp, BackgroundAnalysisScope.FullSolution); 307LanguageNames.CSharp, 372globalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.CSharp, BackgroundAnalysisScope.FullSolution); 385LanguageNames.CSharp, 424var projectInfo = ProjectInfo.Create(ProjectId.CreateNewId(), VersionStamp.Create(), "CSharpProject", "CSharpProject", LanguageNames.CSharp); 506workspace.GlobalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.CSharp, analysisScope); 616workspace.GlobalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.CSharp, analysisScope); 620workspace.GlobalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.CompilerDiagnosticsScopeOption, LanguageNames.CSharp, compilerDiagnosticsScope); 622workspace.InitializeDocuments(TestWorkspace.CreateWorkspaceElement(LanguageNames.CSharp, files: files, sourceGeneratedFiles: sourceGeneratedFiles), openDocuments: false); 864globalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.CSharp, 889LanguageNames.CSharp).WithHasAllInformation(hasAllInformation: false)); 1030[DiagnosticAnalyzer(LanguageNames.CSharp)]
Diagnostics\DiagnosticDataTests.cs (4)
112var document = workspace.CurrentSolution.AddProject("TestProject", "TestProject", LanguageNames.CSharp).AddDocument("TestDocument", code); 139var additionalDocument = workspace.CurrentSolution.AddProject("TestProject", "TestProject", LanguageNames.CSharp) 223var firstDocument = workspace.CurrentSolution.AddProject("TestProject", "TestProject", LanguageNames.CSharp) 228secondDocument = firstDocument.Project.Solution.AddProject("TestProject2", "TestProject2", LanguageNames.CSharp)
Diagnostics\IDEDiagnosticIDConfigurationTests.cs (2)
537VerifyConfigureSeverityCore(expected, LanguageNames.CSharp); 930VerifyConfigureCodeStyleOptionsCore(expected, LanguageNames.CSharp);
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
75if (language == LanguageNames.CSharp)
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
247AddProject(projectId, "test", "test", LanguageNames.CSharp).
EditorConfigSettings\Data\CodeStyleSettingsTest.cs (2)
37LanguageNames.CSharp, 61LanguageNames.CSharp,
InheritanceMargin\InheritanceMarginTests.cs (29)
366return VerifyNoItemForDocumentAsync(markup, LanguageNames.CSharp, testHost); 394return VerifyInSingleDocumentAsync(markup, LanguageNames.CSharp, testHost, itemForBar, itemForGetEnumerator); 425LanguageNames.CSharp, 459LanguageNames.CSharp, 492LanguageNames.CSharp, 513return VerifyNoItemForDocumentAsync(markup, LanguageNames.CSharp, testHost); 536LanguageNames.CSharp, 597LanguageNames.CSharp, 667LanguageNames.CSharp, 787LanguageNames.CSharp, 889LanguageNames.CSharp, 1024LanguageNames.CSharp, 1122LanguageNames.CSharp, 1184LanguageNames.CSharp, 1242LanguageNames.CSharp, 1369LanguageNames.CSharp, 1428LanguageNames.CSharp, 1442markup1, markup2, LanguageNames.CSharp, 1461markup1, markup2, LanguageNames.CSharp, 1485markup1, markup2, LanguageNames.CSharp, 1504markup1, markup2, LanguageNames.CSharp, 2217(markup1, LanguageNames.CSharp), 2291(markup2, LanguageNames.CSharp), 2355(markup1, LanguageNames.CSharp), 2420(markup1, LanguageNames.CSharp), 2421(markup2, LanguageNames.CSharp), 2439LanguageNames.CSharp, 2466LanguageNames.CSharp, 2486LanguageNames.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)
48projectLanguage ??= LanguageNames.CSharp; 60workspace.SetAnalyzerFallbackOptions(new OptionsCollection(LanguageNames.CSharp) 241? LanguageNames.VisualBasic : LanguageNames.CSharp;
MetadataAsSource\MetadataAsSourceTests.cs (38)
34OriginatingProjectLanguage.CSharp => LanguageNames.CSharp, 1084LanguageNames.CSharp, [metadataSource], languageVersion: "10", fileScopedNamespaces: true); 1107LanguageNames.CSharp, [metadataSource], languageVersion: "9", fileScopedNamespaces: true); 1131LanguageNames.CSharp, [metadataSource], languageVersion: "10"); 1864await TestSymbolIdMatchesMetadataAsync(LanguageNames.CSharp); 1871await TestNotReusedOnAssemblyDiffersAsync(LanguageNames.CSharp); 1892using var context = TestContext.Create(LanguageNames.CSharp, [metadataSource]); 1925var project = context.CurrentSolution.AddProject(projectId, "ProjectB", "ProjectB", LanguageNames.CSharp).GetRequiredProject(projectId) 1937using var context = TestContext.Create(LanguageNames.CSharp); 1951using var context = TestContext.Create(LanguageNames.CSharp); 1987await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.CSharp, expected); 2021await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.CSharp, expected); 2950LanguageNames.CSharp, 3526LanguageNames.CSharp, 3572LanguageNames.CSharp, 3607LanguageNames.CSharp, 3630await GenerateAndVerifySourceLineAsync(source, LanguageNames.CSharp, expected); 3661await GenerateAndVerifySourceLineAsync(source, LanguageNames.CSharp, expected); 3692await GenerateAndVerifySourceLineAsync(source, LanguageNames.CSharp, expected); 3723await GenerateAndVerifySourceLineAsync(source, LanguageNames.CSharp, expected); 5277LanguageNames.CSharp, 5325LanguageNames.CSharp, 5362LanguageNames.CSharp, 5426LanguageNames.CSharp, 5487LanguageNames.CSharp, 5556LanguageNames.CSharp, 5612LanguageNames.CSharp, 5669LanguageNames.CSharp, 5723LanguageNames.CSharp, 5777LanguageNames.CSharp, 5829LanguageNames.CSharp, 5881LanguageNames.CSharp, 5933LanguageNames.CSharp, 5983LanguageNames.CSharp, 6053LanguageNames.CSharp, 6133LanguageNames.CSharp, 6183LanguageNames.CSharp, 6223await GenerateAndVerifySourceAsync(source, symbolName, LanguageNames.CSharp, expectedCS, includeXmlDocComments: true);
MetadataAsSource\MetadataAsSourceTests.CSharp.cs (10)
82await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.CSharp, languageVersion: "Preview", metadataLanguageVersion: "Preview", expected: expected, signaturesOnly: signaturesOnly); 132await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.CSharp, languageVersion: "Preview", metadataLanguageVersion: "Preview", expected: expected, signaturesOnly: signaturesOnly); 182await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.CSharp, expected: expected, signaturesOnly: signaturesOnly); 188using var context = TestContext.Create(LanguageNames.CSharp); 451await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.CSharp, languageVersion: "Preview", metadataLanguageVersion: "Preview", expected: expected, signaturesOnly: signaturesOnly); 519await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.CSharp, expected: expected, signaturesOnly: signaturesOnly); 618await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.CSharp, languageVersion: "Preview", metadataLanguageVersion: "Preview", expected: expected, signaturesOnly: signaturesOnly); 666await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.CSharp, languageVersion: "Preview", metadataLanguageVersion: "Preview", expected: expected, signaturesOnly: true, metadataCommonReferences: "CommonReferencesNet6"); 712await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.CSharp, expected: expected, signaturesOnly: signaturesOnly, languageVersion: "Preview", metadataLanguageVersion: "Preview"); 780await 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)
55var project = solution.AddProject("project", "project.dll", LanguageNames.CSharp); 69var project = solution.AddProject("project", "project.dll", LanguageNames.CSharp); 98var project = solution.AddProject("project", "project.dll", LanguageNames.CSharp); 133var project = previewWorkspace.CurrentSolution.AddProject("project", "project.dll", LanguageNames.CSharp);
RenameTracking\RenameTrackingTaggerProviderTests.cs (61)
31using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 39using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 52using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 65using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 78using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 91using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 104using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 117using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 130using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 148using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 164using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 184using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 197using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 226using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 243using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 256using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 275using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 292using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 309using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 328using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 344using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 362using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 380using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 394using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 408using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 428using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 442using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 457using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 475using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 497using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 519using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 544using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 578using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 595using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 615using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 630using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 723using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 754using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp, onBeforeGlobalSymbolRenamedReturnValue: false); 787using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp, onAfterGlobalSymbolRenamedReturnValue: false); 909using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 933using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 946using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 978using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 1006using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 1041using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 1076using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 1111using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 1130using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 1147using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 1175using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 1211using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 1240using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 1278using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 1316using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 1354using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 1391using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 1439using var state = RenameTrackingTestState.CreateFromWorkspaceXml(workspaceXml, LanguageNames.CSharp); 1467using var state = RenameTrackingTestState.CreateFromWorkspaceXml(workspaceXml, LanguageNames.CSharp); 1485using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 1498using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); 1513using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp);
RenameTracking\RenameTrackingTestState.cs (1)
107if (languageName is LanguageNames.CSharp or
Structure\AbstractStructureTaggerProviderTests.cs (7)
33TextContainsRegionOrUsing(input, true, LanguageNames.CSharp); 46TextContainsRegionOrUsing(input, true, LanguageNames.CSharp); 56TextContainsRegionOrUsing(input, true, LanguageNames.CSharp); 66TextContainsRegionOrUsing(input, true, LanguageNames.CSharp); 76TextContainsRegionOrUsing(input, true, LanguageNames.CSharp); 106TextContainsRegionOrUsing(input, true, LanguageNames.CSharp); 116TextContainsRegionOrUsing(input, true, LanguageNames.CSharp);
Structure\StructureTaggerTests.cs (14)
59globalOptions.SetGlobalOption(BlockStructureOptionsStorage.CollapseRegionsWhenCollapsingToDefinitions, LanguageNames.CSharp, collapseRegionsWhenCollapsingToDefinitions); 60globalOptions.SetGlobalOption(BlockStructureOptionsStorage.ShowBlockStructureGuidesForDeclarationLevelConstructs, LanguageNames.CSharp, showBlockStructureGuidesForDeclarationLevelConstructs); 61globalOptions.SetGlobalOption(BlockStructureOptionsStorage.ShowBlockStructureGuidesForCodeLevelConstructs, LanguageNames.CSharp, showBlockStructureGuidesForCodeLevelConstructs); 62globalOptions.SetGlobalOption(BlockStructureOptionsStorage.ShowBlockStructureGuidesForCommentsAndPreprocessorRegions, LanguageNames.CSharp, showBlockStructureGuidesForCommentsAndPreprocessorRegions); 126globalOptions.SetGlobalOption(BlockStructureOptionsStorage.CollapseRegionsWhenCollapsingToDefinitions, LanguageNames.CSharp, collapseRegionsWhenCollapsingToDefinitions); 127globalOptions.SetGlobalOption(BlockStructureOptionsStorage.ShowBlockStructureGuidesForDeclarationLevelConstructs, LanguageNames.CSharp, showBlockStructureGuidesForDeclarationLevelConstructs); 128globalOptions.SetGlobalOption(BlockStructureOptionsStorage.ShowBlockStructureGuidesForCodeLevelConstructs, LanguageNames.CSharp, showBlockStructureGuidesForCodeLevelConstructs); 171globalOptions.SetGlobalOption(BlockStructureOptionsStorage.CollapseRegionsWhenCollapsingToDefinitions, LanguageNames.CSharp, collapseRegionsWhenCollapsingToDefinitions); 172globalOptions.SetGlobalOption(BlockStructureOptionsStorage.ShowBlockStructureGuidesForDeclarationLevelConstructs, LanguageNames.CSharp, showBlockStructureGuidesForDeclarationLevelConstructs); 173globalOptions.SetGlobalOption(BlockStructureOptionsStorage.ShowBlockStructureGuidesForCodeLevelConstructs, LanguageNames.CSharp, showBlockStructureGuidesForCodeLevelConstructs); 174globalOptions.SetGlobalOption(BlockStructureOptionsStorage.ShowBlockStructureGuidesForCommentsAndPreprocessorRegions, LanguageNames.CSharp, showBlockStructureGuidesForCommentsAndPreprocessorRegions); 216globalOptions.SetGlobalOption(BlockStructureOptionsStorage.CollapseRegionsWhenCollapsingToDefinitions, LanguageNames.CSharp, collapseRegionsWhenCollapsingToDefinitions); 217globalOptions.SetGlobalOption(BlockStructureOptionsStorage.ShowBlockStructureGuidesForDeclarationLevelConstructs, LanguageNames.CSharp, showBlockStructureGuidesForDeclarationLevelConstructs); 218globalOptions.SetGlobalOption(BlockStructureOptionsStorage.ShowBlockStructureGuidesForCodeLevelConstructs, LanguageNames.CSharp, showBlockStructureGuidesForCodeLevelConstructs);
SymbolFinder\DependentTypeFinderTests.cs (24)
29var suffix = languageName == LanguageNames.CSharp ? "cs" : "vb"; 56solution = AddProjectWithMetadataReferences(solution, "PortableProject", LanguageNames.CSharp, @" 66solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.CSharp, @" 97solution = AddProjectWithMetadataReferences(solution, "PortableProject", LanguageNames.CSharp, @" 107solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.CSharp, @" 144solution = AddProjectWithMetadataReferences(solution, "PortableProject", LanguageNames.CSharp, @" 154solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.CSharp, @" 189solution = AddProjectWithMetadataReferences(solution, "PortableProject", LanguageNames.CSharp, @" 199solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.CSharp, @" 272solution = AddProjectWithMetadataReferences(solution, "PortableProject", LanguageNames.CSharp, @" 314solution = AddProjectWithMetadataReferences(solution, "PortableProject", LanguageNames.CSharp, @" 324solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.CSharp, @" 405solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.CSharp, @" 435solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.CSharp, @"", Net40.References.mscorlib); 466solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.CSharp, @" 515solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.CSharp, @" 567solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.CSharp, @" 594solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.CSharp, @" 640var csProject = solution.Projects.Single(p => p.Language == LanguageNames.CSharp); 667solution = AddProjectWithMetadataReferences(solution, "NormalProject1", LanguageNames.CSharp, @" 688solution = AddProjectWithMetadataReferences(solution, "NormalProject2", LanguageNames.CSharp, @" 730solution = AddProjectWithMetadataReferences(solution, "PortableProject1", LanguageNames.CSharp, @" 742solution = AddProjectWithMetadataReferences(solution, "PortableProject2", LanguageNames.CSharp, @" 774solution = AddProjectWithMetadataReferences(solution, "PortableProject", LanguageNames.CSharp, @"
SymbolKey\SymbolKeyCrossLanguageTests.cs (1)
41var csDocument = solution.Projects.Single(p => p.Language == LanguageNames.CSharp).Documents.Single();
TextEditor\OpenDocumentTests.cs (1)
41var projectId = workspace.AddProject($"Project{i}", LanguageNames.CSharp).Id;
Workspaces\DefaultMefHostTests.cs (1)
26var csservice = ws.Services.GetLanguageServices(LanguageNames.CSharp).GetService<Microsoft.CodeAnalysis.Completion.CompletionService>();
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
NavigateTo\NavigateToItemProvider.Callback.cs (1)
118LanguageNames.CSharp => "csharp",
Suggestions\SuggestedActionsSource.cs (1)
96case LanguageNames.CSharp:
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (208)
Classification\ClassificationTests.vb (1)
320Dim project = workspace.CurrentSolution.Projects.First(Function(p) p.Language = LanguageNames.CSharp)
Classification\SyntacticChangeRangeComputerTests.vb (1)
14Return Test(markup, newText, LanguageNames.CSharp)
CodeFixes\CodeFixServiceTests.vb (6)
65New Mef.CodeChangeProviderMetadata(New Dictionary(Of String, Object)() From {{"Name", "C#"}, {"Languages", {LanguageNames.CSharp}}}))}, 137New Mef.CodeChangeProviderMetadata(New Dictionary(Of String, Object)() From {{"Name", "C#"}, {"Languages", {LanguageNames.CSharp}}}))}, 210<ExportCodeFixProvider(LanguageNames.CSharp, Name:="WorkspaceCodeFixProvider"), [Shared]> 226Contract.ThrowIfFalse(context.Document.Project.Language = LanguageNames.CSharp) 235<ExportCodeFixProvider(LanguageNames.CSharp, Name:="ProjectCodeFixProvider"), [Shared]> 251Contract.ThrowIfFalse(context.Document.Project.Language = LanguageNames.CSharp)
Diagnostics\AbstractCrossLanguageUserDiagnosticTest.vb (1)
143New AnalyzerFileReference(DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.CSharp).GetType().Assembly.Location, TestAnalyzerAssemblyLoader.LoadFromFile),
Diagnostics\AddImport\AddImportCrossLanguageTests.vb (1)
25If language = LanguageNames.CSharp Then
Diagnostics\AddMissingReference\AddMissingReferenceTests.vb (1)
31CType(If(language = LanguageNames.CSharp,
Diagnostics\DiagnosticServiceTests.vb (7)
339Dim 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)> 2116workspace.GlobalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.CSharp, BackgroundAnalysisScope.FullSolution) 2179Dim analyzer = DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.CSharp) 2375<DiagnosticAnalyzer(LanguageNames.CSharp, LanguageNames.VisualBasic)>
Diagnostics\GenerateFromUsage\GenerateConstructorCrossLanguageTests.vb (1)
13If language = LanguageNames.CSharp Then
Diagnostics\GenerateFromUsage\GenerateMethodCrossLanguageTests.vb (1)
20If language = LanguageNames.CSharp Then
Diagnostics\GenerateFromUsage\GenerateVariableCrossLanguageTests.vb (1)
22If language = LanguageNames.CSharp Then
Diagnostics\ImplementInterface\ImplementInterfaceCrossLanguageTests.vb (1)
16If language = LanguageNames.CSharp Then
Diagnostics\UseAutoProperty\UseAutoPropertyTests.vb (1)
16If language = LanguageNames.CSharp Then
GoToBase\CSharpGoToBaseTests.vb (1)
12Await GoToBaseTestsBase.TestAsync(source, LanguageNames.CSharp, shouldSucceed, metadataDefinitions)
GoToDefinition\GoToDefinitionTestsBase.vb (1)
42Dim goToDefService = If(document.Project.Language = LanguageNames.CSharp,
IntelliSense\CompletionServiceTests.vb (1)
115<ExportCompletionProviderMef1(NameOf(MyRoleProvider), LanguageNames.CSharp)>
IntelliSense\CSharpCompletionCommandHandlerTests.vb (103)
120State.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerInArgumentLists, LanguageNames.CSharp, showCompletionInArgumentLists) 154State.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerInArgumentLists, LanguageNames.CSharp, showCompletionInArgumentLists) 935state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.CSharp, True) 1246state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.EnterKeyBehavior, LanguageNames.CSharp, EnterKeyRule.AfterFullyTypedWord) 1274state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.EnterKeyBehavior, LanguageNames.CSharp, EnterKeyRule.AfterFullyTypedWord) 1617state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.CSharp, True) 1645state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.CSharp, True) 4190<ExportCompletionProvider(NameOf(SlowProvider), LanguageNames.CSharp)> 4213Return LanguageNames.CSharp 4241Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 4258state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.CSharp, True) 4287state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.CSharp, True) 4980state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.CSharp, True) 5008state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.CSharp, True) 5130Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 5133state.Workspace.GlobalOptions.SetGlobalOption(CompletionViewOptionsStorage.BlockForCompletionItems, LanguageNames.CSharp, False) 5152state.Workspace.GlobalOptions.SetGlobalOption(CompletionViewOptionsStorage.BlockForCompletionItems, LanguageNames.CSharp, False) 5181Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 5184state.Workspace.GlobalOptions.SetGlobalOption(CompletionViewOptionsStorage.BlockForCompletionItems, LanguageNames.CSharp, False) 5257Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 5261globalOptions.SetGlobalOption(CompletionViewOptionsStorage.BlockForCompletionItems, LanguageNames.CSharp, False) 5326Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 5353globalOptions.SetGlobalOption(CompletionViewOptionsStorage.BlockForCompletionItems, LanguageNames.CSharp, False) 5373globalOptions.SetGlobalOption(CompletionViewOptionsStorage.BlockForCompletionItems, LanguageNames.CSharp, True) 5410<ExportCompletionProvider(NameOf(CompletedTaskControlledCompletionProvider), LanguageNames.CSharp)> 5423<ExportCompletionProvider(NameOf(BooleanTaskControlledCompletionProvider), LanguageNames.CSharp)> 5617state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.CSharp, True) 5843Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 5911Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 6019state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.CSharp, True) 6266state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.CSharp, True) 6290state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.CSharp, True) 6338state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.CSharp, True) 6591state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.CSharp, True) 6617state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.CSharp, True) 6643Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 6668Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 6698Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 6701state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.CSharp, True) 6727Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 6752Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 6777Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 6804Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 6807state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.CSharp, True) 6854Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 6857state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.CSharp, True) 6926state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 6928Dim service = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of ITypeImportCompletionService)() 6975state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 7075state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 7112state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 7151state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 7621state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 7687state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 7753state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 7819state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 7886state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 7922state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 8013state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 8073state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 8115state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowNameSuggestions, LanguageNames.CSharp, True) 8144state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowNameSuggestions, LanguageNames.CSharp, True) 8199<ExportCompletionProvider(NameOf(MultipleChangeCompletionProvider), LanguageNames.CSharp)> 8244<ExportCompletionProvider(NameOf(IntelliCodeMockProvider), LanguageNames.CSharp)> 8618state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 8933state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 8979state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 9029state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 9082state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 9132state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 9173state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 9211state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 9256state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 9301state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 9537Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 9569Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 9587<[Shared], ExportCompletionProvider(NameOf(TestMatchPriorityCompletionProvider), LanguageNames.CSharp)> 9662state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.CSharp, True) 9672<ExportCompletionProvider(NameOf(IntelliCodeMockWeirdProvider), LanguageNames.CSharp)> 9716state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.CSharp, True) 10250<ExportCompletionProvider(NameOf(PreselectionProvider), LanguageNames.CSharp)> 10263Return LanguageNames.CSharp 10294Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 10311<ExportCompletionProvider(NameOf(NotifyCommittingItemCompletionProvider), LanguageNames.CSharp)> 10337Return LanguageNames.CSharp 10372globalOptions.SetGlobalOption(CompletionViewOptionsStorage.BlockForCompletionItems, LanguageNames.CSharp, True) 10373state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 10377Dim completionService = workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 10427globalOptions.SetGlobalOption(CompletionViewOptionsStorage.BlockForCompletionItems, LanguageNames.CSharp, True) 10428state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 10432Dim completionService = workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 10480globalOptions.SetGlobalOption(CompletionViewOptionsStorage.BlockForCompletionItems, LanguageNames.CSharp, True) 10481state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 10486Dim completionService = workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 10620<ExportCompletionProvider(NameOf(TestProvider), LanguageNames.CSharp)> 10651Return LanguageNames.CSharp 10757<ExportCompletionProvider(NameOf(ItemWithAdditionalFilterTextsProvider), LanguageNames.CSharp)> 10797state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowNewSnippetExperienceUserOption, LanguageNames.CSharp, True) 10871state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowNewSnippetExperienceUserOption, LanguageNames.CSharp, False) 10894state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowNewSnippetExperienceUserOption, LanguageNames.CSharp, False) 11946state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 12032state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerOnTyping, LanguageNames.CSharp, False) 12364state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True)
IntelliSense\CSharpCompletionCommandHandlerTests_DefaultsSource.vb (7)
416<ExportCompletionProvider(NameOf(IntelliCodeMockProvider), LanguageNames.CSharp)> 495workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 499Dim completionService = DirectCast(workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)(), MockCompletionServiceFactory.Service) 564workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 567Dim completionService = DirectCast(workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)(), MockCompletionServiceFactory.Service) 624<ExportLanguageServiceFactory(GetType(CompletionService), LanguageNames.CSharp), [Shared], PartNotDiscoverable> 654Return LanguageNames.CSharp
IntelliSense\CSharpSignatureHelpCommandHandlerTests.vb (1)
886state.Workspace.GetService(Of IGlobalOptionService).SetGlobalOption(SignatureHelpViewOptionsStorage.ShowSignatureHelp, LanguageNames.CSharp, False)
IntelliSense\IntellisenseQuickInfoBuilderTests.vb (20)
339Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 412Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 459Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 516Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 575Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 648Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 696Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 745Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 794Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 841Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 878Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 920Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 963Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 1014Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 1065Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 1119Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 1158Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 1198Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 1245Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 1300Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp)
IntelliSense\IntellisenseQuickInfoBuilderTests_Code.vb (2)
36Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 85Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp)
IntelliSense\IntellisenseQuickInfoBuilderTests_Inheritdoc.vb (7)
37Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 77Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 123Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 177Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 223Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 274Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 332Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp)
IntelliSense\IntellisenseQuickInfoBuilderTests_Links.vb (3)
38Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 85Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 130Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp)
IntelliSense\IntellisenseQuickInfoBuilderTests_Lists.vb (5)
42Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 105Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 164Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 229Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp) 308Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp)
IntelliSense\IntellisenseQuickInfoBuilderTests_Styles.vb (1)
46Dim intellisenseQuickInfo = Await GetQuickInfoItemAsync(workspace, LanguageNames.CSharp)
ReferenceHighlighting\DocumentHighlightsServiceTests.vb (1)
42Dim csharpDocument = solution.Projects.Single(Function(p) p.Language = LanguageNames.CSharp).Documents.Single()
Simplification\ParameterSimplificationTests.vb (1)
20Dim project = solution.AddProject(projId, "Project", "Project.dll", LanguageNames.CSharp) _
Simplification\TypeNameSimplifierTest.vb (25)
1463Dim simplificationOption = New OptionsCollection(LanguageNames.CSharp) From { 1500Dim simplificationOption = New OptionsCollection(LanguageNames.CSharp) From { 1539Dim simplificationOption = New OptionsCollection(LanguageNames.CSharp) From { 1608Dim simplificationOption = New OptionsCollection(LanguageNames.CSharp) From { 2501Dim simplificationOptionSet = New OptionsCollection(LanguageNames.CSharp) From 2541Await TestAsync(input, expected, QualifyFieldAccessOption(LanguageNames.CSharp)) 2577Await TestAsync(input, expected, QualifyFieldAccessOption(LanguageNames.CSharp)) 2613Await TestAsync(input, expected, QualifyFieldAccessOption(LanguageNames.CSharp)) 2649Await TestAsync(input, expected, QualifyFieldAccessOption(LanguageNames.CSharp)) 2685Await TestAsync(input, expected, QualifyPropertyAccessOption(LanguageNames.CSharp)) 2721Await TestAsync(input, expected, QualifyPropertyAccessOption(LanguageNames.CSharp)) 2757Await TestAsync(input, expected, QualifyPropertyAccessOption(LanguageNames.CSharp)) 2793Await TestAsync(input, expected, QualifyPropertyAccessOption(LanguageNames.CSharp)) 2829Await TestAsync(input, expected, QualifyPropertyAccessOption(LanguageNames.CSharp)) 2863Await TestAsync(input, expected, QualifyMethodAccessOption(LanguageNames.CSharp)) 2897Await TestAsync(input, expected, QualifyMethodAccessOption(LanguageNames.CSharp)) 2933Await TestAsync(input, expected, QualifyMethodAccessOption(LanguageNames.CSharp)) 2967Await TestAsync(input, expected, QualifyMethodAccessOption(LanguageNames.CSharp)) 3013Await TestAsync(input, expected, QualifyMethodAccessOption(LanguageNames.CSharp)) 3053Await TestAsync(input, expected, QualifyEventAccessOption(LanguageNames.CSharp)) 3095Await TestAsync(input, expected, QualifyEventAccessOption(LanguageNames.CSharp)) 3131Await TestAsync(input, expected, QualifyPropertyAccessOptionWithNotification(LanguageNames.CSharp, NotificationOption2.Silent)) 3167Await TestAsync(input, expected, QualifyPropertyAccessOptionWithNotification(LanguageNames.CSharp, NotificationOption2.Suggestion)) 3203Await TestAsync(input, expected, QualifyPropertyAccessOptionWithNotification(LanguageNames.CSharp, NotificationOption2.Warning)) 3239Await TestAsync(input, expected, QualifyPropertyAccessOptionWithNotification(LanguageNames.CSharp, NotificationOption2.Error))
Workspaces\SymbolDescriptionServiceTests.vb (1)
43Await TestAsync(GetLanguageServiceProvider(workspace, LanguageNames.CSharp), workspace, expectedDescription)
Workspaces\TryFindSourceDefinitionTests.vb (5)
63Assert.Equal(LanguageNames.CSharp, fieldType.Language) 113Assert.Equal(LanguageNames.CSharp, mappedType.Language) 150Assert.Equal(LanguageNames.CSharp, mappedMember.Language) 187Assert.Equal(LanguageNames.CSharp, mappedMember.Language) 224Assert.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)
26oldFallbackOptions.TryGetValue(LanguageNames.CSharp, out var csharpFallbackOptions); 53LanguageNames.CSharp,
Microsoft.CodeAnalysis.ExternalAccess.Razor (6)
Cohost\Handlers\OnAutoInsert.cs (1)
23var services = document.Project.Solution.Services.ExportProvider.GetExports<IBraceCompletionService, LanguageMetadata>().Where(s => s.Metadata.Language == LanguageNames.CSharp).SelectAsArray(s => s.Value);
RazorCSharpFormattingInteractionService.cs (4)
41Contract.ThrowIfFalse(document.Project.Language is LanguageNames.CSharp); 67Contract.ThrowIfFalse(root.Language is LanguageNames.CSharp); 77Contract.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)
618if ((_language.Equals(LanguageNames.CSharp) || _language.Equals(LanguageNames.VisualBasic)) && 626if (_language.Equals(LanguageNames.CSharp) && splicedFileExtensions.Contains("cs")) 642if ((_language.Equals(LanguageNames.CSharp) && splicedFileExtensions.Contains("cs")) || 737if (_language is LanguageNames.CSharp or LanguageNames.VisualBasic) 755if (_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)
106LanguageNames.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 183if (targetProject.Language == LanguageNames.CSharp || 506if ((_semanticDocument.Project == _generateTypeOptionsResult.Project && _semanticDocument.Project.Language == LanguageNames.CSharp) || 507(_targetProjectChangeInLanguage == TargetProjectChangeInLanguage.NoChange && _generateTypeOptionsResult.Project.Language == LanguageNames.CSharp) ||
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (2)
219LanguageNames.CSharp => Glyph.CSharpFile, 570LanguageNames.CSharp => Glyph.CSharpFile,
IntroduceVariable\IntroduceVariableCodeRefactoringProvider.cs (1)
18[ExportCodeRefactoringProvider(LanguageNames.CSharp, LanguageNames.VisualBasic, Name = PredefinedCodeRefactoringProviderNames.IntroduceVariable), Shared]
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (4)
32this.LanguageName = signaturesOnly ? sourceProject.Language : LanguageNames.CSharp; 42var extension = LanguageName == LanguageNames.CSharp ? ".cs" : ".vb"; 65var extension = LanguageName == LanguageNames.CSharp ? ".cs" : ".vb"; 70var assemblyInfoString = LanguageName == LanguageNames.CSharp
MoveToNamespace\MoveToNamespaceCodeActionProvider.cs (1)
13[ExportCodeRefactoringProvider(LanguageNames.CSharp, Name = PredefinedCodeRefactoringProviderNames.MoveToNamespace), Shared]
Options\EditorConfig\EditorConfigFileGenerator.cs (1)
28if (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)
14return 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)
104if (_compilation.Language == LanguageNames.CSharp)
Microsoft.CodeAnalysis.Features.Test.Utilities (5)
EditAndContinue\Extensions.cs (5)
55public static Project AddTestProject(this Solution solution, string projectName, string language = LanguageNames.CSharp) 59=> AddTestProject(solution, projectName, LanguageNames.CSharp, out id); 86public static ProjectInfo CreateProjectInfo(string projectName, string language = LanguageNames.CSharp) 95LanguageNames.CSharp => CSharpParseOptions.Default.WithNoRefSafetyRulesAttribute(), 103LanguageNames.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)
42AddProject(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 377public async Task DesignTimeOnlyDocument_Wpf([CombinatorialValues(LanguageNames.CSharp, LanguageNames.VisualBasic)] string language, bool delayLoad, bool open, bool designTimeOnlyAddedAfterSessionStarts) 380var sourceDesignTimeOnly = (language == LanguageNames.CSharp) ? "class B { }" : "Class C : End Class"; 381var sourceDesignTimeOnly2 = (language == LanguageNames.CSharp) ? "class B2 { }" : "Class C2 : End Class"; 385var extension = (language == LanguageNames.CSharp) ? ".cs" : ".vb"; 764AddProject("test", "test", LanguageNames.CSharp). 920AddProject(projectId, "test", "test", LanguageNames.CSharp).
EditAndContinue\EditSessionActiveStatementsTests.cs (1)
69.AddProject("proj", "proj", LanguageNames.CSharp)
EditAndContinue\EmitSolutionUpdateResultsTests.cs (1)
71AddProject("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)
224case LanguageNames.CSharp:
Extensions\ProtocolConversions.cs (2)
822if (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)
19LanguageNames.CSharp => options.GetOption(TriggerOnTypingLetters, language) && options.GetOption(TriggerOnDeletion, language) is true,
Handler\Configuration\DidChangeConfigurationNotificationHandler.cs (2)
43.Add(LanguageNames.CSharp, "csharp") 46public static readonly ImmutableArray<string> SupportedLanguages = [LanguageNames.CSharp, LanguageNames.VisualBasic];
LanguageInfoProvider.cs (1)
18private static readonly LanguageInformation s_csharpLanguageInformation = new(LanguageNames.CSharp, ".csx");
ProtocolConstants.cs (1)
13public static ImmutableArray<string> RoslynLspLanguages = [LanguageNames.CSharp, LanguageNames.VisualBasic, LanguageNames.FSharp];
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (86)
CodeLens\CSharpCodeLensTests.cs (2)
417globalOptions.SetGlobalOption(LspOptionsStorage.LspEnableReferencesCodeLens, LanguageNames.CSharp, false); 550globalOptions.SetGlobalOption(LspOptionsStorage.LspEnableTestsCodeLens, LanguageNames.CSharp, false);
Completion\CompletionFeaturesTests.cs (18)
119testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, true); 204testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, true); 324testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerInArgumentLists, LanguageNames.CSharp, true); 391await using var testLspServer = await CreateTestLspServerAsync(new[] { markup }, LanguageNames.CSharp, mutatingLspWorkspace, 395var mockService = testLspServer.TestWorkspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService<CompletionService>() as CSharpLspMockCompletionService; 438await using var testLspServer = await CreateTestLspServerAsync(new[] { markup }, LanguageNames.CSharp, mutatingLspWorkspace, 442var mockService = testLspServer.TestWorkspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService<CompletionService>() as CSharpLspMockCompletionService; 577public override string Language => LanguageNames.CSharp; 611[ExportLanguageServiceFactory(typeof(CompletionService), LanguageNames.CSharp, ServiceLayer.Test), Shared] 688testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, true); 765await using var testLspServer = await CreateTestLspServerAsync(new[] { markup }, LanguageNames.CSharp, mutatingLspWorkspace, 769var mockService = testLspServer.TestWorkspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService<CompletionService>() as CSharpLspMockCompletionService; 830testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.TriggerInArgumentLists, LanguageNames.CSharp, true); 870public override string Language => LanguageNames.CSharp; 902[ExportLanguageServiceFactory(typeof(CompletionService), LanguageNames.CSharp, ServiceLayer.Test), Shared] 925await using var testLspServer = await CreateTestLspServerAsync(new[] { markup }, LanguageNames.CSharp, mutatingLspWorkspace, 929var mockService = testLspServer.TestWorkspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService<CompletionService>() as CSharpLspThrowExceptionOnChangeCompletionService; 1007await using var testLspServer = await CreateTestLspServerAsync(new[] { markup }, LanguageNames.CSharp, mutatingLspWorkspace,
Completion\CompletionResolveTests.cs (3)
359testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.SnippetsBehavior, LanguageNames.CSharp, SnippetsRule.AlwaysInclude); 360testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowNewSnippetExperienceUserOption, LanguageNames.CSharp, true); 487public override string Language => LanguageNames.CSharp;
Completion\CompletionTests.cs (3)
300testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, true); 324testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.SnippetsBehavior, LanguageNames.CSharp, SnippetsRule.NeverInclude); 1460testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.SnippetsBehavior, LanguageNames.CSharp, SnippetsRule.NeverInclude);
Diagnostics\AbstractPullDiagnosticTestsBase.cs (4)
43builder.Add(LanguageNames.CSharp, ImmutableArray.Create( 44DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.CSharp), 348globalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.CSharp, analyzerDiagnosticsScope); 351globalOptions.SetGlobalOption(SolutionCrawlerOptionsStorage.CompilerDiagnosticsScopeOption, LanguageNames.CSharp, compilerDiagnosticsScope.Value);
Diagnostics\AdditionalFileDiagnosticsTests.cs (3)
118=> new(ImmutableDictionary<string, ImmutableArray<DiagnosticAnalyzer>>.Empty.Add(LanguageNames.CSharp, ImmutableArray.Create( 119DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.CSharp), 122[DiagnosticAnalyzer(LanguageNames.CSharp), PartNotDiscoverable]
Diagnostics\BuildOnlyDiagnosticIdsHandlerTests.cs (6)
31var expectedBuildOnlyDiagnosticIds = GetExpectedBuildOnlyDiagnosticIds(LanguageNames.CSharp); 53builder.Add(LanguageNames.CSharp, ImmutableArray.Create( 54DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.CSharp), 73LanguageNames.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( 72DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.CSharp), 75[DiagnosticAnalyzer(LanguageNames.CSharp)]
Diagnostics\PullDiagnosticTests.cs (6)
705testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(FadingOptions.FadeOutUnusedImports, LanguageNames.CSharp, true); 744testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(FadingOptions.FadeOutUnusedImports, LanguageNames.CSharp, false); 2085options.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.CSharp, BackgroundAnalysisScope.OpenFiles); 2086options.SetGlobalOption(SolutionCrawlerOptionsStorage.CompilerDiagnosticsScopeOption, LanguageNames.CSharp, CompilerDiagnosticsScope.OpenFiles); 2121options.SetGlobalOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.CSharp, BackgroundAnalysisScope.FullSolution); 2122options.SetGlobalOption(SolutionCrawlerOptionsStorage.CompilerDiagnosticsScopeOption, LanguageNames.CSharp, CompilerDiagnosticsScope.FullSolution);
Diagnostics\WorkspaceProjectDiagnosticsTests.cs (3)
67=> new(ImmutableDictionary<string, ImmutableArray<DiagnosticAnalyzer>>.Empty.Add(LanguageNames.CSharp, ImmutableArray.Create( 68DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.CSharp), 71[DiagnosticAnalyzer(LanguageNames.CSharp), PartNotDiscoverable]
InlayHint\CSharpInlayHintTests.cs (4)
119testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(InlineHintsOptionsStorage.EnabledForParameters, LanguageNames.CSharp, true); 120testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(InlineHintsOptionsStorage.EnabledForTypes, LanguageNames.CSharp, true); 170testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(InlineHintsOptionsStorage.EnabledForParameters, LanguageNames.CSharp, true); 171testLspServer.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)
242Assert.Equal(LanguageNames.CSharp, miscDoc.Project.Language); 286Assert.Equal(LanguageNames.CSharp, miscDoc.Project.Language);
OnAutoInsert\OnAutoInsertTests.cs (2)
387string languageName = LanguageNames.CSharp, 391if (languageName == LanguageNames.CSharp)
Options\SolutionAnalyzerConfigOptionsUpdaterTests.cs (18)
45Assert.Equal(4, globalOptions.GetOption(FormattingOptions2.IndentationSize, LanguageNames.CSharp)); 51var project = new TestHostProject(workspace, "proj1", LanguageNames.CSharp); 54AssertOptionValue(FormattingOptions2.InsertFinalNewLine, LanguageNames.CSharp, "false"); 55AssertOptionValue(FormattingOptions2.IndentationSize, LanguageNames.CSharp, "4"); 60new KeyValuePair<OptionKey2, object?>(new OptionKey2(FormattingOptions2.IndentationSize, LanguageNames.CSharp), 3), 65AssertOptionValue(FormattingOptions2.InsertFinalNewLine, LanguageNames.CSharp, "true"); 66AssertOptionValue(FormattingOptions2.IndentationSize, LanguageNames.CSharp, "3"); 78Assert.False(workspace.CurrentSolution.FallbackAnalyzerOptions.TryGetValue(LanguageNames.CSharp, out _)); 82workspace.AddTestProject(new TestHostProject(workspace, "proj3", LanguageNames.CSharp)); 85AssertOptionValue(FormattingOptions2.InsertFinalNewLine, LanguageNames.CSharp, "true"); 87AssertOptionValue(FormattingOptions2.IndentationSize, LanguageNames.CSharp, "3"); 92AssertOptionValue(FormattingOptions2.InsertFinalNewLine, LanguageNames.CSharp, "false"); 94AssertOptionValue(FormattingOptions2.IndentationSize, LanguageNames.CSharp, "3"); 110var testProjectWithoutConfig = new TestHostProject(workspace, "proj_without_config", LanguageNames.CSharp); 117var testProjectWithConfig = new TestHostProject(workspace, "proj_with_config", LanguageNames.CSharp); 147globalOptions.SetGlobalOption(NamingStyleOptions.NamingPreferences, LanguageNames.CSharp, hostPeferences); 149Assert.True(workspace.CurrentSolution.FallbackAnalyzerOptions.TryGetValue(LanguageNames.CSharp, out var fallbackOptions)); 264var project = new TestHostProject(workspace, "proj1", LanguageNames.CSharp);
UriTests.cs (7)
188Assert.Equal(LanguageNames.CSharp, lspDocument.Project.Language); 200Assert.Equal(LanguageNames.CSharp, lspDocument.Project.Language); 205Assert.Equal(LanguageNames.CSharp, encodedDocument.Project.Language); 240Assert.Equal(LanguageNames.CSharp, lspDocument.Project.Language); 248Assert.Equal(LanguageNames.CSharp, lspDocument.Project.Language); 253Assert.Equal(LanguageNames.CSharp, lowerCaseDocument.Project.Language); 288Assert.Equal(LanguageNames.CSharp, lspDocument.Project.Language);
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
WorkspaceProjectFactoryServiceTests.cs (1)
38new WorkspaceProjectCreationInfo(LanguageNames.CSharp, "DisplayName", FilePath: null, new Dictionary<string, string>()),
Microsoft.CodeAnalysis.Rebuild (3)
CompilationFactory.cs (1)
38LanguageNames.CSharp => CSharpCompilationFactory.Create(assemblyFileName, optionsReader),
CSharpCompilationFactory.cs (2)
32Debug.Assert(optionsReader.GetLanguageName() == LanguageNames.CSharp); 39Debug.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)
608case LanguageNames.CSharp: 651case LanguageNames.CSharp: 833case LanguageNames.CSharp: 862if (reference.Language != LanguageNames.CSharp) 875if (reference.Language != LanguageNames.CSharp) 891if (reference.Language != LanguageNames.CSharp) 923if (reference.Language != LanguageNames.CSharp) 952if (reference.Language == LanguageNames.CSharp) 1046case LanguageNames.CSharp: 1096case LanguageNames.CSharp:
Compilation\TestOperationVisitor.cs (3)
56Assert.Equal(LanguageNames.CSharp, operation.Parent.Language); 850case LanguageNames.CSharp: 1176if (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)
396return languageName == LanguageNames.CSharp ? 404builder.Add(LanguageNames.CSharp, ImmutableArray.Create(GetCompilerDiagnosticAnalyzer(LanguageNames.CSharp))); 418builder.Add(LanguageNames.CSharp, ImmutableArray.Create(GetCompilerDiagnosticAnalyzerReference(LanguageNames.CSharp)));
Diagnostics\SuppressMessageAttributeTests.cs (3)
1258new[] { new WarningOnCodeBodyAnalyzer(LanguageNames.CSharp) }); 1366await VerifyAsync(source, LanguageNames.CSharp, analyzers, diagnostics); 1371return VerifyTokenDiagnosticsAsync(markup, LanguageNames.CSharp, diagnostics);
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (1)
137if (_language == LanguageNames.CSharp)
Syntax\TokenUtilities.cs (3)
74if (language == LanguageNames.CSharp) 86if (node.Language == LanguageNames.CSharp) 98if (language == LanguageNames.CSharp)
Microsoft.CodeAnalysis.TestAnalyzerReference (1)
NonSourceFileRefactoring.cs (1)
15LanguageNames.CSharp,
Microsoft.CodeAnalysis.UnitTests (80)
Analyzers\AnalyzerFileReferenceTests.cs (31)
102Assert.Equal(6, analyzerTypeNameMap[LanguageNames.CSharp].Count); 103Assert.Contains("Microsoft.CodeAnalysis.UnitTests.AnalyzerFileReferenceTests+TestAnalyzerCS", analyzerTypeNameMap[LanguageNames.CSharp]); 104Assert.Contains("Microsoft.CodeAnalysis.UnitTests.TestAnalyzerCSVB", analyzerTypeNameMap[LanguageNames.CSharp]); 105Assert.Contains("Microsoft.CodeAnalysis.UnitTests.AnalyzerFileReferenceTests+TestAnalyzer", analyzerTypeNameMap[LanguageNames.CSharp]); 106Assert.Contains("Microsoft.CodeAnalysis.UnitTests.AnalyzerFileReferenceTests+SomeType+NestedAnalyzer", analyzerTypeNameMap[LanguageNames.CSharp]); 107Assert.Contains("Microsoft.CodeAnalysis.UnitTests.AbstractAnalyzer", analyzerTypeNameMap[LanguageNames.CSharp]); 108Assert.Contains("Microsoft.CodeAnalysis.UnitTests.OpenGenericAnalyzer`1", analyzerTypeNameMap[LanguageNames.CSharp]); 109Assert.DoesNotContain("Microsoft.CodeAnalysis.UnitTests.Test.NotAnAnalyzer", analyzerTypeNameMap[LanguageNames.CSharp]); 125var analyzers = reference.GetAnalyzers(LanguageNames.CSharp); 151reference.AddAnalyzers(builder, LanguageNames.CSharp); 170reference.AddAnalyzers(builder, LanguageNames.CSharp); 187reference.AddAnalyzers(builder, LanguageNames.CSharp); 247reference.AddAnalyzers(builder, LanguageNames.CSharp); 265reference.AddAnalyzers(builder, LanguageNames.CSharp); 287reference.AddAnalyzers(builder, LanguageNames.CSharp); 392var generators = reference.GetGenerators(LanguageNames.CSharp); 405var generators = reference.GetGenerators(LanguageNames.CSharp); 498reference.AddGenerators(builder, LanguageNames.CSharp); 519var csharpAnalyzers = reference.GetAnalyzers(LanguageNames.CSharp).Select(a => a.GetType().FullName).ToArray(); 552var 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)
69string fileName = language == LanguageNames.CSharp ? "Test.cs" : "Test.vb"; 73var syntaxTree = language == LanguageNames.CSharp ? 77if (language == LanguageNames.CSharp)
Diagnostics\SuppressMessageTargetSymbolResolverTests.cs (46)
26VerifyNamespaceResolution("namespace $$N {}", LanguageNames.CSharp, false, "N"); 49LanguageNames.CSharp, false, "A.B.C"); 75LanguageNames.CSharp, false, "IGoo"); 101LanguageNames.CSharp, false, "A+B", "A#B"); 119VerifyTypeResolution("class $$C {}", LanguageNames.CSharp, false, "C"); 186LanguageNames.CSharp, false, "N1.N2.C"); 212LanguageNames.CSharp, false, "C+D"); 242LanguageNames.CSharp, false, "N.C+D+E"); 272LanguageNames.CSharp, false, "D`3"); 295LanguageNames.CSharp, false, "D"); 331LanguageNames.CSharp, false, "A.B"); 355LanguageNames.CSharp, false, 382var syntaxTree = CreateSyntaxTree(source, LanguageNames.CSharp); 383var compilation = CreateCompilation(syntaxTree, LanguageNames.CSharp, ""); 396LanguageNames.CSharp, false, 428LanguageNames.CSharp, false, 455LanguageNames.CSharp, false, "e:C.E"); 478LanguageNames.CSharp, false, 515LanguageNames.CSharp, false, 534LanguageNames.CSharp, false, 550LanguageNames.CSharp, false, 584LanguageNames.CSharp, false, 617LanguageNames.CSharp, false, 628LanguageNames.CSharp, false, "C.Goo():System.Int32"); 667LanguageNames.CSharp, false, "I.#M`2()"); 676LanguageNames.CSharp, false, "I.M():System.Void"); 708LanguageNames.CSharp, false, 736LanguageNames.CSharp, false, 767LanguageNames.CSharp, false, 804LanguageNames.CSharp, false, 849LanguageNames.CSharp, false, 871LanguageNames.CSharp, false, 888LanguageNames.CSharp, false, 918LanguageNames.CSharp, false, 953LanguageNames.CSharp, false, 988LanguageNames.CSharp, false, 1025LanguageNames.CSharp, false, 1065LanguageNames.CSharp, false, 1103LanguageNames.CSharp, false, 1137LanguageNames.CSharp, false, 1164LanguageNames.CSharp, false, 1206LanguageNames.CSharp, false, 1256LanguageNames.CSharp, false, names); 1429if (language == LanguageNames.CSharp) 1453string fileName = language == LanguageNames.CSharp ? "Test.cs" : "Test.vb"; 1455return language == LanguageNames.CSharp ?
Microsoft.CodeAnalysis.Workspaces (18)
FindSymbols\FindReferences\FindReferenceCache.cs (1)
87LanguageNames.CSharp => StringComparer.Ordinal,
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (1)
55var isCSharp = project.Language == LanguageNames.CSharp;
Remote\RemoteSupportedLanguages.cs (1)
12=> language is LanguageNames.CSharp or LanguageNames.VisualBasic;
Rename\Renamer.SyncNamespaceDocumentAction.cs (1)
67if (document.Project.Language == LanguageNames.CSharp)
Shared\Extensions\SyntaxGeneratorExtensions.cs (2)
59else if (overriddenProperty.IsIndexer() && document.Project.Language == LanguageNames.CSharp) 79if (document.Project.Language == LanguageNames.CSharp
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\PredefinedEmbeddedLanguageClassifierNames.cs (1)
13public const string CSharpTest = $"{LanguageNames.CSharp}-Test";
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
72Debug.Assert(LanguageName is LanguageNames.CSharp == Definition.ConfigName.StartsWith(OptionDefinition.CSharpConfigNamePrefix, StringComparison.Ordinal));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
56if (isNativeIntegerType && reader.Compilation.Language == LanguageNames.CSharp)
Tags\WellKnownTags.cs (2)
137internal static readonly ImmutableArray<string> CSharpFile = [WellKnownTags.File, LanguageNames.CSharp]; 140internal 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)
226LanguageNames.CSharp => [new(rootPath, [".cs", ".razor", ".cshtml"])], 1137LanguageNames.CSharp => DirectoryNameEndsWith(fullPath, s_csharpCodeStyleAnalyzerSdkDirectory),
Workspace\Solution\ProjectState.cs (1)
358LanguageNames.CSharp => ".cs",
Workspace\Solution\SolutionCompilationState.RootedSymbolSet.cs (1)
107if (this.Compilation.Language == LanguageNames.CSharp &&
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
49{ LanguageNames.CSharp, new() },
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildWorkspace.cs (1)
457LanguageNames.CSharp => ".cs",
MSBuild\ProjectFileExtensionRegistry.cs (1)
27{ "csproj", LanguageNames.CSharp },
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (21)
MSBuildWorkspaceTestBase.cs (1)
117var p1 = sol.Projects.First(p => p.Language == LanguageNames.CSharp);
NewlyCreatedProjectsFromDotNetNew.cs (3)
74await AssertTemplateProjectLoadsCleanlyAsync(templateName, LanguageNames.CSharp); 168LanguageNames.CSharp => "csproj", 179LanguageNames.CSharp => "C#",
VisualStudioMSBuildWorkspaceTests.cs (17)
243var p1 = sol.Projects.First(p => p.Language == LanguageNames.CSharp); 258var p1 = sol.Projects.First(p => p.Language == LanguageNames.CSharp); 266[InlineData(LanguageNames.CSharp)] 270var files = language == LanguageNames.CSharp 288[InlineData(LanguageNames.CSharp)] 312var p1 = sol.Projects.First(p => p.Language == LanguageNames.CSharp); 335var p1 = sol.Projects.First(p => p.Language == LanguageNames.CSharp); 421var solution3 = solution2.AddProject(pid2, "foo", "foo", LanguageNames.CSharp); 892workspace.AssociateFileExtensionWithLanguage("vbproj", LanguageNames.CSharp); 911workspace.AssociateFileExtensionWithLanguage("ANYPROJ", LanguageNames.CSharp); 1153var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_language_1_is_not_supported, projFileName, LanguageNames.CSharp); 1171var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_language_1_is_not_supported, projFileName, LanguageNames.CSharp); 1186var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_language_1_is_not_supported, projectName, LanguageNames.CSharp); 2587var csproject = workspace.CurrentSolution.Projects.First(p => p.Language == LanguageNames.CSharp); 3123var projectFile = await buildHost.LoadProjectFileAsync(projectFilePath, LanguageNames.CSharp, CancellationToken.None); 3127.GetLanguageServices(LanguageNames.CSharp) 3277Assert.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)
33public string DefaultExtension => languageName == LanguageNames.CSharp ? "cs" : "vb";
SolutionUtilities.cs (1)
105public static Project AddEmptyProject(Solution solution, string languageName = LanguageNames.CSharp, string name = "TestProject")
Workspaces\TestHostProject`1.cs (1)
143language = language ?? LanguageNames.CSharp;
Workspaces\TestWorkspace_Create.cs (1)
137return Create(LanguageNames.CSharp, compilationOptions, parseOptions, files, sourceGeneratedFiles, composition, metadataReferences, isMarkup: isMarkup, openDocuments: openDocuments);
Workspaces\TestWorkspace_XmlConsumption.cs (10)
146(language == LanguageNames.CSharp ? ".csproj" : 235return language is LanguageNames.CSharp or LanguageNames.VisualBasic 276if (language == LanguageNames.CSharp) 309if (language == LanguageNames.CSharp) 352return language == LanguageNames.CSharp ? "CSharpAssembly" + projectId : 401return language is LanguageNames.CSharp or LanguageNames.VisualBasic 498return language == LanguageNames.CSharp 527if (language == LanguageNames.CSharp) 705return language == LanguageNames.CSharp ? name + ".cs" : name + ".vb"; 792if (LanguageNames.CSharp == options.Language)
Workspaces\TestWorkspace_XmlCreation.cs (1)
34extension ??= (language == LanguageNames.CSharp) ? CSharpExtension : VisualBasicExtension;
Workspaces\TestWorkspace`1.cs (1)
224if (language == LanguageNames.CSharp)
Microsoft.CodeAnalysis.Workspaces.UnitTests (395)
BatchFixAllProviderTests.cs (2)
53[DiagnosticAnalyzer(LanguageNames.CSharp)] 143public override string Language => LanguageNames.CSharp;
CodeCleanup\CodeCleanupTests.cs (8)
32var document = CreateDocument("class C { }", LanguageNames.CSharp); 40var document = CreateDocument("class C { }", LanguageNames.CSharp); 49var document = CreateDocument("class C { }", LanguageNames.CSharp); 58var document = CreateDocument("class C { }", LanguageNames.CSharp); 68var document = CreateDocument("class C { }", LanguageNames.CSharp); 133var document = CreateDocument("class C { }", LanguageNames.CSharp); 368private static async Task VerifyRange(string codeWithMarker, string language = LanguageNames.CSharp) 380private static async Task VerifyRange(string codeWithMarker, MockCodeCleanupProvider transformer, string language = LanguageNames.CSharp)
CommandLineProject\CommandLineProjectTests.cs (13)
25var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, @"C:\ProjectDirectory"); 40var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, @"C:\ProjectDirectory", ws); 49_ = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, @"C:\ProjectDirectory", ws); 56var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, @"C:\ProjectDirectory"); 67var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, @"C:\ProjectDirectory"); 79var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, @"C:\ProjectDirectory"); 90var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, @"C:\ProjectDirectory"); 102var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, @"C:\ProjectDirectory"); 113var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, @"C:\ProjectDirectory"); 124var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, @"C:\ProjectDirectory"); 136var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, @"C:\ProjectDirectory"); 150var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, assemblyBaseDir); 165var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, assemblyBaseDir);
CommandLineProject\CommandLineProjectWorkspaceTests.cs (2)
28var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, tempDirectory.Path, ws); 55var 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)
29var suffix = languageName == LanguageNames.CSharp ? "cs" : "vb"; 45var suffix = languageName == LanguageNames.CSharp ? "cs" : "vb"; 59private 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) 365solution = AddProjectWithMetadataReferences(solution, "NetStandardProject", LanguageNames.CSharp, @" 374solution = AddProjectWithMetadataReferences(solution, "NetCoreProject", LanguageNames.CSharp, @" 456solution = AddProjectWithMetadataReferences(solution, "PortableProject", LanguageNames.CSharp, @" 467solution = AddProjectWithMetadataReferences(solution, "NormalProject", LanguageNames.CSharp, @" 614var solution = GetSingleDocumentSolution(workspace, text, LanguageNames.CSharp);
Formatter\FormatterTests.cs (1)
113var csProject = workspace.AddProject("CS", LanguageNames.CSharp);
FormattingTests.cs (1)
37var 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)
95LanguageNames.CSharp); 180LanguageNames.CSharp);
LinkedFileDiffMerging\LinkedFileDiffMergingTests.TextMerging.cs (11)
21LanguageNames.CSharp); 31LanguageNames.CSharp); 41LanguageNames.CSharp); 51LanguageNames.CSharp); 69LanguageNames.CSharp); 87LanguageNames.CSharp); 128LanguageNames.CSharp); 177LanguageNames.CSharp); 205LanguageNames.CSharp); 209[InlineData(LanguageNames.CSharp)] 231[InlineData(LanguageNames.CSharp)]
Options\DocumentOptionSetTests.cs (18)
22new OptionKey(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.CSharp), 29var set = new DocumentOptionSet(configOptions, underlyingSet, LanguageNames.CSharp); 33Assert.Equal(new CodeStyleOption<bool>(internalCodeStyleOption), set.GetOption(CodeStyleOptions.QualifyEventAccess, LanguageNames.CSharp)); 36Assert.Equal(new CodeStyleOption<bool>(internalCodeStyleOption), set.GetOption(CodeStyleOptions.QualifyEventAccess, LanguageNames.CSharp)); 39Assert.Equal(new CodeStyleOption<bool>(true, NotificationOption.Error), set.GetOption(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.CSharp)); 42Assert.Equal(new CodeStyleOption<bool>(true, NotificationOption.Error), set.GetOption(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.CSharp)); 45Assert.Equal(RecommendationOptions.FilterOutOfScopeLocals.DefaultValue, set.GetOption(RecommendationOptions.FilterOutOfScopeLocals, LanguageNames.CSharp)); 52new OptionKey(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.CSharp), 55var set = new DocumentOptionSet(configOptions: null, underlyingSet, LanguageNames.CSharp); 58Assert.Equal(CodeStyleOptions.QualifyEventAccess.DefaultValue, set.GetOption(CodeStyleOptions.QualifyEventAccess, LanguageNames.CSharp)); 61Assert.Equal(CodeStyleOptions.QualifyEventAccess.DefaultValue, set.GetOption(CodeStyleOptions.QualifyEventAccess, LanguageNames.CSharp)); 64Assert.Equal(new CodeStyleOption<bool>(true, NotificationOption.Error), set.GetOption(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.CSharp)); 67Assert.Equal(new CodeStyleOption<bool>(true, NotificationOption.Error), set.GetOption(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.CSharp)); 74var set = new DocumentOptionSet(configOptions: null, underlyingSet, LanguageNames.CSharp); 77var optionKey = new OptionKey(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.CSharp); 91var set = new DocumentOptionSet(configOptions: null, underlyingSet, LanguageNames.CSharp); 131var set = new DocumentOptionSet(configOptions, underlyingSet, LanguageNames.CSharp); 153var set = new DocumentOptionSet(configOptions: null, underlyingSet, LanguageNames.CSharp);
Remote\ServiceDescriptorTests.cs (1)
223[InlineData(LanguageNames.CSharp)]
SemanticModelReuse\SemanticModelReuseTests.cs (11)
38var document = CreateDocument("", LanguageNames.CSharp); 49var document = CreateDocument(source, LanguageNames.CSharp); 63var document = CreateDocument(source, LanguageNames.CSharp); 84var document1 = CreateDocument(source, LanguageNames.CSharp); 101var document1 = CreateDocument(source, LanguageNames.CSharp); 124var document1 = CreateDocument(source, LanguageNames.CSharp); 147var document1 = CreateDocument(source, LanguageNames.CSharp); 170var document1 = CreateDocument(source, LanguageNames.CSharp); 193var document1 = CreateDocument(source, LanguageNames.CSharp); 217var document1 = CreateDocument(source, LanguageNames.CSharp); 246var document1 = CreateDocument(source1, LanguageNames.CSharp);
Simplifier\SimplifierTests.cs (3)
28var project = workspace.AddProject("CSharpTest", LanguageNames.CSharp); 76var csProject = workspace.AddProject("CS", LanguageNames.CSharp); 114var languages = option.IsPerLanguage ? [LanguageNames.CSharp, LanguageNames.VisualBasic] : new string?[] { null };
SolutionTests\ProjectDependencyGraphTests.cs (3)
246var projectAInfo = ProjectInfo.Create(projectAId, VersionStamp.Create(), "A", "A", LanguageNames.CSharp, 254solution = solution.AddProject(projectBId, "B", "B", LanguageNames.CSharp); 713return 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"))) 1171language: LanguageNames.CSharp, 1300.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj1.dll"))); 1310language: LanguageNames.CSharp, 1335.AddProject(ProjectInfo.Create(projectId, VersionStamp.Default, "proj1", "proj1", LanguageNames.CSharp, Path.Combine(s_projectDir, "proj1.dll"))); 1345language: 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"))); 1415language: LanguageNames.CSharp, 1439.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp); 1461.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp); 1488var 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); 1562AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp); 1585AddProject(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); 1732public 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)] 1835ParseOptions 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) 1917solution = solution.AddProject(projectId2, "proj2", "proj2.dll", LanguageNames.CSharp); 1968.AddProject(projectId2, "proj2", "proj2.dll", LanguageNames.CSharp) 1969.AddProject(projectId3, "proj3", "proj3.dll", LanguageNames.CSharp); 2008solution = 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 2361var solution = workspace.CurrentSolution.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp). 2387var solution = workspace.CurrentSolution.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp). 2417var solution = workspace.CurrentSolution.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp). 2446var solution = workspace.CurrentSolution.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp). 2475var solution = workspace.CurrentSolution.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp). 2506var solution = workspace.CurrentSolution.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp). 2531solution = solution.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp); 2544solution = solution.AddProject(project1, "goo", "goo.dll", LanguageNames.CSharp); 2557solution = solution.AddProject(project1, "name", "assemblyName", LanguageNames.CSharp); 2558solution = 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) 2927solution = solution.AddProject(projectIds[i], i.ToString(), i.ToString(), LanguageNames.CSharp); 2945solution = solution.AddProject(project1, "goo", "goo.dll", LanguageNames.CSharp); 2983solution = solution.AddProject(project1, "goo", "goo.dll", LanguageNames.CSharp); 3041solution = solution.AddProject(project1, "goo", "goo.dll", LanguageNames.CSharp); 3060sol = sol.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp); 3080sol = sol.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3081.AddProject(pid2, "bar", "bar.dll", LanguageNames.CSharp) 3106sol = sol.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3107.AddProject(pid2, "bar", "bar.dll", LanguageNames.CSharp) 3120var 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)] 3219var source = (language == LanguageNames.CSharp) ? "class C {}" : "Class C : End Class"; 3233if (language == LanguageNames.CSharp) 3265.AddProject(projectId, "goo", "goo.dll", LanguageNames.CSharp) 3300sol = 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"); 3792var newRoot = (language == LanguageNames.CSharp) ? CS.SyntaxFactory.ParseCompilationUnit(""" 3842var service = ws.Services.GetLanguageServices(LanguageNames.CSharp).GetService<ITestLanguageService>(); 3846var 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) 3990var proj = ws.AddProject("proj", LanguageNames.CSharp); 4007var project = workspace.AddProject("CSharpProject", LanguageNames.CSharp); 4022LanguageNames.CSharp, 4050LanguageNames.CSharp, 4073var project = workspace.CurrentSolution.AddProject("CSharpProject", "CSharpProject", LanguageNames.CSharp); 4098var project = workspace.CurrentSolution.AddProject("CSharpProject", "CSharpProject", LanguageNames.CSharp); 4126var project = workspace.CurrentSolution.AddProject("CSharpProject", "CSharpProject", LanguageNames.CSharp); 4171var project = workspace.CurrentSolution.AddProject("CSharpProject", "CSharpProject", LanguageNames.CSharp); 4223LanguageNames.CSharp, 4249var project = workspace.CurrentSolution.AddProject("TestProject", "TestProject", LanguageNames.CSharp) 4267var project = workspace.CurrentSolution.AddProject("TestProject", "TestProject", LanguageNames.CSharp) 4283var originalProject = workspace.CurrentSolution.AddProject("TestProject", "TestProject", LanguageNames.CSharp) 4307var originalProject = workspace.CurrentSolution.AddProject("TestProject", "TestProject", LanguageNames.CSharp) 4335var document = workspace.CurrentSolution.AddProject("TestProject", "TestProject", LanguageNames.CSharp) 4351var solution = workspace.CurrentSolution.AddProject("TestProject", "TestProject", LanguageNames.CSharp).Solution; 4408var document1 = currentSolution.AddProject("TestProject1", "TestProject1", LanguageNames.CSharp) 4412var document2 = currentSolution.AddProject("TestProject2", "TestProject2", LanguageNames.CSharp) 4548var dummyProject = solution.AddProject("dummy", "dummy", LanguageNames.CSharp); 4573solution = solution.AddProject(pid, "test", "test.dll", LanguageNames.CSharp); 4637solution = solution.AddProject(pid, "test", "test.dll", LanguageNames.CSharp); 4668public async Task TestAddingEditorConfigFileWithDiagnosticSeverity([CombinatorialValues(LanguageNames.CSharp, LanguageNames.VisualBasic)] string languageName) 4672var extension = languageName == LanguageNames.CSharp ? ".cs" : ".vb"; 4704public async Task TestAddingAndRemovingEditorConfigFileWithDiagnosticSeverity([CombinatorialValues(LanguageNames.CSharp, LanguageNames.VisualBasic)] string languageName) 4708var extension = languageName == LanguageNames.CSharp ? ".cs" : ".vb"; 4745public async Task TestChangingAnEditorConfigFile([CombinatorialValues(LanguageNames.CSharp, LanguageNames.VisualBasic)] string languageName) 4749var extension = languageName == LanguageNames.CSharp ? ".cs" : ".vb"; 4798solution = solution.AddProject(projectId, "Test", "Test.dll", LanguageNames.CSharp); 4829solution = solution.AddProject(projectId, "Test", "Test.dll", LanguageNames.CSharp) 4942ProjectInfo.Create(projectId, VersionStamp.Default, "Test", "Test", LanguageNames.CSharp) 4964projects.Add(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test1", "Test1", LanguageNames.CSharp)); 4965projects.Add(ProjectInfo.Create(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.CSharp)); 4970Assert.Equal(2, solution.SolutionState.ProjectCountByLanguage[LanguageNames.CSharp]); 4988projects.Add(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test1", "Test1", LanguageNames.CSharp, projectReferences: [new ProjectReference(projectId2)])); 4989projects.Add(ProjectInfo.Create(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.CSharp)); 4994Assert.Equal(2, solution.SolutionState.ProjectCountByLanguage[LanguageNames.CSharp]); 5016projects.Add(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test1", "Test1", LanguageNames.CSharp)); 5017projects.Add(ProjectInfo.Create(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.CSharp, projectReferences: [new ProjectReference(projectId1)])); 5022Assert.Equal(2, solution.SolutionState.ProjectCountByLanguage[LanguageNames.CSharp]); 5042solution = solution.AddProject(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test1", "Test1", LanguageNames.CSharp)); 5047projects.Add(ProjectInfo.Create(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.CSharp)); 5048projects.Add(ProjectInfo.Create(projectId3, VersionStamp.Default, "Test3", "Test3", LanguageNames.CSharp)); 5053Assert.Equal(3, solution.SolutionState.ProjectCountByLanguage[LanguageNames.CSharp]); 5072solution = solution.AddProject(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test1", "Test1", LanguageNames.CSharp, projectReferences: [new ProjectReference(projectId2)])); 5078projects.Add(ProjectInfo.Create(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.CSharp)); 5079projects.Add(ProjectInfo.Create(projectId3, VersionStamp.Default, "Test3", "Test3", LanguageNames.CSharp)); 5084Assert.Equal(3, solution.SolutionState.ProjectCountByLanguage[LanguageNames.CSharp]); 5103solution = solution.AddProject(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test1", "Test1", LanguageNames.CSharp, 5110projects.Add(ProjectInfo.Create(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.CSharp)); 5111projects.Add(ProjectInfo.Create(projectId3, VersionStamp.Default, "Test3", "Test3", LanguageNames.CSharp)); 5116Assert.Equal(3, solution.SolutionState.ProjectCountByLanguage[LanguageNames.CSharp]); 5141projects.Add(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test2", "Test2", LanguageNames.CSharp)); 5142projects.Add(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test3", "Test3", LanguageNames.CSharp)); 5160projects.Add(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test1", "Test1", LanguageNames.CSharp, 5162projects.Add(ProjectInfo.Create(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.CSharp)); 5163projects.Add(ProjectInfo.Create(projectId3, VersionStamp.Default, "Test3", "Test3", LanguageNames.CSharp)); 5168Assert.Equal(3, solution.SolutionState.ProjectCountByLanguage[LanguageNames.CSharp]); 5184Assert.Equal(1, solution.SolutionState.ProjectCountByLanguage[LanguageNames.CSharp]); 5206projects.Add(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test1", "Test1", LanguageNames.CSharp)); 5207projects.Add(ProjectInfo.Create(projectId2, VersionStamp.Default, "Test2", "Test2", LanguageNames.CSharp)); 5208projects.Add(ProjectInfo.Create(projectId3, VersionStamp.Default, "Test3", "Test3", LanguageNames.CSharp)); 5213Assert.Equal(3, solution.SolutionState.ProjectCountByLanguage[LanguageNames.CSharp]); 5228Assert.Equal(1, solution.SolutionState.ProjectCountByLanguage[LanguageNames.CSharp]); 5249projects.Add(ProjectInfo.Create(projectId1, VersionStamp.Default, "Test2", "Test2", LanguageNames.CSharp)); 5250projects.Add(ProjectInfo.Create(projectId2, VersionStamp.Default, "Test3", "Test3", LanguageNames.CSharp)); 5272ProjectInfo.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), 5328LanguageNames.CSharp, 5356LanguageNames.CSharp, 5366LanguageNames.CSharp, 5393var options = s0.Options.WithChangedOption(option, LanguageNames.CSharp, changedValue); 5411Assert.Equal(changedValue, optionSet.GetOption(option, LanguageNames.CSharp)); 5429language: LanguageNames.CSharp, 5510language: LanguageNames.CSharp, 5544.AddProject("TestProject", "TestProject", LanguageNames.CSharp) 5564.AddProject("TestProject1", "TestProject1", LanguageNames.CSharp) 5566.AddProject("TestProject2", "TestProject2", LanguageNames.CSharp) 5577var project = workspace.CurrentSolution.AddProject("CSharpProject", "CSharpProject", LanguageNames.CSharp); 5594var project = workspace.CurrentSolution.AddProject("CSharpProject", "CSharpProject", LanguageNames.CSharp); 5614var project1 = workspace.CurrentSolution.AddProject("CSharpProject1", "CSharpProject1", LanguageNames.CSharp); 5615var project2 = project1.Solution.AddProject("CSharpProject2", "CSharpProject2", LanguageNames.CSharp); 5642var project1 = workspace.CurrentSolution.AddProject("CSharpProject1", "CSharpProject1", LanguageNames.CSharp); 5643var project2 = project1.Solution.AddProject("CSharpProject2", "CSharpProject2", LanguageNames.CSharp); 5672var project1 = workspace.CurrentSolution.AddProject("CSharpProject1", "CSharpProject1", LanguageNames.CSharp); 5673var project2 = project1.Solution.AddProject("CSharpProject2", "CSharpProject2", LanguageNames.CSharp); 5705var 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)
426solution = solution.AddProject(projectIdWithReference, "WithReference", "WithReference", LanguageNames.CSharp) 1028var project1 = solution.AddProject("P1", "P1", LanguageNames.CSharp);
SolutionTests\TryApplyChangesTests.cs (1)
39OnProjectAdded(ProjectInfo.Create(ProjectId.CreateNewId(), VersionStamp.Default, "TestProject", "TestProject", LanguageNames.CSharp));
SymbolKeyTests.cs (51)
58var compilation = GetCompilation(source, LanguageNames.CSharp); 113var compilation = GetCompilation(source, LanguageNames.CSharp); 128var netstandardReferences = await ReferenceAssemblies.NetStandard.NetStandard20.ResolveAsync(LanguageNames.CSharp, cancellationToken: default); 129var netcoreReferences = await ReferenceAssemblies.Net.Net70.ResolveAsync(LanguageNames.CSharp, cancellationToken: default); 131var compilation1 = GetCompilation(source, LanguageNames.CSharp, references: [.. netstandardReferences]); 132var compilation2 = GetCompilation(source, LanguageNames.CSharp, references: [.. netcoreReferences]); 149var compilation = GetCompilation(source, LanguageNames.CSharp); 165var compilation = GetCompilation(source, LanguageNames.CSharp); 181var compilation = GetCompilation(source, LanguageNames.CSharp); 287var compilation = GetCompilation(source, LanguageNames.CSharp); 303var compilation = GetCompilation(source, LanguageNames.CSharp); 331var compilation = GetCompilation(source, LanguageNames.CSharp); 358var compilation = GetCompilation(source, LanguageNames.CSharp); 376var compilation = GetCompilation(source, LanguageNames.CSharp); 397var compilation = GetCompilation(source, LanguageNames.CSharp); 416var compilation1 = GetCompilation(source1, LanguageNames.CSharp); 417var compilation2 = GetCompilation(source2, LanguageNames.CSharp); 440var compilation1 = GetCompilation(source1, LanguageNames.CSharp); 441var compilation2 = GetCompilation(source2, LanguageNames.CSharp); 507var compilation = GetCompilation(source, LanguageNames.CSharp); 541var compilation = GetCompilation(source, LanguageNames.CSharp); 563var compilation = GetCompilation(source, LanguageNames.CSharp); 590var compilation = GetCompilation(source, LanguageNames.CSharp); 617var compilation = GetCompilation(source, LanguageNames.CSharp); 653var compilation = GetCompilation(source, LanguageNames.CSharp); 675var compilation = GetCompilation(source, LanguageNames.CSharp); 700var compilation = GetCompilation(source, LanguageNames.CSharp); 718var compilation = GetCompilation(source, LanguageNames.CSharp); 736var compilation = GetCompilation(source, LanguageNames.CSharp); 756var compilation = GetCompilation(source, LanguageNames.CSharp); 779var compilation = GetCompilation(source, LanguageNames.CSharp); 822var compilation = GetCompilation(source, LanguageNames.CSharp); 836var compilation = GetCompilation(source, LanguageNames.CSharp); 864var project = workspace.AddProject("Test", LanguageNames.CSharp); 911var project = workspace.AddProject("Test", LanguageNames.CSharp); 952var compilation1 = GetCompilation(source1, LanguageNames.CSharp); 953var compilation2 = GetCompilation(source2, LanguageNames.CSharp); 979var compilation = GetCompilation(source, LanguageNames.CSharp); 1018var compilation1 = GetCompilation(source, LanguageNames.CSharp, "File1.cs"); 1019var compilation2 = GetCompilation(source, LanguageNames.CSharp, "File2.cs"); 1055var compilation1 = GetCompilation(source, LanguageNames.CSharp, "File1.cs"); 1056var compilation2 = GetCompilation(source, LanguageNames.CSharp, "File2.cs"); 1088var compilation1 = GetCompilation(source, LanguageNames.CSharp, "File1.cs", []); 1089var compilation2 = GetCompilation(source, LanguageNames.CSharp, "File2.cs", []); 1169var compilation1 = GetCompilation(source1, LanguageNames.CSharp, "File1.cs"); 1170var compilation2 = GetCompilation(source2, LanguageNames.CSharp, "File2.cs", 1256var comp = GetCompilation(source, LanguageNames.CSharp); 1272var compilation1 = GetCompilation(source1, LanguageNames.CSharp, "File1.cs"); 1310var compilation1 = GetCompilation("", LanguageNames.CSharp); 1402var compilation = GetCompilation(source, LanguageNames.CSharp); 1479if (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)
278TestPublicOption(workspace, perLanguageOption, language: LanguageNames.CSharp, newValueCodeStyleOption); 279TestInternalOption(workspace, perLanguageOption2, language: LanguageNames.CSharp, newValueCodeStyleOption2);
WorkspaceTests\AdhocWorkspaceTests.cs (20)
33language: LanguageNames.CSharp); 48var project = ws.AddProject("TestProject", LanguageNames.CSharp); 51Assert.Equal(LanguageNames.CSharp, project.Language); 58var project = ws.AddProject("TestProject", LanguageNames.CSharp); 70var project = ws.AddProject("TestProject", LanguageNames.CSharp); 88language: LanguageNames.CSharp); 115language: LanguageNames.CSharp); 162LanguageNames.CSharp, 177Assert.Equal(LanguageNames.CSharp, proj.Language); 193language: LanguageNames.CSharp); 221language: LanguageNames.CSharp, 255language: LanguageNames.CSharp, 294language: LanguageNames.CSharp) 328language: LanguageNames.CSharp, 377var projid = ws.AddProject("TestProject", LanguageNames.CSharp).Id; 414var projectId = ws.AddProject("TestProject", LanguageNames.CSharp).Id; 445var projectId = ws.AddProject("TestProject", LanguageNames.CSharp).Id; 480var projectId = ws.AddProject("TestProject", LanguageNames.CSharp).Id; 512var projectId = ws.AddProject("TestProject", LanguageNames.CSharp).Id; 543var projectId = ws.AddProject("TestProject", LanguageNames.CSharp).Id;
WorkspaceTests\WorkspaceReferenceTests.cs (7)
26LanguageNames.CSharp, 55LanguageNames.CSharp, 65LanguageNames.CSharp, 105LanguageNames.CSharp, 135LanguageNames.CSharp, 145LanguageNames.CSharp, 179LanguageNames.CSharp,
WorkspaceTests\WorkspaceTests.cs (6)
24var projectId = ws.AddProject("TestProject", LanguageNames.CSharp).Id; 37var projectId = ws.AddProject("TestProject", LanguageNames.CSharp).Id; 53var projectId = ws.AddProject("TestProject", LanguageNames.CSharp).Id; 71var projectId = ws.AddProject("TestProject", LanguageNames.CSharp).Id; 88var projectId = ws.AddProject("TestProject", LanguageNames.CSharp).Id; 104var 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)
66var 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)
180case LanguageNames.CSharp: 233case LanguageNames.CSharp:
CommonControls\NewTypeDestinationSelectionViewModel.cs (2)
19LanguageNames.CSharp, 43_fileExtension = languageName == LanguageNames.CSharp ? ".cs" : ".vb";
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (3)
103.Where(p => p.Language is LanguageNames.CSharp or LanguageNames.VisualBasic) 208var csharpAnalysisScope = globalOptions.GetOption(SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.CSharp); 211var containsCSharpProject = solution.Projects.Any(static project => project.Language == LanguageNames.CSharp);
EditorConfigSettings\SettingsEditorFactory.cs (1)
84if (!_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)
166else if (languageName == LanguageNames.CSharp) 192PopulateAccessList("internal", Accessibility.Internal, LanguageNames.CSharp); 196PopulateAccessList("public", Accessibility.Public, LanguageNames.CSharp); 445if (_selectedProject.Language == LanguageNames.CSharp) 679if (this.SelectedProject.Language == LanguageNames.CSharp) 754this.AccessList = document.Project.Language == LanguageNames.CSharp 761this.KindList = document.Project.Language == LanguageNames.CSharp
GenerateType\VisualStudioGenerateTypeOptionsServiceFactory.cs (1)
52document.Project.Language == LanguageNames.CSharp ? ".cs" : ".vb",
Implementation\HierarchyItemToProjectIdMap.cs (1)
44if (p.Language is not LanguageNames.CSharp
Library\ObjectBrowser\Lists\ProjectListItem.cs (1)
27case LanguageNames.CSharp:
MoveStaticMembers\VisualStudioMoveStaticMembersOptionsService.cs (1)
65var newFileName = Path.ChangeExtension(typeName, language == LanguageNames.CSharp ? ".cs" : ".vb");
Options\VisualStudioOptionStorage.cs (1)
57LanguageNames.CSharp => "CSharp",
Packaging\PackageInstallerServiceFactory.cs (1)
554if (project?.Language is LanguageNames.CSharp or
Preview\FileChange.cs (1)
234= document.Project.Language == LanguageNames.CSharp ? (ushort)StandardGlyphGroup.GlyphCSharpFile :
PreviewPane\PreviewPaneService.cs (2)
114if (optionLanguage == LanguageNames.CSharp) 125if (optionLanguage == LanguageNames.CSharp)
Progression\GraphBuilder.cs (1)
409if (propertySymbol.IsIndexer && LanguageNames.CSharp == propertySymbol.Language)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
1320LanguageNames.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)
967if (_project.Language == LanguageNames.CSharp) 1055if (_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)
29protected override string LanguageName => LanguageNames.CSharp;
CodeModel\CSharpCodeModelServiceFactory.cs (1)
18[ExportLanguageServiceFactory(typeof(ICodeModelService), LanguageNames.CSharp), Shared]
CSharpPackage.cs (2)
149LanguageNames.CSharp, 157return 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) 43if (GlobalOptions.GetOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp) != true)
LanguageService\CSharpEditorFactory.cs (1)
29protected override string LanguageName => LanguageNames.CSharp;
LanguageService\CSharpHelpContextService.cs (1)
28[ExportLanguageService(typeof(IHelpContextService), LanguageNames.CSharp), Shared]
LanguageService\CSharpLanguageService.cs (1)
65return 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)
57BindToOption(Run_background_code_analysis_for, SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption, LanguageNames.CSharp, label: Run_background_code_analysis_for_label); 58BindToOption(Show_compiler_errors_and_warnings_for, SolutionCrawlerOptionsStorage.CompilerDiagnosticsScopeOption, LanguageNames.CSharp, label: Show_compiler_errors_and_warnings_for_label); 59BindToOption(DisplayDiagnosticsInline, InlineDiagnosticsOptionsStorage.EnableInlineDiagnostics, LanguageNames.CSharp); 60BindToOption(at_the_end_of_the_line_of_code, InlineDiagnosticsOptionsStorage.Location, InlineDiagnosticsLocations.PlacedAtEndOfCode, LanguageNames.CSharp); 61BindToOption(on_the_right_edge_of_the_editor_window, InlineDiagnosticsOptionsStorage.Location, InlineDiagnosticsLocations.PlacedAtEndOfEditor, LanguageNames.CSharp); 107BindToOption(PlaceSystemNamespaceFirst, GenerationOptions.PlaceSystemNamespaceFirst, LanguageNames.CSharp); 108BindToOption(SeparateImportGroups, GenerationOptions.SeparateImportDirectiveGroups, LanguageNames.CSharp); 109BindToOption(SuggestForTypesInReferenceAssemblies, SymbolSearchOptionsStorage.SearchReferenceAssemblies, LanguageNames.CSharp); 110BindToOption(SuggestForTypesInNuGetPackages, SymbolSearchOptionsStorage.SearchNuGetPackages, LanguageNames.CSharp); 111BindToOption(AddUsingsOnPaste, AddImportOnPasteOptionsStorage.AddImportsOnPaste, LanguageNames.CSharp); 114BindToOption(EnableHighlightReferences, ReferenceHighlightingOptionsStorage.ReferenceHighlighting, LanguageNames.CSharp); 115BindToOption(EnableHighlightKeywords, KeywordHighlightingOptionsStorage.KeywordHighlighting, LanguageNames.CSharp); 118BindToOption(EnterOutliningMode, OutliningOptionsStorage.Outlining, LanguageNames.CSharp); 119BindToOption(Collapse_regions_on_file_open, BlockStructureOptionsStorage.CollapseRegionsWhenFirstOpened, LanguageNames.CSharp); 120BindToOption(Collapse_usings_on_file_open, BlockStructureOptionsStorage.CollapseImportsWhenFirstOpened, LanguageNames.CSharp); 121BindToOption(Collapse_sourcelink_embedded_decompiled_files_on_open, BlockStructureOptionsStorage.CollapseSourceLinkEmbeddedDecompiledFilesWhenFirstOpened, LanguageNames.CSharp); 122BindToOption(Collapse_metadata_signature_files_on_open, BlockStructureOptionsStorage.CollapseMetadataSignatureFilesWhenFirstOpened, LanguageNames.CSharp); 123BindToOption(DisplayLineSeparators, LineSeparatorsOptionsStorage.LineSeparator, LanguageNames.CSharp); 124BindToOption(Show_outlining_for_declaration_level_constructs, BlockStructureOptionsStorage.ShowOutliningForDeclarationLevelConstructs, LanguageNames.CSharp); 125BindToOption(Show_outlining_for_code_level_constructs, BlockStructureOptionsStorage.ShowOutliningForCodeLevelConstructs, LanguageNames.CSharp); 126BindToOption(Show_outlining_for_comments_and_preprocessor_regions, BlockStructureOptionsStorage.ShowOutliningForCommentsAndPreprocessorRegions, LanguageNames.CSharp); 127BindToOption(Collapse_regions_when_collapsing_to_definitions, BlockStructureOptionsStorage.CollapseRegionsWhenCollapsingToDefinitions, LanguageNames.CSharp); 128BindToOption(Collapse_local_functions_when_collapsing_to_definitions, BlockStructureOptionsStorage.CollapseLocalFunctionsWhenCollapsingToDefinitions, LanguageNames.CSharp); 131BindToOption(Fade_out_unused_usings, FadingOptions.FadeOutUnusedImports, LanguageNames.CSharp); 132BindToOption(Fade_out_unused_members, FadingOptions.FadeOutUnusedMembers, LanguageNames.CSharp); 133BindToOption(Fade_out_unreachable_code, FadingOptions.FadeOutUnreachableCode, LanguageNames.CSharp); 136BindToOption(Show_guides_for_declaration_level_constructs, BlockStructureOptionsStorage.ShowBlockStructureGuidesForDeclarationLevelConstructs, LanguageNames.CSharp); 137BindToOption(Show_guides_for_code_level_constructs, BlockStructureOptionsStorage.ShowBlockStructureGuidesForCodeLevelConstructs, LanguageNames.CSharp); 138BindToOption(Show_guides_for_comments_and_preprocessor_regions, BlockStructureOptionsStorage.ShowBlockStructureGuidesForCommentsAndPreprocessorRegions, LanguageNames.CSharp); 141BindToOption(GenerateXmlDocCommentsForTripleSlash, DocumentationCommentOptionsStorage.AutoXmlDocCommentGeneration, LanguageNames.CSharp); 142BindToOption(InsertSlashSlashAtTheStartOfNewLinesWhenWritingSingleLineComments, SplitCommentOptionsStorage.Enabled, LanguageNames.CSharp); 143BindToOption(InsertAsteriskAtTheStartOfNewLinesWhenWritingBlockComments, BlockCommentEditingOptionsStorage.AutoInsertBlockCommentStartString, LanguageNames.CSharp); 146BindToOption(ShowRemarksInQuickInfo, QuickInfoOptionsStorage.ShowRemarksInQuickInfo, LanguageNames.CSharp); 147BindToOption(RenameTrackingPreview, RenameTrackingOptionsStorage.RenameTrackingPreview, LanguageNames.CSharp); 149BindToOption(Fix_text_pasted_into_string_literals_experimental, StringCopyPasteOptionsStorage.AutomaticallyFixStringContentsOnPaste, LanguageNames.CSharp); 150BindToOption(Report_invalid_placeholders_in_string_dot_format_calls, FormatStringValidationOptionStorage.ReportInvalidPlaceholdersInStringDotFormatCalls, LanguageNames.CSharp); 151BindToOption(Underline_reassigned_variables, ClassificationOptionsStorage.ClassifyReassignedVariables, LanguageNames.CSharp); 152BindToOption(Strike_out_obsolete_symbols, ClassificationOptionsStorage.ClassifyObsoleteSymbols, LanguageNames.CSharp); 155BindToOption(Colorize_regular_expressions, ClassificationOptionsStorage.ColorizeRegexPatterns, LanguageNames.CSharp); 156BindToOption(Report_invalid_regular_expressions, RegexOptionsStorage.ReportInvalidRegexPatterns, LanguageNames.CSharp); 157BindToOption(Highlight_related_regular_expression_components_under_cursor, HighlightingOptionsStorage.HighlightRelatedRegexComponentsUnderCursor, LanguageNames.CSharp); 158BindToOption(Show_completion_list, CompletionOptionsStorage.ProvideRegexCompletions, LanguageNames.CSharp); 161BindToOption(Colorize_JSON_strings, ClassificationOptionsStorage.ColorizeJsonPatterns, LanguageNames.CSharp); 162BindToOption(Report_invalid_JSON_strings, JsonDetectionOptionsStorage.ReportInvalidJsonPatterns, LanguageNames.CSharp); 163BindToOption(Highlight_related_JSON_components_under_cursor, HighlightingOptionsStorage.HighlightRelatedJsonComponentsUnderCursor, LanguageNames.CSharp); 169BindToOption(with_other_members_of_the_same_kind, ImplementTypeOptionsStorage.InsertionBehavior, ImplementTypeInsertionBehavior.WithOtherMembersOfTheSameKind, LanguageNames.CSharp); 170BindToOption(at_the_end, ImplementTypeOptionsStorage.InsertionBehavior, ImplementTypeInsertionBehavior.AtTheEnd, LanguageNames.CSharp); 171BindToOption(prefer_throwing_properties, ImplementTypeOptionsStorage.PropertyGenerationBehavior, ImplementTypePropertyGenerationBehavior.PreferThrowingProperties, LanguageNames.CSharp); 172BindToOption(prefer_auto_properties, ImplementTypeOptionsStorage.PropertyGenerationBehavior, ImplementTypePropertyGenerationBehavior.PreferAutoProperties, LanguageNames.CSharp); 176BindToOption(ColorHints, InlineHintsViewOptionsStorage.ColorHints, LanguageNames.CSharp); 178BindToOption(DisplayInlineParameterNameHints, InlineHintsOptionsStorage.EnabledForParameters, LanguageNames.CSharp); 179BindToOption(ShowHintsForLiterals, InlineHintsOptionsStorage.ForLiteralParameters, LanguageNames.CSharp); 180BindToOption(ShowHintsForNewExpressions, InlineHintsOptionsStorage.ForObjectCreationParameters, LanguageNames.CSharp); 181BindToOption(ShowHintsForEverythingElse, InlineHintsOptionsStorage.ForOtherParameters, LanguageNames.CSharp); 182BindToOption(ShowHintsForIndexers, InlineHintsOptionsStorage.ForIndexerParameters, LanguageNames.CSharp); 183BindToOption(SuppressHintsWhenParameterNameMatchesTheMethodsIntent, InlineHintsOptionsStorage.SuppressForParametersThatMatchMethodIntent, LanguageNames.CSharp); 184BindToOption(SuppressHintsWhenParameterNamesDifferOnlyBySuffix, InlineHintsOptionsStorage.SuppressForParametersThatDifferOnlyBySuffix, LanguageNames.CSharp); 185BindToOption(SuppressHintsWhenParameterNamesMatchArgumentNames, InlineHintsOptionsStorage.SuppressForParametersThatMatchArgumentName, LanguageNames.CSharp); 187BindToOption(DisplayInlineTypeHints, InlineHintsOptionsStorage.EnabledForTypes, LanguageNames.CSharp); 188BindToOption(ShowHintsForVariablesWithInferredTypes, InlineHintsOptionsStorage.ForImplicitVariableTypes, LanguageNames.CSharp); 189BindToOption(ShowHintsForLambdaParameterTypes, InlineHintsOptionsStorage.ForLambdaParameterTypes, LanguageNames.CSharp); 190BindToOption(ShowHintsForImplicitObjectCreation, InlineHintsOptionsStorage.ForImplicitObjectCreation, LanguageNames.CSharp); 191BindToOption(ShowHintsForCollectionExpressions, InlineHintsOptionsStorage.ForCollectionExpressions, LanguageNames.CSharp); 195BindToOption(ShowInheritanceMargin, InheritanceMarginOptionsStorage.ShowInheritanceMargin, LanguageNames.CSharp, () => true); 197BindToOption(IncludeGlobalImports, InheritanceMarginOptionsStorage.InheritanceMarginIncludeGlobalImports, LanguageNames.CSharp); 222var enabledForParameters = this.OptionStore.GetOption(InlineHintsOptionsStorage.EnabledForParameters, LanguageNames.CSharp); 231var enabledForTypes = this.OptionStore.GetOption(InlineHintsOptionsStorage.EnabledForTypes, LanguageNames.CSharp); 240this.OptionStore.SetOption(InlineHintsOptionsStorage.EnabledForParameters, LanguageNames.CSharp, true); 246this.OptionStore.SetOption(InlineHintsOptionsStorage.EnabledForParameters, LanguageNames.CSharp, false); 252this.OptionStore.SetOption(InlineHintsOptionsStorage.EnabledForTypes, LanguageNames.CSharp, true); 258this.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)
25enumerator.GetOptions(LanguageNames.CSharp), 26LanguageNames.CSharp);
Options\Formatting\FormattingOptionPageControl.xaml.cs (5)
35BindToOption(FormatWhenTypingCheckBox, AutoFormattingOptionsStorage.FormatOnTyping, LanguageNames.CSharp); 36BindToOption(FormatOnCloseBraceCheckBox, AutoFormattingOptionsStorage.FormatOnCloseBrace, LanguageNames.CSharp); 37BindToOption(FormatOnSemicolonCheckBox, AutoFormattingOptionsStorage.FormatOnSemicolon, LanguageNames.CSharp); 38BindToOption(FormatOnReturnCheckBox, AutoFormattingOptionsStorage.FormatOnReturn, LanguageNames.CSharp); 39BindToOption(FormatOnPasteCheckBox, FormattingOptionsStorage.FormatOnPaste, LanguageNames.CSharp);
Options\Formatting\IndentationViewModel.cs (1)
79public IndentationViewModel(OptionStore optionStore, IServiceProvider serviceProvider) : base(optionStore, serviceProvider, LanguageNames.CSharp)
Options\Formatting\NewLinesViewModel.cs (1)
205public NewLinesViewModel(OptionStore optionStore, IServiceProvider serviceProvider) : base(optionStore, serviceProvider, LanguageNames.CSharp)
Options\Formatting\SpacingViewModel.cs (1)
108public SpacingViewModel(OptionStore optionStore, IServiceProvider serviceProvider) : base(optionStore, serviceProvider, LanguageNames.CSharp)
Options\Formatting\StyleViewModel.cs (1)
2192internal StyleViewModel(OptionStore optionStore, IServiceProvider serviceProvider) : base(optionStore, serviceProvider, LanguageNames.CSharp)
Options\Formatting\WrappingViewModel.cs (1)
37public WrappingViewModel(OptionStore optionStore, IServiceProvider serviceProvider) : base(optionStore, serviceProvider, LanguageNames.CSharp)
Options\IntelliSenseOptionPageControl.xaml.cs (17)
21BindToOption(Show_completion_list_after_a_character_is_typed, CompletionOptionsStorage.TriggerOnTypingLetters, LanguageNames.CSharp); 22BindToOption(Show_completion_list_after_a_character_is_deleted, CompletionOptionsStorage.TriggerOnDeletion, LanguageNames.CSharp, onNullValue: static () => false); 25BindToOption(Automatically_show_completion_list_in_argument_lists, CompletionOptionsStorage.TriggerInArgumentLists, LanguageNames.CSharp); 26BindToOption(Highlight_matching_portions_of_completion_list_items, CompletionViewOptionsStorage.HighlightMatchingPortionsOfCompletionListItems, LanguageNames.CSharp); 27BindToOption(Show_completion_item_filters, CompletionViewOptionsStorage.ShowCompletionItemFilters, LanguageNames.CSharp); 30BindToOption(Never_include_snippets, CompletionOptionsStorage.SnippetsBehavior, SnippetsRule.NeverInclude, LanguageNames.CSharp); 31BindToOption(Always_include_snippets, CompletionOptionsStorage.SnippetsBehavior, SnippetsRule.AlwaysInclude, LanguageNames.CSharp); 32BindToOption(Include_snippets_when_question_Tab_is_typed_after_an_identifier, CompletionOptionsStorage.SnippetsBehavior, SnippetsRule.IncludeAfterTypingIdentifierQuestionTab, LanguageNames.CSharp); 35BindToOption(Never_add_new_line_on_enter, CompletionOptionsStorage.EnterKeyBehavior, EnterKeyRule.Never, LanguageNames.CSharp); 36BindToOption(Only_add_new_line_on_enter_with_whole_word, CompletionOptionsStorage.EnterKeyBehavior, EnterKeyRule.AfterFullyTypedWord, LanguageNames.CSharp); 37BindToOption(Always_add_new_line_on_enter, CompletionOptionsStorage.EnterKeyBehavior, EnterKeyRule.Always, LanguageNames.CSharp); 40BindToOption(Show_name_suggestions, CompletionOptionsStorage.ShowNameSuggestions, LanguageNames.CSharp); 42BindToOption(Show_items_from_unimported_namespaces, CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, onNullValue: static () => true); 44BindToOption(Tab_twice_to_insert_arguments, CompletionViewOptionsStorage.EnableArgumentCompletionSnippets, LanguageNames.CSharp, onNullValue: static () => false); 45BindToOption(Show_new_snippet_experience, CompletionOptionsStorage.ShowNewSnippetExperienceUserOption, LanguageNames.CSharp, 51var snippetValue = this.OptionStore.GetOption(CompletionOptionsStorage.SnippetsBehavior, LanguageNames.CSharp); 60var 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)
56LanguageNames.CSharp,
SemanticSearch\SemanticSearchToolWindow.cs (1)
45Title = string.Format(ServicesVSResources.Semantic_search_0, LanguageNames.CSharp);
SemanticSearch\SemanticSearchToolWindowImpl.cs (2)
110textDocument.Rename(SemanticSearchUtilities.GetDocumentFilePath(LanguageNames.CSharp)); 378LanguageNames.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)) 60var settingsProviderFactory = GettingSettingsProviderFactoryFromLanguageService<T>(LanguageNames.CSharp); 164var settingsProviderFactory = GettingSettingsProviderFactoryFromLanguageService<CodeStyleSetting>(LanguageNames.CSharp); 204var settingsProviderFactory = GettingSettingsProviderFactoryFromLanguageService<Setting>(LanguageNames.CSharp); 218var settingsProviderFactory = GettingSettingsProviderFactoryFromLanguageServiceWithNullProjectPath<Setting>(LanguageNames.CSharp); 240var settingsProviderFactory = GettingSettingsProviderFactoryFromLanguageServiceWithNullProjectPath<CodeStyleSetting>(LanguageNames.CSharp);
F1Help\F1HelpTests.cs (1)
29var service = Assert.IsType<CSharpHelpContextService>(workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetService<IHelpContextService>());
PersistentStorage\AbstractPersistentStorageTests.cs (1)
988solution = solution.AddProject(ProjectInfo.Create(ProjectId.CreateNewId(), VersionStamp.Create(), "Project1", "Project1", LanguageNames.CSharp,
ProjectSystemShim\CSharpHelpers.cs (1)
88LanguageNames.CSharp,
UnifiedSettings\CSharpUnifiedSettingsTests.cs (1)
116TestUnifiedSettingsCategory(registrationJsonObject, categoryBasePath: "textEditor.csharp.intellisense", languageName: LanguageNames.CSharp, pkgdefFile);
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Client\Razor\CSharpLspRazorProjectFactory.cs (1)
26var projectInfo = ProjectInfo.Create(ProjectId.CreateNewId(projectName), VersionStamp.Default, projectName, projectName, LanguageNames.CSharp);
Client\RemoteLanguageServiceWorkspace.cs (1)
350return LanguageNames.CSharp;
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (2)
UnifiedSettings\UnifiedSettingsTests.vb (1)
161Case LanguageNames.CSharp
UnifiedSettings\UnifiedSettingsTests_UnifiedSettingsStorage.vb (1)
48Case 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)
25Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.CSharp) 56Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.CSharp) 154Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.CSharp) 187Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.CSharp) 231Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.CSharp) 320Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.CSharp) 360Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.CSharp)
ChangeSignature\ChangeSignatureViewModelTests.vb (11)
36Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.CSharp) 65Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.CSharp) 94Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.CSharp) 131Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.CSharp) 168Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.CSharp) 226Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.CSharp) 245Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.CSharp) 265Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.CSharp) 284Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.CSharp) 307Dim state = Await GetViewModelTestStateAsync(markup, LanguageNames.CSharp) 333Dim viewModelTestState = Await GetViewModelTestStateAsync(markup, LanguageNames.CSharp)
CodeModel\CSharp\CodeAccessorFunctionTests.vb (1)
76Return LanguageNames.CSharp
CodeModel\CSharp\CodeAttributeTests.vb (1)
1083Return LanguageNames.CSharp
CodeModel\CSharp\CodeClassTests.vb (1)
3995Return LanguageNames.CSharp
CodeModel\CSharp\CodeDelegateTests.vb (1)
386Return LanguageNames.CSharp
CodeModel\CSharp\CodeEnumTests.vb (1)
588Return LanguageNames.CSharp
CodeModel\CSharp\CodeEventTests.vb (1)
974Return LanguageNames.CSharp
CodeModel\CSharp\CodeFunctionTests.vb (1)
2706Return LanguageNames.CSharp
CodeModel\CSharp\CodeImportTests.vb (1)
91Return LanguageNames.CSharp
CodeModel\CSharp\CodeInterfaceTests.vb (1)
432Return LanguageNames.CSharp
CodeModel\CSharp\CodeNamespaceTests.vb (1)
634Return LanguageNames.CSharp
CodeModel\CSharp\CodeParameterTests.vb (1)
1254Return LanguageNames.CSharp
CodeModel\CSharp\CodePropertyTests.vb (1)
1693Return LanguageNames.CSharp
CodeModel\CSharp\CodeStructTests.vb (1)
535Return LanguageNames.CSharp
CodeModel\CSharp\CodeVariableTests.vb (1)
2027Return LanguageNames.CSharp
CodeModel\CSharp\EventCollectorTests.vb (1)
1043Return LanguageNames.CSharp
CodeModel\CSharp\ExternalCodeClassTests.vb (1)
103Return LanguageNames.CSharp
CodeModel\CSharp\ExternalCodeFunctionTests.vb (1)
51Protected Overrides ReadOnly Property LanguageName As String = LanguageNames.CSharp
CodeModel\CSharp\ExternalCodeParameterTests.vb (1)
111Protected Overrides ReadOnly Property LanguageName As String = LanguageNames.CSharp
CodeModel\CSharp\ExternalCodePropertyTests.vb (1)
215Protected Overrides ReadOnly Property LanguageName As String = LanguageNames.CSharp
CodeModel\CSharp\FileCodeModelTests.vb (1)
1312Return LanguageNames.CSharp
CodeModel\CSharp\RootCodeModelTests.vb (1)
315Return LanguageNames.CSharp
CommonControls\MemberSelectionViewModelTests.vb (3)
54Dim viewModel = Await GetViewModelAsync(markUp, LanguageNames.CSharp) 94Dim viewModel = Await GetViewModelAsync(markUp, LanguageNames.CSharp) 142Dim viewModel = Await GetViewModelAsync(markUp, LanguageNames.CSharp)
CommonControls\NewTypeDestinationSelectionViewModelTests.vb (10)
32Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass") 57Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass") 71Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass") 91Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass", defaultNamespace:="Outer.Inner") 111Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass", defaultNamespace:="Outer.Inner", generatedNameTypeParameterSuffix:="<X, Y>") 131Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IC", defaultNamespace:="Ns") 147Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass") 168Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass") 187Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IC") 202Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass")
Completion\CSharpCompletionSnippetNoteTests.vb (3)
119Dim testSnippetInfoService = DirectCast(state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetService(Of ISnippetInfoService)(), TestCSharpSnippetInfoService) 137Dim testSnippetInfoService = DirectCast(state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetService(Of ISnippetInfoService)(), TestCSharpSnippetInfoService) 139state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowNewSnippetExperienceUserOption, LanguageNames.CSharp, False)
Completion\CSharpMockCompletionProvider.vb (2)
11<ExportCompletionProvider(NameOf(CSharpMockCompletionProvider), LanguageNames.CSharp)> 24Return LanguageNames.CSharp
Completion\TestCSharpSnippetInfoService.vb (1)
15<ExportLanguageService(GetType(ISnippetInfoService), LanguageNames.CSharp, ServiceLayer.Test), [Shared], PartNotDiscoverable>
DebuggerIntelliSense\CSharpDebuggerIntellisenseTests.vb (2)
776state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True) 805state.Workspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, True)
DebuggerIntelliSense\TestState.vb (1)
48If language = LanguageNames.CSharp Then
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (3)
49ImmutableDictionary(Of String, ImmutableArray(Of DiagnosticAnalyzer)).Empty.Add(LanguageNames.CSharp, ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer))) 95ImmutableDictionary(Of String, ImmutableArray(Of DiagnosticAnalyzer)).Empty.Add(LanguageNames.CSharp, ImmutableArray.Create(Of DiagnosticAnalyzer)(analyzer))) 226Dim compiler = DiagnosticExtensions.GetCompilerDiagnosticAnalyzer(LanguageNames.CSharp)
Diagnostics\VisualStudioDiagnosticAnalyzerProviderTests.vb (1)
56Dim analyzerReferenceMap = hostAnalyzers.GetOrCreateHostDiagnosticAnalyzersPerReference(LanguageNames.CSharp)
ExtractInterface\ExtractInterfaceViewModelTests.vb (16)
34Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass") 46Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IC") 60Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IC") 76Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass") 95Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass") 111Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass", conflictingTypeNames:=New List(Of String) From {"IMyClass"}) 126Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass") 142Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass") 158Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass") 174Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass") 190Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass") 207Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass") 224Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass") 237Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass") 251Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass") 267Dim viewModel = Await GetViewModelAsync(markup, LanguageNames.CSharp, "IMyClass")
GenerateType\GenerateTypeViewModelTests.vb (8)
323Dim viewModel = Await GetViewModelAsync(documentContentMarkup, LanguageNames.CSharp, typeKindvalue:=TypeKindOptions.Attribute, isAttribute:=True) 376Dim viewModel = Await GetViewModelAsync(documentContentMarkup, LanguageNames.CSharp, typeKindvalue:=TypeKindOptions.Class, isPublicOnlyAccessibility:=False, isAttribute:=True) 388Dim viewModel = Await GetViewModelAsync(documentContentMarkup, LanguageNames.CSharp, typeKindvalue:=TypeKindOptions.Class, isPublicOnlyAccessibility:=False, isAttribute:=True) 399Dim viewModel = Await GetViewModelAsync(documentContentMarkup, LanguageNames.CSharp, typeKindvalue:=TypeKindOptions.BaseList) 416Dim viewModel = Await GetViewModelAsync(documentContentMarkup, LanguageNames.CSharp, typeKindvalue:=TypeKindOptions.Interface, isPublicOnlyAccessibility:=True) 572Dim viewModel = Await GetViewModelAsync(workspaceXml, LanguageNames.CSharp) 595Dim viewModel = Await GetViewModelAsync(workspaceXml, LanguageNames.CSharp) 862If(document.Project.Language = LanguageNames.CSharp, ".cs", ".vb"),
InheritanceMargin\InheritanceMarginViewModelTests.vb (5)
166Return VerifyAsync(markup, LanguageNames.CSharp, New Dictionary(Of Integer, GlyphViewModelData) From { 200Return VerifyAsync(markup, LanguageNames.CSharp, New Dictionary(Of Integer, GlyphViewModelData) From { 241Return VerifyAsync(markup, LanguageNames.CSharp, New Dictionary(Of Integer, GlyphViewModelData) From { 293Return VerifyAsync(markup, LanguageNames.CSharp, New Dictionary(Of Integer, GlyphViewModelData) From { 340Return 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)
49Dim language = If(cSharp, LanguageNames.CSharp, LanguageNames.VisualBasic) 104Dim cancelledOptions = VisualStudioMoveStaticMembersOptionsService.GenerateOptions(LanguageNames.CSharp, viewModel, False) 107Dim options = VisualStudioMoveStaticMembersOptionsService.GenerateOptions(LanguageNames.CSharp, viewModel, True)
ObjectBrowser\CSharp\ObjectBrowerTests.vb (1)
20Return LanguageNames.CSharp
Options\CSharpEditorConfigGeneratorTests.vb (5)
268Dim groupedOptions = workspace.GetService(Of EditorConfigOptionsEnumerator).GetOptions(LanguageNames.CSharp) 269Dim actualText = EditorConfigFileGenerator.Generate(groupedOptions, Options, LanguageNames.CSharp) 278options.SetOption(CodeStyleOptions2.PreferExplicitTupleNames, LanguageNames.CSharp, New CodeStyleOption2(Of Boolean)(False, NotificationOption2.[Error])) 526Dim groupedOptions = workspace.GetService(Of EditorConfigOptionsEnumerator).GetOptions(LanguageNames.CSharp) 527Dim 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) 52Dim analyzers = environment.Workspace.CurrentSolution.Projects.Single().AnalyzerReferences.Single().GetAnalyzers(LanguageNames.CSharp) 66"Project", LanguageNames.CSharp, CancellationToken.None) 72Dim analyzers = environment.Workspace.CurrentSolution.Projects.Single().AnalyzerReferences.Single().GetAnalyzers(LanguageNames.CSharp) 85"Project", LanguageNames.CSharp, CancellationToken.None) 91Dim 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) 169Dim referencingProject = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("referencingProject", LanguageNames.CSharp, CancellationToken.None) 170Dim referencedProject = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("referencedProject", LanguageNames.CSharp, CancellationToken.None) 196Dim referencingProject = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("referencingProject", LanguageNames.CSharp, CancellationToken.None) 197Dim referencedProject = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("referencedProject", LanguageNames.CSharp, CancellationToken.None) 227Dim referencingProject = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("referencingProject", LanguageNames.CSharp, CancellationToken.None) 228Dim referencedProject = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("referencedProject", LanguageNames.CSharp, CancellationToken.None) 259Dim referencingProject = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("referencingProject", LanguageNames.CSharp, CancellationToken.None) 260Dim referencedProject = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("referencedProject", LanguageNames.CSharp, CancellationToken.None) 293Dim referencingProject = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("referencingProject", LanguageNames.CSharp, CancellationToken.None) 294Dim referencedProject = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("referencedProject", LanguageNames.CSharp, CancellationToken.None) 319Dim project1 = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("project1", LanguageNames.CSharp, CancellationToken.None) 320Dim project2 = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("project2", LanguageNames.CSharp, CancellationToken.None) 340Dim project1 = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("project1", LanguageNames.CSharp, CancellationToken.None) 341Dim project2 = Await environment.ProjectFactory.CreateAndAddToWorkspaceAsync("project2", LanguageNames.CSharp, CancellationToken.None) 361Dim 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)
43Dim viewModel = Await GetViewModelAsync(markUp, LanguageNames.CSharp) 86Dim viewModel = Await GetViewModelAsync(markUp, LanguageNames.CSharp) 126Dim viewModel = Await GetViewModelAsync(markUp, LanguageNames.CSharp) 171Dim viewModel = Await GetViewModelAsync(markUp, LanguageNames.CSharp) 214Dim viewModel = Await GetViewModelAsync(markUp, LanguageNames.CSharp)
RQName\RQNameTests.vb (16)
23Await TestWorkerAsync(markup, LanguageNames.CSharp, expectedRQName) 31Await TestWorkerAsync(markup, LanguageNames.CSharp, expectedRQName) 39Await TestWorkerAsync(markup, LanguageNames.CSharp, expectedRQName) 47Await TestWorkerAsync(markup, LanguageNames.CSharp, expectedRQName) 55Await TestWorkerAsync(markup, LanguageNames.CSharp, expectedRQName) 63Await TestWorkerAsync(markup, LanguageNames.CSharp, expectedRQName) 75Await TestWorkerAsync(markup, LanguageNames.CSharp, expectedRQName) 90Await TestWorkerAsync(markup, LanguageNames.CSharp, expectedRQName) 102Await TestWorkerAsync(markup, LanguageNames.CSharp, expectedRQName) 114Await TestWorkerAsync(markup, LanguageNames.CSharp, expectedRQName) 126Await TestWorkerAsync(markup, LanguageNames.CSharp, expectedRQName) 156Await TestWorkerAsync(markup, LanguageNames.CSharp, expectedRQName) 175Await TestWorkerAsync(markup, LanguageNames.CSharp, expectedRQName) 190Await TestWorkerAsync(markup, LanguageNames.CSharp, expectedRQName) 215Await TestWorkerAsync(markup, LanguageNames.CSharp, expectedRQName) 231Await TestWorkerAsync(markup, LanguageNames.CSharp, expectedRQName)
Snippets\CSharpSnippetCommandHandlerTests.vb (17)
18Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.CSharp) 32Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.CSharp) 46Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.CSharp) 59Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.CSharp, startActiveSession:=True) 72Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.CSharp) 84Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.CSharp) 118Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.CSharp, startActiveSession:=True) 130Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.CSharp) 141Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.CSharp, startActiveSession:=True) 151Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.CSharp) 161Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.CSharp, startActiveSession:=True) 173Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.CSharp) 191Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.CSharp) 209Dim testState = SnippetTestState.CreateTestState(markup, LanguageNames.CSharp) 220Dim testState = SnippetTestState.CreateSubmissionTestState(markup, LanguageNames.CSharp) 234Dim testState = SnippetTestState.CreateSubmissionTestState(markup, LanguageNames.CSharp) 253Dim 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)
49Dim contentType = If(languageName = LanguageNames.CSharp, ContentTypeNames.CSharpContentType, ContentTypeNames.VisualBasicContentType) 50Dim 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)
120AddPerLanguageOption(panel, option, LanguageNames.CSharp);
Roslyn.VisualStudio.Next.UnitTests (68)
Remote\RemoteHostClientServiceFactoryTests.cs (1)
47var project = workspace.AddProject("proj", LanguageNames.CSharp);
Remote\SnapshotSerializationTests.cs (1)
49var project1 = solution.AddProject("Project", "Project.dll", LanguageNames.CSharp);
Services\ServiceHubServicesTests.cs (35)
52workspace.InitializeDocuments(LanguageNames.CSharp, files: [code], openDocuments: false); 74workspace.InitializeDocuments(LanguageNames.CSharp, files: [code], openDocuments: false); 127workspace.InitializeDocuments(LanguageNames.CSharp, files: [source], openDocuments: false); 290solution = AddProject(solution, LanguageNames.CSharp, documents: [], additionalDocuments: [], p2pReferences: []); 291solution = AddProject(solution, LanguageNames.CSharp, documents: [], additionalDocuments: [], p2pReferences: []); 357p1, VersionStamp.Create(), "p1", "p1", LanguageNames.CSharp, outputFilePath: file.Path, 360p2, 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)) 1626if (document.Project.Language == LanguageNames.CSharp) 1661solution = AddProject(solution, LanguageNames.CSharp, 1679solution = AddProject(solution, LanguageNames.CSharp, 1687solution = AddProject(solution, LanguageNames.CSharp, 1697solution = AddProject(solution, LanguageNames.CSharp,
Services\SolutionAssetCacheTests.cs (1)
108workspace.SetCurrentSolution(solution => solution.AddProject("Project", "Assembly", LanguageNames.CSharp).Solution, WorkspaceChangeKind.ProjectAdded);
Services\SolutionServiceTests.cs (21)
88ProjectId.CreateNewId(), VersionStamp.Create(), "test", "test.dll", LanguageNames.CSharp, 117ProjectId.CreateNewId(), VersionStamp.Create(), "test", "test.dll", LanguageNames.CSharp, 171.Add(LanguageNames.CSharp, StructuredAnalyzerConfigOptions.Create(new DictionaryAnalyzerConfigOptions(ImmutableDictionary<string, string>.Empty 222solution = solution.AddProject("CS" + i, "CS" + i, LanguageNames.CSharp).Solution; 232(LanguageNames.CSharp, version + 2), 308s = s.AddProject("newProject", "newProject", LanguageNames.CSharp).Solution; 497.WithChangedOption(FormattingOptions.NewLine, LanguageNames.CSharp, newOptionValue) 551var project2 = solution.AddProject("P2", "P2", LanguageNames.CSharp); 592var project2 = solution.AddProject("P2", "P2", LanguageNames.CSharp); 633var project2 = solution.AddProject("P2", "P2", LanguageNames.CSharp); 634var project3 = project2.Solution.AddProject("P3", "P3", LanguageNames.CSharp); 666var project2 = solution.AddProject("P2", "P2", LanguageNames.CSharp); 667var project3 = project2.Solution.AddProject("P3", "P3", LanguageNames.CSharp); 707var project2 = solution.AddProject("P2", "P2", LanguageNames.CSharp); 708var project3 = project2.Solution.AddProject("P3", "P3", LanguageNames.CSharp); 747var project2 = solution.AddProject("P2", "P2", LanguageNames.CSharp); 748var project3 = project2.Solution.AddProject("P3", "P3", LanguageNames.CSharp); 845var csharpProject = project1SyncedSolution.Projects.Single(p => p.Language == LanguageNames.CSharp); 857var csharpProject = project2SyncedSolution.Projects.Single(p => p.Language == LanguageNames.CSharp); 875var project2 = solution.AddProject("P2", "P2", LanguageNames.CSharp); 944var project2 = solution.AddProject("P2", "P2", LanguageNames.CSharp);
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (9)
48using var workspace = CreateWorkspace(LanguageNames.CSharp, code); 56workspace.SetAnalyzerFallbackOptions(LanguageNames.CSharp, ("csharp_style_var_when_type_is_apparent", "false:suggestion")); 109using var workspace = CreateWorkspace(LanguageNames.CSharp, code); 149using var workspace = CreateWorkspace(LanguageNames.CSharp, code); 187using var workspace = CreateWorkspace(LanguageNames.CSharp, code); 252var workspace = (language == LanguageNames.CSharp) 256workspace.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)] 65case 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)
28language = LanguageNames.CSharp;
src\Compilers\Server\VBCSCompiler\CompilerRequestHandler.cs (1)
82case LanguageNames.CSharp: