364 references to LookupSymbols
Microsoft.CodeAnalysis (4)
Microsoft.CodeAnalysis.CodeStyle (2)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (74)
Semantics\OutVarTests.cs (7)
1156Assert.False(model.LookupSymbols(reference.SpanStart, name: reference.Identifier.ValueText).Any());
1166Assert.Same(symbol, model.LookupSymbols(reference.SpanStart, name: reference.Identifier.ValueText).Single());
1197Assert.Same(symbol, model.LookupSymbols(reference.SpanStart, name: reference.Identifier.ValueText).Single());
9654Assert.Equal("System.Int64 y1", model.LookupSymbols(x1Ref[0].SpanStart, name: "y1").Single().ToTestDisplayString());
10222Assert.Equal("System.Boolean y1", model.LookupSymbols(x1Ref[0].SpanStart, name: "y1").Single().ToTestDisplayString());
21308var y1 = model.LookupSymbols(x1Ref[0].SpanStart, name: "y1").Single();
22671Assert.False(model.LookupSymbols(reference.SpanStart, name: reference.Identifier.ValueText).Any());
Semantics\PatternMatchingTestBase.cs (12)
87var other = model.LookupSymbols(designation.SpanStart, name: designation.Identifier.ValueText).Single();
126Assert.Same(symbol, model.LookupSymbols(reference.SpanStart, name: designation.Identifier.ValueText).Single());
147Assert.NotEqual(symbol, model.LookupSymbols(designation.SpanStart, name: designation.Identifier.ValueText).Single());
173Assert.NotEqual(symbol, model.LookupSymbols(declarator.SpanStart, name: declarator.Identifier.ValueText).Single());
187Assert.NotEqual(symbol, model.LookupSymbols(designation.SpanStart, name: designation.Identifier.ValueText).Single());
197Assert.Same(symbol, model.LookupSymbols(reference.SpanStart, name: reference.Identifier.ValueText).Single());
210var other = model.LookupSymbols(reference.SpanStart, name: reference.Identifier.ValueText).Single();
218Assert.False(model.LookupSymbols(reference.SpanStart, name: reference.Identifier.ValueText).Any());
250var symbols = model.LookupSymbols(designation.SpanStart, name: designation.Identifier.ValueText);
302symbols = model.LookupSymbols(reference.SpanStart, name: designation.Identifier.ValueText);
368Assert.False(model.LookupSymbols(designation.SpanStart, name: identifierText).Any());
411Assert.False(model.LookupSymbols(reference.SpanStart, name: reference.Identifier.ValueText).Any());
Semantics\PrimaryConstructorTests.cs (28)
1013Assert.Same(symbol, model.LookupSymbols(x.SpanStart, name: "X").Single());
1081Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X"));
1308Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X"));
1321Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "y"));
1331Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "Test"));
1373Assert.Empty(model.LookupSymbols(x.SpanStart, name: "X"));
1419Assert.Empty(model.LookupSymbols(x.SpanStart, name: "X"));
1479Assert.Empty(model.LookupSymbols(x.SpanStart, name: "X"));
1537Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X"));
1548Assert.Empty(model.LookupSymbols(x.SpanStart, name: "X"));
1626Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X"));
1637Assert.Empty(model.LookupSymbols(x.SpanStart, name: "X"));
1822Assert.Empty(model.LookupSymbols(x.SpanStart, name: "X"));
1862Assert.Empty(model.LookupSymbols(x.SpanStart, name: "X"));
1903Assert.Equal("System.Int32 X", model.LookupSymbols(x.SpanStart, name: "X").Single().ToTestDisplayString());
1975Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X"));
2433Assert.Empty(model.LookupSymbols(x.SpanStart, name: "X"));
2649Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X"));
2687Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X"));
2724Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X"));
2760Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X"));
6862Assert.Contains("System.Int32 y", model.LookupSymbols(mCall.SpanStart).Select(s => s.ToTestDisplayString()));
6863Assert.DoesNotContain("System.Int32 y", model.LookupSymbols(attrApplication.ArgumentList!.OpenParenToken.SpanStart + 1).Select(s => s.ToTestDisplayString()));
6864Assert.DoesNotContain("System.Int32 y", model.LookupSymbols(mDefinition.SpanStart).Select(s => s.ToTestDisplayString()));
7805Assert.Empty(model.LookupSymbols(p1.SpanStart, name: "p1"));
7833Assert.Same(symbol, model.LookupSymbols(p1.SpanStart, name: "p1").Single());
8765Assert.Contains(symbol, model.LookupSymbols(p1.SpanStart, name: "p1"));
9171Assert.Contains(symbol, model.LookupSymbols(p1.SpanStart, name: "p1"));
Semantics\RecordTests.cs (23)
21153Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X"));
21382Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X"));
21395Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "y"));
21405Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "Test"));
21447Assert.Empty(model.LookupSymbols(x.SpanStart, name: "X"));
21493Assert.Empty(model.LookupSymbols(x.SpanStart, name: "X"));
21553Assert.Empty(model.LookupSymbols(x.SpanStart, name: "X"));
21611Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X"));
21622Assert.Empty(model.LookupSymbols(x.SpanStart, name: "X"));
21700Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X"));
21711Assert.Empty(model.LookupSymbols(x.SpanStart, name: "X"));
21896Assert.Empty(model.LookupSymbols(x.SpanStart, name: "X"));
21933Assert.Empty(model.LookupSymbols(x.SpanStart, name: "X"));
21971Assert.Equal("System.Int32 X", model.LookupSymbols(x.SpanStart, name: "X").Single().ToTestDisplayString());
22008Assert.Empty(model.LookupSymbols(x.SpanStart, name: "X"));
22087Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X"));
24651Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X"));
24686Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X"));
24720Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X"));
24755Assert.Contains(symbol, model.LookupSymbols(x.SpanStart, name: "X"));
30399Assert.Contains("System.Int32 y", model.LookupSymbols(mCall.SpanStart).Select(s => s.ToTestDisplayString()));
30400Assert.DoesNotContain("System.Int32 y", model.LookupSymbols(attrApplication.ArgumentList!.OpenParenToken.SpanStart + 1).Select(s => s.ToTestDisplayString()));
30401Assert.DoesNotContain("System.Int32 y", model.LookupSymbols(mDefinition.SpanStart).Select(s => s.ToTestDisplayString()));
Microsoft.CodeAnalysis.CSharp.Features (12)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (111)
Semantics\TopLevelStatementsTests.cs (83)
198Assert.Contains(refSymbol, model1.LookupSymbols(localRef.SpanStart));
199Assert.Same(refSymbol, model1.LookupSymbols(localRef.SpanStart, name: refSymbol.Name).Single());
241Assert.Contains(declSymbol, model1.LookupSymbols(localDecl.SpanStart));
242Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: declSymbol.Name).Single());
326Assert.Empty(model1.LookupSymbols(localRef.SpanStart).Where(s => s.Name == name));
327Assert.Empty(model1.LookupSymbols(localRef.SpanStart, name: name));
364Assert.Contains(declSymbol, model2.LookupSymbols(localDecl.SpanStart));
365Assert.Same(declSymbol, model2.LookupSymbols(localDecl.SpanStart, name: declSymbol.Name).Single());
485Assert.Contains(declSymbol, model1.LookupSymbols(localDecl.SpanStart));
486Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: declSymbol.Name).Single());
494Assert.Contains(declSymbol, model1.LookupSymbols(localFuncRef.SpanStart));
495Assert.Same(declSymbol, model1.LookupSymbols(localFuncRef.SpanStart, name: declSymbol.Name).Single());
505Assert.Empty(model2.LookupSymbols(localRef.SpanStart).Where(s => s.Name == name));
506Assert.Empty(model2.LookupSymbols(localRef.SpanStart, name: name));
537Assert.Contains(declSymbol, model1.LookupSymbols(localDecl.SpanStart));
538Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: declSymbol.Name).Single());
548Assert.Contains(declSymbol, model1.LookupSymbols(localRef.SpanStart));
549Assert.Same(declSymbol, model1.LookupSymbols(localRef.SpanStart, name: declSymbol.Name).Single());
577Assert.Contains(declSymbol, model1.LookupSymbols(localDecl.SpanStart));
578Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: declSymbol.Name).Single());
586Assert.Contains(declSymbol, model1.LookupSymbols(localFuncRef.SpanStart));
587Assert.Same(declSymbol, model1.LookupSymbols(localFuncRef.SpanStart, name: declSymbol.Name).Single());
595Assert.Contains(refSymbol, model1.LookupSymbols(localRef.SpanStart));
596Assert.Same(refSymbol, model1.LookupSymbols(localRef.SpanStart, name: refSymbol.Name).Single());
1690var symbols = model1.LookupSymbols(localDecl.SpanStart);
1697Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: "Test").Single());
1724symbols = model.LookupSymbols(nameRef.SpanStart);
1730Assert.Same(testType, model.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
1764var symbols = model.LookupSymbols(nameRef.SpanStart);
1767Assert.Same(declSymbol, model.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
1863var symbols = model1.LookupSymbols(localDecl.SpanStart);
1870Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: "Test").Single());
1892symbols = model2.LookupSymbols(nameRef.SpanStart);
1898Assert.Same(testType, model2.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
1932var symbols = model2.LookupSymbols(nameRef.SpanStart);
1935Assert.Same(declSymbol, model2.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
2088var symbols = model1.LookupSymbols(localDecl.SpanStart);
2093Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: "Test").Single());
2109symbols = model1.LookupSymbols(nameRef.SpanStart);
2113Assert.Same(testType, model1.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
2145var symbols = model2.LookupSymbols(nameRef.SpanStart);
2148Assert.Same(declSymbol, model2.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
2252var symbols = model1.LookupSymbols(localDecl.SpanStart);
2257Assert.Same(declSymbol, model1.LookupSymbols(localDecl.SpanStart, name: "Test").Single());
2275symbols = model2.LookupSymbols(nameRef.SpanStart);
2279Assert.Same(testType, model2.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
2311var symbols = model2.LookupSymbols(nameRef.SpanStart);
2314Assert.Same(declSymbol, model2.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
2431var symbols = model1.LookupSymbols(labelDecl.SpanStart);
2436Assert.Same(testType, model1.LookupSymbols(labelDecl.SpanStart, name: "Test").Single());
2455symbols = model1.LookupSymbols(nameRef.SpanStart);
2459Assert.Same(testType, model1.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
2470symbols = model1.LookupSymbols(nameRef.SpanStart);
2474Assert.Same(testType, model1.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
2508var symbols = model2.LookupSymbols(nameRef.SpanStart);
2511Assert.Same(testType, model2.LookupSymbols(nameRef.SpanStart, name: "Test").Single());
3950var symbols = model.LookupSymbols(nameRef.SpanStart);
3953Assert.Same(testType, model.LookupSymbols(nameRef.SpanStart, name: "args").Single());
3964symbols = model.LookupSymbols(nameRef.SpanStart);
3967Assert.Same(parameter, model.LookupSymbols(nameRef.SpanStart, name: "args").Single());
4004var symbols = model.LookupSymbols(nameRef.SpanStart);
4007Assert.Same(testType, model.LookupSymbols(nameRef.SpanStart, name: "args").Single());
4099var symbols = model.LookupSymbols(nameRef.SpanStart);
4102Assert.Same(testType, model.LookupSymbols(nameRef.SpanStart, name: "args").Single());
4134var symbols = model.LookupSymbols(nameRef.SpanStart);
4137Assert.Same(testType, model.LookupSymbols(nameRef.SpanStart, name: "args").Single());
6042Assert.Contains(declSymbol, model1.LookupSymbols(localRef.SpanStart));
6043Assert.Same(declSymbol, model1.LookupSymbols(localRef.SpanStart, name: declSymbol.Name).Single());
6282Assert.Same(x, semanticModel.LookupSymbols(localDecl.SpanStart, name: "x").Single());
6284Assert.Same(x, semanticModel.LookupSymbols(localRef.SpanStart, name: "x").Single());
6327Assert.Same(xDecl, semanticModel1.LookupSymbols(localDecl.SpanStart, name: "x").Single());
6329Assert.Same(xRef, semanticModel1.LookupSymbols(localRef.SpanStart, name: "x").Single());
6378Assert.Same(xDecl, semanticModel1.LookupSymbols(localDecl.SpanStart, name: "x").Single());
6384Assert.Same(xRef, semanticModel2.LookupSymbols(localRef.SpanStart, name: "x").Single());
8580var symbols = model.LookupSymbols(invocations[0].Position, name: "args");
8582symbols = model.LookupSymbols(invocations[0].SpanStart, name: "args");
8585symbols = model.LookupSymbols(invocations[1].Position, name: "args");
8587symbols = model.LookupSymbols(invocations[1].SpanStart, name: "args");
8590symbols = model.LookupSymbols(invocations[2].Position, name: "args");
8592symbols = model.LookupSymbols(invocations[2].SpanStart, name: "args");
8655var symbols = model.LookupSymbols(i, name: "args");
8677var symbols = model.LookupSymbols(i, name: "args");
8699var symbols = model.LookupSymbols(i, name: "args");
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (114)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (40)
1058var symbols = model.LookupSymbols(memberDecl.SpanStart, null, "DateTime");
1088var symbols = model.LookupSymbols(methodDecl.SpanStart, null, "B");
1092symbols = model.LookupSymbols(localDecl.SpanStart, null, "B");
1129var symbols = model.LookupSymbols(positionInB, name: "Z");
1137symbols = model.LookupSymbols(positionInC, name: "Z");
1141symbols = model.LookupSymbols(positionInC, name: "AliasZ");
1145symbols = model.LookupSymbols(positionInC, name: "C");
1148symbols = model.LookupSymbols(positionInC, name: "AliasZ", container: container);
1385var symbolsInC = model.LookupSymbols(positionInC);
1438var symbols = model.LookupSymbols(methodDecl.SpanStart, paramSymbol.Type);
1452symbols = model.LookupSymbols(methodDecl.SpanStart, paramSymbol.Type);
1559var symbols = model.LookupSymbols(constraintStart, null, name: name);
1633var symbols = model.LookupSymbols(position).Where(s => !s.IsStatic && !((s is ITypeSymbol)));
1636var symbols2 = model.LookupSymbols(position, container: symbolC).Where(s => !s.IsStatic && !((s is ITypeSymbol)));
1725var symbols = model.LookupSymbols(typeDeclStart, type, name: null, includeReducedExtensionMethods: true).WhereAsArray(isExtensionMethod);
1753symbols = model.LookupSymbols(statementStart, type, "E", includeReducedExtensionMethods: true);
1757symbols = model.LookupSymbols(statementStart, type, "F", includeReducedExtensionMethods: true);
1762symbols = model.LookupSymbols(statementStart, null, "F", includeReducedExtensionMethods: true);
1768symbols = model.LookupSymbols(namespaceStart, baseType, name: null, includeReducedExtensionMethods: true).WhereAsArray(isExtensionMethod);
1777symbols = model.LookupSymbols(typeDeclStart, valueType, name: "E", includeReducedExtensionMethods: true).WhereAsArray(isExtensionMethod);
1782symbols = model.LookupSymbols(namespaceStart, valueType, name: "H", includeReducedExtensionMethods: true).WhereAsArray(isExtensionMethod);
1787symbols = model.LookupSymbols(typeDeclStart, type, name: "C", includeReducedExtensionMethods: true).WhereAsArray(isExtensionMethod);
1819var symbols = model.LookupSymbols(methodStart, null, name: "E", includeReducedExtensionMethods: true);
1826symbols = model.LookupSymbols(methodStart, type, name: "E", includeReducedExtensionMethods: true);
1835symbols = model.LookupSymbols(methodStart, type, name: "E", includeReducedExtensionMethods: true);
1875var symbols = model.LookupSymbols(methodStart, null, name: "a");
1879symbols = model.LookupSymbols(methodStart, null, name: "b");
1888symbols = model.LookupSymbols(methodStart, typeB, name: null, includeReducedExtensionMethods: true).WhereAsArray(isExtensionMethod);
1900symbols = model.LookupSymbols(methodStart, typeA, name: null, includeReducedExtensionMethods: true).WhereAsArray(isExtensionMethod);
1938var symbols = model.LookupSymbols(position, container: null, name: "F", includeReducedExtensionMethods: true);
1978symbols = model.LookupSymbols(position, container: null, name: "F", includeReducedExtensionMethods: true);
2012var symbols = model.LookupSymbols(methodStart, null, name: "o");
2018symbols = model.LookupSymbols(methodStart, type, name: "First", includeReducedExtensionMethods: true);
2080var symbols = model.LookupSymbols(position, name: "a");
2083symbols = model.LookupSymbols(position, name: "b");
4446var lookupSymbols = model.LookupSymbols(conversionDecl.DescendantNodes().OfType<ReturnStatementSyntax>().Single().SpanStart, name: WellKnownMemberNames.ImplicitConversionName);
4477var lookupSymbols = model.LookupSymbols(conversionDecl.DescendantNodes().OfType<ReturnStatementSyntax>().Single().SpanStart, name: WellKnownMemberNames.ExplicitConversionName);
4508var lookupSymbols = model.LookupSymbols(operatorDecl.DescendantNodes().OfType<ReturnStatementSyntax>().Single().SpanStart, name: WellKnownMemberNames.AdditionOperatorName);
4540var symbols = model.LookupSymbols(position, name: "Alias");
4577var symbols = model.LookupSymbols(position, name: "Alias");
DocumentationComments\ParameterTests.cs (32)
411AssertEx.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString));
412AssertEx.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString));
413AssertEx.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString), "T");
414AssertEx.SetEqual(model.LookupSymbols(pos4).Select(SymbolExtensions.ToTestDisplayString), "T");
438AssertEx.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 x");
439AssertEx.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 x");
440AssertEx.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString), "T");
441AssertEx.SetEqual(model.LookupSymbols(pos4).Select(SymbolExtensions.ToTestDisplayString), "T");
465AssertEx.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 value");
466AssertEx.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 value");
467AssertEx.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString));
468AssertEx.SetEqual(model.LookupSymbols(pos4).Select(SymbolExtensions.ToTestDisplayString));
492AssertEx.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString));
493AssertEx.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString));
494AssertEx.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString));
495AssertEx.SetEqual(model.LookupSymbols(pos4).Select(SymbolExtensions.ToTestDisplayString));
519AssertEx.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 x", "System.Int32 value");
520AssertEx.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 x", "System.Int32 value");
521AssertEx.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString));
522AssertEx.SetEqual(model.LookupSymbols(pos4).Select(SymbolExtensions.ToTestDisplayString));
546AssertEx.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 x");
547AssertEx.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 x");
548AssertEx.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString));
549AssertEx.SetEqual(model.LookupSymbols(pos4).Select(SymbolExtensions.ToTestDisplayString));
574AssertEx.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString));
575AssertEx.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString));
576AssertEx.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString));
577AssertEx.SetEqual(model.LookupSymbols(pos4), compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").TypeParameters.Single());
602AssertEx.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString));
603AssertEx.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString));
604AssertEx.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString));
605AssertEx.SetEqual(model.LookupSymbols(pos4), compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").TypeParameters.Single());
Symbols\ExtensionMethodTests.cs (10)
2954var lookupResult = model.LookupSymbols(
3784var symbols = model.LookupSymbols(member.Expression.EndPosition, type, includeReducedExtensionMethods: true).Select(s => s.Name).ToArray();
3871var setMember = model.LookupSymbols(instance.Position, baseClass, "SetMember", includeReducedExtensionMethods: true).Single();
3873Assert.Contains(setMember, model.LookupSymbols(instance.Position, baseClass, includeReducedExtensionMethods: true));
3918Assert.Empty(model.LookupSymbols(instance.Position, baseClass, "SetMember", includeReducedExtensionMethods: true));
3919Assert.Empty(model.LookupSymbols(instance.Position, baseClass, includeReducedExtensionMethods: true).Where(s => s.Name == "SetMembers"));
3963var setMember = model.LookupSymbols(instance.Position, baseClass, "SetMember", includeReducedExtensionMethods: true).Single();
3965Assert.Contains(setMember, model.LookupSymbols(instance.Position, baseClass, includeReducedExtensionMethods: true));
4013Assert.Empty(model.LookupSymbols(instance.Position, baseClass, "SetMember", includeReducedExtensionMethods: true));
4014Assert.Empty(model.LookupSymbols(instance.Position, baseClass, includeReducedExtensionMethods: true).Where(s => s.Name == "SetMembers"));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.Features (2)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
Microsoft.CodeAnalysis.VisualBasic.Features (8)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces (5)
Microsoft.VisualStudio.LanguageServices (2)