34 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)
110var semanticModel = await document.ReuseExistingSpeculativeModelAsync(
Completion\CompletionProviders\CSharpSuggestionModeCompletionProvider.cs (1)
51var semanticModel = await document.ReuseExistingSpeculativeModelAsync(token.Parent, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (1)
74var semanticModel = await document.ReuseExistingSpeculativeModelAsync(callingConventionList, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
82var semanticModel = await document.ReuseExistingSpeculativeModelAsync(argumentList, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\ObjectAndWithInitializerCompletionProvider.cs (1)
85var semanticModel = await document.ReuseExistingSpeculativeModelAsync(expression, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
69var semanticModel = await document.ReuseExistingSpeculativeModelAsync(attachedToken.Parent, cancellationToken).ConfigureAwait(false);
SignatureHelp\AttributeSignatureHelpProvider.cs (1)
81var semanticModel = await document.ReuseExistingSpeculativeModelAsync(attribute, cancellationToken).ConfigureAwait(false);
SignatureHelp\GenericNameSignatureHelpProvider.cs (1)
93var semanticModel = await document.ReuseExistingSpeculativeModelAsync(simpleName, cancellationToken).ConfigureAwait(false);
SignatureHelp\InvocationExpressionSignatureHelpProvider.cs (2)
80var semanticModel = await document.ReuseExistingSpeculativeModelAsync(invocationExpression, cancellationToken).ConfigureAwait(false); 136var semanticModel = await document.ReuseExistingSpeculativeModelAsync(invocationExpression, cancellationToken).ConfigureAwait(false);
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider.cs (2)
78var semanticModel = await document.ReuseExistingSpeculativeModelAsync(objectCreationExpression, cancellationToken).ConfigureAwait(false); 125var semanticModel = await document.ReuseExistingSpeculativeModelAsync(objectCreationExpression, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures (1)
RenameTracking\RenameTrackingTaggerProvider.TrackingSession.cs (1)
177var 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)
76var 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.VisualBasic.Features (7)
Completion\CompletionProviders\CrefCompletionProvider.vb (2)
77Dim semanticModel = Await document.ReuseExistingSpeculativeModelAsync(parentNode, cancellationToken).ConfigureAwait(False) 116Dim semanticModel = Await document.ReuseExistingSpeculativeModelAsync(parentNode, cancellationToken).ConfigureAwait(False)
Completion\CompletionProviders\NamedParameterCompletionProvider.vb (1)
76Dim semanticModel = Await document.ReuseExistingSpeculativeModelAsync(argumentList, cancellationToken).ConfigureAwait(False)
Completion\CompletionProviders\XmlDocCommentCompletionProvider.vb (1)
104Dim semanticModel = Await document.ReuseExistingSpeculativeModelAsync(attachedToken.Parent, cancellationToken).ConfigureAwait(False)
SignatureHelp\AbstractIntrinsicOperatorSignatureHelpProvider.vb (1)
41Dim semanticModel = Await document.ReuseExistingSpeculativeModelAsync(node, cancellationToken).ConfigureAwait(False)
SignatureHelp\GenericNameSignatureHelpProvider.vb (1)
72Dim semanticModel = Await document.ReuseExistingSpeculativeModelAsync(If(beforeDotExpression, genericName), cancellationToken).ConfigureAwait(False)
SignatureHelp\InvocationExpressionSignatureHelpProvider.vb (1)
73Dim semanticModel = Await document.ReuseExistingSpeculativeModelAsync(invocationExpression, cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.Workspaces (3)
DocumentExtensions.cs (1)
122return await ReuseExistingSpeculativeModelAsync(document, node, cancellationToken).ConfigureAwait(false);
ExternalAccess\Pythia\Api\PythiaDocumentExtensions.cs (1)
14=> DocumentExtensions.ReuseExistingSpeculativeModelAsync(document, node, cancellationToken).AsTask();
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)
310var newSemanticModel = await document.ReuseExistingSpeculativeModelAsync(accessor.Statements[0], CancellationToken.None); 320newSemanticModel = await document.ReuseExistingSpeculativeModelAsync(accessor.Statements[0], CancellationToken.None);
SemanticModelReuse\SemanticModelReuseTests.cs (4)
40var model = await document.ReuseExistingSpeculativeModelAsync(null, CancellationToken.None); 53var model2 = await document.ReuseExistingSpeculativeModelAsync(null, CancellationToken.None); 271var model = await document.ReuseExistingSpeculativeModelAsync(null, CancellationToken.None); 289var model2 = await document.ReuseExistingSpeculativeModelAsync(null, CancellationToken.None);