3 overrides of Language
Microsoft.CodeAnalysis (1)
Syntax\SyntaxList.cs (1)
18public override string Language
Microsoft.CodeAnalysis.CSharp (1)
Syntax\CSharpSyntaxNode.cs (1)
158public override string Language
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\VisualBasicSyntaxNode.vb (1)
108Public Overrides ReadOnly Property Language As String
30 references to Language
Microsoft.CodeAnalysis (2)
Operations\Operation.cs (1)
86get => Syntax.Language;
Syntax\SyntaxNodeOrToken.cs (1)
108return _nodeOrParent.Language;
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (1)
132var language = objectCreationExpression.Language;
src\Analyzers\Core\Analyzers\UseObjectInitializer\AbstractUseObjectInitializerDiagnosticAnalyzer.cs (1)
97var language = objectCreationExpression.Language;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Completion\AbstractArgumentProviderTests`1.cs (1)
101var syntaxFacts = workspace.Services.GetLanguageServices(root.Language).GetRequiredService<ISyntaxFactsService>();
Formatting\CoreFormatterTestsBase.cs (1)
288var formattingService = workspace.Services.GetLanguageServices(node.Language).GetRequiredService<ISyntaxFormattingService>();
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Peek\PeekHelpers.cs (1)
53var syntaxFactsService = workspace.Services.GetLanguageServices(root.Language).GetService<ISyntaxFactsService>();
Microsoft.CodeAnalysis.ExternalAccess.Razor (2)
RazorCSharpFormattingInteractionService.cs (2)
67Contract.ThrowIfFalse(root.Language is LanguageNames.CSharp); 77Contract.ThrowIfFalse(root.Language is LanguageNames.CSharp);
Microsoft.CodeAnalysis.Features (3)
Highlighting\HighlightingService.cs (1)
32foreach (var highlighter in _highlighters.Where(h => h.Metadata.Language == root.Language))
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (1)
132var language = objectCreationExpression.Language;
src\Analyzers\Core\Analyzers\UseObjectInitializer\AbstractUseObjectInitializerDiagnosticAnalyzer.cs (1)
97var language = objectCreationExpression.Language;
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\ControlFlowGraphVerifier.cs (2)
831switch (captureReferenceSyntax.Language) 1094switch (captureReferenceSyntax.Language)
Compilation\OperationTreeVerifier.cs (1)
334Assert.True(operation.Syntax.Language == operation.Language);
Compilation\TestOperationVisitor.cs (1)
1176if (operation.Syntax.Language == LanguageNames.CSharp)
Syntax\TokenUtilities.cs (1)
86if (node.Language == LanguageNames.CSharp)
Microsoft.CodeAnalysis.Workspaces (12)
CaseCorrection\CaseCorrector.cs (1)
70=> services.GetRequiredLanguageService<ICaseCorrectionService>(root.Language).CaseCorrect(root, spans, cancellationToken);
Classification\AbstractClassificationService.cs (1)
234var classificationService = services.GetLanguageServices(oldRoot.Language).GetService<ISyntaxClassificationService>();
CodeCleanup\CodeCleaner.cs (1)
96var cleanupService = services.GetRequiredLanguageService<ICodeCleanerService>(root.Language);
CodeCleanup\Providers\FormatCodeCleanupProvider.cs (1)
34var formatter = services.GetRequiredLanguageService<ISyntaxFormattingService>(root.Language);
Editing\SymbolEditor.cs (1)
196.Select(n => SyntaxGenerator.GetGenerator(OriginalSolution.Workspace, n.Language).GetDeclaration(n))
Editing\SyntaxEditor.cs (1)
82SyntaxGenerator.GetGenerator(services ?? throw new ArgumentNullException(nameof(services)), root.Language))
Formatting\Formatter.cs (4)
242var languageServices = workspace.Services.GetLanguageServices(node.Language); 250var formattingOptions = GetFormattingOptions(workspace, options, node.Language); 256var formatter = services.GetRequiredLanguageService<ISyntaxFormattingService>(node.Language); 314var formatter = services.GetRequiredLanguageService<ISyntaxFormattingService>(node.Language);
Simplification\Simplifier.cs (1)
103var result = services.GetRequiredLanguageService<ISimplificationService>(node.Language)
Workspace\Solution\DocumentState_LinkedFileReuse.cs (1)
185if (siblingRoot.Language != languageServices.Language)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SymbolKeyTests.cs (1)
1556if (node.Language == LanguageNames.VisualBasic)