303 references to GetRequiredSemanticModelAsync
Microsoft.CodeAnalysis.CSharp.Features (63)
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);
ChangeSignature\CSharpChangeSignatureService.cs (3)
144
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
404
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
846
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
373
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (2)
60
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
552
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\ImportCompletion\ImportCompletionProviderHelper.cs (1)
70
var model = await globalUsingDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
38
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ConvertProgram\ConvertToTopLevelStatementsCodeRefactoringProvider.cs (1)
52
var semanticModel = await 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);
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);
DocumentHighlighting\CSharpDocumentHighlightsService.cs (1)
64
semanticModel ??= await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Formatting\CSharpAccessibilityModifiersNewDocumentFormattingProvider.cs (1)
39
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (1)
58
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ImplementInterface\CSharpImplementExplicitlyCodeRefactoringProvider.cs (1)
72
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ImplementInterface\CSharpImplementInterfaceCodeFixProvider.cs (1)
54
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
IntroduceVariable\CSharpIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
98
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeRefactoringProvider.cs (1)
40
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);
NavigationBar\CSharpNavigationBarItemService.cs (1)
117
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (1)
89
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
QuickInfo\CSharpDiagnosticAnalyzerQuickInfoProvider.cs (1)
126
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (1)
68
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\ConstructorInitializerSignatureHelpProvider.cs (1)
80
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
60
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\InitializerExpressionSignatureHelpProvider.cs (1)
72
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\PrimaryConstructorBaseTypeSignatureHelpProvider.cs (1)
80
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (1)
110
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Snippets\AbstractCSharpAutoPropertySnippetProvider.cs (1)
44
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Snippets\CSharpClassSnippetProvider.cs (1)
35
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Snippets\CSharpEnumSnippetProvider.cs (1)
34
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Snippets\CSharpForEachLoopSnippetProvider.cs (1)
40
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Snippets\CSharpInterfaceSnippetProvider.cs (1)
37
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Snippets\CSharpSnippetFunctionService.cs (1)
45
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Snippets\CSharpStructSnippetProvider.cs (1)
35
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);
UseExpressionBody\UseExpressionBodyCodeRefactoringProvider.cs (2)
170
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
256
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeRefactoringProvider.cs (2)
187
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
204
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);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
42
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
ChangeSignature\AddedParameterOrExistingIndex.cs (1)
64
var semanticModel = document.
GetRequiredSemanticModelAsync
(CancellationToken.None).AsTask().Result;
Completion\AbstractArgumentProviderTests`1.cs (1)
67
var semanticModel = await document.
GetRequiredSemanticModelAsync
(CancellationToken.None);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
327
var semanticModel = await document.
GetRequiredSemanticModelAsync
(CancellationToken.None);
StackTraceExplorer\StackTraceExplorerTests.cs (1)
51
var semanticModel = await doc.
GetRequiredSemanticModelAsync
(CancellationToken.None);
SymbolKey\SymbolKeyCrossLanguageTests.cs (1)
43
var semanticModel = await csDocument.
GetRequiredSemanticModelAsync
(CancellationToken.None);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Peek\PeekableItemSource.cs (1)
97
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
RazorClassifierAccessor.cs (1)
18
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (185)
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);
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);
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (3)
44
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
82
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
116
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
AddImport\AbstractAddImportFeatureService.cs (2)
100
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
541
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
BraceMatching\AbstractEmbeddedLanguageBraceMatcher.cs (1)
40
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ChangeSignature\AbstractChangeSignatureService.cs (1)
917
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
CodeRefactorings\AddAwait\AbstractAddAwaitCodeRefactoringProvider.cs (1)
42
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (3)
130
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
327
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
371
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Completion\CompletionService_GetCompletions.cs (1)
81
return (document, await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false));
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (1)
128
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractPartialMethodCompletionProvider.cs (2)
66
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
85
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionProvider.cs (1)
74
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (1)
61
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\ImportCompletionItem.cs (1)
137
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Completion\Providers\SymbolCompletionItem.cs (1)
195
var semanticModel = await contextDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ConvertAnonymousType\AbstractConvertAnonymousTypeCodeRefactoringProvider.cs (1)
29
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (4)
90
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
156
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
196
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
250
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ConvertAnonymousType\AbstractConvertAnonymousTypeToTupleCodeRefactoringProvider.cs (2)
47
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
109
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
42
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ConvertCast\AbstractConvertCastCodeRefactoringProvider.cs (1)
48
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (2)
68
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
418
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (2)
75
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
323
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (2)
44
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
247
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ConvertLinq\AbstractConvertLinqQueryToForEachProvider.cs (1)
43
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ConvertLinq\ConvertForEachToLinqQuery\AbstractConvertForEachToLinqQueryProvider.cs (1)
86
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (1)
33
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ConvertToInterpolatedString\AbstractConvertConcatenationToInterpolatedStringRefactoringProvider.cs (1)
34
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (2)
43
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
232
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (7)
197
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
265
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
358
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
517
var semanticModel = await startingDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
633
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
746
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
794
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
252
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
66
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (3)
2430
var oldModel = (oldDocument != null) ? await oldDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false) : null;
2431
var newModel = await newDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
2845
var oldSyntaxModel = await oldSyntaxDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
EmbeddedLanguages\Classification\AbstractEmbeddedLanguageClassificationService.cs (1)
40
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
EmbeddedLanguages\DateAndTime\LanguageServices\DateAndTimeEmbeddedLanguage.cs (1)
34
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedLanguage.cs (1)
39
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ExtractClass\AbstractExtractClassRefactoringProvider.cs (2)
73
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
132
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ExtractClass\ExtractClassWithDialogCodeAction.cs (2)
175
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
227
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
FindUsages\AbstractFindUsagesService_FindReferences.cs (1)
203
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
FullyQualify\AbstractFullyQualifyService.cs (1)
87
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (2)
59
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
140
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
GenerateConstructorFromMembers\AbstractGenerateConstructorFromMembersCodeRefactoringProvider.ConstructorDelegatingCodeAction.cs (1)
54
var semanticModel = await _document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
GenerateConstructorFromMembers\AbstractGenerateConstructorFromMembersCodeRefactoringProvider.cs (1)
196
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
GenerateConstructorFromMembers\AbstractGenerateConstructorFromMembersCodeRefactoringProvider.FieldDelegatingCodeAction.cs (1)
54
var semanticModel = await _document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeAction.cs (1)
118
var semanticModel = await _document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (3)
90
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
256
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
302
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
GenerateFromMembers\AbstractGenerateFromMembersCodeRefactoringProvider.cs (1)
38
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
GenerateMember\GenerateConstructor\AbstractGenerateConstructorService.State.cs (2)
623
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
641
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
GenerateOverrides\GenerateOverridesCodeRefactoringProvider.cs (1)
50
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
GoToDefinition\AbstractGoToDefinitionSymbolService.cs (2)
28
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
67
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ImplementAbstractClass\ImplementAbstractClassData.cs (1)
52
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (2)
88
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
173
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (5)
61
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
91
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
146
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
360
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
501
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (1)
407
var currentSemanticModel = await currentDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
InitializeParameter\AbstractInitializeParameterCodeRefactoringProvider.cs (1)
80
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
InlineHints\AbstractInlineParameterNameHintsService.cs (1)
66
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
InlineHints\AbstractInlineTypeHintsService.cs (1)
58
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
InlineHints\InlineHintHelpers.cs (1)
24
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (2)
91
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
375
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (2)
60
var callerSemanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
62
var calleeSemanticModel = await calleeDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (2)
170
var callerSemanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
495
var semanticModel = await calleeDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
InlineTemporary\AbstractInlineTemporaryCodeRefactoringProvider.cs (1)
27
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (2)
65
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
193
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (6)
83
var semanticModel = await _originalDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
108
var semanticModel = await _originalDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
239
var invocationSemanticModel = await currentDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
357
var semanticModel = await _originalDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
497
var invocationSemanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
685
var originalSemanticModel = await _originalDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (2)
68
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
117
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
IntroduceVariable\AbstractIntroduceLocalForExpressionCodeRefactoringProvider.cs (3)
43
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
87
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
131
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
InvertConditional\AbstractInvertConditionalCodeRefactoringProvider.cs (1)
46
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (1)
295
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
InvertLogical\AbstractInvertLogicalCodeRefactoringProvider.cs (2)
103
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
118
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
MetadataAsSource\AbstractMetadataAsSourceService.cs (1)
39
var newSemanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
MoveStaticMembers\AbstractMoveStaticMembersRefactoringProvider.cs (1)
38
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (4)
123
var destSemanticModel = await newDoc.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
135
var semanticModel = await sourceDoc.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
196
var semanticModel = await sourceDoc.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
204
var newTypeSemanticModel = await newTypeDoc.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
NameTupleElement\AbstractNameTupleElementCodeRefactoringProvider.cs (1)
59
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
NamingStyleCodeFixProvider.cs (1)
76
var model = await document.
GetRequiredSemanticModelAsync
(context.CancellationToken).ConfigureAwait(false);
PreferFrameworkType\PreferFrameworkTypeCodeFixProvider.cs (1)
52
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
PullMemberUp\AbstractPullMemberUpRefactoringProvider.cs (1)
49
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
QuickInfo\CommonSemanticQuickInfoProvider.cs (4)
30
var semanticModel = await context.Document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
58
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
84
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
98
var linkedModel = await linkedDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Rename\SymbolicRenameInfo.cs (1)
140
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ReplaceConditionalWithStatements\AbstractReplaceConditionalWithStatementsCodeRefactoringProvider.cs (2)
218
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
243
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ReplaceDocCommentTextWithTag\AbstractReplaceDocCommentTextWithTagCodeRefactoringProvider.cs (1)
55
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
60
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
365
var semanticModel = await updatedDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (1)
61
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (2)
53
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
353
var semanticModel = await updatedDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Shared\Utilities\ExtractTypeHelpers.cs (1)
66
var newSemanticModel = await newDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
SignatureHelp\CommonSignatureHelpUtilities.cs (1)
153
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (2)
78
var fieldSemanticModel = await fieldDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
83
var propertySemanticModel = await propertyDocument.
GetRequiredSemanticModelAsync
(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);
UseNamedArguments\AbstractUseNamedArgumentsCodeRefactoringProvider.cs (1)
58
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
UseSystemHashCodeCodeFixProvider.cs (1)
51
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ValueTracking\SerializableValueTrackedItem.cs (1)
55
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTracker.cs (5)
141
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
211
var semanticModel = await sourceDoc.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
261
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
298
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
330
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTracker.FindReferencesProgress.cs (4)
79
var semanticModel = await location.Document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
105
var semanticModel = await location.Document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
153
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
183
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\DocumentAnalysisExecutor.cs (1)
322
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (2)
Generator.cs (2)
213
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken);
263
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken);
Microsoft.CodeAnalysis.VisualBasic.Features (2)
QuickInfo\VisualBasicSemanticQuickInfoProvider.vb (1)
30
Dim semanticModel = Await context.Document.
GetRequiredSemanticModelAsync
(context.CancellationToken).ConfigureAwait(False)
Snippets\VisualBasicSnippetFunctionService.vb (1)
38
Dim model As SemanticModel = Await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.Workspaces (35)
AbstractRemoveUnnecessaryImportsService.cs (2)
31
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
38
var currentModel = await current.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Classification\Classifier.cs (1)
28
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Classification\SyntaxClassification\AbstractSyntaxClassificationService.cs (1)
42
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Diagnostics\Extensions.cs (2)
347
var model = await ((Document)documentAnalysisScope.TextDocument).
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
418
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
DocumentExtensions.cs (1)
142
return document.
GetRequiredSemanticModelAsync
(cancellationToken);
Editing\ImportAdderService.cs (2)
118
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
178
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\DependentTypeFinder.cs (2)
252
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
278
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (1)
101
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (1)
265
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (1)
88
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
FindSymbols\ReferenceLocationExtensions.cs (1)
36
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder.cs (2)
113
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
286
var semanticModel = await linkedDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
LanguageServices\FixAllSpanMappingService\AbstractFixAllSpanMappingService.cs (1)
45
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
ReassignedVariable\AbstractReassignedVariableService.cs (1)
46
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Recommendations\Recommender.cs (1)
51
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Rename\ConflictEngine\ConflictResolver.Session.cs (3)
221
await conflictResolution.CurrentSolution.GetRequiredDocument(_documentIdOfRenameSymbolDeclaration).
GetRequiredSemanticModelAsync
(_cancellationToken).ConfigureAwait(false),
376
newDocumentSemanticModel ??= await newDocument.
GetRequiredSemanticModelAsync
(_cancellationToken).ConfigureAwait(false);
786
var semanticModel = await document.
GetRequiredSemanticModelAsync
(_cancellationToken).ConfigureAwait(false);
Rename\Renamer.RenameSymbolDocumentAction.cs (2)
52
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
108
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
101
return await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
156
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Simplification\AbstractSimplificationService.cs (5)
67
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
108
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
120
semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
245
semanticModelForReduce = await newDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
308
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Simplification\Simplifier.cs (2)
74
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
119
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
SyntaxEditorBasedCodeFixProvider.cs (1)
36
var model = await document.
GetRequiredSemanticModelAsync
(fixAllContext.CancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Simplifier\SimplifierTests.cs (2)
38
var semanticModel = await GetDocument().
GetRequiredSemanticModelAsync
(CancellationToken.None);
49
var semanticModel = await GetDocument().
GetRequiredSemanticModelAsync
(CancellationToken.None);
Microsoft.VisualStudio.LanguageServices (3)
ChangeSignature\AddParameterDialogViewModel.cs (1)
29
_semanticModel = document.
GetRequiredSemanticModelAsync
(CancellationToken.None).AsTask().WaitAndGetResult_CanCallOnBackground(CancellationToken.None);
Snippets\AbstractSnippetExpansionClient.cs (2)
758
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
898
var semanticModel = document.
GetRequiredSemanticModelAsync
(cancellationToken).AsTask().WaitAndGetResult(cancellationToken);
Microsoft.VisualStudio.LanguageServices.Implementation (1)
CodeModel\FileCodeModel.cs (1)
444
.
GetRequiredSemanticModelAsync
(CancellationToken.None).AsTask();
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
MoveStaticMembers\MoveStaticMembersViewModelTest.vb (1)
35
Dim memberSymbol = (Await workspaceDoc.
GetRequiredSemanticModelAsync
(CancellationToken.None)).GetDeclaredSymbol(token.Parent)