2 overrides of Language
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpSemanticModel.cs (1)
4909public sealed override string Language
Microsoft.CodeAnalysis.VisualBasic (1)
Compilation\SemanticModel.vb (1)
3055Public NotOverridable Overrides ReadOnly Property Language As String
18 references to Language
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
166builder["OptionLanguage"] = model.Language;
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
411Debug.Assert(semanticModel.Language != LanguageNames.VisualBasic);
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\SnippetCompletionProvider.cs (1)
169var service = services.GetLanguageServices(semanticModel.Language).GetService<ISnippetInfoService>();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\CompilationAPITests.cs (1)
885Assert.Equal("C#", bind.Language);
Microsoft.CodeAnalysis.Features (10)
CodeLens\CodeLensReferencesService.cs (2)
115throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Unsupported language '{0}'", semanticModel.Language), nameof(semanticModel)); 152semanticModel.Language,
Completion\CommonCompletionUtilities.cs (2)
110var symbolDisplayService = workspaceServices.GetRequiredLanguageService<ISymbolDisplayService>(semanticModel.Language); 111var formatter = workspaceServices.GetRequiredLanguageService<IDocumentationCommentFormattingService>(semanticModel.Language);
QuickInfo\CommonSemanticQuickInfoProvider.cs (2)
163var syntaxFactsService = services.GetRequiredLanguageService<ISyntaxFactsService>(semanticModel.Language); 193var languageServices = services.GetLanguageServices(semanticModel.Language);
QuickInfo\QuickInfoUtilities.cs (1)
36var descriptionService = services.GetRequiredLanguageService<ISymbolDisplayService>(semanticModel.Language);
SimplifyThisOrMe\AbstractSimplifyThisOrMeDiagnosticAnalyzer.cs (1)
73builder["OptionLanguage"] = semanticModel.Language;
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
166builder["OptionLanguage"] = model.Language;
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
411Debug.Assert(semanticModel.Language != LanguageNames.VisualBasic);
Microsoft.CodeAnalysis.Workspaces (4)
Classification\Classifier.cs (1)
78var projectServices = services.GetLanguageServices(semanticModel.Language);
FindSymbols\FindReferences\FindReferenceCache.cs (2)
84_identifierCache = new(comparer: semanticModel.Language switch 88_ => throw ExceptionUtilities.UnexpectedValue(semanticModel.Language)
FindSymbols\SymbolFinder.cs (1)
101var syntaxFacts = services.GetRequiredLanguageService<ISyntaxFactsService>(semanticModel.Language);