27 references to ReuseExistingSpeculativeModelAsync
Microsoft.CodeAnalysis.CSharp.Features (13)
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (1)
90
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(attributeSyntax, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
106
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(
Completion\CompletionProviders\CSharpSuggestionModeCompletionProvider.cs (1)
44
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(token.Parent, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (1)
72
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(callingConventionList, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
81
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(argumentList, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\ObjectAndWithInitializerCompletionProvider.cs (1)
79
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(expression, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
90
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(attachedToken.Parent, cancellationToken).ConfigureAwait(false);
SignatureHelp\AttributeSignatureHelpProvider.cs (1)
80
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(attribute, cancellationToken).ConfigureAwait(false);
SignatureHelp\GenericNameSignatureHelpProvider.cs (1)
92
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(simpleName, cancellationToken).ConfigureAwait(false);
SignatureHelp\InvocationExpressionSignatureHelpProvider.cs (2)
75
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(invocationExpression, cancellationToken).ConfigureAwait(false);
125
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(invocationExpression, cancellationToken).ConfigureAwait(false);
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider.cs (2)
69
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(objectCreationExpression, cancellationToken).ConfigureAwait(false);
113
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(objectCreationExpression, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures (1)
RenameTracking\RenameTrackingTaggerProvider.TrackingSession.cs (1)
187
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(token.Parent, _cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (4)
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (2)
121
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(attributeNode, cancellationToken).ConfigureAwait(false);
235
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(constructorArgument, cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractOverrideCompletionProvider.ItemGetter.cs (1)
56
var semanticModel = await Document.
ReuseExistingSpeculativeModelAsync
(startToken.Parent, CancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractPartialTypeCompletionProvider.cs (1)
40
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(node, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (3)
ExternalAccess\Pythia\Api\PythiaDocumentExtensions.cs (1)
14
=> DocumentExtensions.
ReuseExistingSpeculativeModelAsync
(document, node, cancellationToken).AsTask();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
136
return await
ReuseExistingSpeculativeModelAsync
(document, node, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\ISemanticModelReuseWorkspaceService.cs (1)
19
/// Don't call this directly. use <see cref="DocumentExtensions.
ReuseExistingSpeculativeModelAsync
(Document, SyntaxNode, CancellationToken)"/> (or an overload).
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
CodeCleanup\CodeCleanupTests.cs (2)
313
var newSemanticModel = await document.
ReuseExistingSpeculativeModelAsync
(accessor.Statements[0], CancellationToken.None);
323
newSemanticModel = await document.
ReuseExistingSpeculativeModelAsync
(accessor.Statements[0], CancellationToken.None);
SemanticModelReuse\SemanticModelReuseTests.cs (4)
42
var model = await document.
ReuseExistingSpeculativeModelAsync
(null, CancellationToken.None);
55
var model2 = await document.
ReuseExistingSpeculativeModelAsync
(null, CancellationToken.None);
271
var model = await document.
ReuseExistingSpeculativeModelAsync
(null, CancellationToken.None);
290
var model2 = await document.
ReuseExistingSpeculativeModelAsync
(null, CancellationToken.None);