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)
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))
379
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\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
;