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