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); 275Assert.Null(semanticInfo.Symbol); 309Assert.Null(semanticInfo.Symbol); 338var symbol = semanticInfo.Symbol; 369Assert.Null(semanticInfo.Symbol); 402Assert.Equal("Test.Base", semanticInfo.Symbol.ToTestDisplayString()); 426var symbol = semanticInfo.Symbol; 462Assert.Null(semanticInfo.Symbol); 502Assert.Null(semanticInfo.Symbol); 545Assert.Null(semanticInfo.Symbol); 593Assert.Null(semanticInfo.Symbol); 641Assert.Null(semanticInfo.Symbol); 694Assert.Null(semanticInfo.Symbol); 725Assert.NotNull(semanticInfo.Symbol); 761Assert.NotNull(semanticInfo.Symbol); 795Assert.Null(semanticInfo.Symbol); 834Assert.Null(semanticInfo.Symbol); 920Utils.CheckSymbol(semanticInfo.Symbol, 970Utils.CheckSymbol(semanticInfo.Symbol, 989Assert.Null(semanticInfo.Symbol); 1009Assert.Null(semanticInfo.Symbol); 1029Assert.Null(semanticInfo.Symbol); 1053Utils.CheckSymbol(semanticInfo.Symbol, 1074Assert.Null(semanticInfo.Symbol); 1448Utils.CheckSymbol(semanticInfo.Symbol, "string A.P[int x, string y]"); 1466Utils.CheckSymbol(semanticInfo.Symbol, "string A.P[int x, string y]"); 1478Utils.CheckSymbol(semanticInfo.Symbol, "object A.P[int x = 0]"); 1493Assert.Null(semanticInfo.Symbol); 1514Assert.Null(semanticInfo.Symbol); 1587Utils.CheckSymbol(semanticInfo.Symbol, "object B.P1[object index]"); 1602Utils.CheckSymbol(semanticInfo.Symbol, "object B.P2[string index]"); 1617Utils.CheckSymbol(semanticInfo.Symbol, "object A.P3[object index]"); 1643Assert.Equal("C this", semanticInfo.Symbol.ToTestDisplayString()); 1644Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 1687Assert.Equal("System", semanticInfo.Symbol.ToTestDisplayString()); 1688Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind); 1719Assert.Equal("System.Int32 i", semanticInfo.Symbol.ToTestDisplayString()); 1720Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 1748Assert.Null(semanticInfo.Symbol); 1779Assert.Equal("System.Int32 System.Int32.op_Increment(System.Int32 value)", semanticInfo.Symbol.ToTestDisplayString()); 1808Assert.Null(semanticInfo.Symbol); 1838Assert.Null(semanticInfo.Symbol); 1868Assert.Null(semanticInfo.Symbol); 1898Assert.Equal("System.String System.String.op_Addition(System.String left, System.Object right)", semanticInfo.Symbol.ToTestDisplayString()); 1927Assert.Equal("System.String System.String.op_Addition(System.String left, System.Object right)", semanticInfo.Symbol.ToTestDisplayString()); 1957Assert.Null(semanticInfo.Symbol); 1987Assert.Equal("System.UInt32 System.UInt32.op_Addition(System.UInt32 left, System.UInt32 right)", semanticInfo.Symbol.ToTestDisplayString()); 2017Assert.Equal("ulong.operator +(ulong, ulong)", semanticInfo.Symbol.ToString()); 2049Assert.Equal("System.Boolean System.Boolean.op_LogicalNot(System.Boolean value)", semanticInfo.Symbol.ToTestDisplayString()); 2081Assert.Null(semanticInfo.Symbol); 2118Assert.Equal("System.Exception e", semanticInfo.Symbol.ToTestDisplayString()); 2119Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 2151Assert.Equal("void Program.Ref<System.Object>(System.Object array)", semanticInfo.Symbol.ToTestDisplayString()); 2152Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2191Assert.Equal("N1.I1", semanticInfo.Symbol.ToTestDisplayString()); 2192Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 2219Assert.Null(semanticInfo.Symbol); 2263Assert.Equal("A.Goo", semanticInfo.Symbol.ToTestDisplayString()); 2264Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 2298Assert.Equal("System.String System.Enum.ToString()", semanticInfo.Symbol.ToTestDisplayString()); 2299Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2348Assert.Equal("System.Int32 N1.I1.Method()", semanticInfo.Symbol.ToTestDisplayString()); 2349Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2394Assert.Equal("void NGoo.Goo.method()", semanticInfo.Symbol.ToTestDisplayString()); 2395Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2437Assert.Equal("void BaseClass.MyMeth()", semanticInfo.Symbol.ToTestDisplayString()); 2438Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2492Assert.Equal("System.Int32 B.goo(ref System.String x, System.Int64 y, System.Int64 z)", semanticInfo.Symbol.ToTestDisplayString()); 2493Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2544Assert.Equal("System.Int32 B.goo(params System.Int32[] x)", semanticInfo.Symbol.ToTestDisplayString()); 2545Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2576Assert.Null(semanticInfo.Symbol); 2612Assert.Equal("A", semanticInfo.Symbol.ToTestDisplayString()); 2613Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 2649Assert.Equal("A..ctor(System.Int32 x)", semanticInfo.Symbol.ToTestDisplayString()); 2650Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2690Assert.Null(semanticInfo.Symbol); 2731Assert.Null(semanticInfo.Symbol); 2781Assert.Null(semanticInfo.Symbol); 2827Assert.Null(semanticInfo.Symbol); 2870Assert.Equal("System.Int32 A.f(System.String z)", semanticInfo.Symbol.ToTestDisplayString()); 2871Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2906Assert.Equal("System.Int32 A.f(System.String z)", semanticInfo.Symbol.ToTestDisplayString()); 2907Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 2946Assert.Null(semanticInfo.Symbol); 2982Assert.Null(semanticInfo.Symbol); 3016Assert.Null(semanticInfo.Symbol); 3072Assert.Equal("System.String MySystem.IO.StreamReader.NullStreamReader.ReadLine()", semanticInfo.Symbol.ToTestDisplayString()); 3073Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3117Assert.Equal("System.String ISomething.ToString()", semanticInfo.Symbol.ToTestDisplayString()); 3118Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3157Assert.Equal("void MyClass.MyMeth()", semanticInfo.Symbol.ToTestDisplayString()); 3158Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3199Assert.Equal("void D.M2(System.Int32 x)", semanticInfo.Symbol.ToTestDisplayString()); 3200Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3245Assert.Equal("void C2.M1()", semanticInfo.Symbol.ToTestDisplayString()); 3246Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3284Assert.Equal("void TestClass.Test()", semanticInfo.Symbol.ToTestDisplayString()); 3285Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3320Assert.Equal("void IB.M()", semanticInfo.Symbol.ToTestDisplayString()); 3321Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3357Assert.Equal("void IR.M()", semanticInfo.Symbol.ToTestDisplayString()); 3358Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3394Assert.Equal("System.Int32 Test.Meth1()", semanticInfo.Symbol.ToTestDisplayString()); 3395Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3425Assert.Null(semanticInfo.Symbol); 3457Assert.Null(semanticInfo.Symbol); 3492Assert.Equal("System.Void", semanticInfo.Symbol.ToTestDisplayString()); 3493Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3523Assert.Null(semanticInfo.Symbol); 3555Assert.Equal("System", semanticInfo.Symbol.ToTestDisplayString()); 3556Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind); 3589Assert.Equal("N1.N2.A1", semanticInfo.Symbol.ToTestDisplayString()); 3590Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3627Assert.Equal("H<A>", semanticInfo.Symbol.ToTestDisplayString()); 3628Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3671Assert.Equal("H<H<A>, H<A>>", semanticInfo.Symbol.ToTestDisplayString()); 3672Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3705Assert.Equal("N1.N2.A2.A1", semanticInfo.Symbol.ToTestDisplayString()); 3706Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3739Assert.Equal("N1.NC1.A1", semanticInfo.Symbol.ToTestDisplayString()); 3740Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3773Assert.Equal("A.B", semanticInfo.Symbol.ToTestDisplayString()); 3774Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3803Assert.Equal("DateTime dt", semanticInfo.Symbol.ToTestDisplayString()); 3804Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 3835Assert.Null(semanticInfo.Symbol); 3864Assert.Equal("C..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 3865Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 3899Assert.Equal("T.T", semanticInfo.Symbol.ToTestDisplayString()); 3900Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 3936Assert.Null(semanticInfo.Symbol); 3972Assert.Null(semanticInfo.Symbol); 4007Assert.Equal("A<B.Y.Z>", semanticInfo.Symbol.ToTestDisplayString()); 4008Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 4038Assert.Equal("System.Int32 x", semanticInfo.Symbol.ToTestDisplayString()); 4039Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 4069Assert.Null(semanticInfo.Symbol); 4106Assert.Equal("System", semanticInfo.Symbol.ToTestDisplayString()); 4107Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind); 4135Assert.Equal("System.Int32 System.String.Length { get; }", semanticInfo.Symbol.ToTestDisplayString()); 4136Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind); 4159Assert.Null(semanticInfo.Symbol); 4185Assert.Null(semanticInfo.Symbol); 4213Assert.Null(semanticInfo.Symbol); 4246Assert.Equal("C<T1>..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 4280Assert.Null(semanticInfo.Symbol); 4318Assert.Equal("B..ctor(System.String a, System.String b)", semanticInfo.Symbol.ToTestDisplayString()); 4319Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 4372Assert.Null(semanticInfo.Symbol); 4403Assert.NotNull(semanticInfo.Symbol); 4404Assert.Equal("A", semanticInfo.Symbol.ToTestDisplayString()); 4405Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind); 4443Assert.NotNull(semanticInfo.Symbol); 4474Assert.Equal("System.Object value", semanticInfo.Symbol.ToTestDisplayString()); 4475Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 4499Assert.Equal("System.String value", semanticInfo.Symbol.ToTestDisplayString()); 4517Assert.Equal("System.Int16 i", semanticInfo.Symbol.ToTestDisplayString()); 4541var symbol = semanticInfo.Symbol; 4569Assert.Equal("System.Int32 j", semanticInfo.Symbol.ToTestDisplayString()); 4570Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 4578var symbol = (ILocalSymbol)semanticInfo.Symbol; 4607Assert.Equal("System.Int32 C.j", semanticInfo.Symbol.ToTestDisplayString()); 4608Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 4616var symbol = (IFieldSymbol)semanticInfo.Symbol; 4643Assert.Equal("System.Int32 System.Int32.op_Addition(System.Int32 left, System.Int32 right)", semanticInfo.Symbol.ToTestDisplayString()); 4673Assert.Equal("E.C", semanticInfo.Symbol.ToTestDisplayString()); 4674Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 4682var symbol = (IFieldSymbol)semanticInfo.Symbol; 4711Assert.Equal("E.Y", semanticInfo.Symbol.ToTestDisplayString()); 4712Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 4719var symbol = (IFieldSymbol)semanticInfo.Symbol; 4747Assert.Equal("E.B", semanticInfo.Symbol.ToTestDisplayString()); 4748Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 4755var symbol = (IFieldSymbol)semanticInfo.Symbol; 4783Assert.Equal("E.D", semanticInfo.Symbol.ToTestDisplayString()); 4784Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 4791var symbol = (IFieldSymbol)semanticInfo.Symbol; 4814Assert.Equal("E.B", semanticInfo.Symbol.ToTestDisplayString()); 4815Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 4823var symbol = (IFieldSymbol)semanticInfo.Symbol; 4851Assert.Equal("System.String format", semanticInfo.Symbol.ToTestDisplayString()); 4852Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 4878Assert.Equal("System.Int32 x", semanticInfo.Symbol.ToTestDisplayString()); 4879Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 4881Assert.Equal(MethodKind.Constructor, ((IMethodSymbol)semanticInfo.Symbol.ContainingSymbol).MethodKind); 4887Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.ContainingSymbol.Kind); 4888Assert.Equal(MethodKind.Constructor, ((IMethodSymbol)semanticInfo.Symbol.ContainingSymbol).MethodKind); 4917Assert.Null(semanticInfo.Symbol); 4964Assert.Null(semanticInfo.Symbol); 5016Assert.Null(semanticInfo.Symbol); 5067Assert.Equal("Class1", semanticInfo.Symbol.ToTestDisplayString()); 5106Assert.Null(semanticInfo.Symbol); 5153Assert.Null(semanticInfo.Symbol); 5199Assert.Equal("Class1..ctor(System.Int32 a, System.Int64 b)", semanticInfo.Symbol.ToTestDisplayString()); 5200Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 5239Assert.Equal("Class1", semanticInfo.Symbol.ToTestDisplayString()); 5240Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 5278Assert.Equal("Class1..ctor(System.Int32 a, System.Int64 b)", semanticInfo.Symbol.ToTestDisplayString()); 5279Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 5320Assert.Equal("Class1..ctor(System.Int32 a, System.Int64 b)", semanticInfo.Symbol.ToTestDisplayString()); 5321Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 5402Assert.Null(semanticInfo.Symbol); 5444Assert.Null(semanticInfo.Symbol); 5480Assert.Equal("System.Boolean System.Int32.op_Equality(System.Int32 left, System.Int32 right)", semanticInfo.Symbol.ToTestDisplayString()); 5509Assert.Equal("System.Boolean System.Int32.op_LessThan(System.Int32 left, System.Int32 right)", semanticInfo.Symbol.ToTestDisplayString()); 5542Assert.Equal("System.Int32 x", semanticInfo.Symbol.ToTestDisplayString()); 5543Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 5549Assert.True(semanticInfo.Symbol.GetSymbol().IsFromCompilation(compilation)); 5574Assert.Equal("System.Int32 C.x", semanticInfo.Symbol.ToTestDisplayString()); 5575Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 5606Assert.Equal("System.Int32 C.x", semanticInfo.Symbol.ToTestDisplayString()); 5607Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 5632Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 5656Assert.Equal("lambda expression", semanticInfo.Symbol.ToTestDisplayString()); 5657Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 5660var lambdaSym = (IMethodSymbol)(semanticInfo.Symbol); 5692Assert.Equal("lambda expression", semanticInfo.Symbol.ToTestDisplayString()); 5693Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 5696var lambdaSym = (IMethodSymbol)(semanticInfo.Symbol); 5728Assert.Null(semanticInfo.Symbol); 5761Assert.Null(semanticInfo.Symbol); 5795Assert.Equal("System.Boolean c", semanticInfo.Symbol.ToTestDisplayString()); 5796Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 5828Assert.Null(semanticInfo.Symbol); 5862Assert.Equal("System.Boolean c", semanticInfo.Symbol.ToTestDisplayString()); 5863Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 5896Assert.Null(semanticInfo.Symbol); 5931Assert.Equal("System.Boolean c", semanticInfo.Symbol.ToTestDisplayString()); 5932Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 5964Assert.Null(semanticInfo.Symbol); 5998Assert.Equal("System.Boolean c", semanticInfo.Symbol.ToTestDisplayString()); 5999Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 6031Assert.Null(semanticInfo.Symbol); 6059Assert.Null(semanticInfo.Symbol); 6091Assert.Null(semanticInfo.Symbol); 6117Assert.Equal("System.Object..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 6118Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 6144Assert.Equal("C..ctor(System.Int32 x)", semanticInfo.Symbol.ToTestDisplayString()); 6145Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 6177Assert.Equal("MyClass..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 6178Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 6227Assert.Equal("args", semanticInfo.Symbol.Name); 6248var symbol = semanticInfo.Symbol; 6329Assert.Equal("Outer.Inner a", semanticInfo.Symbol.ToTestDisplayString()); 6330Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 6338var param = (IParameterSymbol)semanticInfo.Symbol; 6365var symbol = semanticInfo.Symbol; 6396Assert.Null(semanticInfo.Symbol); 6436Assert.Equal("System.Int32 C.Goo(System.Int32 i)", semanticInfo.Symbol.ToTestDisplayString()); 6437Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 6466Assert.Equal("void S.E(this System.Object o)", semanticInfo.Symbol.ToTestDisplayString()); 6489Assert.Equal("void System.Object.E()", semanticInfo.Symbol.ToTestDisplayString()); 6519Assert.Equal("System.String", semanticInfo.Symbol.ToTestDisplayString()); 6520Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 6554Assert.Equal("System.String", semanticInfo.Symbol.ToTestDisplayString()); 6555Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 6591Assert.Equal("N1.var", semanticInfo.Symbol.ToTestDisplayString()); 6592Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 6641Assert.Equal("C", semanticInfo.Symbol.ToTestDisplayString()); 6675Assert.Null(semanticInfo.Symbol); 6806Assert.Null(semanticInfo.Symbol); 6875Assert.Equal("System.String TestAttribute.F", semanticInfo.Symbol.ToTestDisplayString()); 6876Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 6920Assert.Equal("System.Double TestAttribute.P { get; set; }", semanticInfo.Symbol.ToTestDisplayString()); 6921Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind); 6965Assert.Null(semanticInfo.Symbol); 6995Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7024Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7047Assert.Equal("Struct", semanticInfo.Symbol.ToTestDisplayString()); 7048Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 7078Assert.Equal("Struct..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 7079Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7106Assert.Equal("MyAttribute..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 7107Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7137Assert.Equal("N1.MyAttribute..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 7138Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7169Assert.Null(semanticInfo.Symbol); 7201Assert.Null(semanticInfo.Symbol); 7233Assert.Null(semanticInfo.Symbol); 7262Assert.Equal("System.Func<System.Int32, System.Int32>", semanticInfo.Symbol.ToTestDisplayString()); 7288Assert.Equal("System.Object..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 7289Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7290Assert.Equal(MethodKind.Constructor, ((IMethodSymbol)semanticInfo.Symbol).MethodKind); 7316Assert.Equal("C..ctor(System.Int32 x)", semanticInfo.Symbol.ToTestDisplayString()); 7317Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7343Assert.Null(semanticInfo.Symbol); 7399Assert.Null(semanticInfo.Symbol); 7425Assert.Null(semanticInfo.Symbol); 7453Assert.Null(semanticInfo.Symbol); 7486Assert.Null(semanticInfo.Symbol); 7522Assert.NotNull(semanticInfo.Symbol); 7552Assert.Equal("System.Int32 z", semanticInfo.Symbol.ToTestDisplayString()); 7553Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 7585Assert.Null(semanticInfo.Symbol); 7623Assert.Null(semanticInfo.Symbol); 7660Assert.Equal("System.Int32 x", semanticInfo.Symbol.ToTestDisplayString()); 7661Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 7699Assert.Equal("System.String str1", semanticInfo.Symbol.ToTestDisplayString()); 7700Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 7728Assert.Equal("S s", semanticInfo.Symbol.ToTestDisplayString()); 7729Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind); 7753Assert.NotNull(semanticInfo.Symbol); 7754Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 7818Assert.Equal("C.MyDelegate", semanticInfo.Symbol.ToTestDisplayString()); 7819Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 7851Assert.Null(semanticInfo.Symbol); 7883Assert.Equal("C.MyDelegate", semanticInfo.Symbol.ToTestDisplayString()); 7884Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 7917Assert.Null(semanticInfo.Symbol); 7949Assert.Equal("System.Action", semanticInfo.Symbol.ToTestDisplayString()); 7983Assert.Null(semanticInfo.Symbol); 8019Assert.Equal("System.Int32 Program.f()", semanticInfo.Symbol.ToTestDisplayString()); 8035Assert.Null(semanticInfo.Symbol); 8072Assert.Equal("System.Int32 Program.f()", semanticInfo.Symbol.ToTestDisplayString()); 8088Assert.Null(semanticInfo.Symbol); 8328Assert.Equal("x", semanticInfo.Symbol.Name); 8369Assert.Null(semanticInfo.Symbol); 8403Assert.Null(semanticInfo.Symbol); 8433Assert.Null(semanticInfo.Symbol); 8457Assert.Null(semanticInfo.Symbol); 8514Assert.Null(semanticInfo.Symbol); 8560Assert.Equal("System.String s", semanticInfo.Symbol.ToTestDisplayString()); 8561Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 8605Assert.Equal("System.String s", semanticInfo.Symbol.ToTestDisplayString()); 8606Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 8644Assert.Equal("lambda expression", semanticInfo.Symbol.ToTestDisplayString()); 8645Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 8684Assert.Null(semanticInfo.Symbol); 8726Assert.Null(semanticInfo.Symbol); 8768Assert.Null(semanticInfo.Symbol); 8809Assert.Null(semanticInfo.Symbol); 8851Assert.Equal("System.Boolean x", semanticInfo.Symbol.ToTestDisplayString()); 8852Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 8893Assert.Equal("System.Boolean x", semanticInfo.Symbol.ToTestDisplayString()); 8894Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 8933Assert.Null(semanticInfo.Symbol); 9062Assert.Null(semanticInfo.Symbol); 9123Assert.Null(semanticInfo.Symbol); 9306Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 9307Assert.Equal("System.String", semanticInfo.Symbol.ToTestDisplayString()); 9358Assert.Null(semanticInfo.Symbol); 9417Assert.Null(semanticInfo.Symbol); 9448Assert.Null(semanticInfo.Symbol); 9528Assert.Null(semanticInfo.Symbol); 9564Assert.Null(semanticInfo.Symbol); 9614Assert.Null(semanticInfo.Symbol); 9669Assert.Equal("ValidWithSuffix_And_ValidWithoutSuffix.Description.Description(string)", semanticInfo.Symbol.ToDisplayString()); 9720Assert.Equal("ValidWithSuffix_And_ValidWithoutSuffix.DescriptionAttribute.DescriptionAttribute(string)", semanticInfo.Symbol.ToDisplayString()); 9780Assert.Null(semanticInfo.Symbol); 9831Assert.Null(semanticInfo.Symbol); 9886Assert.Null(semanticInfo.Symbol); 9917Assert.Equal("A1..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 9918Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 9951Assert.Equal("System.ObsoleteAttribute..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 9952Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 9987Assert.Equal("System.ObsoleteAttribute..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 9988Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 10023Assert.Equal("System.ObsoleteAttribute..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 10024Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 10059Assert.Equal("System.ObsoleteAttribute..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 10060Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 10103Assert.Equal("AttributeClass", semanticInfo.Symbol.ToTestDisplayString()); 10104Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 10111Assert.False(SyntaxFacts.IsAttributeName(((SourceNamedTypeSymbol)((CSharp.Symbols.PublicModel.NamedTypeSymbol)semanticInfo.Symbol).UnderlyingNamedTypeSymbol).SyntaxReferences.First().GetSyntax()), 10140Assert.Equal("AttributeClass", semanticInfo.Symbol.ToTestDisplayString()); 10141Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 10148Assert.False(SyntaxFacts.IsAttributeName(((SourceNamedTypeSymbol)((CSharp.Symbols.PublicModel.NamedTypeSymbol)semanticInfo.Symbol).UnderlyingNamedTypeSymbol).SyntaxReferences.First().GetSyntax()), 10177Assert.Null(semanticInfo.Symbol); 10216Assert.Null(semanticInfo.Symbol); 10247Assert.Null(semanticInfo.Symbol); 10282Assert.Null(semanticInfo.Symbol); 10317Assert.Null(semanticInfo.Symbol); 10351Assert.Null(semanticInfo.Symbol); 10385Assert.Null(semanticInfo.Symbol); 10427Assert.Null(semanticInfo.Symbol); 10466Assert.Null(semanticInfo.Symbol); 10493Assert.Null(semanticInfo.Symbol); 10522Assert.Null(semanticInfo.Symbol); 10558Assert.Null(semanticInfo.Symbol); 10600Assert.Null(semanticInfo.Symbol); 10637Assert.Null(semanticInfo.Symbol); 10674Assert.Null(semanticInfo.Symbol); 10713Assert.Null(semanticInfo.Symbol); 10756Assert.Null(semanticInfo.Symbol); 10798Assert.Null(semanticInfo.Symbol); 10835Assert.Null(semanticInfo.Symbol); 10904Assert.Null(semanticInfo.Symbol); 10934Assert.NotNull(semanticInfo.Symbol); 10935Assert.Equal("Program..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 10954Assert.NotNull(semanticInfo.Symbol); 11144Assert.Null(semanticInfo.Symbol); 11188Assert.Equal("Goo", semanticInfo.Symbol.ToTestDisplayString()); 11222Assert.Null(semanticInfo.Symbol); 11266Assert.Equal("System.Int16 Constants.k", semanticInfo.Symbol.ToTestDisplayString()); 11267Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 11303Assert.Equal("System.Int32 Class1.i", semanticInfo.Symbol.ToTestDisplayString()); 11304Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 11340Assert.Equal("System.Int32 Class1.i", semanticInfo.Symbol.ToTestDisplayString()); 11341Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 11380Assert.Equal("System.Int32 Class1.i", semanticInfo.Symbol.ToTestDisplayString()); 11381Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 11427Assert.Equal("System.Int32", semanticInfo.Symbol.ToTestDisplayString()); 11428Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 11460Assert.Equal("System.Boolean System.Boolean.op_Equality(System.Boolean left, System.Boolean right)", semanticInfo.Symbol.ToTestDisplayString()); 11497Assert.Null(semanticInfo.Symbol); 11535Assert.Null(semanticInfo.Symbol); 11572Assert.Null(semanticInfo.Symbol); 11607Assert.Equal("System.Runtime.CompilerServices.IndexerNameAttribute..ctor(System.String indexerName)", semanticInfo.Symbol.ToTestDisplayString()); 11638Assert.Equal("<global namespace>", semanticInfo.Symbol.ToTestDisplayString()); 11639Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind); 11640Assert.True(((INamespaceSymbol)semanticInfo.Symbol).IsGlobalNamespace); 11672Assert.Equal("<global namespace>", semanticInfo.Symbol.ToTestDisplayString()); 11673Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind); 11674Assert.True(((INamespaceSymbol)semanticInfo.Symbol).IsGlobalNamespace); 11710Assert.Equal("System.Int32 Program.y", semanticInfo.Symbol.ToTestDisplayString()); 11711Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 11755Assert.Equal("NS1", semanticInfo.Symbol.ToTestDisplayString()); 11756Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind); 11795Assert.Null(semanticInfo.Symbol); 11831Assert.Equal("System.Int32[] a", semanticInfo.Symbol.ToTestDisplayString()); 11832Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 11866Assert.Null(semanticInfo.Symbol); 11901Assert.Equal("System.Int32[][,,] a3", semanticInfo.Symbol.ToTestDisplayString()); 11902Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 11937Assert.Null(semanticInfo.Symbol); 11973Assert.Equal("?[] array1", semanticInfo.Symbol.ToTestDisplayString()); 11974Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 12008Assert.Null(semanticInfo.Symbol); 12043Assert.Null(semanticInfo.Symbol); 12079Assert.Null(semanticInfo.Symbol); 12152Assert.Null(semanticInfo.Symbol); 12186Assert.Null(semanticInfo.Symbol); 12219Assert.Null(semanticInfo.Symbol); 12256Assert.Null(semanticInfo.Symbol); 12287Assert.Null(semanticInfo.Symbol); 12322Assert.Null(semanticInfo.Symbol); 12355Assert.Null(semanticInfo.Symbol); 12391Assert.Null(semanticInfo.Symbol); 12426Assert.Null(semanticInfo.Symbol); 12453Assert.Equal("dynamic", semanticInfo.Symbol.ToTestDisplayString()); 12484Assert.Null(semanticInfo.Symbol); 12527Assert.Equal("Conv C", semanticInfo.Symbol.ToTestDisplayString()); 12528Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 12568Assert.Equal("Conv? C", semanticInfo.Symbol.ToTestDisplayString()); 12569Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 12610Assert.Equal("Conv C", semanticInfo.Symbol.ToTestDisplayString()); 12611Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 12644Assert.Equal("Conv C", semanticInfo.Symbol.ToTestDisplayString()); 12645Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 12676Assert.Equal("MemberInitializerTest..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 12677Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 12707Assert.Null(semanticInfo.Symbol); 12739Assert.Null(semanticInfo.Symbol); 12771Assert.Equal("System.Int32 MemberInitializerTest.x", semanticInfo.Symbol.ToTestDisplayString()); 12772Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 12803Assert.Equal("System.Int32 MemberInitializerTest.y { get; set; }", semanticInfo.Symbol.ToTestDisplayString()); 12804Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind); 12846Assert.Equal("System.Int32 Base.x", semanticInfo.Symbol.ToTestDisplayString()); 12847Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 12883Assert.Null(semanticInfo.Symbol); 12922Assert.Equal("System.Int32 MemberInitializerTest.y { get; set; }", semanticInfo.Symbol.ToTestDisplayString()); 12923Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind); 12958Assert.Null(semanticInfo.Symbol); 12996Assert.Null(semanticInfo.Symbol); 13037Assert.Null(semanticInfo.Symbol); 13068Assert.Null(semanticInfo.Symbol); 13098Assert.Equal("System.Int32 MemberInitializerTest.y", semanticInfo.Symbol.ToTestDisplayString()); 13099Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 13129Assert.Null(semanticInfo.Symbol); 13163Assert.Null(semanticInfo.Symbol); 13197Assert.Null(semanticInfo.Symbol); 13228Assert.Null(semanticInfo.Symbol); 13263Assert.Equal("System.Int32 MemberInitializerTest.x", semanticInfo.Symbol.ToTestDisplayString()); 13264Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind); 13323Assert.Equal("B..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 13324Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 13382Assert.Null(semanticInfo.Symbol); 13442Assert.Null(semanticInfo.Symbol); 13503Assert.Equal("System.Int32 i", semanticInfo.Symbol.ToTestDisplayString()); 13504Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind); 13561Assert.Null(semanticInfo.Symbol); 13591Assert.Null(semanticInfo.Symbol); 13656Assert.Null(semanticInfo.Symbol); 13685Assert.Null(semanticInfo.Symbol); 13741Assert.Null(semanticInfo.Symbol); 13774Assert.Null(semanticInfo.Symbol); 13805Assert.Null(semanticInfo.Symbol); 13839Assert.Null(semanticInfo.Symbol); 13873Assert.Null(semanticInfo.Symbol); 13912Assert.Null(semanticInfo.Symbol); 13951Assert.Equal("System.Random", semanticInfo.Symbol.ToTestDisplayString()); 13952Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 13978Assert.Null(semanticInfo.Symbol); 14005Assert.Null(semanticInfo.Symbol); 14042Assert.Equal("InterfaceType", semanticInfo.Symbol.ToTestDisplayString()); 14043Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 14081Assert.Equal("InterfaceType", semanticInfo.Symbol.ToTestDisplayString()); 14082Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 14119Assert.Equal("CoClassType..ctor()", semanticInfo.Symbol.ToTestDisplayString()); 14120Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 14159Assert.Null(semanticInfo.Symbol); 14201Assert.Equal("NonGenericInterfaceType", semanticInfo.Symbol.ToTestDisplayString()); 14202Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 14245Assert.Equal("GenericCoClassType<System.Int32, System.String>..ctor(System.String x)", semanticInfo.Symbol.ToTestDisplayString()); 14246Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 14291Assert.Equal("Wrapper.InterfaceType", semanticInfo.Symbol.ToTestDisplayString()); 14337Assert.Null(semanticInfo.Symbol); 14380Assert.Null(semanticInfo.Symbol); 14418Assert.Null(semanticInfo.Symbol); 14444Assert.Null(semanticInfo.Symbol); 14459Assert.Null(semanticInfo.Symbol); 14507Assert.Null(semanticInfo.Symbol); 14541Assert.Null(semanticInfo.Symbol); 14626Assert.Equal("void C.Goo(System.Int32 x)", semanticInfo.Symbol.ToTestDisplayString()); 14627Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 14665Assert.Equal("void C.Goo()", semanticInfo.Symbol.ToTestDisplayString()); 14666Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 15084Assert.Equal("string.Length", semanticInfo.Symbol.ToDisplayString()); 15085Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind); 15113Assert.Null(semanticInfo.Symbol); 15152Assert.Equal("string.ToString()", semanticInfo.Symbol.ToDisplayString()); 15153Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind); 15183Assert.Equal("string.Length", semanticInfo.Symbol.ToDisplayString()); 15184Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind); 15214Assert.Equal("string.Length", semanticInfo.Symbol.ToDisplayString()); 15215Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind); 15245Assert.Equal("string.Length", semanticInfo.Symbol.ToDisplayString()); 15246Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind); 15276Assert.Equal("string.this[int]", semanticInfo.Symbol.ToDisplayString()); 15277Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind); 15303Assert.Equal("BaselineLog", semanticInfo.Symbol.ToDisplayString()); 15304Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind); 15338Assert.Null(semanticInfo.Symbol); 15405Assert.Equal("K", semanticInfo.Symbol.ToTestDisplayString()); 15406Assert.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);