64 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 (7)
BraceCompletion\LessAndGreaterThanBraceCompletionService.cs (1)
71
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(position, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
80
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(token.SpanStart, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (1)
73
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(position, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (1)
59
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(position, cancellationToken).ConfigureAwait(false);
Snippets\AbstractCSharpTypeSnippetProvider.cs (1)
47
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(position, cancellationToken).ConfigureAwait(false);
Snippets\CSharpConstructorSnippetProvider.cs (1)
37
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(position, cancellationToken).ConfigureAwait(false);
Snippets\CSharpElseSnippetProvider.cs (1)
36
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(position, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (5)
Completion\Providers\AbstractObjectInitializerCompletionProvider.cs (1)
30
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)
259
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(position, cancellationToken).ConfigureAwait(false);
285
var relatedSemanticModel = await relatedDocument.
ReuseExistingSpeculativeModelAsync
(position, cancellationToken).ConfigureAwait(false);
Snippets\SnippetProviders\AbstractStatementSnippetProvider.cs (1)
19
var semanticModel = await document.
ReuseExistingSpeculativeModelAsync
(position, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (1)
TypeInferrer\TypeInferrerTests.vb (1)
25
typeInference.InferType(Await document.
ReuseExistingSpeculativeModelAsync
(node.SpanStart, CancellationToken.None), node.SpanStart, objectAsDefault:=True, cancellationToken:=CancellationToken.None),
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Completion\CompletionProviders\VisualBasicSuggestionModeCompletionProvider.vb (1)
36
Dim semanticModel = Await document.
ReuseExistingSpeculativeModelAsync
(position, cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.Workspaces.UnitTests (49)
SemanticModelReuse\SemanticModelReuseTests.cs (45)
52
var model1 = await document.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
66
var model1 = await document.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
67
var model2 = await document.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
86
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
92
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
103
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
109
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
115
var model3 = await document3.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
126
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
132
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
138
var model3 = await document3.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
149
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
155
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
161
var model3 = await document3.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
172
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
178
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
184
var model3 = await document3.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
195
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
201
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
207
var model3 = await document3.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
220
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
226
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);
288
var model1 = await document.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
307
var model1 = await document.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
308
var model2 = await document.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
332
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
343
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
359
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source1.IndexOf("return"), CancellationToken.None);
371
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source2.IndexOf("return"), CancellationToken.None);
382
var model3 = await document3.
ReuseExistingSpeculativeModelAsync
(source2.IndexOf("return"), CancellationToken.None);
398
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
409
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
420
var model3 = await document3.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
438
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
451
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
464
var model3 = await document3.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
482
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
495
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
508
var model3 = await document3.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
526
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
537
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
558
var model1 = await document1.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
570
var model2 = await document2.
ReuseExistingSpeculativeModelAsync
(source.IndexOf("return"), CancellationToken.None);
SymbolKeyTests.cs (4)
799
var firstReusedModel = await document.
ReuseExistingSpeculativeModelAsync
(position, CancellationToken.None);
809
var testModel = await document.
ReuseExistingSpeculativeModelAsync
(position, CancellationToken.None);
846
var firstReusedModel = await document.
ReuseExistingSpeculativeModelAsync
(position, CancellationToken.None);
856
var testModel = await document.
ReuseExistingSpeculativeModelAsync
(position, CancellationToken.None);