2 implementations of ISyntaxFactsService
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
CSharpSyntaxFactsService.cs (1)
24private sealed class CSharpSyntaxFactsService : CSharpSyntaxFacts, ISyntaxFactsService
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
VisualBasicSyntaxFactsService.vb (1)
16Implements ISyntaxFactsService
119 references to ISyntaxFactsService
Microsoft.CodeAnalysis.CodeStyle.Fixes (106)
AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (2)
118var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
AbstractAddExplicitCastCodeFixProvider.cs (4)
111var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>(); 154var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
AbstractAddParameterCodeFixProvider.cs (10)
61var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>(); 116ISyntaxFactsService syntaxFacts, 137ISyntaxFactsService syntaxFacts, 185ISyntaxFactsService syntaxFacts, 393var syntaxFacts = invocationDocument.GetRequiredLanguageService<ISyntaxFactsService>(); 403var syntaxFacts = invocationDocument.GetRequiredLanguageService<ISyntaxFactsService>(); 430ISyntaxFactsService syntaxFacts,
AbstractAliasAmbiguousTypeCodeFixProvider.cs (2)
34var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
AbstractForEachCastCodeFixProvider.cs (2)
47var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
AbstractGeneratedCodeRecognitionService.cs (2)
33var syntaxFacts = document.GetLanguageService<ISyntaxFactsService>();
AbstractMakeMethodAsynchronousCodeFixProvider.cs (2)
96var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
AbstractMakeMethodSynchronousCodeFixProvider.cs (3)
174var syntaxFactsService = document.GetRequiredLanguageService<ISyntaxFactsService>(); 189SyntaxEditor editor, ISyntaxFactsService syntaxFacts,
AbstractMoveDeclarationNearReferenceService.cs (4)
207var syntaxFacts = document.GetLanguageService<ISyntaxFactsService>(); 238var syntaxFacts = document.GetLanguageService<ISyntaxFactsService>();
AbstractMoveDeclarationNearReferenceService.State.cs (2)
59var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
AbstractPopulateSwitchCodeFixProvider.cs (2)
211var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
AbstractRemoveAsyncModifierCodeFixProvider.cs (2)
70var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
AbstractRemoveUnnecessaryParenthesesCodeFixProvider.cs (2)
38var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
AbstractRemoveUnusedValuesCodeFixProvider.cs (17)
105ISyntaxFactsService syntaxFacts); 156var syntaxFacts = context.Document.GetRequiredLanguageService<ISyntaxFactsService>(); 195var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>(); 229ISyntaxFactsService syntaxFacts, 254ISyntaxFactsService syntaxFacts, 265var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>(); 288var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>(); 380var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>(); 442var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>(); 818var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
AbstractSimplifyInterpolationCodeFixProvider.cs (1)
67document.GetRequiredLanguageService<ISyntaxFactsService>(),
AbstractUseCollectionInitializerCodeFixProvider.cs (2)
65var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
AbstractUseCompoundAssignmentCodeFixProvider.cs (3)
56var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>(); 100protected virtual bool PreferPostfix(ISyntaxFactsService syntaxFacts, TAssignmentSyntax currentAssignment)
AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (3)
64var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>(); 122ISyntaxFactsService syntaxFacts, SyntaxEditor editor, IConditionalOperation ifOperation,
AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (2)
50var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
AbstractUseIsNullForReferenceEqualsCodeFixProvider.cs (2)
54var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
AbstractUseNullPropagationCodeFixProvider.cs (6)
99var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>(); 146var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>(); 214ISyntaxFactsService syntaxFacts, SyntaxGeneratorInternal generator, bool whenPartIsNullable, 243ISyntaxFactsService syntaxFacts, SyntaxGeneratorInternal generator,
AbstractUseObjectInitializerCodeFixProvider.cs (2)
63var syntaxFacts = document.GetLanguageService<ISyntaxFactsService>();
AddParameterService.cs (2)
102var syntaxFacts = document.GetLanguageService<ISyntaxFactsService>();
Fixer.cs (2)
124var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
NamingStyleCodeFixProvider.cs (1)
63if (document.GetRequiredLanguageService<ISyntaxFactsService>().IsIdentifierName(node))
RemoveRedundantEqualityCodeFixProvider.cs (2)
46var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (4)
39var syntaxFacts = context.Document.GetRequiredLanguageService<ISyntaxFactsService>(); 59var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
SimplifyConditionalCodeFixProvider.cs (2)
50var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
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>(
UseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (2)
44var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (2)
48var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (4)
48var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>(); 63ISyntaxFactsService syntaxFacts, ISemanticFactsService semanticFacts, 97ISyntaxFactsService syntaxFacts, SyntaxGenerator generator,
UseConditionalExpressionHelpers.cs (1)
16ISyntaxFactsService syntaxFacts, SyntaxNode syntax)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
145ISyntaxFactsService syntaxFacts)
CSharpSyntaxFactsServiceFactory.cs (1)
15[ExportLanguageServiceFactory(typeof(ISyntaxFactsService), LanguageNames.CSharp), Shared]
CSharpUseCompoundAssignmentCodeFixProvider.cs (1)
54protected override bool PreferPostfix(ISyntaxFactsService syntaxFacts, AssignmentExpressionSyntax currentAssignment)
CSharpUseCompoundCoalesceAssignmentCodeFixProvider.cs (2)
50var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
RemoveInKeywordCodeFixProvider.cs (2)
66var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (6)
VisualBasicAddExplicitCastCodeFixProvider.vb (1)
121Dim syntaxFacts = document.GetRequiredLanguageService(Of ISyntaxFactsService)()
VisualBasicRemoveUnusedValuesCodeFixProvider.vb (1)
61Protected Overrides Function GetReplacementNodeForCompoundAssignment(originalCompoundAssignment As SyntaxNode, newAssignmentTarget As SyntaxNode, editor As SyntaxEditor, syntaxFacts As ISyntaxFactsService) As SyntaxNode
VisualBasicSyntaxFactsService.vb (3)
23Public Function IsInNonUserCode(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Implements ISyntaxFactsService.IsInNonUserCode 33ByRef newRoot As SyntaxNode, ByRef newContextNode As TContextNode) Implements ISyntaxFactsService.AddFirstMissingCloseBrace 39Public Function GetSelectedFieldsAndPropertiesAsync(tree As SyntaxTree, textSpan As TextSpan, allowPartialSelection As Boolean, cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of SyntaxNode)) Implements ISyntaxFactsService.GetSelectedFieldsAndPropertiesAsync
VisualBasicSyntaxFactsServiceFactory.vb (1)
11<ExportLanguageServiceFactory(GetType(ISyntaxFactsService), LanguageNames.VisualBasic), [Shared]>