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