29 references to Instance
Microsoft.CodeAnalysis.CSharp.Workspaces (29)
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\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;