1 type derived from CSharpSyntaxFacts
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxFactsService.cs (1)
24
private sealed class CSharpSyntaxFactsService :
CSharpSyntaxFacts
, ISyntaxFactsService
1 instantiation of CSharpSyntaxFacts
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
26
internal static readonly CSharpSyntaxFacts Instance =
new
();
36 references to CSharpSyntaxFacts
Microsoft.CodeAnalysis.CSharp.Features (4)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (2)
81
var
syntaxFacts = CSharpSyntaxFacts.Instance;
144
var
syntaxFacts = CSharpSyntaxFacts.Instance;
src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (1)
136
var
syntaxFacts = CSharpSyntaxFacts.Instance;
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.AddNewKeywordAction.cs (1)
43
var
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)
28
protected override ISyntaxFacts SyntaxFacts =>
CSharpSyntaxFacts
.Instance;
Simplification\Reducers\CSharpParenthesizedExpressionReducer.cs (1)
43
var resultNode =
CSharpSyntaxFacts
.Instance.Unparenthesize(node);
Simplification\Reducers\CSharpParenthesizedPatternReducer.cs (1)
40
var resultNode =
CSharpSyntaxFacts
.Instance.Unparenthesize(node);
Simplification\Simplifiers\MemberAccessExpressionSimplifier.cs (1)
28
protected override ISyntaxFacts SyntaxFacts =>
CSharpSyntaxFacts
.Instance;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
32
protected override ISyntaxFacts SyntaxFacts =>
CSharpSyntaxFacts
.Instance;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (1)
178
return
CSharpSyntaxFacts
.Instance.IsOnSingleLine(expression, fullSpan: false);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
422
return 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)
34
public ISyntaxFacts SyntaxFacts =>
CSharpSyntaxFacts
.Instance;
86
if (
CSharpSyntaxFacts
.Instance.IsExecutableStatement(ancestor))
389
foreach (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)
17
protected override ISyntaxFacts SyntaxFacts =>
CSharpSyntaxFacts
.Instance;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpHeaderFacts.cs (1)
22
protected override ISyntaxFacts SyntaxFacts =>
CSharpSyntaxFacts
.Instance;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
26
internal static readonly
CSharpSyntaxFacts
Instance = new();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
66
protected override CodeAnalysis.LanguageService.ISyntaxFacts SyntaxFactsService { get; } =
CSharpSyntaxFacts
.Instance;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
299
CSharpSyntaxFacts
.Instance,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (2)
133
CSharpSyntaxFacts
.Instance, root, root.Usings, usings);
142
var 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)
188
var newFirstToken = RemoveUnnecessaryImportsHelpers.StripNewLines(
CSharpSyntaxFacts
.Instance, firstToken);
240
var newFirstToken = RemoveUnnecessaryImportsHelpers.StripNewLines(
CSharpSyntaxFacts
.Instance, firstToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsService.cs (1)
28
public 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)
20
var
service = CSharpSyntaxFacts.Instance;
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
341
var
syntaxFacts = CSharpSyntaxFacts.Instance;