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