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