1822 references to GetTypeByMetadataName
ConfigurationSchemaGenerator (1)
IdeCoreBenchmarks (2)
ILLink.RoslynAnalyzer (9)
Microsoft.Analyzers.Extra (33)
Microsoft.Analyzers.Local (9)
Microsoft.AspNetCore.Analyzers (3)
Microsoft.AspNetCore.App.Analyzers (1)
Microsoft.AspNetCore.Components.Analyzers (4)
Microsoft.AspNetCore.Components.SdkAnalyzers (4)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
Microsoft.AspNetCore.Mvc.Analyzers (8)
Microsoft.AspNetCore.Mvc.Api.Analyzers (3)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.CodeStyle (73)
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (11)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (79)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (183)
Semantics\ExperimentalAttributeTests.cs (32)
88Assert.Equal(ObsoleteAttributeKind.Experimental, comp.GetTypeByMetadataName("C").ContainingAssembly.ObsoleteKind);
107Assert.Equal(ObsoleteAttributeKind.Experimental, comp.GetTypeByMetadataName("C").ContainingAssembly.ObsoleteKind);
149Assert.Equal(ObsoleteAttributeKind.Experimental, comp.GetTypeByMetadataName("C").ContainingAssembly.ObsoleteKind);
150Assert.Equal(ObsoleteAttributeKind.None, comp.GetTypeByMetadataName("C").ContainingModule.ObsoleteKind);
173Assert.Equal(ObsoleteAttributeKind.Experimental, comp.GetTypeByMetadataName("C").ContainingAssembly.ObsoleteKind);
174Assert.Equal(ObsoleteAttributeKind.None, comp.GetTypeByMetadataName("C").ContainingModule.ObsoleteKind);
215Assert.Equal(ObsoleteAttributeKind.Obsolete, comp.GetTypeByMetadataName("C").ObsoleteKind);
216Assert.Equal(ObsoleteAttributeKind.Experimental, comp.GetTypeByMetadataName("C").ContainingAssembly.ObsoleteKind);
217Assert.Equal(ObsoleteAttributeKind.None, comp.GetTypeByMetadataName("C").ContainingModule.ObsoleteKind);
254Assert.Equal(ObsoleteAttributeKind.Experimental, comp.GetTypeByMetadataName("C").ContainingAssembly.ObsoleteKind);
283Assert.Equal(ObsoleteAttributeKind.Experimental, comp.GetTypeByMetadataName("C").ContainingAssembly.ObsoleteKind);
320Assert.Equal(ObsoleteAttributeKind.Experimental, comp.GetTypeByMetadataName("C").ContainingAssembly.ObsoleteKind);
321Assert.Equal(ObsoleteAttributeKind.Obsolete, comp.GetTypeByMetadataName("C").ObsoleteKind);
350Assert.Equal(ObsoleteAttributeKind.Obsolete, comp.GetTypeByMetadataName("C").ObsoleteKind);
406Assert.Equal(ObsoleteAttributeKind.Experimental, comp.GetTypeByMetadataName("C").ContainingModule.ObsoleteKind);
407Assert.Equal(ObsoleteAttributeKind.None, comp.GetTypeByMetadataName("C").ContainingAssembly.ObsoleteKind);
430Assert.Equal(ObsoleteAttributeKind.Experimental, comp.GetTypeByMetadataName("C").ContainingModule.ObsoleteKind);
431Assert.Equal(ObsoleteAttributeKind.None, comp.GetTypeByMetadataName("C").ContainingAssembly.ObsoleteKind);
473Assert.Equal(ObsoleteAttributeKind.Experimental, comp.GetTypeByMetadataName("C").ContainingModule.ObsoleteKind);
474Assert.Equal(ObsoleteAttributeKind.Experimental, comp.GetTypeByMetadataName("C").ContainingAssembly.ObsoleteKind);
500Assert.Equal(ObsoleteAttributeKind.Experimental, comp.GetTypeByMetadataName("C").ContainingModule.ObsoleteKind);
501Assert.Equal(ObsoleteAttributeKind.Experimental, comp.GetTypeByMetadataName("C").ContainingAssembly.ObsoleteKind);
562Assert.Equal(ObsoleteAttributeKind.None, comp.GetTypeByMetadataName("C").ContainingModule.ObsoleteKind);
563Assert.Equal(ObsoleteAttributeKind.Experimental, comp.GetTypeByMetadataName("C").ContainingAssembly.ObsoleteKind);
565Assert.Equal(ObsoleteAttributeKind.None, comp.GetTypeByMetadataName("D").ContainingModule.ObsoleteKind);
566Assert.Equal(ObsoleteAttributeKind.Experimental, comp.GetTypeByMetadataName("D").ContainingAssembly.ObsoleteKind);
593var c = comp.GetTypeByMetadataName("C");
634var c = comp.GetTypeByMetadataName("C");
948var derived = comp.GetTypeByMetadataName("Derived");
976var derived = comp.GetTypeByMetadataName("Derived");
1013var derived = comp.GetTypeByMetadataName("Derived");
1041var derived = comp.GetTypeByMetadataName("Derived");
Semantics\PrimaryConstructorTests.cs (98)
127var members = comp.GetTypeByMetadataName("Point").GetMembers();
3102Assert.Empty(comp.GetTypeByMetadataName("Test1").InstanceConstructors.Where(c => !c.IsDefaultValueTypeConstructor()).Single().Parameters[0].GetAttributes());
3103Assert.Equal(2, comp.GetTypeByMetadataName("Test2").InstanceConstructors.Where(c => !c.IsDefaultValueTypeConstructor()).Single().Parameters[0].GetAttributes().Count());
3145Assert.Empty(comp.GetTypeByMetadataName("Test1").InstanceConstructors.Where(c => !c.IsDefaultValueTypeConstructor()).Single().Parameters[0].GetAttributes());
3146Assert.Equal(1, comp.GetTypeByMetadataName("Test2").InstanceConstructors.Where(c => !c.IsDefaultValueTypeConstructor()).Single().Parameters[0].GetAttributes().Count());
3220var c = (SourceNamedTypeSymbol)comp.GetTypeByMetadataName("C");
3248var c = comp.GetTypeByMetadataName("C");
3280var i = (SourceNamedTypeSymbol)comp.GetTypeByMetadataName("I");
3322var e = (SourceNamedTypeSymbol)comp.GetTypeByMetadataName("E");
3354var c = (SourceNamedTypeSymbol)comp.GetTypeByMetadataName("C");
3378var c = comp.GetTypeByMetadataName("C");
3399var c = comp.GetTypeByMetadataName("C");
3441var c1 = (SourceNamedTypeSymbol)comp.GetTypeByMetadataName("C1");
3447var c2 = (SourceNamedTypeSymbol)comp.GetTypeByMetadataName("C2");
3503var c1 = (SourceNamedTypeSymbol)comp.GetTypeByMetadataName("C1");
3509var c2 = (SourceNamedTypeSymbol)comp.GetTypeByMetadataName("C2");
3535var c = (SourceNamedTypeSymbol)comp.GetTypeByMetadataName("C");
3557var c = (SourceMemberContainerTypeSymbol)comp.GetTypeByMetadataName("C");
3583var c1 = (SourceMemberContainerTypeSymbol)comp.GetTypeByMetadataName("C1");
3606var c1 = (SourceMemberContainerTypeSymbol)comp.GetTypeByMetadataName("C1");
3628var c = (SourceMemberContainerTypeSymbol)comp.GetTypeByMetadataName("C");
3650var c = (SourceMemberContainerTypeSymbol)comp.GetTypeByMetadataName("C");
7837var capturedParameters = comp.GetTypeByMetadataName("C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters();
8702Assert.Empty(((CSharpCompilation)verifier.Compilation).GetTypeByMetadataName("C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
9885Assert.Empty(comp.GetTypeByMetadataName("C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
9945Assert.Equal(1, comp.GetTypeByMetadataName("C2").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters().Count);
9946Assert.Empty(comp.GetTypeByMetadataName("C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
9998Assert.Empty(comp.GetTypeByMetadataName("C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
9999Assert.Equal(1, comp.GetTypeByMetadataName("C2").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters().Count);
10000Assert.Equal(1, comp.GetTypeByMetadataName("C3").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters().Count);
10001Assert.Equal(2, comp.GetTypeByMetadataName("C4").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters().Count);
10020Assert.Equal(1, comp.GetTypeByMetadataName("C3").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters().Count);
10047Assert.Equal(2, comp.GetTypeByMetadataName("C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters().Count);
10149Assert.Equal(1, comp.GetTypeByMetadataName("C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters().Count);
10192Assert.Empty(comp.GetTypeByMetadataName("Color+C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
10227Assert.Empty(comp.GetTypeByMetadataName("Color+C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
10270Assert.Empty(comp.GetTypeByMetadataName("Color+C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
10308Assert.NotEmpty(comp.GetTypeByMetadataName("Color+C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
10339Assert.NotEmpty(comp.GetTypeByMetadataName("Color+C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
10379Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
10415Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
10451Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
10490Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
10529Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
10565Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
10601Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
10640Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
10679Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
10718Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
10754Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
10790Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
10830Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
10877Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
10921Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
10961Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11004Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11051Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11093Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11138Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11173Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11203Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11238Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11268Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11303Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11334Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11370Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11401Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11444Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11483Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11522Assert.Empty(comp.GetTypeByMetadataName("Color+C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11562Assert.Empty(comp.GetTypeByMetadataName("Color+C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11605Assert.Empty(comp.GetTypeByMetadataName("Color+C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11795Assert.Equal(isStatic, comp.GetTypeByMetadataName("C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters().IsEmpty());
11839Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11840Assert.Empty(comp.GetTypeByMetadataName("S2").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11841Assert.NotEmpty(comp.GetTypeByMetadataName("S3").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11913Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11949Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
11992Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
12040Assert.Equal("System.String P1", comp1.GetTypeByMetadataName("C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters().Single().Key.ToTestDisplayString());
12041Assert.Equal("System.Int32 p2", comp1.GetTypeByMetadataName("C2").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters().Single().Key.ToTestDisplayString());
12042Assert.Equal(2, comp1.GetTypeByMetadataName("C3").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters().Count);
12072Assert.Empty(comp2.GetTypeByMetadataName("C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
12073Assert.Empty(comp2.GetTypeByMetadataName("C2").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
12113Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
12157Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
12203Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
14619Assert.All(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetBackingFields(), f => Assert.True(f.IsReadOnly));
14815Assert.All(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetBackingFields(), f => Assert.True(f.IsReadOnly));
15016Assert.All(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetBackingFields(), f => Assert.True(f.IsReadOnly));
15242Assert.All(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetBackingFields(), f => Assert.True(f.IsReadOnly));
15553Assert.All(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetBackingFields(), f => Assert.True(f.IsReadOnly));
16378Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
19714Assert.Equal("p1", comp.GetTypeByMetadataName("C1").Indexers.Single().MetadataName);
19744Assert.Equal("p1", comp.GetTypeByMetadataName("C1").Indexers.Single().MetadataName);
19765Assert.Equal("p1", comp.GetTypeByMetadataName("C1").Indexers.Single().MetadataName);
19766Assert.Single(comp.GetTypeByMetadataName("C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
20221Assert.Empty(comp.GetTypeByMetadataName("C").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters());
Microsoft.CodeAnalysis.CSharp.Features (17)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (303)
Semantics\NullableReferenceTypesTests.cs (151)
6467var c = comp.GetTypeByMetadataName("C");
6489var c = comp.GetTypeByMetadataName("C");
11453var b = compilation.GetTypeByMetadataName("B");
11504var b = compilation.GetTypeByMetadataName("B");
11567var b = compilation.GetTypeByMetadataName("B");
11626var b = compilation.GetTypeByMetadataName("B");
11631var d = compilation.GetTypeByMetadataName("D");
11698var b = compilation.GetTypeByMetadataName("B");
11731var b = compilation.GetTypeByMetadataName("B");
11766var b = compilation.GetTypeByMetadataName("B");
11847var b = compilation.GetTypeByMetadataName("B");
11891var b = compilation.GetTypeByMetadataName("B");
11929var b = compilation.GetTypeByMetadataName("B");
12014var b = compilation.GetTypeByMetadataName("B");
12097var b = compilation.GetTypeByMetadataName("B");
12185var b = compilation.GetTypeByMetadataName("B");
12257var b = compilation.GetTypeByMetadataName("B");
12329var type = compilation.GetTypeByMetadataName(typeName);
12343var type = compilation.GetTypeByMetadataName(typeName);
12411var b1 = compilation.GetTypeByMetadataName("B1");
12418var b2 = compilation.GetTypeByMetadataName("B2");
12684var ia = compilation.GetTypeByMetadataName("IA");
12692var type = compilation.GetTypeByMetadataName(typeName);
12703var type = compilation.GetTypeByMetadataName(typeName);
12711var type = compilation.GetTypeByMetadataName(typeName);
12780var ia = compilation.GetTypeByMetadataName("IA");
12781var b1 = compilation.GetTypeByMetadataName("B1");
12799var type = compilation.GetTypeByMetadataName(typeName);
12883foreach (var member in compilation.GetTypeByMetadataName("B1").GetMembers().OfType<PropertySymbol>())
12888foreach (var member in compilation.GetTypeByMetadataName("B2").GetMembers().OfType<PropertySymbol>())
12895var type = compilation.GetTypeByMetadataName(typeName);
13031var b = compilation.GetTypeByMetadataName("B");
13033foreach (var member in compilation.GetTypeByMetadataName("IA").GetMembers().OfType<PropertySymbol>())
13039foreach (var member in compilation.GetTypeByMetadataName("IA2").GetMembers().OfType<PropertySymbol>())
13047var type = compilation.GetTypeByMetadataName(typeName);
13122var b = compilation.GetTypeByMetadataName("B");
13124foreach (var member in compilation.GetTypeByMetadataName("IA").GetMembers().OfType<PropertySymbol>())
13130foreach (var member in compilation.GetTypeByMetadataName("IA2").GetMembers().OfType<PropertySymbol>())
13138var type = compilation.GetTypeByMetadataName(typeName);
13203var b = compilation.GetTypeByMetadataName("B");
13319var ia = compilation.GetTypeByMetadataName("IA");
13320var b = compilation.GetTypeByMetadataName("B");
13408var ia = compilation.GetTypeByMetadataName("IA");
13409var b = compilation.GetTypeByMetadataName("B");
13685var b = compilation.GetTypeByMetadataName("B");
13853var m1 = compilation.GetTypeByMetadataName("B").GetMember<MethodSymbol>("M1");
13896var b = compilation.GetTypeByMetadataName("B");
13965var b = compilation.GetTypeByMetadataName("B");
14024var b = compilation.GetTypeByMetadataName("B");
14131var b = compilation.GetTypeByMetadataName("B");
14227var b = compilation.GetTypeByMetadataName("B");
14232var d = compilation.GetTypeByMetadataName("D");
14283var b = compilation.GetTypeByMetadataName("B");
14288var d = compilation.GetTypeByMetadataName("D");
16496var ia = compilation.GetTypeByMetadataName("IA");
16497var b = compilation.GetTypeByMetadataName("B");
16633foreach (var member in compilation.GetTypeByMetadataName(typeName).GetMembers().OfType<PropertySymbol>())
16639foreach (var member in compilation.GetTypeByMetadataName("B3").GetMembers().OfType<PropertySymbol>())
16646var type = compilation.GetTypeByMetadataName(typeName);
16718var implemented = compilation.GetTypeByMetadataName(typeName[0]).GetMembers().OfType<PropertySymbol>().Single();
16719var implementing = (PropertySymbol)compilation.GetTypeByMetadataName(typeName[1]).FindImplementationForInterfaceMember(implemented);
16724var implemented = compilation.GetTypeByMetadataName("IA3").GetMembers().OfType<PropertySymbol>().Single();
16725var implementing = (PropertySymbol)compilation.GetTypeByMetadataName("B3").FindImplementationForInterfaceMember(implemented);
16731var type = compilation.GetTypeByMetadataName(typeName);
16803var implemented = compilation.GetTypeByMetadataName(typeName[0]).GetMembers().OfType<PropertySymbol>().Single();
16804var implementing = (PropertySymbol)compilation.GetTypeByMetadataName(typeName[1]).FindImplementationForInterfaceMember(implemented);
16809var implemented = compilation.GetTypeByMetadataName("IA3").GetMembers().OfType<PropertySymbol>().Single();
16810var implementing = (PropertySymbol)compilation.GetTypeByMetadataName("B3").FindImplementationForInterfaceMember(implemented);
16816var type = compilation.GetTypeByMetadataName(typeName);
16903var c1 = (NamedTypeSymbol)comp.GetTypeByMetadataName("C1");
16915var c2 = (NamedTypeSymbol)comp.GetTypeByMetadataName("C2");
16927var c3 = (NamedTypeSymbol)comp.GetTypeByMetadataName("C3");
16938var c4 = (NamedTypeSymbol)comp.GetTypeByMetadataName("C4");
17269var c1 = (NamedTypeSymbol)comp.GetTypeByMetadataName("C1`1");
17281var c2 = (NamedTypeSymbol)comp.GetTypeByMetadataName("C2`1");
17293var c3 = (NamedTypeSymbol)comp.GetTypeByMetadataName("C3`1");
17304var c4 = (NamedTypeSymbol)comp.GetTypeByMetadataName("C4`1");
17352var c3 = (NamedTypeSymbol)comp.GetTypeByMetadataName("C3`2");
17726var ia = compilation.GetTypeByMetadataName("IA");
17727var b = compilation.GetTypeByMetadataName("B");
17794var ia = compilation.GetTypeByMetadataName("IA");
17795var b = compilation.GetTypeByMetadataName("B");
17835var c = compilation.GetTypeByMetadataName("C");
17874var c1 = compilation.GetTypeByMetadataName("C1");
17889c1 = compilation.GetTypeByMetadataName("C1");
76966var b = compilation.GetTypeByMetadataName("B");
76977Assert.Equal("String? D1()", compilation.GetTypeByMetadataName("D1")
76981Assert.Equal("String D1()", compilation.GetTypeByMetadataName("D1")
76985Assert.Equal("String! D2()", compilation.GetTypeByMetadataName("D2")
76989var f = compilation.GetTypeByMetadataName("F");
77050Assert.Equal("String? D1()", compilation.GetTypeByMetadataName("D1")
111007var c = comp.GetTypeByMetadataName("C`2");
112806var b = comp.GetTypeByMetadataName("A`2+B");
112891var b = comp.GetTypeByMetadataName("A`2+B");
112910var b = comp.GetTypeByMetadataName("A`1+B");
112930var b = comp.GetTypeByMetadataName("A`1+B");
113007var b = comp.GetTypeByMetadataName("A`2+B");
113087var b = comp.GetTypeByMetadataName("A`2+B");
113108var a = comp.GetTypeByMetadataName("A");
113649var a = comp.GetTypeByMetadataName("A`1");
113668var a = comp.GetTypeByMetadataName("A`1");
113692var a = comp.GetTypeByMetadataName("A`1");
113714var a = comp.GetTypeByMetadataName("A`1");
113747var a = comp.GetTypeByMetadataName("A`1");
113768var a = comp.GetTypeByMetadataName("A`1");
116619Assert.Equal(TypeKind.Struct, compilation1.GetTypeByMetadataName("A").TypeKind);
116620Assert.Equal(TypeKind.Enum, compilation1.GetTypeByMetadataName("B").TypeKind);
116621Assert.Equal(TypeKind.Class, compilation1.GetTypeByMetadataName("C").TypeKind);
116622Assert.Equal(TypeKind.Delegate, compilation1.GetTypeByMetadataName("D").TypeKind);
116623Assert.Equal(TypeKind.Interface, compilation1.GetTypeByMetadataName("I1").TypeKind);
116639Assert.Equal(TypeKind.Struct, compilation2.GetTypeByMetadataName("A").TypeKind);
116640Assert.Equal(TypeKind.Enum, compilation2.GetTypeByMetadataName("B").TypeKind);
116641Assert.Equal(TypeKind.Class, compilation2.GetTypeByMetadataName("C").TypeKind);
116642Assert.Equal(TypeKind.Delegate, compilation2.GetTypeByMetadataName("D").TypeKind);
116643Assert.Equal(TypeKind.Interface, compilation2.GetTypeByMetadataName("I1").TypeKind);
116650Assert.Equal(TypeKind.Struct, compilation3.GetTypeByMetadataName("A").TypeKind);
116651Assert.Equal(TypeKind.Enum, compilation3.GetTypeByMetadataName("B").TypeKind);
116652Assert.Equal(TypeKind.Class, compilation3.GetTypeByMetadataName("C").TypeKind);
116653Assert.Equal(TypeKind.Delegate, compilation3.GetTypeByMetadataName("D").TypeKind);
116654Assert.Equal(TypeKind.Interface, compilation3.GetTypeByMetadataName("I1").TypeKind);
116670var a = compilation4.GetTypeByMetadataName("A");
116671var b = compilation4.GetTypeByMetadataName("B");
116672var c = compilation4.GetTypeByMetadataName("C");
116673var d = compilation4.GetTypeByMetadataName("D");
116674var i1 = compilation4.GetTypeByMetadataName("I1");
116738a = compilation6.GetTypeByMetadataName("A");
116739b = compilation6.GetTypeByMetadataName("B");
116740c = compilation6.GetTypeByMetadataName("C");
116741d = compilation6.GetTypeByMetadataName("D");
116742i1 = compilation6.GetTypeByMetadataName("I1");
116759Assert.Equal(TypeKind.Struct, compilation7.GetTypeByMetadataName("A").TypeKind);
116760Assert.Equal(TypeKind.Enum, compilation7.GetTypeByMetadataName("B").TypeKind);
116761Assert.Equal(TypeKind.Class, compilation7.GetTypeByMetadataName("C").TypeKind);
116762Assert.Equal(TypeKind.Delegate, compilation7.GetTypeByMetadataName("D").TypeKind);
116763Assert.Equal(TypeKind.Interface, compilation7.GetTypeByMetadataName("I1").TypeKind);
124132NamedTypeSymbol b = compilation.GetTypeByMetadataName("B`12");
145771var interfaces = comp.GetTypeByMetadataName("C").InterfacesNoUseSiteDiagnostics();
157921var i3 = comp.GetTypeByMetadataName("I3");
157955var i3 = comp.GetTypeByMetadataName("I3");
157993var i3 = comp.GetTypeByMetadataName("I3");
158021var i3 = comp.GetTypeByMetadataName("I3");
158053var i3 = comp.GetTypeByMetadataName("I3");
158222var i3 = comp.GetTypeByMetadataName("I3");
158263var i3 = comp.GetTypeByMetadataName("I3");
158303var i3 = comp.GetTypeByMetadataName("I3");
158481var i3 = comp.GetTypeByMetadataName("I3");
158517var i3 = comp.GetTypeByMetadataName("I3");
158559var i3 = comp.GetTypeByMetadataName("I3");
158640var i3 = comp.GetTypeByMetadataName("I3");
158672var i3 = comp.GetTypeByMetadataName("I3");
158706var i3 = comp.GetTypeByMetadataName("I3");
Semantics\UseSiteErrorTests.cs (35)
2309Assert.Equal(TypeKind.Struct, compilation1.GetTypeByMetadataName("A").TypeKind);
2310Assert.Equal(TypeKind.Enum, compilation1.GetTypeByMetadataName("B").TypeKind);
2311Assert.Equal(TypeKind.Class, compilation1.GetTypeByMetadataName("C").TypeKind);
2312Assert.Equal(TypeKind.Delegate, compilation1.GetTypeByMetadataName("D").TypeKind);
2313Assert.Equal(TypeKind.Interface, compilation1.GetTypeByMetadataName("I1").TypeKind);
2327Assert.Equal(TypeKind.Struct, compilation2.GetTypeByMetadataName("A").TypeKind);
2328Assert.Equal(TypeKind.Enum, compilation2.GetTypeByMetadataName("B").TypeKind);
2329Assert.Equal(TypeKind.Class, compilation2.GetTypeByMetadataName("C").TypeKind);
2330Assert.Equal(TypeKind.Delegate, compilation2.GetTypeByMetadataName("D").TypeKind);
2331Assert.Equal(TypeKind.Interface, compilation2.GetTypeByMetadataName("I1").TypeKind);
2338Assert.Equal(TypeKind.Struct, compilation3.GetTypeByMetadataName("A").TypeKind);
2339Assert.Equal(TypeKind.Enum, compilation3.GetTypeByMetadataName("B").TypeKind);
2340Assert.Equal(TypeKind.Class, compilation3.GetTypeByMetadataName("C").TypeKind);
2341Assert.Equal(TypeKind.Delegate, compilation3.GetTypeByMetadataName("D").TypeKind);
2342Assert.Equal(TypeKind.Interface, compilation3.GetTypeByMetadataName("I1").TypeKind);
2358var a = compilation4.GetTypeByMetadataName("A");
2359var b = compilation4.GetTypeByMetadataName("B");
2360var c = compilation4.GetTypeByMetadataName("C");
2361var d = compilation4.GetTypeByMetadataName("D");
2362var i1 = compilation4.GetTypeByMetadataName("I1");
2383Assert.Equal(TypeKind.Struct, compilation5.GetTypeByMetadataName("A").TypeKind);
2384Assert.Equal(TypeKind.Enum, compilation5.GetTypeByMetadataName("B").TypeKind);
2385Assert.Equal(TypeKind.Class, compilation5.GetTypeByMetadataName("C").TypeKind);
2386Assert.Equal(TypeKind.Delegate, compilation5.GetTypeByMetadataName("D").TypeKind);
2387Assert.Equal(TypeKind.Interface, compilation5.GetTypeByMetadataName("I1").TypeKind);
2403a = compilation6.GetTypeByMetadataName("A");
2404b = compilation6.GetTypeByMetadataName("B");
2405c = compilation6.GetTypeByMetadataName("C");
2406d = compilation6.GetTypeByMetadataName("D");
2407i1 = compilation6.GetTypeByMetadataName("I1");
2424Assert.Equal(TypeKind.Struct, compilation7.GetTypeByMetadataName("A").TypeKind);
2425Assert.Equal(TypeKind.Enum, compilation7.GetTypeByMetadataName("B").TypeKind);
2426Assert.Equal(TypeKind.Class, compilation7.GetTypeByMetadataName("C").TypeKind);
2427Assert.Equal(TypeKind.Delegate, compilation7.GetTypeByMetadataName("D").TypeKind);
2428Assert.Equal(TypeKind.Interface, compilation7.GetTypeByMetadataName("I1").TypeKind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (575)
Symbols\DefaultInterfaceImplementationTests.cs (235)
974var test1 = compilation1.GetTypeByMetadataName("Test1");
1049var test1 = compilation1.GetTypeByMetadataName("Test1");
1128var test1 = compilation1.GetTypeByMetadataName("Test1");
1207var test1 = compilation1.GetTypeByMetadataName("Test1");
1288var test1 = compilation1.GetTypeByMetadataName("Test1");
1372var test1 = compilation1.GetTypeByMetadataName("Test1");
1460var test1 = compilation1.GetTypeByMetadataName("Test1");
1548var test1 = compilation1.GetTypeByMetadataName("Test1");
1593var test1 = compilation1.GetTypeByMetadataName("Test1");
1627var test2 = compilation3.GetTypeByMetadataName("Test2");
1683var test2 = compilation3.GetTypeByMetadataName("Test2");
1749var test2 = compilation3.GetTypeByMetadataName("Test2");
1784var test1 = compilation1.GetTypeByMetadataName("Test1");
1824var test2 = compilation3.GetTypeByMetadataName("Test2");
1881var test1 = compilation1.GetTypeByMetadataName("Test1");
1915var test2 = compilation2.GetTypeByMetadataName("Test2");
1933test2 = compilation3.GetTypeByMetadataName("Test2");
2026var test1 = compilation1.GetTypeByMetadataName("Test1");
2112var test1 = compilation1.GetTypeByMetadataName("Test1");
2186var test2 = compilation2.GetTypeByMetadataName("Test2");
2208test2 = compilation3.GetTypeByMetadataName("Test2");
2271var test1 = compilation2.GetTypeByMetadataName("Test1");
2340var test1 = compilation2.GetTypeByMetadataName("Test1");
2413var test1 = compilation2.GetTypeByMetadataName("Test1");
2486var test1 = compilation2.GetTypeByMetadataName("Test1");
3416var test1 = compilation1.GetTypeByMetadataName("Test1");
3484var test1 = compilation1.GetTypeByMetadataName("Test1");
3571var test1 = compilation1.GetTypeByMetadataName("Test1");
3635var test1 = compilation1.GetTypeByMetadataName("Test1");
4494var test2 = compilation3.GetTypeByMetadataName("Test2");
4495var i1 = compilation3.GetTypeByMetadataName("I1");
5270var test1 = compilation1.GetTypeByMetadataName("Test1");
5323var test1 = compilation1.GetTypeByMetadataName("Test1");
6035var test2 = compilation3.GetTypeByMetadataName("Test2");
6036var i1 = compilation3.GetTypeByMetadataName("I1");
7500var test2 = compilation3.GetTypeByMetadataName("Test2");
7501var i1 = compilation3.GetTypeByMetadataName("I1");
8432var i1 = compilation1.GetTypeByMetadataName("I1");
8824var i1 = compilation1.GetTypeByMetadataName("I1");
8971var test1 = compilation1.GetTypeByMetadataName("Test1");
8972var i1 = compilation1.GetTypeByMetadataName("I1");
9111var test1 = compilation1.GetTypeByMetadataName("Test1");
9112var i1 = compilation1.GetTypeByMetadataName("I1");
9271ValidateMethodModifiers_10(compilation2.GetTypeByMetadataName("I1").GetMember<MethodSymbol>("M1"), Accessibility.Internal, isStatic: isStatic);
9324var test2 = compilation.GetTypeByMetadataName(className);
9325var i1 = compilation.GetTypeByMetadataName("I1");
9468ValidateMethodModifiers_10(compilation2.GetTypeByMetadataName("I1").GetMember<MethodSymbol>("M1"), accessibility, isStatic: isStatic);
9541ValidateMethodModifiers_10(compilation2.GetTypeByMetadataName("I1").GetMember<MethodSymbol>("M1"), Accessibility.Internal);
9840ValidateMethodModifiers_10(compilation2.GetTypeByMetadataName("I1").GetMember<MethodSymbol>("M1"), Accessibility.Internal);
9905ValidateMethodModifiers_10(compilation2.GetTypeByMetadataName("I1").GetMember<MethodSymbol>("M1"), Accessibility.Internal);
9990ValidateMethodModifiers_10(compilation2.GetTypeByMetadataName("I1").GetMember<MethodSymbol>("M1"), Accessibility.Internal);
10090var test1 = compilation1.GetTypeByMetadataName("Test1");
10091var i1 = compilation1.GetTypeByMetadataName("I1");
10220var test1 = compilation1.GetTypeByMetadataName("Test1");
10221var test2 = compilation1.GetTypeByMetadataName("Test2");
10222var i1 = compilation1.GetTypeByMetadataName("I1");
10325var test1 = compilation1.GetTypeByMetadataName("Test1");
10326var test2 = compilation1.GetTypeByMetadataName("Test2");
10327var i1 = compilation1.GetTypeByMetadataName("I1");
10608var test1 = compilation1.GetTypeByMetadataName("Test1");
10609var test2 = compilation1.GetTypeByMetadataName("Test2");
10610var i1 = compilation1.GetTypeByMetadataName("I1");
10728var test1 = compilation1.GetTypeByMetadataName("Test1");
10729var test2 = compilation1.GetTypeByMetadataName("Test2");
10730var i1 = compilation1.GetTypeByMetadataName("I1");
10922var i1 = compilation2.GetTypeByMetadataName("I1");
11064var i1 = compilation1.GetTypeByMetadataName("I1");
11171var i1 = compilation1.GetTypeByMetadataName("I1");
11896ValidateMethodModifiers_10(compilation2.GetTypeByMetadataName("I1").GetMember<MethodSymbol>("M1"), Accessibility.Protected);
12011ValidateMethodModifiers_10(compilation2.GetTypeByMetadataName("I1").GetMember<MethodSymbol>("M1"), Accessibility.ProtectedOrInternal);
12134ValidateMethodModifiers_10(compilation2.GetTypeByMetadataName("I1").GetMember<MethodSymbol>("M1"), Accessibility.ProtectedAndInternal);
12232ValidateMethodModifiers_10(compilation2.GetTypeByMetadataName("I1").GetMember<MethodSymbol>("M1"), Accessibility.Protected);
12294ValidateMethodModifiers_10(compilation2.GetTypeByMetadataName("I1").GetMember<MethodSymbol>("M1"), Accessibility.ProtectedOrInternal);
12356ValidateMethodModifiers_10(compilation2.GetTypeByMetadataName("I1").GetMember<MethodSymbol>("M1"), Accessibility.ProtectedAndInternal);
12630var i1 = compilation2.GetTypeByMetadataName("I1");
12718var i1 = compilation2.GetTypeByMetadataName("I1");
12806var i1 = compilation2.GetTypeByMetadataName("I1");
13116var i1 = compilation1.GetTypeByMetadataName("I1");
14047return GetSingleProperty(compilation.GetTypeByMetadataName(containerName));
14082var i1 = compilation1.GetTypeByMetadataName("I1");
14393var test1 = compilation1.GetTypeByMetadataName("Test1");
14394var i1 = compilation1.GetTypeByMetadataName("I1");
14735var test1 = compilation1.GetTypeByMetadataName("Test1");
14736var i1 = compilation1.GetTypeByMetadataName("I1");
14939var i1 = compilation2.GetTypeByMetadataName("I1");
15038var test2 = compilation.GetTypeByMetadataName(className);
15039var i1 = compilation.GetTypeByMetadataName("I1");
16011var test1 = compilation1.GetTypeByMetadataName("Test1");
16012var i1 = compilation1.GetTypeByMetadataName("I1");
16313var test1 = compilation1.GetTypeByMetadataName("Test1");
16314var test2 = compilation1.GetTypeByMetadataName("Test2");
16585var test1 = compilation1.GetTypeByMetadataName("Test1");
16586var test2 = compilation1.GetTypeByMetadataName("Test2");
16590var i1 = compilation1.GetTypeByMetadataName("I" + i);
17021var test1 = compilation1.GetTypeByMetadataName("Test1");
17022var test2 = compilation1.GetTypeByMetadataName("Test2");
17271var test1 = compilation1.GetTypeByMetadataName("Test1");
17272var test2 = compilation1.GetTypeByMetadataName("Test2");
17517var i1 = compilation2.GetTypeByMetadataName("I1");
19898var i1 = compilation2.GetTypeByMetadataName("I1");
23390var test1 = compilation1.GetTypeByMetadataName("Test1");
23391var i1 = compilation1.GetTypeByMetadataName("I1");
26838var i1 = compilation1.GetTypeByMetadataName("I1");
27675return GetSingleEvent(compilation.GetTypeByMetadataName(containerName));
27710var i1 = compilation1.GetTypeByMetadataName("I1");
27977var test1 = compilation1.GetTypeByMetadataName("Test1");
27978var i1 = compilation1.GetTypeByMetadataName("I1");
28234var test1 = compilation1.GetTypeByMetadataName("Test1");
28235var i1 = compilation1.GetTypeByMetadataName("I1");
28485var i1 = compilation2.GetTypeByMetadataName("I1");
28540var test2 = compilation.GetTypeByMetadataName(className);
28541var i1 = compilation.GetTypeByMetadataName("I1");
29509var test1 = compilation1.GetTypeByMetadataName("Test1");
29510var i1 = compilation1.GetTypeByMetadataName("I1");
29702var test1 = compilation1.GetTypeByMetadataName("Test1");
29703var test2 = compilation1.GetTypeByMetadataName("Test2");
29998var test1 = compilation1.GetTypeByMetadataName("Test1");
29999var test2 = compilation1.GetTypeByMetadataName("Test2");
30003var i1 = compilation1.GetTypeByMetadataName("I" + i);
30444var test1 = compilation1.GetTypeByMetadataName("Test1");
30445var test2 = compilation1.GetTypeByMetadataName("Test2");
30665var test1 = compilation1.GetTypeByMetadataName("Test1");
30666var test2 = compilation1.GetTypeByMetadataName("Test2");
30922var i1 = compilation2.GetTypeByMetadataName("I1");
34989var test1 = compilation2.GetTypeByMetadataName("Test1");
35013test1 = compilation3.GetTypeByMetadataName("Test1");
35083var test1 = compilation2.GetTypeByMetadataName("Test1");
35111test1 = compilation3.GetTypeByMetadataName("Test1");
35181var test1 = compilation2.GetTypeByMetadataName("Test1");
35206test1 = compilation3.GetTypeByMetadataName("Test1");
35277var test1 = compilation2.GetTypeByMetadataName("Test1");
35301test1 = compilation3.GetTypeByMetadataName("Test1");
35382var test1 = compilation2.GetTypeByMetadataName("Test1");
35473var test1 = compilation2.GetTypeByMetadataName("Test1");
35582var test1 = compilation2.GetTypeByMetadataName("Test1");
35695var test1 = compilation2.GetTypeByMetadataName("Test1");
35808var test1 = compilation2.GetTypeByMetadataName("Test1");
35914var test1 = compilation2.GetTypeByMetadataName("Test1");
36231var test1 = compilation2.GetTypeByMetadataName("Test1");
39526var test1 = compilation2.GetTypeByMetadataName("Test1");
43737var i1 = compilation.GetTypeByMetadataName("I1");
44648Assert.Empty(compilation1.GetTypeByMetadataName("I1").GetMembers("I1"));
54383var i1 = compilation1.GetTypeByMetadataName("I1");
54385var test2 = compilation1.GetTypeByMetadataName("Test2");
54456var i1 = compilation1.GetTypeByMetadataName("I1");
54458var test2 = compilation1.GetTypeByMetadataName("Test2");
54556var i1 = compilation1.GetTypeByMetadataName("I1");
54558var test2 = compilation1.GetTypeByMetadataName("Test2");
54627var i1 = compilation1.GetTypeByMetadataName("I1");
54629var test2 = compilation1.GetTypeByMetadataName("Test2");
54695var i1 = compilation1.GetTypeByMetadataName("I1");
54697var test2 = compilation1.GetTypeByMetadataName("Test2");
54789var i1 = compilation1.GetTypeByMetadataName("I1");
54791var test2 = compilation1.GetTypeByMetadataName("Test2");
54883var i1 = compilation1.GetTypeByMetadataName("I1");
54885var test2 = compilation1.GetTypeByMetadataName("Test2");
54971var i1 = compilation1.GetTypeByMetadataName("I1");
54973var test2 = compilation1.GetTypeByMetadataName("Test2");
62379var c0 = compilation1.GetTypeByMetadataName("C0");
62472var test = compilation1.GetTypeByMetadataName("Test");
62516var c0 = compilation1.GetTypeByMetadataName("C0");
62517var test = compilation1.GetTypeByMetadataName("Test");
62531c0 = compilation1.GetTypeByMetadataName("C0");
62532test = compilation1.GetTypeByMetadataName("Test");
63129var i1 = compilation1.GetTypeByMetadataName("I1");
63130var i2 = compilation1.GetTypeByMetadataName("I2");
63131var c1 = compilation1.GetTypeByMetadataName("C1");
63132var test1 = compilation1.GetTypeByMetadataName("Test1");
63133var test2 = compilation1.GetTypeByMetadataName("Test2");
63134var test3 = compilation1.GetTypeByMetadataName("Test3");
63135var test4 = compilation1.GetTypeByMetadataName("Test4");
63335var i1 = compilation1.GetTypeByMetadataName("I1");
63336var i2 = compilation1.GetTypeByMetadataName("I2");
63337var c1 = compilation1.GetTypeByMetadataName("C1");
63338var test1 = compilation1.GetTypeByMetadataName("Test1");
63339var test2 = compilation1.GetTypeByMetadataName("Test2");
63340var test3 = compilation1.GetTypeByMetadataName("Test3");
63341var test4 = compilation1.GetTypeByMetadataName("Test4");
63501var i1 = compilation1.GetTypeByMetadataName("I1");
63502var i2 = compilation1.GetTypeByMetadataName("I2");
63503var c1 = compilation1.GetTypeByMetadataName("C1");
63504var test1 = compilation1.GetTypeByMetadataName("Test1");
63505var test2 = compilation1.GetTypeByMetadataName("Test2");
63506var test3 = compilation1.GetTypeByMetadataName("Test3");
63507var test4 = compilation1.GetTypeByMetadataName("Test4");
63677var i1 = compilation1.GetTypeByMetadataName("I1");
63678var i2 = compilation1.GetTypeByMetadataName("I2");
63679var c1 = compilation1.GetTypeByMetadataName("C1");
63680var test1 = compilation1.GetTypeByMetadataName("Test1");
63681var test2 = compilation1.GetTypeByMetadataName("Test2");
63682var test3 = compilation1.GetTypeByMetadataName("Test3");
63683var test4 = compilation1.GetTypeByMetadataName("Test4");
63860var i1 = compilation1.GetTypeByMetadataName("I1");
63861var c3 = compilation1.GetTypeByMetadataName("C3");
64067var i1 = compilation1.GetTypeByMetadataName("I1");
64068var i2 = compilation1.GetTypeByMetadataName("I2");
64069var i3 = compilation1.GetTypeByMetadataName("I3");
64070var test2 = compilation1.GetTypeByMetadataName("Test2");
64071var test3 = compilation1.GetTypeByMetadataName("Test3");
64210var i1 = compilation1.GetTypeByMetadataName("I1");
64211var i2 = compilation1.GetTypeByMetadataName("I2");
64212var i3 = compilation1.GetTypeByMetadataName("I3");
64213var test2 = compilation1.GetTypeByMetadataName("Test2");
64214var test3 = compilation1.GetTypeByMetadataName("Test3");
64326var i1 = compilation1.GetTypeByMetadataName("I1");
64327var i2 = compilation1.GetTypeByMetadataName("I2");
64328var i3 = compilation1.GetTypeByMetadataName("I3");
64329var test2 = compilation1.GetTypeByMetadataName("Test2");
64330var test3 = compilation1.GetTypeByMetadataName("Test3");
64447var i1 = compilation1.GetTypeByMetadataName("I1");
64448var i2 = compilation1.GetTypeByMetadataName("I2");
64449var i3 = compilation1.GetTypeByMetadataName("I3");
64450var test2 = compilation1.GetTypeByMetadataName("Test2");
64451var test3 = compilation1.GetTypeByMetadataName("Test3");
64534var i1 = compilation1.GetTypeByMetadataName("I1");
64535var c2 = compilation1.GetTypeByMetadataName("C2");
64614var i1 = compilation1.GetTypeByMetadataName("I1");
64615var c2 = compilation1.GetTypeByMetadataName("C2");
64688var i1 = compilation1.GetTypeByMetadataName("I1");
64689var c1 = compilation1.GetTypeByMetadataName("C1");
64690var c2 = compilation1.GetTypeByMetadataName("C2");
64767var i1 = compilation1.GetTypeByMetadataName("I1");
64768var c1 = compilation1.GetTypeByMetadataName("C1");
64769var c2 = compilation1.GetTypeByMetadataName("C2");
67147var i1 = compilation1.GetTypeByMetadataName("I1");
67212var i1 = compilation1.GetTypeByMetadataName("I1");
67213var i2 = compilation1.GetTypeByMetadataName("I2");
67329var i1 = compilation1.GetTypeByMetadataName("I1");
67396var i1 = compilation1.GetTypeByMetadataName("I1");
67397var i2 = compilation1.GetTypeByMetadataName("I2");
67517var i1 = compilation1.GetTypeByMetadataName("I1");
67587var i1 = compilation1.GetTypeByMetadataName("I1");
67588var i2 = compilation1.GetTypeByMetadataName("I2");
68008var c1 = compilation1.GetTypeByMetadataName("C1");
68072var c1 = compilation1.GetTypeByMetadataName("C1");
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (15)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (23)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (32)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Microsoft.CodeAnalysis.Features (18)
Microsoft.CodeAnalysis.Rebuild (1)
Microsoft.CodeAnalysis.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (7)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (28)
Compilation\CompilationAPITests.vb (23)
336Assert.Null(comp.GetTypeByMetadataName("`1"))
337Assert.Null(comp.GetTypeByMetadataName("中文`1"))
386Assert.Equal("D", comp.GetTypeByMetadataName("C+D").Name)
387Assert.Equal("E", comp.GetTypeByMetadataName("C+D+E").Name)
389Assert.Null(comp.GetTypeByMetadataName(""))
390Assert.Null(comp.GetTypeByMetadataName("+"))
391Assert.Null(comp.GetTypeByMetadataName("++"))
392Assert.Equal("C", comp.GetTypeByMetadataName("A.B.C").Name)
393Assert.Equal("D", comp.GetTypeByMetadataName("A.B.C+D").Name)
394Assert.Null(comp.GetTypeByMetadataName("A.B.C+F"))
395Assert.Equal("E", comp.GetTypeByMetadataName("A.B.C+D+E").Name)
396Assert.Null(comp.GetTypeByMetadataName("A.B.C+D+E+F"))
397Assert.Equal(1, comp.GetTypeByMetadataName("A.B.G`1").Arity)
398Assert.Equal(2, comp.GetTypeByMetadataName("A.B.G`1+Q`2").Arity)
399Assert.Equal(2, comp.GetTypeByMetadataName("A.B.G`2").Arity)
401Assert.Null(comp.GetTypeByMetadataName("c"))
402Assert.Null(comp.GetTypeByMetadataName("A.b.C"))
403Assert.Null(comp.GetTypeByMetadataName("C+d"))
405Assert.Equal(SpecialType.System_Array, comp.GetTypeByMetadataName("System.Array").SpecialType)
1438Assert.Null(c3.GetTypeByMetadataName("A+B"))
1447Assert.Equal("A.B", c1.GetTypeByMetadataName("A+B").ToDisplayString())
2851Assert.Equal("corlibWithValueTupleRef", comp.GetTypeByMetadataName("System.ValueTuple`2").ContainingAssembly.Name)
2857Assert.Equal(expectedAssemblyName, comp.GetTypeByMetadataName("System.ValueTuple`2").ContainingAssembly.Name)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (36)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (12)
Microsoft.CodeAnalysis.Workspaces (74)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (5)
Microsoft.CodeAnalysis.Workspaces.UnitTests (29)
UtilityTest\DocumentationCommentIdTests.cs (13)
85CheckDeclarationId("T:Color", compilation.GetTypeByMetadataName("Color"), compilation);
86CheckDeclarationId("T:Acme.IProcess", compilation.GetTypeByMetadataName("Acme.IProcess"), compilation);
87CheckDeclarationId("T:Acme.ValueType", compilation.GetTypeByMetadataName("Acme.ValueType"), compilation);
88CheckDeclarationId("T:Acme.Widget", compilation.GetTypeByMetadataName("Acme.Widget"), compilation);
89CheckDeclarationId("T:Acme.Widget.NestedClass", compilation.GetTypeByMetadataName("Acme.Widget+NestedClass"), compilation);
90CheckDeclarationId("T:Acme.Widget.IMenuItem", compilation.GetTypeByMetadataName("Acme.Widget+IMenuItem"), compilation);
91CheckDeclarationId("T:Acme.Widget.Del", compilation.GetTypeByMetadataName("Acme.Widget+Del"), compilation);
92CheckDeclarationId("T:Acme.Widget.Direction", compilation.GetTypeByMetadataName("Acme.Widget+Direction"), compilation);
93CheckDeclarationId("T:Acme.MyList`1", compilation.GetTypeByMetadataName("Acme.MyList`1"), compilation);
94CheckDeclarationId("T:Acme.MyList`1.Helper`2", compilation.GetTypeByMetadataName("Acme.MyList`1+Helper`2"), compilation);
335var outerType = compilation.GetTypeByMetadataName("Acme.OuterType`1");
336var innerType = compilation.GetTypeByMetadataName("Acme.OuterType`1+InnerType`2");
338var ienum = compilation.GetTypeByMetadataName("System.Collections.Generic.IEnumerable`1");
Microsoft.DotNet.CodeAnalysis (1)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.Options.SourceGeneration (2)
Microsoft.Gen.ComplianceReports (2)
Microsoft.Gen.ContextualOptions (1)
Microsoft.Gen.Logging (1)
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.Gen.Metrics (8)
Microsoft.Gen.MetricsReports (7)
Microsoft.Interop.ComInterfaceGenerator (9)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator (2)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Microsoft.Interop.SourceGeneration (15)
Microsoft.Maui.Controls.SourceGen (1)
Microsoft.ML.InternalCodeAnalyzer (7)
Microsoft.VisualStudio.LanguageServices (9)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Mvc.Analyzers.Test (60)
Mvc.Api.Analyzers.Test (64)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions.Generator (5)
System.Windows.Forms.PrivateSourceGenerators (1)