2 writes to Symbol
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CompilationTestUtils.cs (2)
287summary.Symbol = symbolInfo.Symbol; 329summary.Symbol = symbolInfo.Symbol;
804 references to Symbol
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (143)
Semantics\ExpressionBodiedMemberTests.cs (16)
79var semanticSymbol = semanticInfo.Symbol; 105Assert.Null(semanticInfo.Symbol); 124var sym = Assert.IsType<SourcePropertySymbol>(info.Symbol.GetSymbol()); 140Assert.Equal("i", semanticInfo.Symbol.Name); 141Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 158Assert.Equal("c", semanticInfo.Symbol.Name); 159Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 173Assert.Equal("s", semanticInfo.Symbol.Name); 174Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 208var sym = semanticInfo.Symbol; 230var semanticSymbol = semanticInfo.Symbol; 261Assert.Equal("t", semanticInfo.Symbol.Name); 262var m = semanticInfo.Symbol.ContainingSymbol.GetSymbol<SourceOrdinaryMethodSymbol>(); 267Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 286var semanticSymbol = semanticInfo.Symbol; 319var semanticSymbol = semanticInfo.Symbol;
Semantics\FunctionPointerTests.cs (1)
3968Assert.Equal("delegate*<?, System.Void>", semanticInfo.Symbol.ToTestDisplayString(includeNonNullable: false));
Semantics\InteractiveSemanticModelTests.cs (11)
127var symbol = bindInfo.Symbol; 142var symbol = bindInfo.Symbol; 163Assert.Equal("System.Random", semanticInfo.Symbol.ToTestDisplayString()); 164Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 188Assert.Null(semanticInfo.Symbol); 214Assert.Equal("Script.var", semanticInfo.Symbol.ToTestDisplayString()); 215Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 242Assert.Null(semanticInfo.Symbol); 266Assert.Equal("c", semanticInfo.Symbol.Name); 267Assert.Equal(SymbolKind.RangeVariable, semanticInfo.Symbol.Kind); 351var method = bindInfo.Symbol.ToDisplayString();
Semantics\InterpolationTests.cs (1)
4618AssertEx.Equal("System.String System.String.op_Addition(System.String left, System.String right)", semanticInfo.Symbol.ToTestDisplayString());
Semantics\QueryTests.cs (27)
1486Assert.Equal(x, model.GetSemanticInfoSummary(xPy.Left).Symbol); 1487Assert.Equal(y, model.GetSemanticInfoSummary(xPy.Right).Symbol); 1488Assert.Equal(z, model.GetSemanticInfoSummary(xPyPz.Right).Symbol); 1695Assert.Equal(x, model.GetSemanticInfoSummary(xPy.Left).Symbol); 1696Assert.Equal(y, model.GetSemanticInfoSummary(xPy.Right).Symbol); 1697Assert.Equal(z, model.GetSemanticInfoSummary(xPyPz.Right).Symbol); 1777Assert.Equal("OrderByDescending", oinfo0.Symbol.Name); 1780Assert.Equal("ThenBy", oinfo1.Symbol.Name); 2180Assert.Equal(SymbolKind.RangeVariable, info.Symbol.Kind); 2182var m = (IMethodSymbol)info2.Symbol; 2210Assert.Equal(SymbolKind.RangeVariable, info.Symbol.Kind); 2237Assert.Equal(SymbolKind.RangeVariable, info.Symbol.Kind); 2238Assert.Equal("x", info.Symbol.Name); 2243Assert.Equal(SymbolKind.RangeVariable, info.Symbol.Kind); 2244Assert.Equal("w", info.Symbol.Name); 2249Assert.Equal("System.Int32 System.Int32.op_Addition(System.Int32 left, System.Int32 right)", info2.Symbol.ToTestDisplayString()); 2398Assert.Null(symbolInfoForSelect.Symbol); 2432Assert.Equal(names[count++], symbolInfo.Symbol.Name); 2487Assert.Null(symbolInfoForSelect.Symbol); 2551Assert.Null(symbolInfoForSelect.Symbol); 2586Assert.Null(symbolInfoForOrdering.Symbol); 2719Assert.Null(symbolInfo.Symbol); 2745Assert.Null(symbolInfo.Symbol); 2907Assert.Equal("Select", infoSelect.Symbol.Name); 2940Assert.Equal("Select", infoSelect.Symbol.Name); 3477Assert.Equal(x, speculativeModel.GetSemanticInfoSummary(selectExpression).Symbol); 3610Assert.Equal(names[count++], symbolInfo.Symbol.Name);
Semantics\RawInterpolationTests_Handler.cs (1)
2919AssertEx.Equal("System.String System.String.op_Addition(System.String left, System.String right)", semanticInfo.Symbol.ToTestDisplayString());
Semantics\ScriptSemanticsTests.cs (2)
248Assert.Null(summary.Symbol); 565Assert.Null(summary.Symbol);
Semantics\StackAllocInitializerTests.cs (47)
373Assert.Null(stackallocInfo.Symbol); 379Assert.Null(element0Info.Symbol); 387Assert.Null(stackallocInfo.Symbol); 393Assert.Equal("<empty anonymous type>..ctor()", element0Info.Symbol.ToTestDisplayString()); 401Assert.Null(stackallocInfo.Symbol); 407Assert.Equal("Test.S s", element0Info.Symbol.ToTestDisplayString()); 449Assert.Null(stackallocInfo.Symbol); 455Assert.Null(element0Info.Symbol); 463Assert.Null(stackallocInfo.Symbol); 469Assert.Equal("<empty anonymous type>..ctor()", element0Info.Symbol.ToTestDisplayString()); 477Assert.Null(stackallocInfo.Symbol); 483Assert.Equal("Test.S s", element0Info.Symbol.ToTestDisplayString()); 2365Assert.Null(stackallocInfo.Symbol); 2371Assert.Null(element0Info.Symbol); 2377Assert.Null(element1Info.Symbol); 2383Assert.Null(sizeInfo.Symbol); 2393Assert.Null(stackallocInfo.Symbol); 2399Assert.Null(element0Info.Symbol); 2405Assert.Null(element1Info.Symbol); 2411Assert.Null(sizeInfo.Symbol); 2421Assert.Null(stackallocInfo.Symbol); 2427Assert.Null(element0Info.Symbol); 2433Assert.Null(element1Info.Symbol); 2439Assert.Null(sizeInfo.Symbol); 2471Assert.Null(stackallocInfo.Symbol); 2477Assert.Null(element0Info.Symbol); 2483Assert.Null(element1Info.Symbol); 2493Assert.Null(stackallocInfo.Symbol); 2499Assert.Null(element0Info.Symbol); 2505Assert.Null(element1Info.Symbol); 2515Assert.Null(stackallocInfo.Symbol); 2521Assert.Null(element0Info.Symbol); 2527Assert.Null(element1Info.Symbol); 2571Assert.Null(stackallocInfo.Symbol); 2577Assert.Null(element0Info.Symbol); 2583Assert.Null(element1Info.Symbol); 2589Assert.Null(sizeInfo.Symbol); 2599Assert.Null(stackallocInfo.Symbol); 2605Assert.Equal("ref System.Int16 System.Span<System.Int16>.this[System.Int32 i] { get; }", element0Info.Symbol.ToTestDisplayString()); 2611Assert.Equal("System.Int32 System.Span<System.Int16>.Length { get; }", element1Info.Symbol.ToTestDisplayString()); 2617Assert.Equal("System.Int32 System.Span<System.Int16>.Length { get; }", sizeInfo.Symbol.ToTestDisplayString()); 2655Assert.Null(stackallocInfo.Symbol); 2661Assert.Null(element0Info.Symbol); 2667Assert.Null(element1Info.Symbol); 2677Assert.Null(stackallocInfo.Symbol); 2683Assert.Equal("ref System.Double System.Span<System.Double>.this[System.Int32 i] { get; }", element0Info.Symbol.ToTestDisplayString()); 2689Assert.Equal("System.Int32 System.Span<System.Double>.Length { get; }", element1Info.Symbol.ToTestDisplayString());
Semantics\UnsafeTests.cs (37)
7858var receiverSymbol = receiverSummary.Symbol; 7870Assert.Equal(structMethod1, methodGroupSummary.Symbol.GetSymbol()); 7879Assert.Equal(structMethod1, callSummary.Symbol.GetSymbol()); 7925var receiverSymbol = receiverSummary.Symbol; 7937Assert.Equal(structMethod1, methodGroupSummary.Symbol.GetSymbol()); // Have enough info for overload resolution. 7944Assert.Equal(structMethod1, callSummary.Symbol.GetSymbol()); // Have enough info for overload resolution. 8169var receiverSymbol = receiverSummary.Symbol; 8181var indexSymbol = indexSummary.Symbol; 8193Assert.Null(accessSummary.Symbol); 8236var receiverSymbol = receiverSummary.Symbol; 8248var indexSymbol = indexSummary.Symbol; 8252Assert.Null(accessSummary.Symbol); 8294var receiverSymbol = receiverSummary.Symbol; 8306var indexSymbol = indexSummary.Symbol; 8310Assert.Null(accessSummary.Symbol); 8867Assert.Null(summary.Symbol); 8871Assert.NotNull(summary.Symbol); 8872var summaryMethod = (IMethodSymbol)summary.Symbol; 8914Assert.Equal("System.Int64 System.Byte*.op_Subtraction(System.Byte* left, System.Byte* right)", summary.Symbol.ToTestDisplayString()); 9329Assert.Null(summary.Symbol); 9333Assert.NotNull(summary.Symbol); 9334var summaryMethod = (IMethodSymbol)summary.Symbol; 10243Assert.Null(summary0.Symbol); 10248Assert.Equal(arraySymbol, summary1.Symbol.GetSymbol()); 10252Assert.Null(summary2.Symbol); 10310Assert.Null(summary0.Symbol); 10317Assert.Equal(arraySymbol, summary1.Symbol.GetSymbol()); 10323Assert.Null(summary2.Symbol); 10631var type = typeSummary.Symbol as ITypeSymbol; 10646Assert.Null(sizeOfSummary.Symbol); 10693var type = typeSummary.Symbol as ITypeSymbol; 10708Assert.Null(sizeOfSummary.Symbol); 10753var type = typeSummary.Symbol as ITypeSymbol; 10768Assert.Null(sizeOfSummary.Symbol); 11314Assert.Null(stackAllocSummary.Symbol); 11326Assert.Equal(typeSummary.Symbol, typeSummary.Type); 11338var countSymbol = (ILocalSymbol)countSummary.Symbol;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (658)
Compilation\GetSemanticInfoTests.cs (25)
980Assert.Equal("System.Boolean System.Int32.op_Equality(System.Int32 left, System.Int32 right)", info.Symbol.ToTestDisplayString()); 1004Assert.Equal("System.Boolean System.Int32.op_LessThan(System.Int32 left, System.Int32 right)", info.Symbol.ToTestDisplayString()); 1026IMethodSymbol methodSymbol = (IMethodSymbol)bindInfo.Symbol; 1169var parameterSymbol = (IParameterSymbol)bindInfo.Symbol; 1198var parameterSymbol = (IParameterSymbol)bindInfo.Symbol; 1222Assert.Null(bindInfo.Symbol); 1245Assert.Equal(systemActionType, bindInfo.Symbol); 1273Assert.Equal(eventSymbol, bindInfo.Symbol); 1301Assert.Equal(eventSymbol, bindInfo.Symbol); 1328Assert.Equal(eventSymbol.AddMethod, bindInfo.Symbol); 1355Assert.Equal(eventSymbol.AddMethod, bindInfo.Symbol); 1378Assert.Null(bindInfo.Symbol); 1418Assert.Equal(indexerSymbol, bindInfo.Symbol); 1459Assert.Null(bindInfo.Symbol); 1493Assert.Null(bindInfo.Symbol); 1529Assert.Null(bindInfo.Symbol); 1560var symbol = bindInfo.Symbol; 1582var symbol = bindInfo.Symbol; 1610var symbol = bindInfo.Symbol; 1706var symbol = bindInfo.Symbol; 1741var symbol = bindInfo.Symbol; 1776var symbol = bindInfo.Symbol; 1812var symbol = bindInfo.Symbol; 3556Assert.Equal(SymbolKind.Namespace, info.Symbol.Kind); 4304Assert.Null(info.Symbol);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (26)
2259Assert.NotNull(info.Symbol); 2260Assert.Equal("F", info.Symbol.Name); 2295Assert.Null(info.Symbol); 2331Assert.Null(info.Symbol); 2367Assert.Null(info.Symbol); 2404Assert.NotNull(info.Symbol); 2434Assert.NotNull(info.Symbol); 2466Assert.NotNull(info.Symbol); 2503Assert.NotNull(info.Symbol); 2504Assert.Equal("System", info.Symbol.Name); 2570Assert.NotNull(info.Symbol); 2599Assert.NotNull(info.Symbol); 2600Assert.Equal("System", info.Symbol.Name); 2624Assert.Null(info.Symbol); 2764Assert.NotNull(info.Symbol); 2817var n1 = info.Symbol; 3276Assert.NotNull(initInfo.Symbol); 3277Assert.Equal("C.N(int)", initInfo.Symbol.ToDisplayString()); 3289Assert.NotNull(argInfo.Symbol); 3290Assert.Equal("C.N()", argInfo.Symbol.ToDisplayString()); 3671Assert.Equal(SymbolKind.Parameter, info.Symbol.Kind); 3672var parameter = (IParameterSymbol)info.Symbol; 3712var symbol = model.GetSemanticInfoSummary(gotoStatement.Expression).Symbol; 3849Assert.Equal(SymbolKind.Method, symbolInfo.Symbol.Kind); 4092Assert.Equal(fieldB, semanticInfoExpression.Symbol); 4097Assert.Equal("System.Console", semanticInfoExpression.Symbol.ToTestDisplayString());
Compilation\SemanticModelGetSemanticInfoTests.cs (542)
51Assert.Null(semanticInfo.Symbol); 90Assert.Equal("K<System.Int32>", semanticInfo.Symbol.ToTestDisplayString()); 91Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 121Assert.Null(semanticInfo.Symbol); 155Assert.Null(semanticInfo.Symbol); 196Assert.Null(semanticInfo.Symbol); 237Assert.Null(semanticInfo.Symbol); 277Assert.Null(semanticInfo.Symbol); 314Assert.Null(semanticInfo.Symbol); 343var symbol = semanticInfo.Symbol; 374Assert.Null(semanticInfo.Symbol); 407Assert.Equal("Test.Base", semanticInfo.Symbol.ToTestDisplayString()); 431var symbol = semanticInfo.Symbol; 467Assert.Null(semanticInfo.Symbol); 507Assert.Null(semanticInfo.Symbol); 550Assert.Null(semanticInfo.Symbol); 598Assert.Null(semanticInfo.Symbol); 646Assert.Null(semanticInfo.Symbol); 699Assert.Null(semanticInfo.Symbol); 730Assert.NotNull(semanticInfo.Symbol); 766Assert.NotNull(semanticInfo.Symbol); 800Assert.Null(semanticInfo.Symbol); 839Assert.Null(semanticInfo.Symbol); 925Utils.CheckSymbol(semanticInfo.Symbol, 975Utils.CheckSymbol(semanticInfo.Symbol, 994Assert.Null(semanticInfo.Symbol); 1014Assert.Null(semanticInfo.Symbol); 1034Assert.Null(semanticInfo.Symbol); 1058Utils.CheckSymbol(semanticInfo.Symbol, 1079Assert.Null(semanticInfo.Symbol); 1453Utils.CheckSymbol(semanticInfo.Symbol, "string A.P[int x, string y]"); 1471Utils.CheckSymbol(semanticInfo.Symbol, "string A.P[int x, string y]"); 1483Utils.CheckSymbol(semanticInfo.Symbol, "object A.P[int x = 0]"); 1498Assert.Null(semanticInfo.Symbol); 1519Assert.Null(semanticInfo.Symbol); 1592Utils.CheckSymbol(semanticInfo.Symbol, "object B.P1[object index]"); 1607Utils.CheckSymbol(semanticInfo.Symbol, "object B.P2[string index]"); 1622Utils.CheckSymbol(semanticInfo.Symbol, "object A.P3[object index]"); 1648Assert.Equal("C this", semanticInfo.Symbol.ToTestDisplayString()); 1649Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 1692Assert.Equal("System", semanticInfo.Symbol.ToTestDisplayString()); 1693Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind); 1724Assert.Equal("System.Int32 i", semanticInfo.Symbol.ToTestDisplayString()); 1725Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 1753Assert.Null(semanticInfo.Symbol); 1784Assert.Equal("System.Int32 System.Int32.op_Increment(System.Int32 value)", semanticInfo.Symbol.ToTestDisplayString()); 1813Assert.Null(semanticInfo.Symbol); 1843Assert.Null(semanticInfo.Symbol); 1873Assert.Null(semanticInfo.Symbol); 1903Assert.Equal("System.String System.String.op_Addition(System.String left, System.Object right)", semanticInfo.Symbol.ToTestDisplayString()); 1932Assert.Equal("System.String System.String.op_Addition(System.String left, System.Object right)", semanticInfo.Symbol.ToTestDisplayString()); 1962Assert.Null(semanticInfo.Symbol); 1992Assert.Equal("System.UInt32 System.UInt32.op_Addition(System.UInt32 left, System.UInt32 right)", semanticInfo.Symbol.ToTestDisplayString()); 2022Assert.Equal("ulong.operator +(ulong, ulong)", semanticInfo.Symbol.ToString()); 2054Assert.Equal("System.Boolean System.Boolean.op_LogicalNot(System.Boolean value)", semanticInfo.Symbol.ToTestDisplayString()); 2086Assert.Null(semanticInfo.Symbol); 2123Assert.Equal("System.Exception e", semanticInfo.Symbol.ToTestDisplayString()); 2124Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 2156Assert.Equal("void Program.Ref<System.Object>(System.Object array)", semanticInfo.Symbol.ToTestDisplayString()); 2157Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2196Assert.Equal("N1.I1", semanticInfo.Symbol.ToTestDisplayString()); 2197Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 2224Assert.Null(semanticInfo.Symbol); 2268Assert.Equal("A.Goo", semanticInfo.Symbol.ToTestDisplayString()); 2269Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 2303Assert.Equal("System.String System.Enum.ToString()", semanticInfo.Symbol.ToTestDisplayString()); 2304Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2353Assert.Equal("System.Int32 N1.I1.Method()", semanticInfo.Symbol.ToTestDisplayString()); 2354Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2399Assert.Equal("void NGoo.Goo.method()", semanticInfo.Symbol.ToTestDisplayString()); 2400Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2442Assert.Equal("void BaseClass.MyMeth()", semanticInfo.Symbol.ToTestDisplayString()); 2443Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2497Assert.Equal("System.Int32 B.goo(ref System.String x, System.Int64 y, System.Int64 z)", semanticInfo.Symbol.ToTestDisplayString()); 2498Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2549Assert.Equal("System.Int32 B.goo(params System.Int32[] x)", semanticInfo.Symbol.ToTestDisplayString()); 2550Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2581Assert.Null(semanticInfo.Symbol); 2617Assert.Equal("A", semanticInfo.Symbol.ToTestDisplayString()); 2618Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 2654Assert.Equal("A..ctor(System.Int32 x)", semanticInfo.Symbol.ToTestDisplayString()); 2655Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2695Assert.Null(semanticInfo.Symbol); 2736Assert.Null(semanticInfo.Symbol); 2786Assert.Null(semanticInfo.Symbol); 2832Assert.Null(semanticInfo.Symbol); 2875Assert.Equal("System.Int32 A.f(System.String z)", semanticInfo.Symbol.ToTestDisplayString()); 2876Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2911Assert.Equal("System.Int32 A.f(System.String z)", semanticInfo.Symbol.ToTestDisplayString()); 2912Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2951Assert.Null(semanticInfo.Symbol); 2987Assert.Null(semanticInfo.Symbol); 3021Assert.Null(semanticInfo.Symbol); 3077Assert.Equal("System.String MySystem.IO.StreamReader.NullStreamReader.ReadLine()", semanticInfo.Symbol.ToTestDisplayString()); 3078Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3122Assert.Equal("System.String ISomething.ToString()", semanticInfo.Symbol.ToTestDisplayString()); 3123Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3162Assert.Equal("void MyClass.MyMeth()", semanticInfo.Symbol.ToTestDisplayString()); 3163Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3204Assert.Equal("void D.M2(System.Int32 x)", semanticInfo.Symbol.ToTestDisplayString()); 3205Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3250Assert.Equal("void C2.M1()", semanticInfo.Symbol.ToTestDisplayString()); 3251Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3289Assert.Equal("void TestClass.Test()", semanticInfo.Symbol.ToTestDisplayString()); 3290Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3325Assert.Equal("void IB.M()", semanticInfo.Symbol.ToTestDisplayString()); 3326Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3362Assert.Equal("void IR.M()", semanticInfo.Symbol.ToTestDisplayString()); 3363Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3399Assert.Equal("System.Int32 Test.Meth1()", semanticInfo.Symbol.ToTestDisplayString()); 3400Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3430Assert.Null(semanticInfo.Symbol); 3462Assert.Null(semanticInfo.Symbol); 3497Assert.Equal("System.Void", semanticInfo.Symbol.ToTestDisplayString()); 3498Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3528Assert.Null(semanticInfo.Symbol); 3560Assert.Equal("System", semanticInfo.Symbol.ToTestDisplayString()); 3561Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind); 3594Assert.Equal("N1.N2.A1", semanticInfo.Symbol.ToTestDisplayString()); 3595Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3632Assert.Equal("H<A>", semanticInfo.Symbol.ToTestDisplayString()); 3633Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3676Assert.Equal("H<H<A>, H<A>>", semanticInfo.Symbol.ToTestDisplayString()); 3677Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3710Assert.Equal("N1.N2.A2.A1", semanticInfo.Symbol.ToTestDisplayString()); 3711Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3744Assert.Equal("N1.NC1.A1", semanticInfo.Symbol.ToTestDisplayString()); 3745Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3778Assert.Equal("A.B", semanticInfo.Symbol.ToTestDisplayString()); 3779Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3808Assert.Equal("DateTime dt", semanticInfo.Symbol.ToTestDisplayString()); 3809Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 3840Assert.Null(semanticInfo.Symbol); 3869Assert.Equal("C..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 3870Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3904Assert.Equal("T.T", semanticInfo.Symbol.ToTestDisplayString()); 3905Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3941Assert.Null(semanticInfo.Symbol); 3977Assert.Null(semanticInfo.Symbol); 4012Assert.Equal("A<B.Y.Z>", semanticInfo.Symbol.ToTestDisplayString()); 4013Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 4043Assert.Equal("System.Int32 x", semanticInfo.Symbol.ToTestDisplayString()); 4044Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 4074Assert.Null(semanticInfo.Symbol); 4111Assert.Equal("System", semanticInfo.Symbol.ToTestDisplayString()); 4112Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind); 4140Assert.Equal("System.Int32 System.String.Length { get; }", semanticInfo.Symbol.ToTestDisplayString()); 4141Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind); 4164Assert.Null(semanticInfo.Symbol); 4190Assert.Null(semanticInfo.Symbol); 4218Assert.Null(semanticInfo.Symbol); 4251Assert.Equal("C<T1>..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 4285Assert.Null(semanticInfo.Symbol); 4323Assert.Equal("B..ctor(System.String a, System.String b)", semanticInfo.Symbol.ToTestDisplayString()); 4324Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 4377Assert.Null(semanticInfo.Symbol); 4408Assert.NotNull(semanticInfo.Symbol); 4409Assert.Equal("A", semanticInfo.Symbol.ToTestDisplayString()); 4410Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind); 4448Assert.NotNull(semanticInfo.Symbol); 4479Assert.Equal("System.Object value", semanticInfo.Symbol.ToTestDisplayString()); 4480Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 4504Assert.Equal("System.String value", semanticInfo.Symbol.ToTestDisplayString()); 4522Assert.Equal("System.Int16 i", semanticInfo.Symbol.ToTestDisplayString()); 4546var symbol = semanticInfo.Symbol; 4574Assert.Equal("System.Int32 j", semanticInfo.Symbol.ToTestDisplayString()); 4575Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 4583var symbol = (ILocalSymbol)semanticInfo.Symbol; 4612Assert.Equal("System.Int32 C.j", semanticInfo.Symbol.ToTestDisplayString()); 4613Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 4621var symbol = (IFieldSymbol)semanticInfo.Symbol; 4648Assert.Equal("System.Int32 System.Int32.op_Addition(System.Int32 left, System.Int32 right)", semanticInfo.Symbol.ToTestDisplayString()); 4678Assert.Equal("E.C", semanticInfo.Symbol.ToTestDisplayString()); 4679Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 4687var symbol = (IFieldSymbol)semanticInfo.Symbol; 4716Assert.Equal("E.Y", semanticInfo.Symbol.ToTestDisplayString()); 4717Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 4724var symbol = (IFieldSymbol)semanticInfo.Symbol; 4752Assert.Equal("E.B", semanticInfo.Symbol.ToTestDisplayString()); 4753Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 4760var symbol = (IFieldSymbol)semanticInfo.Symbol; 4788Assert.Equal("E.D", semanticInfo.Symbol.ToTestDisplayString()); 4789Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 4796var symbol = (IFieldSymbol)semanticInfo.Symbol; 4819Assert.Equal("E.B", semanticInfo.Symbol.ToTestDisplayString()); 4820Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 4828var symbol = (IFieldSymbol)semanticInfo.Symbol; 4856Assert.Equal("System.String format", semanticInfo.Symbol.ToTestDisplayString()); 4857Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 4883Assert.Equal("System.Int32 x", semanticInfo.Symbol.ToTestDisplayString()); 4884Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 4886Assert.Equal(MethodKind.Constructor, ((IMethodSymbol)semanticInfo.Symbol.ContainingSymbol).MethodKind); 4892Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.ContainingSymbol.Kind); 4893Assert.Equal(MethodKind.Constructor, ((IMethodSymbol)semanticInfo.Symbol.ContainingSymbol).MethodKind); 4922Assert.Null(semanticInfo.Symbol); 4969Assert.Null(semanticInfo.Symbol); 5021Assert.Null(semanticInfo.Symbol); 5072Assert.Equal("Class1", semanticInfo.Symbol.ToTestDisplayString()); 5111Assert.Null(semanticInfo.Symbol); 5158Assert.Null(semanticInfo.Symbol); 5204Assert.Equal("Class1..ctor(System.Int32 a, System.Int64 b)", semanticInfo.Symbol.ToTestDisplayString()); 5205Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 5244Assert.Equal("Class1", semanticInfo.Symbol.ToTestDisplayString()); 5245Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 5283Assert.Equal("Class1..ctor(System.Int32 a, System.Int64 b)", semanticInfo.Symbol.ToTestDisplayString()); 5284Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 5325Assert.Equal("Class1..ctor(System.Int32 a, System.Int64 b)", semanticInfo.Symbol.ToTestDisplayString()); 5326Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 5407Assert.Null(semanticInfo.Symbol); 5449Assert.Null(semanticInfo.Symbol); 5485Assert.Equal("System.Boolean System.Int32.op_Equality(System.Int32 left, System.Int32 right)", semanticInfo.Symbol.ToTestDisplayString()); 5514Assert.Equal("System.Boolean System.Int32.op_LessThan(System.Int32 left, System.Int32 right)", semanticInfo.Symbol.ToTestDisplayString()); 5547Assert.Equal("System.Int32 x", semanticInfo.Symbol.ToTestDisplayString()); 5548Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 5554Assert.True(semanticInfo.Symbol.GetSymbol().IsFromCompilation(compilation)); 5579Assert.Equal("System.Int32 C.x", semanticInfo.Symbol.ToTestDisplayString()); 5580Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 5611Assert.Equal("System.Int32 C.x", semanticInfo.Symbol.ToTestDisplayString()); 5612Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 5637Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 5661Assert.Equal("lambda expression", semanticInfo.Symbol.ToTestDisplayString()); 5662Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 5665var lambdaSym = (IMethodSymbol)(semanticInfo.Symbol); 5697Assert.Equal("lambda expression", semanticInfo.Symbol.ToTestDisplayString()); 5698Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 5701var lambdaSym = (IMethodSymbol)(semanticInfo.Symbol); 5733Assert.Null(semanticInfo.Symbol); 5766Assert.Null(semanticInfo.Symbol); 5800Assert.Equal("System.Boolean c", semanticInfo.Symbol.ToTestDisplayString()); 5801Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 5833Assert.Null(semanticInfo.Symbol); 5867Assert.Equal("System.Boolean c", semanticInfo.Symbol.ToTestDisplayString()); 5868Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 5901Assert.Null(semanticInfo.Symbol); 5936Assert.Equal("System.Boolean c", semanticInfo.Symbol.ToTestDisplayString()); 5937Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 5969Assert.Null(semanticInfo.Symbol); 6003Assert.Equal("System.Boolean c", semanticInfo.Symbol.ToTestDisplayString()); 6004Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 6036Assert.Null(semanticInfo.Symbol); 6064Assert.Null(semanticInfo.Symbol); 6096Assert.Null(semanticInfo.Symbol); 6122Assert.Equal("System.Object..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 6123Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 6149Assert.Equal("C..ctor(System.Int32 x)", semanticInfo.Symbol.ToTestDisplayString()); 6150Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 6182Assert.Equal("MyClass..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 6183Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 6232Assert.Equal("args", semanticInfo.Symbol.Name); 6253var symbol = semanticInfo.Symbol; 6334Assert.Equal("Outer.Inner a", semanticInfo.Symbol.ToTestDisplayString()); 6335Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 6343var param = (IParameterSymbol)semanticInfo.Symbol; 6370var symbol = semanticInfo.Symbol; 6401Assert.Null(semanticInfo.Symbol); 6441Assert.Equal("System.Int32 C.Goo(System.Int32 i)", semanticInfo.Symbol.ToTestDisplayString()); 6442Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 6471Assert.Equal("void S.E(this System.Object o)", semanticInfo.Symbol.ToTestDisplayString()); 6494Assert.Equal("void System.Object.E()", semanticInfo.Symbol.ToTestDisplayString()); 6524Assert.Equal("System.String", semanticInfo.Symbol.ToTestDisplayString()); 6525Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 6559Assert.Equal("System.String", semanticInfo.Symbol.ToTestDisplayString()); 6560Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 6596Assert.Equal("N1.var", semanticInfo.Symbol.ToTestDisplayString()); 6597Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 6646Assert.Equal("C", semanticInfo.Symbol.ToTestDisplayString()); 6680Assert.Null(semanticInfo.Symbol); 6811Assert.Null(semanticInfo.Symbol); 6880Assert.Equal("System.String TestAttribute.F", semanticInfo.Symbol.ToTestDisplayString()); 6881Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 6925Assert.Equal("System.Double TestAttribute.P { get; set; }", semanticInfo.Symbol.ToTestDisplayString()); 6926Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind); 6970Assert.Null(semanticInfo.Symbol); 7000Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7029Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7052Assert.Equal("Struct", semanticInfo.Symbol.ToTestDisplayString()); 7053Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 7083Assert.Equal("Struct..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 7084Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7111Assert.Equal("MyAttribute..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 7112Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7142Assert.Equal("N1.MyAttribute..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 7143Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7174Assert.Null(semanticInfo.Symbol); 7206Assert.Null(semanticInfo.Symbol); 7238Assert.Null(semanticInfo.Symbol); 7267Assert.Equal("System.Func<System.Int32, System.Int32>", semanticInfo.Symbol.ToTestDisplayString()); 7293Assert.Equal("System.Object..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 7294Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7295Assert.Equal(MethodKind.Constructor, ((IMethodSymbol)semanticInfo.Symbol).MethodKind); 7321Assert.Equal("C..ctor(System.Int32 x)", semanticInfo.Symbol.ToTestDisplayString()); 7322Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7348Assert.Null(semanticInfo.Symbol); 7404Assert.Null(semanticInfo.Symbol); 7430Assert.Null(semanticInfo.Symbol); 7458Assert.Null(semanticInfo.Symbol); 7491Assert.Null(semanticInfo.Symbol); 7527Assert.NotNull(semanticInfo.Symbol); 7557Assert.Equal("System.Int32 z", semanticInfo.Symbol.ToTestDisplayString()); 7558Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 7590Assert.Null(semanticInfo.Symbol); 7628Assert.Null(semanticInfo.Symbol); 7665Assert.Equal("System.Int32 x", semanticInfo.Symbol.ToTestDisplayString()); 7666Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 7704Assert.Equal("System.String str1", semanticInfo.Symbol.ToTestDisplayString()); 7705Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 7733Assert.Equal("S s", semanticInfo.Symbol.ToTestDisplayString()); 7734Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 7758Assert.NotNull(semanticInfo.Symbol); 7759Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7823Assert.Equal("C.MyDelegate", semanticInfo.Symbol.ToTestDisplayString()); 7824Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 7856Assert.Null(semanticInfo.Symbol); 7888Assert.Equal("C.MyDelegate", semanticInfo.Symbol.ToTestDisplayString()); 7889Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 7922Assert.Null(semanticInfo.Symbol); 7954Assert.Equal("System.Action", semanticInfo.Symbol.ToTestDisplayString()); 7988Assert.Null(semanticInfo.Symbol); 8024Assert.Equal("System.Int32 Program.f()", semanticInfo.Symbol.ToTestDisplayString()); 8040Assert.Null(semanticInfo.Symbol); 8077Assert.Equal("System.Int32 Program.f()", semanticInfo.Symbol.ToTestDisplayString()); 8093Assert.Null(semanticInfo.Symbol); 8333Assert.Equal("x", semanticInfo.Symbol.Name); 8374Assert.Null(semanticInfo.Symbol); 8408Assert.Null(semanticInfo.Symbol); 8438Assert.Null(semanticInfo.Symbol); 8462Assert.Null(semanticInfo.Symbol); 8519Assert.Null(semanticInfo.Symbol); 8565Assert.Equal("System.String s", semanticInfo.Symbol.ToTestDisplayString()); 8566Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 8610Assert.Equal("System.String s", semanticInfo.Symbol.ToTestDisplayString()); 8611Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 8649Assert.Equal("lambda expression", semanticInfo.Symbol.ToTestDisplayString()); 8650Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 8689Assert.Null(semanticInfo.Symbol); 8731Assert.Null(semanticInfo.Symbol); 8773Assert.Null(semanticInfo.Symbol); 8814Assert.Null(semanticInfo.Symbol); 8856Assert.Equal("System.Boolean x", semanticInfo.Symbol.ToTestDisplayString()); 8857Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 8898Assert.Equal("System.Boolean x", semanticInfo.Symbol.ToTestDisplayString()); 8899Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 8938Assert.Null(semanticInfo.Symbol); 9067Assert.Null(semanticInfo.Symbol); 9128Assert.Null(semanticInfo.Symbol); 9311Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 9312Assert.Equal("System.String", semanticInfo.Symbol.ToTestDisplayString()); 9363Assert.Null(semanticInfo.Symbol); 9422Assert.Null(semanticInfo.Symbol); 9453Assert.Null(semanticInfo.Symbol); 9533Assert.Null(semanticInfo.Symbol); 9569Assert.Null(semanticInfo.Symbol); 9619Assert.Null(semanticInfo.Symbol); 9674Assert.Equal("ValidWithSuffix_And_ValidWithoutSuffix.Description.Description(string)", semanticInfo.Symbol.ToDisplayString()); 9725Assert.Equal("ValidWithSuffix_And_ValidWithoutSuffix.DescriptionAttribute.DescriptionAttribute(string)", semanticInfo.Symbol.ToDisplayString()); 9785Assert.Null(semanticInfo.Symbol); 9836Assert.Null(semanticInfo.Symbol); 9891Assert.Null(semanticInfo.Symbol); 9922Assert.Equal("A1..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 9923Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 9956Assert.Equal("System.ObsoleteAttribute..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 9957Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 9992Assert.Equal("System.ObsoleteAttribute..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 9993Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 10028Assert.Equal("System.ObsoleteAttribute..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 10029Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 10064Assert.Equal("System.ObsoleteAttribute..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 10065Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 10108Assert.Equal("AttributeClass", semanticInfo.Symbol.ToTestDisplayString()); 10109Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 10116Assert.False(SyntaxFacts.IsAttributeName(((SourceNamedTypeSymbol)((CSharp.Symbols.PublicModel.NamedTypeSymbol)semanticInfo.Symbol).UnderlyingNamedTypeSymbol).SyntaxReferences.First().GetSyntax()), 10145Assert.Equal("AttributeClass", semanticInfo.Symbol.ToTestDisplayString()); 10146Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 10153Assert.False(SyntaxFacts.IsAttributeName(((SourceNamedTypeSymbol)((CSharp.Symbols.PublicModel.NamedTypeSymbol)semanticInfo.Symbol).UnderlyingNamedTypeSymbol).SyntaxReferences.First().GetSyntax()), 10182Assert.Null(semanticInfo.Symbol); 10221Assert.Null(semanticInfo.Symbol); 10252Assert.Null(semanticInfo.Symbol); 10287Assert.Null(semanticInfo.Symbol); 10322Assert.Null(semanticInfo.Symbol); 10356Assert.Null(semanticInfo.Symbol); 10390Assert.Null(semanticInfo.Symbol); 10432Assert.Null(semanticInfo.Symbol); 10471Assert.Null(semanticInfo.Symbol); 10498Assert.Null(semanticInfo.Symbol); 10527Assert.Null(semanticInfo.Symbol); 10563Assert.Null(semanticInfo.Symbol); 10605Assert.Null(semanticInfo.Symbol); 10642Assert.Null(semanticInfo.Symbol); 10679Assert.Null(semanticInfo.Symbol); 10718Assert.Null(semanticInfo.Symbol); 10761Assert.Null(semanticInfo.Symbol); 10803Assert.Null(semanticInfo.Symbol); 10840Assert.Null(semanticInfo.Symbol); 10909Assert.Null(semanticInfo.Symbol); 10939Assert.NotNull(semanticInfo.Symbol); 10940Assert.Equal("Program..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 10959Assert.NotNull(semanticInfo.Symbol); 11149Assert.Null(semanticInfo.Symbol); 11193Assert.Equal("Goo", semanticInfo.Symbol.ToTestDisplayString()); 11227Assert.Null(semanticInfo.Symbol); 11271Assert.Equal("System.Int16 Constants.k", semanticInfo.Symbol.ToTestDisplayString()); 11272Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 11308Assert.Equal("System.Int32 Class1.i", semanticInfo.Symbol.ToTestDisplayString()); 11309Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 11345Assert.Equal("System.Int32 Class1.i", semanticInfo.Symbol.ToTestDisplayString()); 11346Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 11385Assert.Equal("System.Int32 Class1.i", semanticInfo.Symbol.ToTestDisplayString()); 11386Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 11432Assert.Equal("System.Int32", semanticInfo.Symbol.ToTestDisplayString()); 11433Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 11465Assert.Equal("System.Boolean System.Boolean.op_Equality(System.Boolean left, System.Boolean right)", semanticInfo.Symbol.ToTestDisplayString()); 11502Assert.Null(semanticInfo.Symbol); 11540Assert.Null(semanticInfo.Symbol); 11577Assert.Null(semanticInfo.Symbol); 11612Assert.Equal("System.Runtime.CompilerServices.IndexerNameAttribute..ctor(System.String indexerName)", semanticInfo.Symbol.ToTestDisplayString()); 11643Assert.Equal("<global namespace>", semanticInfo.Symbol.ToTestDisplayString()); 11644Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind); 11645Assert.True(((INamespaceSymbol)semanticInfo.Symbol).IsGlobalNamespace); 11677Assert.Equal("<global namespace>", semanticInfo.Symbol.ToTestDisplayString()); 11678Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind); 11679Assert.True(((INamespaceSymbol)semanticInfo.Symbol).IsGlobalNamespace); 11715Assert.Equal("System.Int32 Program.y", semanticInfo.Symbol.ToTestDisplayString()); 11716Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 11760Assert.Equal("NS1", semanticInfo.Symbol.ToTestDisplayString()); 11761Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind); 11800Assert.Null(semanticInfo.Symbol); 11836Assert.Equal("System.Int32[] a", semanticInfo.Symbol.ToTestDisplayString()); 11837Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 11871Assert.Null(semanticInfo.Symbol); 11906Assert.Equal("System.Int32[][,,] a3", semanticInfo.Symbol.ToTestDisplayString()); 11907Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 11942Assert.Null(semanticInfo.Symbol); 11978Assert.Equal("?[] array1", semanticInfo.Symbol.ToTestDisplayString()); 11979Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 12013Assert.Null(semanticInfo.Symbol); 12048Assert.Null(semanticInfo.Symbol); 12084Assert.Null(semanticInfo.Symbol); 12157Assert.Null(semanticInfo.Symbol); 12191Assert.Null(semanticInfo.Symbol); 12224Assert.Null(semanticInfo.Symbol); 12261Assert.Null(semanticInfo.Symbol); 12292Assert.Null(semanticInfo.Symbol); 12327Assert.Null(semanticInfo.Symbol); 12360Assert.Null(semanticInfo.Symbol); 12396Assert.Null(semanticInfo.Symbol); 12431Assert.Null(semanticInfo.Symbol); 12458Assert.Equal("dynamic", semanticInfo.Symbol.ToTestDisplayString()); 12489Assert.Null(semanticInfo.Symbol); 12532Assert.Equal("Conv C", semanticInfo.Symbol.ToTestDisplayString()); 12533Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 12573Assert.Equal("Conv? C", semanticInfo.Symbol.ToTestDisplayString()); 12574Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 12615Assert.Equal("Conv C", semanticInfo.Symbol.ToTestDisplayString()); 12616Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 12649Assert.Equal("Conv C", semanticInfo.Symbol.ToTestDisplayString()); 12650Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 12681Assert.Equal("MemberInitializerTest..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 12682Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 12712Assert.Null(semanticInfo.Symbol); 12744Assert.Null(semanticInfo.Symbol); 12776Assert.Equal("System.Int32 MemberInitializerTest.x", semanticInfo.Symbol.ToTestDisplayString()); 12777Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 12808Assert.Equal("System.Int32 MemberInitializerTest.y { get; set; }", semanticInfo.Symbol.ToTestDisplayString()); 12809Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind); 12851Assert.Equal("System.Int32 Base.x", semanticInfo.Symbol.ToTestDisplayString()); 12852Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 12888Assert.Null(semanticInfo.Symbol); 12927Assert.Equal("System.Int32 MemberInitializerTest.y { get; set; }", semanticInfo.Symbol.ToTestDisplayString()); 12928Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind); 12963Assert.Null(semanticInfo.Symbol); 13001Assert.Null(semanticInfo.Symbol); 13042Assert.Null(semanticInfo.Symbol); 13073Assert.Null(semanticInfo.Symbol); 13103Assert.Equal("System.Int32 MemberInitializerTest.y", semanticInfo.Symbol.ToTestDisplayString()); 13104Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 13134Assert.Null(semanticInfo.Symbol); 13168Assert.Null(semanticInfo.Symbol); 13202Assert.Null(semanticInfo.Symbol); 13233Assert.Null(semanticInfo.Symbol); 13268Assert.Equal("System.Int32 MemberInitializerTest.x", semanticInfo.Symbol.ToTestDisplayString()); 13269Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 13328Assert.Equal("B..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 13329Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 13387Assert.Null(semanticInfo.Symbol); 13447Assert.Null(semanticInfo.Symbol); 13508Assert.Equal("System.Int32 i", semanticInfo.Symbol.ToTestDisplayString()); 13509Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 13566Assert.Null(semanticInfo.Symbol); 13596Assert.Null(semanticInfo.Symbol); 13661Assert.Null(semanticInfo.Symbol); 13690Assert.Null(semanticInfo.Symbol); 13746Assert.Null(semanticInfo.Symbol); 13779Assert.Null(semanticInfo.Symbol); 13810Assert.Null(semanticInfo.Symbol); 13844Assert.Null(semanticInfo.Symbol); 13878Assert.Null(semanticInfo.Symbol); 13917Assert.Null(semanticInfo.Symbol); 13956Assert.Equal("System.Random", semanticInfo.Symbol.ToTestDisplayString()); 13957Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 13983Assert.Null(semanticInfo.Symbol); 14010Assert.Null(semanticInfo.Symbol); 14047Assert.Equal("InterfaceType", semanticInfo.Symbol.ToTestDisplayString()); 14048Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 14086Assert.Equal("InterfaceType", semanticInfo.Symbol.ToTestDisplayString()); 14087Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 14124Assert.Equal("CoClassType..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 14125Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 14164Assert.Null(semanticInfo.Symbol); 14206Assert.Equal("NonGenericInterfaceType", semanticInfo.Symbol.ToTestDisplayString()); 14207Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 14250Assert.Equal("GenericCoClassType<System.Int32, System.String>..ctor(System.String x)", semanticInfo.Symbol.ToTestDisplayString()); 14251Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 14296Assert.Equal("Wrapper.InterfaceType", semanticInfo.Symbol.ToTestDisplayString()); 14342Assert.Null(semanticInfo.Symbol); 14385Assert.Null(semanticInfo.Symbol); 14423Assert.Null(semanticInfo.Symbol); 14449Assert.Null(semanticInfo.Symbol); 14464Assert.Null(semanticInfo.Symbol); 14512Assert.Null(semanticInfo.Symbol); 14546Assert.Null(semanticInfo.Symbol); 14631Assert.Equal("void C.Goo(System.Int32 x)", semanticInfo.Symbol.ToTestDisplayString()); 14632Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 14670Assert.Equal("void C.Goo()", semanticInfo.Symbol.ToTestDisplayString()); 14671Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 15089Assert.Equal("string.Length", semanticInfo.Symbol.ToDisplayString()); 15090Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind); 15118Assert.Null(semanticInfo.Symbol); 15157Assert.Equal("string.ToString()", semanticInfo.Symbol.ToDisplayString()); 15158Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 15188Assert.Equal("string.Length", semanticInfo.Symbol.ToDisplayString()); 15189Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind); 15219Assert.Equal("string.Length", semanticInfo.Symbol.ToDisplayString()); 15220Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind); 15250Assert.Equal("string.Length", semanticInfo.Symbol.ToDisplayString()); 15251Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind); 15281Assert.Equal("string.this[int]", semanticInfo.Symbol.ToDisplayString()); 15282Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind); 15308Assert.Equal("BaselineLog", semanticInfo.Symbol.ToDisplayString()); 15309Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 15343Assert.Null(semanticInfo.Symbol); 15410Assert.Equal("K", semanticInfo.Symbol.ToTestDisplayString()); 15411Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
Compilation\SemanticModelGetSemanticInfoTests_LateBound.cs (27)
41Assert.Null(semanticInfo.Symbol); 65Assert.Equal("C..ctor(out dynamic x, ref dynamic y)", semanticInfo.Symbol.ToTestDisplayString()); 86Assert.Equal("C..ctor(out dynamic x, dynamic y)", semanticInfo.Symbol.ToTestDisplayString()); 112Assert.Null(semanticInfo.Symbol); 144Assert.Null(semanticInfo.Symbol); 170Assert.Null(semanticInfo.Symbol); 205Assert.Null(semanticInfo.Symbol); 229Assert.Equal("C C.Create(System.Int32 arg)", semanticInfo.Symbol.ToTestDisplayString()); 269Assert.Null(semanticInfo.Symbol); 292Assert.Equal("void System.Collections.Generic.List<System.Int32>.Add(System.Int32 item)", semanticInfo.Symbol.ToTestDisplayString()); 320Assert.Null(semanticInfo.Symbol); 349Assert.Null(semanticInfo.Symbol); 383Assert.Equal("System.Int32 C.bar(ref dynamic a)", semanticInfo.Symbol.ToTestDisplayString()); 428Assert.Null(semanticInfo.Symbol); 522Assert.Null(semanticInfo.Symbol); 557Assert.Equal("System.Int32 C.this[System.Int32 a] { get; set; }", semanticInfo.Symbol.ToTestDisplayString()); 590Assert.Null(semanticInfo.Symbol); 618Assert.Null(semanticInfo.Symbol); 655Assert.Equal("dynamic dynamic." + operatorNames[i] + "(dynamic value)", semanticInfo.Symbol.ToTestDisplayString()); 682Assert.Null(semanticInfo.Symbol); 712Assert.Null(semanticInfo.Symbol); 716Assert.Equal("dynamic.operator " + op + "(dynamic, dynamic)", semanticInfo.Symbol.ToString()); 745Assert.Null(semanticInfo.Symbol); 774Assert.Null(semanticInfo.Symbol); 801Assert.Null(semanticInfo.Symbol); 829Assert.Equal("dynamic.operator " + op.Substring(0, op.Length - 1) + "(dynamic, dynamic)", semanticInfo.Symbol.ToString()); 860Assert.Equal(op == "+=" ? "void C.E.add" : "void C.E.remove", semanticInfo.Symbol.ToTestDisplayString());
Symbols\AnonymousTypesSemanticsTests.cs (9)
322info1.Symbol.ToTestDisplayString()); 426Assert.Equal("<anonymous type: D1 module>..ctor(D1 module)", info0.Symbol.ToTestDisplayString()); 491Assert.Equal("System.Int32 System.Func<System.Int32, System.Int32>.Invoke(System.Int32 arg)", info1.Symbol.ToTestDisplayString()); 589var method = info.Symbol; 657var method = info.Symbol; 678var method = info.Symbol; 699var method = info.Symbol; 922Assert.Equal("<anonymous type: System.Int32 x, <empty anonymous type> y>..ctor(System.Int32 x, <empty anonymous type> y)", info0.Symbol.ToTestDisplayString()); 987Assert.Equal("<anonymous type: System.Int32 x, <empty anonymous type> y>..ctor(System.Int32 x, <empty anonymous type> y)", info0.Symbol.ToTestDisplayString());
Symbols\Source\LocalTests.cs (5)
35var symbol = (ILocalSymbol)semanticInfo.Symbol; 89var symbol = (ILocalSymbol)semanticInfo.Symbol; 114var symbol = (ILocalSymbol)semanticInfo.Symbol; 139var symbol = (ILocalSymbol)semanticInfo.Symbol; 162var symbol = (ILocalSymbol)semanticInfo.Symbol;
Symbols\Source\UsingAliasTests.cs (24)
49Assert.NotNull(info1.Symbol); 55Assert.Equal(info1.Symbol, alias1.Target); 58Assert.NotNull(info2.Symbol); 59var b2 = info2.Symbol; 64Assert.NotNull(info3.Symbol); 65var b3 = info3.Symbol; 70Assert.Null(info4.Symbol); // no "using System;" 109Assert.NotNull(info1.Symbol); 115Assert.Equal(info1.Symbol, alias1.Target); 118Assert.NotNull(info2.Symbol); 119var b2 = info2.Symbol; 124Assert.NotNull(info3.Symbol); 125var b3 = info3.Symbol; 130Assert.Null(info4.Symbol); // no "using System;" 173Assert.NotNull(info2.Symbol); 174var b2 = info2.Symbol; 179Assert.NotNull(info3.Symbol); 180var b3 = info3.Symbol; 185Assert.Null(info4.Symbol); // no "using System;" 231Assert.NotNull(info2.Symbol); 232var b2 = info2.Symbol; 237Assert.NotNull(info3.Symbol); 238var b3 = info3.Symbol; 243Assert.Null(info4.Symbol); // no "using System;"
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
FunctionPointerUtilities.cs (3)
219AssertEx.Equal(expectedSymbol, semanticInfo.Symbol.ToTestDisplayString(includeNonNullable: false)); 224Assert.Null(semanticInfo.Symbol); 230Assert.Null(semanticInfo.Symbol);