104 references to GetRequiredLanguageService
Microsoft.CodeAnalysis.CodeStyle.Fixes (104)
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)
62
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
395
var syntaxFacts = invocationDocument.
GetRequiredLanguageService
<ISyntaxFactsService>();
405
var syntaxFacts = invocationDocument.
GetRequiredLanguageService
<ISyntaxFactsService>();
416
var semanticFacts = invocationDocument.
GetRequiredLanguageService
<ISemanticFactsService>();
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\AbstractGenerateDefaultConstructorsService.AbstractCodeAction.cs (1)
63
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 (1)
47
var service = document.
GetRequiredLanguageService
<IImplementInterfaceService>();
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
24
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (4)
214
var syntaxFacts = Document.
GetRequiredLanguageService
<ISyntaxFactsService>();
287
var factory = Document.
GetRequiredLanguageService
<SyntaxGenerator>();
333
var generator = Document.
GetRequiredLanguageService
<SyntaxGenerator>();
383
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)
31
var syntaxFacts = Document.
GetRequiredLanguageService
<ISyntaxFactsService>();
52
var factory = Document.
GetRequiredLanguageService
<SyntaxGenerator>();
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Property.cs (4)
49
var syntaxFacts = Document.
GetRequiredLanguageService
<ISyntaxFactsService>();
50
var semanticFacts = Document.
GetRequiredLanguageService
<ISemanticFactsService>();
159
var generator = Document.
GetRequiredLanguageService
<SyntaxGenerator>();
173
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)
51
var declarationService = document.
GetRequiredLanguageService
<ISymbolDeclarationService>();
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (11)
164
var syntaxFacts = context.Document.
GetRequiredLanguageService
<ISyntaxFactsService>();
208
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
278
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
300
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
301
var semanticFacts = document.
GetRequiredLanguageService
<ISemanticFactsService>();
392
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
454
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
455
var blockFacts = document.
GetRequiredLanguageService
<IBlockFactsService>();
547
? document.
GetRequiredLanguageService
<SyntaxGeneratorInternal>().Identifier(AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.DiscardVariableName)
829
var moveDeclarationService = document.
GetRequiredLanguageService
<IMoveDeclarationNearReferenceService>();
830
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\SimplifyBooleanExpression\SimplifyConditionalCodeFixProvider.cs (2)
44
var generatorInternal = document.
GetRequiredLanguageService
<SyntaxGeneratorInternal>();
45
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)
99
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
100
var generator = document.
GetRequiredLanguageService
<SyntaxGeneratorInternal>();
147
var syntaxFacts = document.
GetRequiredLanguageService
<ISyntaxFactsService>();
148
var generator = document.
GetRequiredLanguageService
<SyntaxGeneratorInternal>();
src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (1)
66
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\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (2)
130
var bannerService = document.
GetRequiredLanguageService
<IFileBannerFactsService>();
166
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);