27 references to GetRequiredSemanticModelAsync
Microsoft.CodeAnalysis.Workspaces (27)
Classification\Classifier.cs (1)
32
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
Diagnostics\Extensions.cs (2)
365
var model = await ((Document)documentAnalysisScope.TextDocument).
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
437
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
245
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (1)
106
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferenceCache.cs (1)
40
var nullableEnableSemanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
FindSymbols\ReferenceLocationExtensions.cs (1)
36
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder.cs (2)
114
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
281
var semanticModel = await linkedDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
LanguageServices\FixAllSpanMappingService\AbstractFixAllSpanMappingService.cs (1)
44
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)
222
await conflictResolution.CurrentSolution.GetRequiredDocument(_documentIdOfRenameSymbolDeclaration).
GetRequiredSemanticModelAsync
(_cancellationToken).ConfigureAwait(false),
379
newDocumentSemanticModel ??= await newDocument.
GetRequiredSemanticModelAsync
(_cancellationToken).ConfigureAwait(false);
793
var semanticModel = await document.
GetRequiredSemanticModelAsync
(_cancellationToken).ConfigureAwait(false);
Rename\Renamer.RenameSymbolDocumentAction.cs (2)
50
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
106
var semanticModel = 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);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
117
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
161
return document.
GetRequiredSemanticModelAsync
(cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (2)
31
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
38
var currentModel = await current.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (4)
70
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
187
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
258
semanticModelForReduce = await newDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
313
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SemanticDocument.cs (1)
21
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);