109 references to GetRequiredLanguageService
Microsoft.CodeAnalysis.CodeStyle.Fixes (109)
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (3)
110
var semanticFacts = document.
GetRequiredLanguageService
<ISemanticFactsService>();
117
var generator = document.
GetRequiredLanguageService
<SyntaxGeneratorInternal>();
118
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (4)
123
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
124
var semanticFacts = document.
GetRequiredLanguageService
<ISemanticFactsService>();
176
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
177
var semanticFacts = document.
GetRequiredLanguageService
<ISemanticFactsService>();
src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (2)
124
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
125
var semanticFacts = document.
GetRequiredLanguageService
<ISemanticFactsService>();
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (4)
71
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
403
var syntaxFacts = invocationDocument.
GetRequiredLanguageService
<ISyntaxFactsService>();
413
var syntaxFacts = invocationDocument.
GetRequiredLanguageService
<ISyntaxFactsService>();
424
var semanticFacts = invocationDocument.
GetRequiredLanguageService
<ISemanticFactsService>();
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
209
var initializeParameterService = rewrittenDocument.
GetRequiredLanguageService
<IInitializeParameterService>();
src\Analyzers\Core\CodeFixes\AddRequiredParentheses\AddRequiredParenthesesCodeFixProvider.cs (1)
46
var generator = document.
GetRequiredLanguageService
<SyntaxGeneratorInternal>();
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (3)
34
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
47
var addImportService = document.
GetRequiredLanguageService
<IAddImportsService>();
48
var syntaxGenerator = document.
GetRequiredLanguageService
<SyntaxGenerator>();
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
52
var generator = document.
GetRequiredLanguageService
<SyntaxGeneratorInternal>();
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (1)
47
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorCodeFixProvider.cs (2)
29
var headerFacts = document.
GetRequiredLanguageService
<IHeaderFactsService>();
37
var service = document.
GetRequiredLanguageService
<IGenerateDefaultConstructorsService>();
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\GenerateDefaultConstructorsCodeAction.cs (1)
54
var syntaxFactory = _document.
GetRequiredLanguageService
<SyntaxGenerator>();
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (1)
41
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (2)
48
var service = document.
GetRequiredLanguageService
<IImplementInterfaceService>();
129
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.cs (1)
109
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
24
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (5)
205
.
GetRequiredLanguageService
<ISyntaxFactsService>()
220
var syntaxFacts = Document.
GetRequiredLanguageService
<ISyntaxFactsService>();
295
var factory = Document.
GetRequiredLanguageService
<SyntaxGenerator>();
335
var generator = Document.
GetRequiredLanguageService
<SyntaxGenerator>();
385
private bool IsCaseSensitive => Document.
GetRequiredLanguageService
<ISyntaxFactsService>().IsCaseSensitive;
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (5)
106
var generator = document.
GetRequiredLanguageService
<SyntaxGenerator>();
129
var g = this.Document.
GetRequiredLanguageService
<SyntaxGenerator>();
148
var g = this.Document.
GetRequiredLanguageService
<SyntaxGenerator>();
193
var g = this.Document.
GetRequiredLanguageService
<SyntaxGenerator>();
194
var syntaxFacts = this.Document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Method.cs (2)
34
var syntaxFacts = Document.
GetRequiredLanguageService
<ISyntaxFactsService>();
54
var factory = Document.
GetRequiredLanguageService
<SyntaxGenerator>();
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Property.cs (4)
51
var syntaxFacts = Document.
GetRequiredLanguageService
<ISyntaxFactsService>();
52
var semanticFacts = Document.
GetRequiredLanguageService
<ISemanticFactsService>();
163
var generator = Document.
GetRequiredLanguageService
<SyntaxGenerator>();
178
var generator = Document.
GetRequiredLanguageService
<SyntaxGenerator>();
src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (1)
96
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
174
var syntaxFactsService = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (1)
60
if (document.
GetRequiredLanguageService
<ISyntaxFactsService>().IsIdentifierName(node))
src\Analyzers\Core\CodeFixes\NewLines\ConsecutiveStatementPlacement\ConsecutiveStatementPlacementCodeFixProvider.cs (1)
49
var generator = document.
GetRequiredLanguageService
<SyntaxGeneratorInternal>();
src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (1)
47
var syntaxKinds = document.
GetRequiredLanguageService
<ISyntaxKindsService>();
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (1)
211
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\QualifyMemberAccess\AbstractQualifyMemberAccessCodeFixProvider.cs (1)
39
var generator = document.
GetRequiredLanguageService
<SyntaxGenerator>();
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
70
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (2)
40
var generatorInternal = document.
GetRequiredLanguageService
<SyntaxGeneratorInternal>();
42
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsCodeFixProvider.cs (1)
43
var service = document.
GetRequiredLanguageService
<IRemoveUnnecessaryImportsService>();
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesCodeFixProvider.cs (1)
38
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (2)
35
var syntaxFacts = context.Document.
GetRequiredLanguageService
<ISyntaxFactsService>();
55
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\RemoveUnusedMembers\AbstractRemoveUnusedMembersCodeFixProvider.cs (1)
49
var declarationService = document.
GetRequiredLanguageService
<ISymbolDeclarationService>();
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (11)
163
var syntaxFacts = context.Document.
GetRequiredLanguageService
<ISyntaxFactsService>();
207
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
277
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
299
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
300
var semanticFacts = document.
GetRequiredLanguageService
<ISemanticFactsService>();
391
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
453
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
454
var blockFacts = document.
GetRequiredLanguageService
<IBlockFactsService>();
546
? document.
GetRequiredLanguageService
<SyntaxGeneratorInternal>().Identifier(AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.DiscardVariableName)
827
var moveDeclarationService = document.
GetRequiredLanguageService
<IMoveDeclarationNearReferenceService>();
828
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\SimplifyBooleanExpression\SimplifyConditionalCodeFixProvider.cs (2)
42
var generatorInternal = document.
GetRequiredLanguageService
<SyntaxGeneratorInternal>();
43
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (3)
55
var generatorInternal = document.
GetRequiredLanguageService
<SyntaxGeneratorInternal>();
66
document.
GetRequiredLanguageService
<IVirtualCharLanguageService>(),
67
document.
GetRequiredLanguageService
<ISyntaxFactsService>(),
src\Analyzers\Core\CodeFixes\SimplifyLinqExpression\SimplifyLinqExpressionCodeFixProvider.cs (1)
39
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
39
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (2)
44
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
45
var semanticFacts = document.
GetRequiredLanguageService
<ISemanticFactsService>();
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (2)
44
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
45
var semanticFacts = document.
GetRequiredLanguageService
<ISemanticFactsService>();
src\Analyzers\Core\CodeFixes\UseCollectionInitializer\AbstractUseCollectionInitializerCodeFixProvider.cs (1)
73
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\UseCompoundAssignment\AbstractUseCompoundAssignmentCodeFixProvider.cs (1)
56
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (1)
91
var generatorInternal = document.
GetRequiredLanguageService
<SyntaxGeneratorInternal>();
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
62
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (2)
51
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
76
var generatorInternal = document.
GetRequiredLanguageService
<SyntaxGeneratorInternal>();
src\Analyzers\Core\CodeFixes\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsCodeFixProvider.cs (1)
54
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\UseNullPropagation\AbstractUseNullPropagationCodeFixProvider.cs (4)
110
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
111
var generator = document.
GetRequiredLanguageService
<SyntaxGeneratorInternal>();
167
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
168
var generator = document.
GetRequiredLanguageService
<SyntaxGeneratorInternal>();
src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (1)
71
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (1)
40
var generatorInternal = document.
GetRequiredLanguageService
<SyntaxGeneratorInternal>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
30
var service = document.
GetRequiredLanguageService
<IAddImportsService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
258
var service = newDocument.
GetRequiredLanguageService
<ImportAdderService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (1)
46
var service = document.
GetRequiredLanguageService
<ICodeGenerationService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (3)
40
var addImportsService = document.
GetRequiredLanguageService
<IAddImportsService>();
41
var codeGenerator = document.
GetRequiredLanguageService
<ICodeGenerationService>();
42
var generator = document.
GetRequiredLanguageService
<SyntaxGenerator>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ContextQuery\SyntaxContext.cs (2)
124
this.InferredTypes = document.
GetRequiredLanguageService
<ITypeInferenceService>().InferTypes(semanticModel, position, cancellationToken);
131
=> Document.
GetRequiredLanguageService
<TService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (1)
18
=> GetSyntaxFormattingOptionsAsync(document, document.
GetRequiredLanguageService
<ISyntaxFormattingService>(), cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (1)
118
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (2)
131
var bannerService = document.
GetRequiredLanguageService
<IFileBannerFactsService>();
167
var bannerService = document.
GetRequiredLanguageService
<IFileBannerFactsService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (2)
59
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
60
var blockFacts = document.
GetRequiredLanguageService
<IBlockFactsService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (1)
18
=> GetSimplifierOptionsAsync(document, document.
GetRequiredLanguageService
<ISimplificationService>(), cancellationToken);