60 references to ReuseExistingSpeculativeModelAsync
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
TypeInferrer\TypeInferrerTests.cs (1)
36
inferredType = typeInference.InferType(await document.
ReuseExistingSpeculativeModelAsync
(position, CancellationToken.None), position, objectAsDefault: true, cancellationToken: CancellationToken.None);
Microsoft.CodeAnalysis.CSharp.Features (5)
BraceCompletion\LessAndGreaterThanBraceCompletionService.cs (1)
65
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(position, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
67
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(token.SpanStart, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.ItemGetter.cs (1)
98
var semanticModel = await Document.
ReuseExistingSpeculativeModelAsync
(Position, CancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (1)
57
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(position, cancellationToken).ConfigureAwait(false);
Snippets\CSharpConstructorSnippetProvider.cs (1)
61
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(position, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (5)
Completion\Providers\AbstractObjectInitializerCompletionProvider.cs (1)
29
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(position, cancellationToken).ConfigureAwait(false);
Completion\Utilities.cs (1)
55
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(position, cancellationToken).ConfigureAwait(false);
SignatureHelp\AbstractSignatureHelpProvider.cs (2)
260
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(position, cancellationToken).ConfigureAwait(false);
286
var relatedSemanticModel = await relatedDocument.
ReuseExistingSpeculativeModelAsync
(position, cancellationToken).ConfigureAwait(false);
Snippets\SnippetProviders\AbstractInlineStatementSnippetProvider.cs (1)
61
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(position, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces.UnitTests (49)
SemanticModelReuse\SemanticModelReuseTests.cs (45)
54
var model1 = await document.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
68
var model1 = await document.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
69
var model2 = await document.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
88
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
94
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
105
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
111
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
117
var model3 = await document3.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
128
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
134
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
140
var model3 = await document3.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
151
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
157
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
163
var model3 = await document3.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
174
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
180
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
186
var model3 = await document3.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
197
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
203
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
209
var model3 = await document3.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
221
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
227
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
248
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source1.IndexOf("return"), CancellationToken.None);
254
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source2.IndexOf("{ return"), CancellationToken.None);
289
var model1 = await document.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
309
var model1 = await document.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
310
var model2 = await document.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
335
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
347
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
364
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source1.IndexOf("return"), CancellationToken.None);
377
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source2.IndexOf("return"), CancellationToken.None);
389
var model3 = await document3.
ReuseExistingSpeculativeModelAsync
(source2.IndexOf("return"), CancellationToken.None);
406
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
418
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
430
var model3 = await document3.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
449
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
463
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
477
var model3 = await document3.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
496
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
510
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
524
var model3 = await document3.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
542
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
554
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
575
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
588
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
SymbolKeyTests.cs (4)
858
var firstReusedModel = await document.
ReuseExistingSpeculativeModelAsync
(position, CancellationToken.None);
868
var testModel = await document.
ReuseExistingSpeculativeModelAsync
(position, CancellationToken.None);
905
var firstReusedModel = await document.
ReuseExistingSpeculativeModelAsync
(position, CancellationToken.None);
915
var testModel = await document.
ReuseExistingSpeculativeModelAsync
(position, CancellationToken.None);