69 references to GetRequiredSemanticModelAsync
Microsoft.CodeAnalysis.CodeStyle.Fixes (40)
AbstractAddAccessibilityModifiersCodeFixProvider.cs (1)
47
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
91
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractAddExplicitCastCodeFixProvider.cs (1)
63
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractAddParameterCodeFixProvider.cs (3)
60
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
394
var semanticModel = await invocationDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
412
var semanticModel = await invocationDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
42
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractConvertTypeOfToNameOfCodeFixProvider.cs (1)
38
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractForEachCastCodeFixProvider.cs (1)
48
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
76
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractMakeMethodAsynchronousCodeFixProvider.cs (3)
46
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
115
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
176
var semanticModel = await newDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractMakeMethodSynchronousCodeFixProvider.cs (3)
57
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
88
var semanticModel = await newDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
126
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractMakeTypePartialCodeFixProvider.cs (1)
33
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractPopulateSwitchCodeFixProvider.cs (1)
149
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractRemoveAsyncModifierCodeFixProvider.cs (2)
44
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
69
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractRemoveUnnecessaryImportsService.cs (2)
31
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
38
var currentModel = await current.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractRemoveUnusedMembersCodeFixProvider.cs (1)
50
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractRemoveUnusedValuesCodeFixProvider.cs (2)
290
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
909
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractSimplifyInterpolationCodeFixProvider.cs (1)
53
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractUnsealClassCodeFixProvider.cs (1)
35
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractUseCollectionInitializerCodeFixProvider.cs (2)
79
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
106
semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractUseConditionalExpressionCodeFixProvider.cs (1)
105
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
67
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (1)
53
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AbstractUseNullPropagationCodeFixProvider.cs (1)
72
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
DocumentExtensions.cs (1)
142
return document.
GetRequiredSemanticModelAsync
(cancellationToken);
LanguageServices\SemanticModelWorkspaceService\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (1)
25
return document.
GetRequiredSemanticModelAsync
(cancellationToken);
NamingStyleCodeFixProvider.cs (1)
76
var model = await document.
GetRequiredSemanticModelAsync
(context.CancellationToken).ConfigureAwait(false);
SyntaxEditorBasedCodeFixProvider.cs (1)
36
var model = await document.
GetRequiredSemanticModelAsync
(fixAllContext.CancellationToken).ConfigureAwait(false);
UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (1)
45
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (1)
46
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
UseSystemHashCodeCodeFixProvider.cs (1)
51
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (29)
AbstractAssignOutParametersCodeFixProvider.cs (2)
38
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
99
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AddInheritdocCodeFixProvider.cs (1)
70
semanticModel ??= await context.Document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
78
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ConvertToRecordEngine.cs (2)
37
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
85
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
CSharpAddYieldCodeFixProvider.cs (1)
56
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
CSharpAsAndNullCheckCodeFixProvider.cs (1)
48
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
CSharpChangeToIEnumerableCodeFixProvider.cs (1)
44
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
CSharpDeclareAsNullableCodeFixProvider.cs (2)
51
var model = await context.Document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
106
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
CSharpDisambiguateSameVariableCodeFixProvider.cs (2)
49
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
143
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
CSharpFixReturnTypeCodeFixProvider.cs (1)
80
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
CSharpMakeMemberRequiredCodeFixProvider.cs (1)
59
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
65
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
52
var semanticModel = await context.Document.
GetRequiredSemanticModelAsync
(context.CancellationToken).ConfigureAwait(false);
CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
42
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
CSharpUseCompoundCoalesceAssignmentCodeFixProvider.cs (1)
48
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
CSharpUseNotPatternCodeFixProvider.cs (1)
43
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
82
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
MakeLocalFunctionStaticCodeFixHelper.cs (1)
50
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
MakeRefStructCodeFixProvider.cs (1)
54
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (1)
89
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
UseExplicitTypeCodeFixProvider.cs (2)
90
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
135
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
UseExplicitTypeForConstCodeFixProvider.cs (1)
49
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
UseExpressionBodyForLambdaCodeFixProvider.cs (1)
55
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
UseUtf8StringLiteralCodeFixProvider.cs (1)
49
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);