172 references to GetSemanticModelAsync
Microsoft.CodeAnalysis.CodeStyle.Fixes (10)
AbstractConvertToAsyncCodeFixProvider.cs (1)
64var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
AbstractMoveDeclarationNearReferenceService.State.cs (1)
82var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
AbstractUseObjectInitializerCodeFixProvider.cs (2)
78var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); 109semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
DocumentExtensions.cs (2)
39semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); 164var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
RemoveRedundantEqualityCodeFixProvider.cs (1)
47var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
SemanticDocument.cs (1)
27var model = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
SyntaxEditorExtensions.cs (2)
172var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); 187semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
CSharpMoveDeclarationNearReferenceService.cs (1)
61var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
CSharpUseLocalFunctionCodeFixProvider.cs (1)
58var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
UseExpressionBodyCodeFixProvider.cs (1)
59var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
EventHookup\EventHookupSessionManager_EventHookupSession.cs (1)
177var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
GoToBase\CSharpGoToBaseService.cs (1)
40var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
CodeGeneration\SyntaxGeneratorTests.cs (2)
49var semanticModel = await newDocument.GetSemanticModelAsync(); 79var semanticModel = await document.GetSemanticModelAsync();
TypeInferrer\TypeInferrerTests.Delegate.cs (1)
32var delegateType = typeInference.InferDelegateType(await document.GetSemanticModelAsync(), node, CancellationToken.None);
Microsoft.CodeAnalysis.CSharp.Features (20)
AddImport\CSharpAddImportFeatureService.cs (1)
356var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
64var model = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (2)
85var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); 235semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (4)
145var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); 158semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); 175semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); 186semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\UseExplicitOrImplicitType\AbstractUseTypeCodeRefactoringProvider.cs (1)
48var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
CSharpUseLocalFunctionCodeFixProvider.cs (1)
58var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Debugging\CSharpProximityExpressionsService.cs (1)
63var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Debugging\DataTipInfoGetter.cs (1)
80var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
EncapsulateField\CSharpEncapsulateFieldService.cs (2)
90var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); 130var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
ExtractMethod\CSharpMethodExtractor.cs (1)
189var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
GenerateType\CSharpGenerateTypeService.cs (1)
571var semanticModel = await selectedDocument.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (1)
243var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Organizing\CSharpOrganizingService.cs (1)
33var rewriter = new Rewriter(this, organizers, await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false), cancellationToken);
UseExpressionBodyCodeFixProvider.cs (1)
59var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
UsePatternMatching\CSharpIsAndCastCheckWithoutNameCodeFixProvider.cs (1)
59var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CSharpMoveDeclarationNearReferenceService.cs (1)
61var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\AddImportsTests.cs (1)
45var model = await doc.GetSemanticModelAsync();
Microsoft.CodeAnalysis.EditorFeatures (2)
GoToDefinition\AbstractGoToDefinitionService.cs (1)
147var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCommitter.cs (1)
212var semanticModel = await documentWithOriginalName.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (1)
Snippets\CSharpSnippets\SnippetFunctions\SnippetFunctionGenerateSwitchCases.cs (1)
70var model = document.GetSemanticModelAsync(cancellationToken).WaitAndGetResult(cancellationToken);
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (1)
ChangeSignature\AbstractChangeSignatureTests.cs (1)
136var diagnostics = (await testState.InvocationDocument.GetSemanticModelAsync()).GetDiagnostics();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
EditAndContinue\EditAndContinueTestHelpers.cs (2)
148var oldModel = oldDocument.GetSemanticModelAsync().Result; 149var newModel = newDocument.GetSemanticModelAsync().Result;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
CodeGeneration\CodeGenerationTests.cs (2)
649.GetSemanticModelAsync(); 890var semanticModel = await workspace.CurrentSolution.Projects.Single().Documents.Single().GetSemanticModelAsync();
SolutionCrawler\WorkCoordinatorTests.cs (1)
1592await document.GetSemanticModelAsync();
SymbolFinder\DependentTypeFinderTests.cs (1)
644var semanticModel = await csDoc.GetSemanticModelAsync();
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (4)
Extensions\ISymbolExtensionsTests.vb (1)
21Dim semanticModel = Await document.GetSemanticModelAsync()
FindReferences\FindReferencesTests.vb (1)
580Dim semanticModel1 = Await document1.GetSemanticModelAsync()
Simplification\InitializerSimplificationTests.vb (1)
90Dim semanticModel = Await simplifiedDocument.GetSemanticModelAsync()
Workspaces\SymbolDescriptionServiceTests.vb (1)
25Dim semanticModel = Await document.GetSemanticModelAsync()
Microsoft.CodeAnalysis.Features (29)
AbstractConvertToAsyncCodeFixProvider.cs (1)
64var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
AbstractUseObjectInitializerCodeFixProvider.cs (2)
78var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); 109semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
AddImport\References\SymbolReference.cs (1)
85var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (1)
290var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction_Pragma.cs (1)
203var model = await _document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
CodeLens\CodeLensReferencesService.cs (4)
53var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); 111var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); 254var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); 281var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
EncapsulateField\AbstractEncapsulateFieldService.cs (3)
147var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); 200var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); 231semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
ExtractInterface\AbstractExtractInterfaceService.cs (1)
97var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
GenerateEqualsAndGetHashCodeFromMembers\AbstractGenerateEqualsAndGetHashCodeService.cs (1)
56var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
GenerateMember\GenerateVariable\AbstractGenerateVariableService.GenerateLocalCodeAction.cs (1)
58var semanticModel = await _document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
GenerateType\AbstractGenerateTypeService.cs (1)
282var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
285var newSemanticModel = await newDocument.GetSemanticModelAsync(_cancellationToken).ConfigureAwait(false);
ImplementInterface\AbstractImplementInterfaceService.cs (1)
45var model = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
MoveToNamespace\AbstractMoveToNamespaceService.cs (1)
190var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
RemoveRedundantEqualityCodeFixProvider.cs (1)
47var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (1)
167var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
87var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
SimplifyTypeNames\AbstractSimplifyTypeNamesCodeFixProvider.cs (2)
82var model = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); 106var model = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (1)
81semanticModel ??= await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
SplitOrMergeIfStatements\Consecutive\AbstractMergeConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
219var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
SplitOrMergeIfStatements\Consecutive\AbstractSplitIntoConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
151var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
SplitOrMergeIfStatements\Nested\AbstractMergeNestedIfStatementsCodeRefactoringProvider.cs (1)
221var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
VisualBasicConvertToIteratorCodeFixProvider.vb (1)
57Dim model = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (2)
EndConstructGeneration\VisualBasicEndConstructGenerationService.vb (1)
164caretPosition.Value, New Lazy(Of SemanticModel)(Function() document.GetSemanticModelAsync(cancellationToken).WaitAndGetResult(cancellationToken)), tree, tokenToLeft, bufferOptions.GetNewLineCharacter())
GoToBase\VisualBasicGoToBaseService.vb (1)
43Dim semanticModel = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.VisualBasic.Features (30)
ChangeSignature\VisualBasicChangeSignatureService.vb (6)
120Dim semanticModel = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False) 336Dim semanticModel = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False) 353Dim semanticModel = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False) 395Dim semanticModel = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False) 413Dim semanticModel = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False) 690Dim semanticModel = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False)
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (3)
77Dim semanticModel = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False) 253Dim semanticModel = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False) 320Dim semanticModel = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False)
CodeFixes\IncorrectFunctionReturnType\IncorrectFunctionReturnTypeCodeFixProvider.vb (1)
52Dim semanticModel = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False)
CodeRefactorings\InlineTemporary\VisualBasicInlineTemporaryCodeRefactoringProvider.vb (6)
124Dim semanticModel = Await updatedDocument.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False) 146semanticModel = Await updatedDocument.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False) 189semanticModel = Await updatedDocument.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False) 197semanticModel = Await updatedDocument.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False) 370Dim semanticModel = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False) 388semanticModel = Await updatedDocument.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False)
Debugging\ProximityExpressionsGetter.vb (1)
73Dim semanticModel = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False)
EncapsulateField\VisualBasicEncapsulateFieldService.vb (1)
74Dim semanticModel = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False)
ExtractMethod\VisualBasicMethodExtractor.vb (1)
101Dim binding = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False)
GenerateType\VisualBasicGenerateTypeService.vb (1)
428Dim semanticModel = Await selectedDocument.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False)
ImplementInterface\VisualBasicImplementInterfaceCodeFixProvider.vb (1)
66Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False),
NavigationBar\VisualBasicNavigationBarItemService.vb (1)
43Dim semanticModel = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False)
Organizing\VisualBasicOrganizerService.vb (1)
24Dim rewriter = New Rewriter(Me, organizers, Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False), cancellationToken)
SignatureHelp\AttributeSignatureHelpProvider.vb (1)
62Dim semanticModel = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False)
SignatureHelp\CollectionInitializerSignatureHelpProvider.vb (1)
64Dim semanticModel = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False)
SignatureHelp\FunctionAggregationSignatureHelpProvider.vb (1)
64Dim semanticModel = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False)
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider.vb (1)
72Dim semanticModel = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False)
SignatureHelp\RaiseEventStatementSignatureHelpProvider.vb (1)
78Dim semanticModel = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False)
UseAutoProperty\VisualBasicUseAutoPropertyCodeFixProvider.vb (1)
67Dim semanticsModel = Await propertyDocument.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False)
VisualBasicConvertToIteratorCodeFixProvider.vb (1)
57Dim model = Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
Rename\LocalConflictVisitor.vb (2)
150Dim semanticModel = _newSolution.GetDocument(controlVariable.SyntaxTree).GetSemanticModelAsync(_cancellationToken).WaitAndGetResult_CanCallOnBackground(_cancellationToken) 192Dim semanticModel = _newSolution.GetDocument(node.SyntaxTree).GetSemanticModelAsync(_cancellationToken).WaitAndGetResult_CanCallOnBackground(_cancellationToken)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\AddImportsTests.vb (1)
51Dim model = Await doc.GetSemanticModelAsync()
Microsoft.CodeAnalysis.Workspaces (14)
AbstractMoveDeclarationNearReferenceService.State.cs (1)
82var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
DocumentExtensions.cs (2)
39semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); 164var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Editing\DocumentEditor.cs (1)
38var model = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Editing\SymbolEditor.cs (2)
295var model = await newDoc.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); 483var model = await doc.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Editing\SymbolEditorExtensions.cs (1)
41var model = await doc.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
SemanticDocument.cs (1)
27var model = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Shared\Extensions\DocumentExtensions.cs (2)
35var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); 44return (frozenDocument, await frozenDocument.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false));
SyntaxEditorExtensions.cs (2)
172var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false); 187semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Workspace\Solution\Document.cs (2)
142/// <see cref="GetSemanticModelAsync"/> method. 256/// In almost all cases, you should call <see cref="GetSemanticModelAsync"/>, which will compute the semantic model
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (7)
NetCoreTests.cs (6)
89var semanticModel = await document.GetSemanticModelAsync(); 115var semanticModel = await document.GetSemanticModelAsync(); 155var semanticModel = await document.GetSemanticModelAsync(); 216var semanticModel = await document.GetSemanticModelAsync(); 344var semanticModel = await document.GetSemanticModelAsync(); 482var semanticModel = await document.GetSemanticModelAsync();
VisualStudioMSBuildWorkspaceTests.cs (1)
2817var compilation = document.GetObjectReference(static d => d.GetSemanticModelAsync(CancellationToken.None).Result);
Microsoft.CodeAnalysis.Workspaces.UnitTests (10)
CodeCleanup\CodeCleanupTests.cs (1)
307var semanticModel = await document.GetSemanticModelAsync();
SemanticModelReuse\SemanticModelReuseTests.cs (2)
75var actualModel = await document.GetSemanticModelAsync(); 316var actualModel = await document.GetSemanticModelAsync();
SerializationTests.cs (1)
67var model = document.GetSemanticModelAsync().Result;
SolutionTests\SolutionTests.cs (3)
1938var semantics = await document.GetSemanticModelAsync(); 2864var docModel = doc.GetSemanticModelAsync().Result; 4139Assert.Null(document.GetSemanticModelAsync().Result);
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
720await frozenDocument.GetSemanticModelAsync(CancellationToken.None);
SymbolKeyTests.cs (2)
796var firstModel = await document.GetSemanticModelAsync(); 843var firstModel = await document.GetSemanticModelAsync();
Microsoft.VisualStudio.LanguageServices (9)
CallHierarchy\CallHierarchyCommandHandler.cs (1)
90var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Library\ClassView\AbstractSyncClassViewCommandHandler.cs (1)
75.GetSemanticModelAsync(userCancellationToken)
Progression\GraphNodeIdCreation.cs (1)
538var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Progression\GraphQueries\CallsGraphQuery.cs (1)
49var semanticModel = await solution.GetDocument(reference.SyntaxTree).GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Progression\SymbolContainment.cs (1)
41var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Venus\ContainedLanguageCodeSupport.cs (4)
63var semanticModel = document.GetSemanticModelAsync(cancellationToken).WaitAndGetResult_Venus(cancellationToken); 302var semanticModel = document.GetSemanticModelAsync(cancellationToken).WaitAndGetResult_Venus(cancellationToken); 429var semanticModel = document.GetSemanticModelAsync(cancellationToken).WaitAndGetResult_Venus(cancellationToken); 487var semanticModel = document.GetSemanticModelAsync(cancellationToken).WaitAndGetResult_Venus(cancellationToken);
Microsoft.VisualStudio.LanguageServices.UnitTests (11)
ChangeSignature\ChangeSignatureViewModelTests.vb (1)
467Dim symbol = (Await workspaceDoc.GetSemanticModelAsync()).GetDeclaredSymbol(token.Parent)
CommonControls\MemberSelectionViewModelTests.vb (1)
184Dim memberSymbol = (Await workspaceDoc.GetSemanticModelAsync()).GetDeclaredSymbol(token.Parent)
CommonControls\NewTypeDestinationSelectionViewModelTests.vb (1)
237Dim symbol = (Await workspaceDoc.GetSemanticModelAsync()).GetDeclaredSymbol(token.Parent)
ExtractInterface\ExtractInterfaceViewModelTests.vb (1)
300Dim symbol = (Await workspaceDoc.GetSemanticModelAsync()).GetDeclaredSymbol(token.Parent)
GoToDefinition\GoToDefinitionApiTests.vb (1)
28Dim semanticModel = Await document.GetSemanticModelAsync()
PullMemberUp\PullMemberUpViewModelTest.vb (1)
256Dim memberSymbol = (Await workspaceDoc.GetSemanticModelAsync()).GetDeclaredSymbol(token.Parent)
RQName\RQNameTests.vb (2)
249Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(Await workspaceDoc.GetSemanticModelAsync(), token.SpanStart, workspace).ConfigureAwait(False) 251symbol = (Await workspaceDoc.GetSemanticModelAsync()).GetDeclaredSymbol(token.Parent)
Venus\DocumentService_IntegrationTests.vb (1)
226Dim model = Await document.GetSemanticModelAsync()
VsNavInfo\VsNavInfoTests.vb (2)
830Dim semanticModel = Await document.GetSemanticModelAsync() 868Dim semanticModel = Await document.GetSemanticModelAsync()
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Help\VisualBasicHelpContextService.vb (1)
48Dim visitor = New Visitor(token.Span, Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False), document.Project.Solution.WorkspaceKind <> WorkspaceKind.MetadataAsSource, Me, cancellationToken)
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\LanguageServer\Extensions\SymbolExtensions.cs (1)
51var semanticModel = await codeDocument.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);