1 type derived from CSharpSyntaxFacts
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxFactsService.cs (1)
24private sealed class CSharpSyntaxFactsService : CSharpSyntaxFacts, ISyntaxFactsService
1 instantiation of CSharpSyntaxFacts
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
26internal static readonly CSharpSyntaxFacts Instance = new();
36 references to CSharpSyntaxFacts
Microsoft.CodeAnalysis.CSharp.Features (4)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (2)
81var syntaxFacts = CSharpSyntaxFacts.Instance; 144var syntaxFacts = CSharpSyntaxFacts.Instance;
src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (1)
136var syntaxFacts = CSharpSyntaxFacts.Instance;
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.AddNewKeywordAction.cs (1)
43var syntaxFacts = CSharpSyntaxFacts.Instance;
Microsoft.CodeAnalysis.CSharp.Workspaces (30)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (2)
592=> CSharpSyntaxFacts.Instance.GetDisplayName(node, DisplayNameOptions.IncludeTypeParameters); 595=> CSharpSyntaxFacts.Instance.GetDisplayName(node, DisplayNameOptions.IncludeNamespaces);
SemanticModelReuse\CSharpSemanticModelReuseLanguageService.cs (1)
28protected override ISyntaxFacts SyntaxFacts => CSharpSyntaxFacts.Instance;
Simplification\Reducers\CSharpParenthesizedExpressionReducer.cs (1)
43var resultNode = CSharpSyntaxFacts.Instance.Unparenthesize(node);
Simplification\Reducers\CSharpParenthesizedPatternReducer.cs (1)
40var resultNode = CSharpSyntaxFacts.Instance.Unparenthesize(node);
Simplification\Simplifiers\MemberAccessExpressionSimplifier.cs (1)
28protected override ISyntaxFacts SyntaxFacts => CSharpSyntaxFacts.Instance;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
32protected override ISyntaxFacts SyntaxFacts => CSharpSyntaxFacts.Instance;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (1)
178return CSharpSyntaxFacts.Instance.IsOnSingleLine(expression, fullSpan: false);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
422return semanticModel.GenerateNameFromType(info.Type, CSharpSyntaxFacts.Instance, capitalize);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (3)
455=> CSharpSyntaxFacts.Instance.SpansPreprocessorDirective(list); 508=> CSharpSyntaxFacts.Instance.ContainsInterleavedDirective(syntaxNode, cancellationToken); 515=> CSharpSyntaxFacts.Instance.ContainsInterleavedDirective(span, syntaxNode, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (2)
152=> CSharpSyntaxFacts.Instance.IsWord(token); 174=> CSharpSyntaxFacts.Instance.SpansPreprocessorDirective(tokens);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (3)
34public ISyntaxFacts SyntaxFacts => CSharpSyntaxFacts.Instance; 86if (CSharpSyntaxFacts.Instance.IsExecutableStatement(ancestor)) 389foreach (var localFunction in node.DescendantNodes().Where(CSharpSyntaxFacts.Instance.IsLocalFunctionStatement))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpDocumentationCommentService.cs (1)
25: base(CSharpSyntaxFacts.Instance)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpFileBannerFacts.cs (1)
17protected override ISyntaxFacts SyntaxFacts => CSharpSyntaxFacts.Instance;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpHeaderFacts.cs (1)
22protected override ISyntaxFacts SyntaxFacts => CSharpSyntaxFacts.Instance;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
26internal static readonly CSharpSyntaxFacts Instance = new();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
66protected override CodeAnalysis.LanguageService.ISyntaxFacts SyntaxFactsService { get; } = CSharpSyntaxFacts.Instance;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
299CSharpSyntaxFacts.Instance,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (2)
133CSharpSyntaxFacts.Instance, root, root.Usings, usings); 142var endOfLine = lastUsing.GetTrailingTrivia().LastOrDefault(CSharpSyntaxFacts.Instance.IsEndOfLineTrivia);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
36=> CSharpSyntaxFacts.Instance;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (2)
188var newFirstToken = RemoveUnnecessaryImportsHelpers.StripNewLines(CSharpSyntaxFacts.Instance, firstToken); 240var newFirstToken = RemoveUnnecessaryImportsHelpers.StripNewLines(CSharpSyntaxFacts.Instance, firstToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsService.cs (1)
28public override ISyntaxFacts SyntaxFacts => CSharpSyntaxFacts.Instance;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
34=> CSharpSyntaxFacts.Instance;
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CSharpSyntaxFactsServiceTests.cs (1)
20var service = CSharpSyntaxFacts.Instance;
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
341var syntaxFacts = CSharpSyntaxFacts.Instance;