62 references to LookupNamespacesAndTypes
Microsoft.CodeAnalysis (3)
Compilation\SemanticModel.cs (1)
593/// Backing implementation of <see cref="LookupNamespacesAndTypes"/>.
SymbolDisplay\AbstractSymbolDisplayVisitor_Minimal.cs (2)
26? SemanticModelOpt.LookupNamespacesAndTypes(PositionOpt, name: symbol.Name) 44ImmutableArray<ISymbol> typeOnlySymbols = SemanticModelOpt.LookupNamespacesAndTypes(PositionOpt, name: symbol.Name);
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
171return semanticModel.LookupNamespacesAndTypes(token.SpanStart);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (37)
Semantics\LocalFunctionTests.cs (4)
1783Assert.Empty(model.LookupNamespacesAndTypes(a.SpanStart, name: "A")); 1807model.LookupNamespacesAndTypes(clsCompliant.SpanStart, name: "CLSCompliantAttribute").Single()); 1858Assert.Empty(model.LookupNamespacesAndTypes(a.SpanStart, name: "A")); 1882model.LookupNamespacesAndTypes(clsCompliant.SpanStart, name: "CLSCompliantAttribute").Single());
Semantics\LookupTests.cs (3)
1761var symbols = model.LookupNamespacesAndTypes(position, name: "M"); 1795symbols = model.LookupNamespacesAndTypes(position, name: "T"); 1985var symbols = model.LookupNamespacesAndTypes(position);
Semantics\TopLevelStatementsTests.cs (30)
1699symbols = model1.LookupNamespacesAndTypes(localDecl.SpanStart); 1702Assert.Same(testType, model1.LookupNamespacesAndTypes(localDecl.SpanStart, name: "Test").Single()); 1769symbols = model.LookupNamespacesAndTypes(nameRef.SpanStart); 1772Assert.Same(testType, model.LookupNamespacesAndTypes(nameRef.SpanStart, name: "Test").Single()); 1872symbols = model1.LookupNamespacesAndTypes(localDecl.SpanStart); 1875Assert.Same(testType, model1.LookupNamespacesAndTypes(localDecl.SpanStart, name: "Test").Single()); 1937symbols = model2.LookupNamespacesAndTypes(nameRef.SpanStart); 1940Assert.Same(testType, model2.LookupNamespacesAndTypes(nameRef.SpanStart, name: "Test").Single()); 2095symbols = model1.LookupNamespacesAndTypes(localDecl.SpanStart); 2098Assert.Same(testType, model1.LookupNamespacesAndTypes(localDecl.SpanStart, name: "Test").Single()); 2150symbols = model2.LookupNamespacesAndTypes(nameRef.SpanStart); 2153Assert.Same(testType, model2.LookupNamespacesAndTypes(nameRef.SpanStart, name: "Test").Single()); 2259symbols = model1.LookupNamespacesAndTypes(localDecl.SpanStart); 2262Assert.Same(testType, model1.LookupNamespacesAndTypes(localDecl.SpanStart, name: "Test").Single()); 2316symbols = model2.LookupNamespacesAndTypes(nameRef.SpanStart); 2319Assert.Same(testType, model2.LookupNamespacesAndTypes(nameRef.SpanStart, name: "Test").Single()); 2438symbols = model1.LookupNamespacesAndTypes(labelDecl.SpanStart); 2441Assert.Same(testType, model1.LookupNamespacesAndTypes(labelDecl.SpanStart, name: "Test").Single()); 2513symbols = model2.LookupNamespacesAndTypes(nameRef.SpanStart); 2516Assert.Same(testType, model2.LookupNamespacesAndTypes(nameRef.SpanStart, name: "Test").Single()); 2921Assert.NotEmpty(model1.LookupNamespacesAndTypes(nameRef.SpanStart, name: "alias1")); 2922Assert.Empty(model1.LookupNamespacesAndTypes(nameRef.SpanStart, name: "alias2")); 2943Assert.Empty(model2.LookupNamespacesAndTypes(nameRef.SpanStart, name: "alias1")); 2944Assert.NotEmpty(model2.LookupNamespacesAndTypes(nameRef.SpanStart, name: "alias2")); 3969symbols = model.LookupNamespacesAndTypes(nameRef.SpanStart); 3972Assert.Same(testType, model.LookupNamespacesAndTypes(nameRef.SpanStart, name: "args").Single()); 4009symbols = model.LookupNamespacesAndTypes(nameRef.SpanStart); 4012Assert.Same(testType, model.LookupNamespacesAndTypes(nameRef.SpanStart, name: "args").Single()); 4139symbols = model.LookupNamespacesAndTypes(nameRef.SpanStart); 4142Assert.Same(testType, model.LookupNamespacesAndTypes(nameRef.SpanStart, name: "args").Single());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (5)
1178var symbols = model.LookupNamespacesAndTypes(localDecl.SpanStart, name: "B"); 1598var symbols = model.LookupNamespacesAndTypes(someMemberInC.SpanStart); 2056var symbols = model.LookupNamespacesAndTypes(someStatementInM.SpanStart, name: ""); 2211var qnSymbols = model.LookupNamespacesAndTypes(position2, name: "InvalidWithoutSuffix"); 2215symbols = model.LookupNamespacesAndTypes(position, name: "Y", container: qnInvalidWithoutSuffix);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CompilationTestUtils.cs (1)
348? model.LookupNamespacesAndTypes(position, container)
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (2)
301var boundSymbols = semanticModel.LookupNamespacesAndTypes(node.SpanStart, name: aliasName); 328originalSemanticModel, namespaceId.Value, semanticModel.LookupNamespacesAndTypes(token.SpanStart).OfType<IAliasSymbol>());
Simplification\Simplifiers\ExpressionSimplifier.cs (1)
235? semanticModel.LookupNamespacesAndTypes(memberAccess.SpanStart, name: memberAccess.Name.Identifier.ValueText)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SemanticModelExtensions.vb (1)
67semanticModel.LookupNamespacesAndTypes(expr.SpanStart, container:=symbol, name:=name),
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Completion\CompletionProviders\CrefCompletionProvider.vb (1)
168Return semanticModel.LookupNamespacesAndTypes(token.SpanStart)
Completion\KeywordRecommenders\Declarations\OfKeywordRecommender.vb (1)
107Dim symbols = semanticModel.LookupNamespacesAndTypes(
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
CompilationTestUtils.vb (1)
1252Dim result = If(namespacesAndTypesOnly, model.LookupNamespacesAndTypes(position, container), model.LookupSymbols(position, container))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (2)
167Dim boundSymbols = semanticModel.LookupNamespacesAndTypes(node.SpanStart, name:=aliasName) 172boundSymbols = semanticModel.LookupNamespacesAndTypes(node.Span.Start, name:=aliasName + "Attribute")
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SemanticModelExtensions.vb (1)
67semanticModel.LookupNamespacesAndTypes(expr.SpanStart, container:=symbol, name:=name),
Microsoft.CodeAnalysis.Workspaces (3)
Recommendations\AbstractRecommendationServiceRunner.cs (3)
282var symbols = semanticModel.LookupNamespacesAndTypes(declarationSyntax.SpanStart, containingNamespaceSymbol) 293: semanticModel.LookupNamespacesAndTypes(_context.Position, semanticModel.Compilation.GlobalNamespace, nameof(System)) 320.LookupNamespacesAndTypes(_context.Position, container, name)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
982var symbols = semanticModel.LookupNamespacesAndTypes(position, name: name);
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
3489Dim symbols = semanticModel.LookupNamespacesAndTypes(position, name:=name)