27 references to ReuseExistingSpeculativeModelAsync
Microsoft.CodeAnalysis.CSharp.Features (13)
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (1)
90var semanticModel = await document.ReuseExistingSpeculativeModelAsync(attributeSyntax, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
106var semanticModel = await document.ReuseExistingSpeculativeModelAsync(
Completion\CompletionProviders\CSharpSuggestionModeCompletionProvider.cs (1)
44var semanticModel = await document.ReuseExistingSpeculativeModelAsync(token.Parent, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (1)
72var semanticModel = await document.ReuseExistingSpeculativeModelAsync(callingConventionList, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
81var semanticModel = await document.ReuseExistingSpeculativeModelAsync(argumentList, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\ObjectAndWithInitializerCompletionProvider.cs (1)
79var semanticModel = await document.ReuseExistingSpeculativeModelAsync(expression, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
90var semanticModel = await document.ReuseExistingSpeculativeModelAsync(attachedToken.Parent, cancellationToken).ConfigureAwait(false);
SignatureHelp\AttributeSignatureHelpProvider.cs (1)
80var semanticModel = await document.ReuseExistingSpeculativeModelAsync(attribute, cancellationToken).ConfigureAwait(false);
SignatureHelp\GenericNameSignatureHelpProvider.cs (1)
92var semanticModel = await document.ReuseExistingSpeculativeModelAsync(simpleName, cancellationToken).ConfigureAwait(false);
SignatureHelp\InvocationExpressionSignatureHelpProvider.cs (2)
75var semanticModel = await document.ReuseExistingSpeculativeModelAsync(invocationExpression, cancellationToken).ConfigureAwait(false); 125var semanticModel = await document.ReuseExistingSpeculativeModelAsync(invocationExpression, cancellationToken).ConfigureAwait(false);
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider.cs (2)
69var semanticModel = await document.ReuseExistingSpeculativeModelAsync(objectCreationExpression, cancellationToken).ConfigureAwait(false); 113var semanticModel = await document.ReuseExistingSpeculativeModelAsync(objectCreationExpression, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures (1)
RenameTracking\RenameTrackingTaggerProvider.TrackingSession.cs (1)
187var semanticModel = await document.ReuseExistingSpeculativeModelAsync(token.Parent, _cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (4)
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (2)
121var semanticModel = await document.ReuseExistingSpeculativeModelAsync(attributeNode, cancellationToken).ConfigureAwait(false); 235var semanticModel = await document.ReuseExistingSpeculativeModelAsync(constructorArgument, cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractOverrideCompletionProvider.ItemGetter.cs (1)
56var semanticModel = await Document.ReuseExistingSpeculativeModelAsync(startToken.Parent, CancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractPartialTypeCompletionProvider.cs (1)
40var 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)
136return 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)
313var newSemanticModel = await document.ReuseExistingSpeculativeModelAsync(accessor.Statements[0], CancellationToken.None); 323newSemanticModel = await document.ReuseExistingSpeculativeModelAsync(accessor.Statements[0], CancellationToken.None);
SemanticModelReuse\SemanticModelReuseTests.cs (4)
42var model = await document.ReuseExistingSpeculativeModelAsync(null, CancellationToken.None); 55var model2 = await document.ReuseExistingSpeculativeModelAsync(null, CancellationToken.None); 271var model = await document.ReuseExistingSpeculativeModelAsync(null, CancellationToken.None); 290var model2 = await document.ReuseExistingSpeculativeModelAsync(null, CancellationToken.None);