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