18 references to GetRequiredSemanticModelAsync
Microsoft.CodeAnalysis.Analyzers (18)
FixAnalyzers\FixerWithFixAllAnalyzer.Fixer.cs (1)
62
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
MetaAnalyzers\Fixers\CompareSymbolsCorrectlyFix.cs (2)
67
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
82
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
MetaAnalyzers\Fixers\ConfigureGeneratedCodeAnalysisFix.cs (1)
45
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.cs (1)
49
var semanticModel = await context.Document.
GetRequiredSemanticModelAsync
(context.CancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (2)
121
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
183
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
156
return document.
GetRequiredSemanticModelAsync
(cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (1)
119
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (2)
27
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
34
var currentModel = await current.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
102
return await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
157
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (4)
69
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
165
var semanticModel = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
236
semanticModelForReduce = await newDocument.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
291
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SemanticDocument.cs (1)
22
var model = await document.
GetRequiredSemanticModelAsync
(cancellationToken).ConfigureAwait(false);