169 references to ISyntaxFactsService
Microsoft.CodeAnalysis.CodeStyle.Fixes (169)
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (2)
118
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (4)
123
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
176
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (2)
124
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (10)
71
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
126
ISyntaxFactsService
syntaxFacts,
147
ISyntaxFactsService
syntaxFacts,
195
ISyntaxFactsService
syntaxFacts,
403
var
syntaxFacts = invocationDocument.GetRequiredLanguageService<
ISyntaxFactsService
>();
413
var
syntaxFacts = invocationDocument.GetRequiredLanguageService<
ISyntaxFactsService
>();
433
ISyntaxFactsService
syntaxFacts,
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (2)
109
var
syntaxFacts = document.GetLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (2)
34
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (2)
47
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (2)
182
var
syntaxFacts = document.Document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (3)
251
var
syntaxFacts = GetRequiredLanguageService<
ISyntaxFactsService
>(TypeToGenerateIn.Language);
255
private bool Matches(IMethodSymbol ctor,
ISyntaxFactsService
service)
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.State.cs (2)
67
var
syntaxFacts = semanticDocument.Document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.State.cs (2)
92
var
syntaxFacts = semanticDocument.Document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (3)
41
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
62
ISyntaxFactsService
syntaxFacts, SyntaxNode root,
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (2)
85
var
syntaxFacts = semanticDocument.Document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (2)
135
var
syntaxFacts = semanticDocument.Document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (2)
130
var
syntaxFacts = languageServiceProvider.GetService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.State.cs (2)
87
var
syntaxFacts = destinationProvider.GetService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (2)
135
var
syntaxFacts = _semanticDocument.Document.GetLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (8)
251
var
syntaxFacts = _document.Document.GetLanguageService<
ISyntaxFactsService
>();
327
var
syntaxFacts = _document.Document.GetLanguageService<
ISyntaxFactsService
>();
366
var
syntaxFacts = _document.Document.GetLanguageService<
ISyntaxFactsService
>();
497
var
syntaxFacts = _document.Document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\ImplementAbstractClassData.cs (4)
146
var
syntaxFacts = _document.GetRequiredLanguageService<
ISyntaxFactsService
>();
180
var
syntaxFacts = _document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (2)
129
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.cs (2)
109
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (2)
24
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (4)
205
.GetRequiredLanguageService<
ISyntaxFactsService
>()
220
var
syntaxFacts = Document.GetRequiredLanguageService<
ISyntaxFactsService
>();
385
private bool IsCaseSensitive => Document.GetRequiredLanguageService<
ISyntaxFactsService
>().IsCaseSensitive;
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (2)
194
var
syntaxFacts = this.Document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Method.cs (2)
34
var
syntaxFacts = Document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Property.cs (2)
51
var
syntaxFacts = Document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (2)
96
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (3)
174
var
syntaxFactsService = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
187
SyntaxEditor editor,
ISyntaxFactsService
syntaxFacts, ReferenceLocation referenceLocation, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (1)
60
if (document.GetRequiredLanguageService<
ISyntaxFactsService
>().IsIdentifierName(node))
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (2)
211
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (2)
70
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (2)
42
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesCodeFixProvider.cs (2)
38
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (4)
35
var
syntaxFacts = context.Document.GetRequiredLanguageService<
ISyntaxFactsService
>();
55
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (17)
103
ISyntaxFactsService
syntaxFacts);
163
var
syntaxFacts = context.Document.GetRequiredLanguageService<
ISyntaxFactsService
>();
207
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
241
ISyntaxFactsService
syntaxFacts,
266
ISyntaxFactsService
syntaxFacts,
277
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
299
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
391
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
453
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
828
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\SimplifyBooleanExpression\SimplifyConditionalCodeFixProvider.cs (2)
43
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (1)
67
document.GetRequiredLanguageService<
ISyntaxFactsService
>(),
src\Analyzers\Core\CodeFixes\SimplifyLinqExpression\SimplifyLinqExpressionCodeFixProvider.cs (2)
39
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (2)
39
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (2)
44
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (4)
44
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
59
ISyntaxFactsService
syntaxFacts, ISemanticFactsService semanticFacts,
93
ISyntaxFactsService
syntaxFacts, SyntaxGenerator generator,
src\Analyzers\Core\CodeFixes\UseCollectionInitializer\AbstractUseCollectionInitializerCodeFixProvider.cs (2)
73
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\UseCompoundAssignment\AbstractUseCompoundAssignmentCodeFixProvider.cs (3)
56
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
100
protected virtual bool PreferPostfix(
ISyntaxFactsService
syntaxFacts, TAssignmentSyntax currentAssignment)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (3)
62
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
120
ISyntaxFactsService
syntaxFacts, SyntaxEditor editor, IConditionalOperation ifOperation,
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (2)
51
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\UseConditionalExpression\UseConditionalExpressionHelpers.cs (1)
16
ISyntaxFactsService
syntaxFacts, SyntaxNode syntax)
src\Analyzers\Core\CodeFixes\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsCodeFixProvider.cs (2)
54
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Analyzers\Core\CodeFixes\UseNullPropagation\AbstractUseNullPropagationCodeFixProvider.cs (6)
110
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
167
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
235
ISyntaxFactsService
syntaxFacts, SyntaxGeneratorInternal generator, bool whenPartIsNullable,
264
ISyntaxFactsService
syntaxFacts, SyntaxGeneratorInternal generator,
src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (2)
71
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\AbstractRefactoringHelpersService.cs (6)
44
var
syntaxFacts = document.LanguageServices.GetRequiredService<
ISyntaxFactsService
>();
263
ISyntaxFactsService
syntaxFacts,
301
ISyntaxFactsService
syntaxFacts,
346
ISyntaxFactsService
syntaxFacts,
393
protected virtual IEnumerable<SyntaxNode> ExtractNodesSimple(SyntaxNode? node,
ISyntaxFactsService
syntaxFacts)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
21
this IMethodSymbol method, INamedTypeSymbol containingType,
ISyntaxFactsService
syntaxFacts)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (7)
154
Func<
ISyntaxFactsService
, SyntaxNode, SyntaxNode> getSemanticBoundary,
164
var
syntaxFacts = document.GetLanguageService<
ISyntaxFactsService
>();
195
private static SyntaxNode GetExpressionSemanticBoundary(
ISyntaxFactsService
syntaxFacts, SyntaxNode node)
202
return node.FirstAncestorOrSelf<SyntaxNode,
ISyntaxFactsService
>(
210
private static SyntaxNode GetMethodBodySemanticBoundary(
ISyntaxFactsService
syntaxFacts, SyntaxNode node)
212
return node.FirstAncestorOrSelf<SyntaxNode,
ISyntaxFactsService
>(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\GeneratedCodeRecognition\AbstractGeneratedCodeRecognitionService.cs (2)
33
var
syntaxFacts = document.GetLanguageService<
ISyntaxFactsService
>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (3)
39
ISyntaxFactsService
syntaxFacts,
118
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\IInitializeParameterService.cs (1)
27
ISyntaxFactsService
syntaxFacts,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (4)
208
var
syntaxFacts = document.GetLanguageService<
ISyntaxFactsService
>();
239
var
syntaxFacts = document.GetLanguageService<
ISyntaxFactsService
>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (2)
59
var
syntaxFacts = document.GetRequiredLanguageService<
ISyntaxFactsService
>();