601 references to CandidateSymbols
Microsoft.AspNetCore.App.Analyzers (8)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
Microsoft.CodeAnalysis (7)
Microsoft.CodeAnalysis.CodeStyle (14)
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.CSharp (5)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (84)
Semantics\PatternMatchingTests3.cs (16)
118Assert.Equal(2, xSymbol.CandidateSymbols.Length);
119Assert.Equal("System.Int32 I1.X { get; }", xSymbol.CandidateSymbols[0].ToTestDisplayString());
120Assert.Equal("System.Int32 I2.X { get; }", xSymbol.CandidateSymbols[1].ToTestDisplayString());
128Assert.Equal(2, ySymbol.CandidateSymbols.Length);
129Assert.Equal("System.Int32 I1.Y { get; }", ySymbol.CandidateSymbols[0].ToTestDisplayString());
130Assert.Equal("System.Int32 I2.Y { get; }", ySymbol.CandidateSymbols[1].ToTestDisplayString());
169Assert.Equal(0, xSymbol.CandidateSymbols.Length);
177Assert.Equal(0, ySymbol.CandidateSymbols.Length);
214Assert.Equal(0, xSymbol.CandidateSymbols.Length);
222Assert.Equal(0, ySymbol.CandidateSymbols.Length);
267Assert.Equal(0, xSymbol.CandidateSymbols.Length);
275Assert.Equal(0, ySymbol.CandidateSymbols.Length);
308Assert.Equal(0, xSymbol.CandidateSymbols.Length);
316Assert.Equal(0, ySymbol.CandidateSymbols.Length);
355Assert.Equal(0, xSymbol.CandidateSymbols.Length);
363Assert.Equal(0, ySymbol.CandidateSymbols.Length);
Semantics\PrimaryConstructorTests.cs (23)
1371Assert.Empty(symbolInfo.CandidateSymbols);
1417Assert.Empty(symbolInfo.CandidateSymbols);
1477Assert.Empty(symbolInfo.CandidateSymbols);
1546Assert.Empty(symbolInfo.CandidateSymbols);
1635Assert.Empty(symbolInfo.CandidateSymbols);
1820Assert.Empty(symbolInfo.CandidateSymbols);
1860Assert.Empty(symbolInfo.CandidateSymbols);
2127Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
2131Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
2135Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
2144Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
2149Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
2154Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
2228Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
2232Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
2236Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
2367Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
2371Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
2375Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
2431Assert.Empty(symbolInfo.CandidateSymbols);
6100Assert.Empty(symbolInfo.CandidateSymbols);
7804Assert.Empty(symbolInfo.CandidateSymbols);
7820symbol = symbolInfo.CandidateSymbols.Single();
Semantics\RecordTests.cs (21)
21489Assert.Empty(symbolInfo.CandidateSymbols);
21535Assert.Empty(symbolInfo.CandidateSymbols);
21595Assert.Empty(symbolInfo.CandidateSymbols);
21664Assert.Empty(symbolInfo.CandidateSymbols);
21753Assert.Empty(symbolInfo.CandidateSymbols);
21938Assert.Empty(symbolInfo.CandidateSymbols);
21975Assert.Empty(symbolInfo.CandidateSymbols);
22050Assert.Empty(symbolInfo.CandidateSymbols);
22283Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
22287Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
22291Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
22300Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
22305Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
22310Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
22384Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
22388Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
22392Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
22523Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
22527Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
22531Assert.Equal(candidates, symbolInfo.CandidateSymbols.Select(m => m.ToTestDisplayString()));
28240Assert.Empty(symbolInfo.CandidateSymbols);
Microsoft.CodeAnalysis.CSharp.Features (5)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (180)
Semantics\BetterCandidates.cs (40)
1092Assert.Equal(4, symbolInfo.CandidateSymbols.Length);
1093Assert.Equal("void Program.M(A a)", symbolInfo.CandidateSymbols[0].ToTestDisplayString());
1094Assert.Equal("void Program.M(B b)", symbolInfo.CandidateSymbols[1].ToTestDisplayString());
1095Assert.Equal("void Program.M(C c)", symbolInfo.CandidateSymbols[2].ToTestDisplayString());
1096Assert.Equal("void Program.M(D d)", symbolInfo.CandidateSymbols[3].ToTestDisplayString());
1100Assert.Equal(4, symbolInfo.CandidateSymbols.Length);
1101Assert.Equal("void Program.M(A a)", symbolInfo.CandidateSymbols[0].ToTestDisplayString());
1102Assert.Equal("void Program.M(B b)", symbolInfo.CandidateSymbols[1].ToTestDisplayString());
1103Assert.Equal("void Program.M(C c)", symbolInfo.CandidateSymbols[2].ToTestDisplayString());
1104Assert.Equal("void Program.M(D d)", symbolInfo.CandidateSymbols[3].ToTestDisplayString());
1108Assert.Equal(4, symbolInfo.CandidateSymbols.Length);
1109Assert.Equal("void Program.M(A a)", symbolInfo.CandidateSymbols[0].ToTestDisplayString());
1110Assert.Equal("void Program.M(B b)", symbolInfo.CandidateSymbols[1].ToTestDisplayString());
1111Assert.Equal("void Program.M(C c)", symbolInfo.CandidateSymbols[2].ToTestDisplayString());
1112Assert.Equal("void Program.M(D d)", symbolInfo.CandidateSymbols[3].ToTestDisplayString());
1116Assert.Equal(4, symbolInfo.CandidateSymbols.Length);
1117Assert.Equal("void Program.M(A a)", symbolInfo.CandidateSymbols[0].ToTestDisplayString());
1118Assert.Equal("void Program.M(B b)", symbolInfo.CandidateSymbols[1].ToTestDisplayString());
1119Assert.Equal("void Program.M(C c)", symbolInfo.CandidateSymbols[2].ToTestDisplayString());
1120Assert.Equal("void Program.M(D d)", symbolInfo.CandidateSymbols[3].ToTestDisplayString());
1124Assert.Equal(4, symbolInfo.CandidateSymbols.Length);
1125Assert.Equal("void Program.M(A a)", symbolInfo.CandidateSymbols[0].ToTestDisplayString());
1126Assert.Equal("void Program.M(B b)", symbolInfo.CandidateSymbols[1].ToTestDisplayString());
1127Assert.Equal("void Program.M(C c)", symbolInfo.CandidateSymbols[2].ToTestDisplayString());
1128Assert.Equal("void Program.M(D d)", symbolInfo.CandidateSymbols[3].ToTestDisplayString());
1169Assert.Equal(4, symbolInfo.CandidateSymbols.Length);
1170Assert.Equal("void Program.M<System.Int32>(System.Int32 t, A a)", symbolInfo.CandidateSymbols[0].ToTestDisplayString());
1171Assert.Equal("void Program.M<System.Int32>(System.Int32 t, B b)", symbolInfo.CandidateSymbols[1].ToTestDisplayString());
1172Assert.Equal("void Program.M<System.Int32>(System.Int32 t, C c)", symbolInfo.CandidateSymbols[2].ToTestDisplayString());
1173Assert.Equal("void Program.M<System.Int32>(System.Int32 t, D d)", symbolInfo.CandidateSymbols[3].ToTestDisplayString());
1217Assert.Equal(4, symbolInfo.CandidateSymbols.Length);
1218Assert.Equal("void System.Int32.M<System.Int32>(A a)", symbolInfo.CandidateSymbols[0].ToTestDisplayString());
1219Assert.Equal("void System.Int32.M<System.Int32>(B b)", symbolInfo.CandidateSymbols[1].ToTestDisplayString());
1220Assert.Equal("void System.Int32.M<System.Int32>(C c)", symbolInfo.CandidateSymbols[2].ToTestDisplayString());
1221Assert.Equal("void System.Int32.M<System.Int32>(D d)", symbolInfo.CandidateSymbols[3].ToTestDisplayString());
1270Assert.Equal(4, symbolInfo.CandidateSymbols.Length);
1271Assert.Equal("B Program.Argument(IQ x)", symbolInfo.CandidateSymbols[0].ToTestDisplayString());
1272Assert.Equal("D Program.Argument(IW x)", symbolInfo.CandidateSymbols[1].ToTestDisplayString());
1273Assert.Equal("C Program.Argument(IX x)", symbolInfo.CandidateSymbols[2].ToTestDisplayString());
1274Assert.Equal("D Program.Argument(IY x)", symbolInfo.CandidateSymbols[3].ToTestDisplayString());
Semantics\BindingTests.cs (12)
3047Assert.Equal(1, symbolInfo1.CandidateSymbols.Length);
3048Assert.Equal("IApplicationBuilder IApplicationBuilder.Use(System.Func<RequestDelegate, RequestDelegate> middleware)", symbolInfo1.CandidateSymbols.Single().ToTestDisplayString());
3127Assert.Equal(1, symbolInfo1.CandidateSymbols.Length);
3128Assert.Equal("IApplicationBuilder IApplicationBuilder.Use(System.Func<HttpContext, System.Func<System.Threading.Tasks.Task>, System.Threading.Tasks.Task> middleware)", symbolInfo1.CandidateSymbols.Single().ToTestDisplayString());
3200Assert.Equal(2, symbolInfo1.CandidateSymbols.Length);
3201Assert.Equal("IApplicationBuilder IApplicationBuilder.Use(System.Func<RequestDelegate, RequestDelegate> middleware)", symbolInfo1.CandidateSymbols[0].ToTestDisplayString());
3202Assert.Equal("IApplicationBuilder IApplicationBuilder.Use(System.Func<HttpContext, System.Func<System.Threading.Tasks.Task>, System.Threading.Tasks.Task> middleware)", symbolInfo1.CandidateSymbols[1].ToTestDisplayString());
3285Assert.Equal(2, symbolInfo1.CandidateSymbols.Length);
3286Assert.Equal("IApplicationBuilder IApplicationBuilder.Use(System.Func<RequestDelegate, RequestDelegate> middleware)", symbolInfo1.CandidateSymbols[0].ToTestDisplayString());
3287Assert.Equal("IApplicationBuilder IApplicationBuilder.Use(System.Func<HttpContext, System.Func<System.Threading.Tasks.Task>, System.Threading.Tasks.Task> middleware)", symbolInfo1.CandidateSymbols[1].ToTestDisplayString());
3741Assert.Equal("event System.EventHandler Program.E1", symbolInfo2.CandidateSymbols.Single().ToTestDisplayString());
3746Assert.True(symbolInfo1.CandidateSymbols.IsEmpty);
Semantics\NameOfTests.cs (11)
688Assert.Equal("Goo", symbolInfo.CandidateSymbols[0].Name);
714Assert.Equal(2, symbolInfo.CandidateSymbols.Length);
750Assert.Equal(1, symbolInfo.CandidateSymbols.Length);
797Assert.Equal(3, symbolInfo.CandidateSymbols.Length);
834Assert.Equal(0, symbolInfo.CandidateSymbols.Length);
870Assert.Equal(0, symbolInfo.CandidateSymbols.Length);
916Assert.Equal(3, symbolInfo.CandidateSymbols.Length);
949Assert.Equal(0, symbolInfo.CandidateSymbols.Length);
1084symbolInfo.CandidateSymbols,
1248symbolInfo.CandidateSymbols,
1426Assert.Equal(1, symbolInfo.CandidateSymbols.Length);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (105)
Compilation\GetSemanticInfoTests.cs (26)
2846var candidates = symbolInfo.CandidateSymbols;
2877var candidates = symbolInfo.CandidateSymbols;
2937var candidates = symbolInfo.CandidateSymbols;
2970var candidates = symbolInfo.CandidateSymbols;
3029var candidates = symbolInfo.CandidateSymbols;
3062var candidates = symbolInfo.CandidateSymbols;
3103var candidates = symbolInfo.CandidateSymbols;
3136var candidates = symbolInfo.CandidateSymbols;
3177var candidates = symbolInfo.CandidateSymbols;
3210var candidates = symbolInfo.CandidateSymbols;
3762Assert.Equal(0, symbolInfo.CandidateSymbols.Length);
3790Assert.Equal(compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMember<IMethodSymbol>("M"), info.CandidateSymbols.Single());
3825Assert.Equal(2, info.CandidateSymbols.Length);
3850Assert.Equal(compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMember<IMethodSymbol>("M"), info.CandidateSymbols.Single());
3878Assert.Equal(1, info.CandidateSymbols.Length);
3959Assert.Equal(2, info.CandidateSymbols.Length);
4004Assert.Equal(1, info.CandidateSymbols.Length);
4444Assert.Equal(classNested, leftInfo.CandidateSymbols.Single());
4448Assert.Equal(classAnother, rightInfo.CandidateSymbols.Single());
4494Assert.Equal(propertyP.GetMethod, info.CandidateSymbols.Single());
4541Assert.Equal(classNested, typeInfo.CandidateSymbols.Single());
4600Assert.Equal("System.Int32 C.GetHashCode()", classInfo.CandidateSymbols.Single().ToTestDisplayString());
4602Assert.Equal("System.Int32 S.GetHashCode()", structInfo.CandidateSymbols.Single().ToTestDisplayString());
4647Assert.Equal("void C.M()", info.CandidateSymbols.Single().ToTestDisplayString());
4915Assert.True(symbolInfo.CandidateSymbols.Length > 0);
5482Assert.NotEqual(0, invocationInfo.CandidateSymbols.Length);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (21)
4175Assert.Equal(0, symbolInfo.CandidateSymbols.Length);
4183Assert.Equal(3, symbolInfo.CandidateSymbols.Length);
4184Assert.Equal("System.ObsoleteAttribute..ctor()", symbolInfo.CandidateSymbols[0].ToTestDisplayString());
4185Assert.Equal("System.ObsoleteAttribute..ctor(System.String message)", symbolInfo.CandidateSymbols[1].ToTestDisplayString());
4186Assert.Equal("System.ObsoleteAttribute..ctor(System.String message, System.Boolean error)", symbolInfo.CandidateSymbols[2].ToTestDisplayString());
4193Assert.Equal(0, symbolInfo.CandidateSymbols.Length);
4201Assert.Equal(0, symbolInfo.CandidateSymbols.Length);
4208Assert.Equal(0, symbolInfo.CandidateSymbols.Length);
4217Assert.Equal(0, symbolInfo.CandidateSymbols.Length);
4226Assert.Equal(0, symbolInfo.CandidateSymbols.Length);
4259Assert.Equal(0, symbolInfo.CandidateSymbols.Length);
4270Assert.Equal(3, symbolInfo.CandidateSymbols.Length);
4271Assert.Equal("System.ObsoleteAttribute..ctor()", symbolInfo.CandidateSymbols[0].ToTestDisplayString());
4272Assert.Equal("System.ObsoleteAttribute..ctor(System.String message)", symbolInfo.CandidateSymbols[1].ToTestDisplayString());
4273Assert.Equal("System.ObsoleteAttribute..ctor(System.String message, System.Boolean error)", symbolInfo.CandidateSymbols[2].ToTestDisplayString());
4287Assert.Equal(0, symbolInfo.CandidateSymbols.Length);
4309Assert.Equal(0, symbolInfo.CandidateSymbols.Length);
4320Assert.Equal(0, symbolInfo.CandidateSymbols.Length);
4333Assert.Equal(0, symbolInfo.CandidateSymbols.Length);
4356Assert.Equal(0, symbolInfo.CandidateSymbols.Length);
4378Assert.Equal(0, symbolInfo.CandidateSymbols.Length);
DocumentationComments\CrefTests.cs (23)
2018AssertEx.SetEqual(info.CandidateSymbols.Select(sym => sym.ContainingAssembly.Name), "Lib1", "Lib2");
2057Assert.Equal(0, info.CandidateSymbols.Length);
2111Assert.Equal(0, info.CandidateSymbols.Length);
3160Assert.Equal(0, info.CandidateSymbols.Length);
3183Assert.Equal(2, info.CandidateSymbols.Length);
3206Assert.Equal(2, info.CandidateSymbols.Length);
3229Assert.Equal(2, info.CandidateSymbols.Length);
3230Assert.Equal(MethodKind.Ordinary, ((IMethodSymbol)info.CandidateSymbols[0]).MethodKind);
3253Assert.Equal(2, info.CandidateSymbols.Length);
3254Assert.True(((IPropertySymbol)info.CandidateSymbols[0]).IsIndexer);
3277Assert.Equal(2, info.CandidateSymbols.Length);
3278Assert.Equal(MethodKind.Conversion, ((IMethodSymbol)info.CandidateSymbols[0]).MethodKind);
3301Assert.Equal(2, info.CandidateSymbols.Length);
3302Assert.Equal(MethodKind.UserDefinedOperator, ((IMethodSymbol)info.CandidateSymbols[0]).MethodKind);
3325Assert.Equal(2, info.CandidateSymbols.Length);
3326Assert.Equal(MethodKind.Constructor, ((IMethodSymbol)info.CandidateSymbols[0]).MethodKind);
3348Assert.Equal(0, info.CandidateSymbols.Length);
5954Assert.Equal(0, info.CandidateSymbols.Length);
6003Assert.Equal(0, info.CandidateSymbols.Length);
6351Assert.Equal(accessor, nonCrefInfo.CandidateSymbols.Single());
6366Assert.Equal(inheritedType, nonCrefInfo.CandidateSymbols.Single());
6433Assert.Equal(0, info.CandidateSymbols.Length);
6471Assert.Equal(0, info.CandidateSymbols.Length);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.Features (8)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (124)
Compilation\SemanticModelAPITests.vb (12)
1231Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
1243Assert.Equal(3, symbolInfo.CandidateSymbols.Length)
1244Assert.Equal("Sub System.ObsoleteAttribute..ctor()", symbolInfo.CandidateSymbols(0).ToTestDisplayString())
1245Assert.Equal("Sub System.ObsoleteAttribute..ctor(message As System.String)", symbolInfo.CandidateSymbols(1).ToTestDisplayString())
1246Assert.Equal("Sub System.ObsoleteAttribute..ctor(message As System.String, [error] As System.Boolean)", symbolInfo.CandidateSymbols(2).ToTestDisplayString())
1262Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
1285Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
1297Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
1310Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
1334Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
1346Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
4004Assert.Equal(0, info.CandidateSymbols.Length)
Semantics\GetExtendedSemanticInfoTests.vb (17)
9049Assert.Equal(1, symbolInfo.CandidateSymbols.Count)
9050Assert.Equal("X", symbolInfo.CandidateSymbols(0).ToTestDisplayString())
9069sortedMethodGroup = symbolInfo.CandidateSymbols.AsEnumerable().OrderBy(Function(s) s.ToTestDisplayString()).ToArray()
9113Assert.Equal(1, symbolInfo.CandidateSymbols.Count)
9114Assert.Equal("X", symbolInfo.CandidateSymbols(0).ToTestDisplayString())
9133Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
9177Assert.Equal(1, symbolInfo.CandidateSymbols.Count)
9178Assert.Equal("X", symbolInfo.CandidateSymbols(0).ToTestDisplayString())
9197Assert.Equal(1, symbolInfo.CandidateSymbols.Length)
9198Assert.Equal("Sub X..ctor(x As System.Int32)", symbolInfo.CandidateSymbols(0).ToTestDisplayString())
9242Assert.Equal(1, symbolInfo.CandidateSymbols.Count)
9243Assert.Equal("X", symbolInfo.CandidateSymbols(0).ToTestDisplayString())
9262sortedMethodGroup = symbolInfo.CandidateSymbols.AsEnumerable().OrderBy(Function(s) s.ToTestDisplayString()).ToArray()
9303Assert.Equal(1, symbolInfo.CandidateSymbols.Count)
9304Assert.Equal("X", symbolInfo.CandidateSymbols(0).ToTestDisplayString())
9322Assert.Equal(1, symbolInfo.CandidateSymbols.Length)
9323Assert.Equal("Sub X..ctor(x As System.Int32)", symbolInfo.CandidateSymbols(0).ToTestDisplayString())
Semantics\NameOfTests.vb (33)
549Assert.Equal("Sub C2(Of System.Int32).C3(Of System.Int16).M1()", symbolInfo.CandidateSymbols.Single.ToTestDisplayString())
621Assert.Equal(2, symbolInfo.CandidateSymbols.Length)
622Assert.Equal("Sub C1.M1(Of T)()", symbolInfo.CandidateSymbols(0).ToTestDisplayString())
623Assert.Equal("Sub C1.M1(x As System.Int32)", symbolInfo.CandidateSymbols(1).ToTestDisplayString())
673Assert.Equal("Sub C1.M1(Of T)()", symbolInfo.CandidateSymbols.Single.ToTestDisplayString())
723Assert.Equal("Sub C1.M1(Of System.Int32)()", symbolInfo.CandidateSymbols.Single.ToTestDisplayString())
776Assert.Equal("Sub C1.M1(Of System.Int32)()", symbolInfo.CandidateSymbols.Single.ToTestDisplayString())
826Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
965Assert.Equal("C2(Of System.Int32).Cc3(Of S)", symbolInfo.CandidateSymbols.Single.ToTestDisplayString())
1078Assert.Equal("C2.Cc3", symbolInfo.CandidateSymbols.Single.ToTestDisplayString())
1211Assert.Equal("Sub C2(Of System.Int32).C3(Of System.Int16).M1()", symbolInfo.CandidateSymbols.Single.ToTestDisplayString())
1293Assert.Equal("Property C2(Of System.Int32).C3(Of System.Int16).P1 As System.Int32", symbolInfo.CandidateSymbols.Single.ToTestDisplayString())
1375Assert.Equal("C2(Of System.Int32).C3(Of System.Int16).F1 As System.Int32", symbolInfo.CandidateSymbols.Single.ToTestDisplayString())
1456Assert.Equal("Event C2(Of System.Int32).C3(Of System.Int16).E1 As System.Action", symbolInfo.CandidateSymbols.Single.ToTestDisplayString())
1536Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
1667Assert.Equal(2, symbolInfo.CandidateSymbols.Length)
1668Assert.Equal("Sub Module2.Ambiguous()", symbolInfo.CandidateSymbols(0).ToTestDisplayString())
1669Assert.Equal("Sub Module3.Ambiguous()", symbolInfo.CandidateSymbols(1).ToTestDisplayString())
2073Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
2172Assert.Equal("Property C2.P1 As System.Int32", symbolInfo.CandidateSymbols.Single.ToTestDisplayString())
2273Assert.Equal("Function C2.M1() As System.Int32", symbolInfo.CandidateSymbols.Single.ToTestDisplayString())
2379Assert.Equal("Function C2.M1() As System.Int32", symbolInfo.CandidateSymbols.Single.ToTestDisplayString())
2483Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
2816Assert.Equal("Function Test.MTest() As System.String", symbolInfo.CandidateSymbols.Single.ToTestDisplayString())
3018Assert.Equal("Function Module1.MTest() As System.String", symbolInfo.CandidateSymbols.Single.ToTestDisplayString())
3079Assert.Equal("Property Module1.MTest As System.String", symbolInfo.CandidateSymbols.Single.ToTestDisplayString())
3264Assert.Equal(2, symbolInfo.CandidateSymbols.Length)
3265Assert.Equal("Sub C2.M1(x As System.Int32)", symbolInfo.CandidateSymbols(0).ToTestDisplayString())
3266Assert.Equal("Function C2.M1() As System.Int32", symbolInfo.CandidateSymbols(1).ToTestDisplayString())
3325Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
3382Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
3440Assert.Equal("Function Module1.MTest() As System.String", symbolInfo.CandidateSymbols.Single.ToTestDisplayString())
3496Assert.Equal("Property Module1.MTest As System.String", symbolInfo.CandidateSymbols.Single.ToTestDisplayString())
Semantics\OverloadResolution.vb (14)
4326Assert.Equal(1, symbolInfo.CandidateSymbols.Length)
4327Assert.Equal("Sub Module2.M1(x As System.Int32)", symbolInfo.CandidateSymbols(0).ToTestDisplayString())
4336Assert.Equal(2, symbolInfo.CandidateSymbols.Length)
4337Assert.Equal("Sub Module2.M1(x As System.Int32)", symbolInfo.CandidateSymbols(0).ToTestDisplayString())
4338Assert.Equal("Sub Module2.M1(x As System.Int64)", symbolInfo.CandidateSymbols(1).ToTestDisplayString())
4347Assert.Equal(1, symbolInfo.CandidateSymbols.Length)
4348Assert.Equal("Sub Module2.M2(x As System.Int64, y As System.Int32)", symbolInfo.CandidateSymbols(0).ToTestDisplayString())
4435Assert.Equal(1, symbolInfo.CandidateSymbols.Length)
4436Assert.Equal("Property Module2.P1(x As System.Int32) As System.Int32", symbolInfo.CandidateSymbols(0).ToTestDisplayString())
4445Assert.Equal(2, symbolInfo.CandidateSymbols.Length)
4446Assert.Equal("Property Module2.P1(x As System.Int32) As System.Int32", symbolInfo.CandidateSymbols(0).ToTestDisplayString())
4447Assert.Equal("Property Module2.P1(x As System.Int64) As System.Int32", symbolInfo.CandidateSymbols(1).ToTestDisplayString())
4456Assert.Equal(1, symbolInfo.CandidateSymbols.Length)
4457Assert.Equal("Property Module2.P2(x As System.Int64, y As System.Int32) As System.Int32", symbolInfo.CandidateSymbols(0).ToTestDisplayString())
Semantics\QueryExpressions_SemanticModel.vb (22)
1105Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
1178Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
1184Assert.Equal(0, commonSymbolInfo.CandidateSymbols.Length)
1191Assert.Equal(1, symbolInfo.CandidateSymbols.Length)
1192Assert.Equal("Function QueryAble.Select(x As System.Func(Of System.Int32, System.Int32)) As QueryAble", symbolInfo.CandidateSymbols(0).ToTestDisplayString())
1199Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
1206Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
1213Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
1220Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
1227Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
1435Assert.Equal(0, commonSymbolInfo.CandidateSymbols.Length)
1486Assert.Equal(0, commonSymbolInfo.CandidateSymbols.Length)
1498Assert.Equal(0, commonSymbolInfo.CandidateSymbols.Length)
1713Assert.Equal(0, commonSymbolInfo.CandidateSymbols.Length)
1732Assert.Equal(0, commonSymbolInfo.CandidateSymbols.Length)
3752Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
3757Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
3765Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
3770Assert.Equal(0, symbolInfo.CandidateSymbols.Length)
3823Assert.Equal(2, info.CandidateSymbols.Length)
3858Assert.Equal(0, aggrClauseSymInfo.Select1.CandidateSymbols.Length)
3860Assert.Equal(0, aggrClauseSymInfo.Select2.CandidateSymbols.Length)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (11)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
Microsoft.CodeAnalysis.Workspaces (23)