2 types derived from PENamedTypeSymbol
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (2)
2452private sealed class PENamedTypeSymbolNonGeneric : PENamedTypeSymbol 2516private sealed class PENamedTypeSymbolGeneric : PENamedTypeSymbol
362 references to PENamedTypeSymbol
Microsoft.CodeAnalysis.CSharp (74)
Emitter\EditAndContinue\CSharpDefinitionMap.cs (1)
61if (_mapToMetadata.MapDefinition(def)?.GetInternalSymbol() is PENamedTypeSymbol other)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (4)
228var type = (PENamedTypeSymbol)def; 234var type = (PENamedTypeSymbol)def;
Emitter\Model\NamedTypeSymbolAdapter.cs (3)
75PENamedTypeSymbol peNamedType = AdaptedNamedTypeSymbol as PENamedTypeSymbol; 783AdaptedNamedTypeSymbol.OriginalDefinition is PENamedTypeSymbol, "type name contains dots: " + unsuffixedName);
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (3)
36base(moduleSymbol, containingType as PENamedTypeSymbol) 60PENamedTypeSymbol peType = _containingType as PENamedTypeSymbol;
Symbols\Metadata\PE\MetadataDecoder.cs (10)
26private readonly PENamedTypeSymbol _typeContextOpt; 35PENamedTypeSymbol context) : 43this(moduleSymbol, (PENamedTypeSymbol)context.ContainingType, context) 53private MetadataDecoder(PEModuleSymbol moduleSymbol, PENamedTypeSymbol typeContextOpt, PEMethodSymbol methodContextOpt) 88PENamedTypeSymbol type = _typeContextOpt; 92type = type.ContainingSymbol as PENamedTypeSymbol; 492if (typeSymbol is PENamedTypeSymbol peTypeSymbol && ReferenceEquals(peTypeSymbol.ContainingPEModule, moduleSymbol)) 517Debug.Assert(typeSymbol is PENamedTypeSymbol || typeSymbol is ErrorTypeSymbol); 590PENamedTypeSymbol peTypeSymbol = typeSymbol as PENamedTypeSymbol;
Symbols\Metadata\PE\PEEventSymbol.cs (4)
27private readonly PENamedTypeSymbol _containingType; 54PENamedTypeSymbol containingType, 479var containingType = (PENamedTypeSymbol)ContainingType;
Symbols\Metadata\PE\PEFieldSymbol.cs (4)
119private readonly PENamedTypeSymbol _containingType; 136PENamedTypeSymbol containingType, 647var containingType = (PENamedTypeSymbol)ContainingType;
Symbols\Metadata\PE\PEMethodSymbol.cs (2)
354private readonly PENamedTypeSymbol _containingType; 375PENamedTypeSymbol containingType,
Symbols\Metadata\PE\PEModuleSymbol.cs (2)
479Dictionary<string, ImmutableArray<PENamedTypeSymbol>> typesDict) 485foreach (var type in types)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (21)
30private static readonly Dictionary<string, ImmutableArray<PENamedTypeSymbol>> s_emptyNestedTypes = new Dictionary<string, ImmutableArray<PENamedTypeSymbol>>(EmptyComparer.Instance); 63private Dictionary<string, ImmutableArray<PENamedTypeSymbol>> _lazyNestedTypes; 174internal static PENamedTypeSymbol Create( 186PENamedTypeSymbol result; 227internal static PENamedTypeSymbol Create( 229PENamedTypeSymbol containingType, 246PENamedTypeSymbol result; 1171return HandleComparer.Default.Compare(((PENamedTypeSymbol)x).Handle, ((PENamedTypeSymbol)y).Handle); 1503ImmutableArray<PENamedTypeSymbol> t; 1557var types = ArrayBuilder<PENamedTypeSymbol>.GetInstance(); 1577ImmutableArray<PENamedTypeSymbol> t; 1847private IEnumerable<PENamedTypeSymbol> CreateNestedTypes() 1877yield return PENamedTypeSymbol.Create(moduleSymbol, this, typeRid); 2051private static Dictionary<string, ImmutableArray<PENamedTypeSymbol>> GroupByName(ArrayBuilder<PENamedTypeSymbol> symbols) 2150return ContainingType is PENamedTypeSymbol containingType 2486var containingType = _container as PENamedTypeSymbol; 2655var nestedType = Create(this.ContainingPEModule, (PENamespaceSymbol)this.ContainingNamespace, _handle, null);
Symbols\Metadata\PE\PENamespaceSymbol.cs (6)
36protected Dictionary<string, ImmutableArray<PENamedTypeSymbol>> lazyTypes; 48private ImmutableArray<PENamedTypeSymbol> _lazyFlattenedTypes; 95ImmutableArray<PENamedTypeSymbol> t; 128ImmutableArray<PENamedTypeSymbol> t; 248var children = ArrayBuilder<PENamedTypeSymbol>.GetInstance(); 258children.Add(PENamedTypeSymbol.Create(moduleSymbol, this, t, g.Key));
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1133PEPropertySymbol => new MetadataDecoder(containingModule, (PENamedTypeSymbol)ContainingType),
Symbols\Metadata\PE\PEPropertySymbol.cs (6)
31private readonly PENamedTypeSymbol _containingType; 123PENamedTypeSymbol containingType, 157PENamedTypeSymbol containingType, 836var containingType = (PENamedTypeSymbol)ContainingType; 892PENamedTypeSymbol containingType,
Symbols\Metadata\PE\PETypeParameterSymbol.cs (3)
48PENamedTypeSymbol definingNamedType, 258tokenDecoder = new MetadataDecoder(moduleSymbol, (PENamedTypeSymbol)_containingSymbol); 602((PENamedTypeSymbol)_containingSymbol).TypeParameters;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (4)
306return RetargetNamedTypeDefinition((PENamedTypeSymbol)type, addedModule); 401private static NamedTypeSymbol RetargetNamedTypeDefinition(PENamedTypeSymbol type, PEModuleSymbol addedModule) 423NamedTypeSymbol scope = RetargetNamedTypeDefinition((PENamedTypeSymbol)containingType, addedModule); 435Debug.Assert(result is PENamedTypeSymbol peResult && peResult.Handle == type.Handle);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (100)
CodeGen\CodeGenReadonlyStructTests.cs (1)
838Assert.True(peModule.Module.HasIsReadOnlyAttribute(((PENamedTypeSymbol)test).Handle));
Emit\EmitMetadataTests.cs (1)
1083bool checkValidProperties = (type is PENamedTypeSymbol);
Emit\NoPiaEmbedTypes.cs (98)
1174var itest1 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest1").Single(); 1196var test2 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("Test2").Single(); 1258var test9 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("Test9").Single(); 1337var test11 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("Test11").Single(); 1451var itest17 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest17").Single(); 1499var itest18 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest18").Single(); 1503var itest19 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest19").Single(); 1574var itest21 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest21").Single(); 1587var itest22 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest22").Single(); 1596var itest23 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest23").Single(); 1604var itest24 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest24").Single(); 1617var itest25 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest25").Single(); 1629var itest26 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest26").Single(); 1733var itest28 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest28").Single(); 1736var itest29 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest29").Single(); 1906var itest28 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest28").Single(); 1993var itest28 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest28").Single(); 2203var interface1_Event = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("Interface1_Event").Single(); 2213var interfaceEvents = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("InterfaceEvents").Single(); 2710var itest29 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest29").Single(); 2715var itest30 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest30").Single(); 2782var itest29 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest29").Single(); 2787var itest30 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest30").Single(); 2846var test31 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("Test31").Single(); 2907var itest30 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest30").Single(); 2973var itest30 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest30").Single(); 3039var itest30 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest30").Single(); 3104var itest30 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest30").Single(); 3169var itest30 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest30").Single(); 3237var itest30 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest30").Single(); 3328var itest30 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest30").Single(); 3387var myDelegate = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("MyDelegate").Single(); 3452var itest30 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest30").Single(); 3954var itest33 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest33").Single(); 3957var itest34 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest34").Single(); 3960var itest35 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest35").Single(); 4038var itest33 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest33").Single(); 4041var itest34 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest34").Single(); 4044var itest35 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest35").Single(); 4115var itest33 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest33").Single(); 4118var itest34 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest34").Single(); 4121var itest35 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest35").Single(); 4180var itest33 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest33").Single(); 4183var usePia7 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("UsePia7").Single(); 4245var itest33 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest33").Single(); 4305var itest33 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest33").Single(); 4365var itest33 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest33").Single(); 4431var itest33 = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("ITest33").Single(); 5310var IEventsBase = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("IEventsBase").Single();
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (19)
Attributes\AttributeTests.cs (3)
1596var typeI = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("I").Single(); 9623Assert.IsAssignableFrom<PENamedTypeSymbol>(type);
Attributes\AttributeTests_IsByRefLike.cs (9)
45Assert.True(peModule.Module.HasIsByRefLikeAttribute(((PENamedTypeSymbol)type).Handle)); 102Assert.True(peModule.Module.HasIsByRefLikeAttribute(((PENamedTypeSymbol)type).Handle)); 681var peType = (PENamedTypeSymbol)type; 764AssertHasCompilerFeatureRequired(includeCompilerFeatureRequired, (PENamedTypeSymbol)type, peModule, new MetadataDecoder(peModule)); 820AssertHasCompilerFeatureRequired(includeCompilerFeatureRequired, (PENamedTypeSymbol)type, peModule, new MetadataDecoder(peModule)); 1039var peType = (PENamedTypeSymbol)type; 1063private static void AssertHasCompilerFeatureRequired(bool hasCompilerFeatureRequired, PENamedTypeSymbol peType, PEModuleSymbol peModule, MetadataDecoder decoder)
Attributes\AttributeTests_ReadOnlyStruct.cs (1)
44Assert.True(peModule.Module.HasIsReadOnlyAttribute(((PENamedTypeSymbol)type).Handle));
Emit\NumericIntPtrTests.cs (6)
10891var baseNint = (PENamedTypeSymbol)baseM.ReturnType; 10894var derivedNint = (PENamedTypeSymbol)derivedM.ReturnType; 10926var baseNint = (PENamedTypeSymbol)baseM.ReturnType;
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (5)
CompilationExtensions.cs (4)
21private static PENamedTypeSymbol GetType(PEModuleSymbol module, TypeDefinitionHandle typeHandle) 24return (PENamedTypeSymbol)metadataDecoder.GetTypeOfToken(typeHandle); 27internal static PENamedTypeSymbol GetType(this CSharpCompilation compilation, Guid moduleVersionId, int typeToken) 57var type = GetType(module, typeHandle);
EvaluationContext.cs (1)
80var currentType = compilation.GetType(moduleVersionId, typeToken);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (1)
ExpressionCompilerTestBase.cs (1)
259methodOrTypeHandle = ((PENamedTypeSymbol)methodOrType).Handle;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\NullableReferenceTypesTests.cs (1)
107280Assert.IsAssignableFrom<PENamedTypeSymbol>(c);
Semantics\RecordStructTests.cs (2)
407Assert.True(point is PENamedTypeSymbol); 496Assert.True(point is PENamedTypeSymbol);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (142)
Symbols\CompilationCreationTests.cs (1)
3000Assert.IsAssignableFrom<PENamedTypeSymbol>(addedModuleType);
Symbols\DefaultInterfaceImplementationTests.cs (60)
616var derivedResult = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Derived"); 714var derivedResult = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Derived"); 816var derivedResult = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Derived"); 918var derivedResult = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Derived"); 995var test1Result = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Test1"); 1070var test1Result = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Test1"); 1149var test1Result = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Test1"); 1228var test1Result = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Test1"); 1312var test1Result = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Test1"); 1396var test1Result = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Test1"); 1484var test1Result = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Test1"); 1572var test1Result = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Test1"); 1936var test2Result = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Test2"); 2208var test2Result = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Test2"); 2230var test2Result = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Test2"); 3561var derivedResult = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Derived"); 3703var derivedResult = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Derived"); 3855var derivedResult = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Derived"); 4007var derivedResult = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Derived"); 4612var test2Result = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Test2"); 5222var derivedResult = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Derived"); 5339var derivedResult = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Derived"); 5484var derivedResult = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Derived"); 5611var derivedResult = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Derived"); 6046var test2Result = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Test2"); 6779var derivedResult = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Derived"); 6882var derivedResult = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Derived"); 6989var derivedResult = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Derived"); 7096var derivedResult = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Derived"); 7522var test2Result = (PENamedTypeSymbol)m.GlobalNamespace.GetTypeMember("Test2");
Symbols\GenericConstraintTests.cs (2)
6586var typeI = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMembers("I").Single();
Symbols\Metadata\PE\BaseTypeResolution.cs (16)
274Assert.Equal(base1, module1.TypeHandleToTypeMap[((PENamedTypeSymbol)base1).Handle]); 275Assert.Equal(base2, module1.TypeHandleToTypeMap[((PENamedTypeSymbol)base2).Handle]); 276Assert.Equal(base3, module1.TypeHandleToTypeMap[((PENamedTypeSymbol)base3).Handle]); 277Assert.Equal(base4, module1.TypeHandleToTypeMap[((PENamedTypeSymbol)base4).Handle]); 278Assert.Equal(base5, module1.TypeHandleToTypeMap[((PENamedTypeSymbol)base5).Handle]); 279Assert.Equal(base6, module1.TypeHandleToTypeMap[((PENamedTypeSymbol)base6).Handle]); 280Assert.Equal(base7, module1.TypeHandleToTypeMap[((PENamedTypeSymbol)base7).Handle]); 281Assert.Equal(base8, module1.TypeHandleToTypeMap[((PENamedTypeSymbol)base8).Handle]); 283Assert.Equal(base1, module0.TypeRefHandleToTypeMap[(TypeReferenceHandle)module0.Module.GetBaseTypeOfTypeOrThrow(((PENamedTypeSymbol)localTC1).Handle)]); 284Assert.Equal(base2, module0.TypeRefHandleToTypeMap[(TypeReferenceHandle)module0.Module.GetBaseTypeOfTypeOrThrow(((PENamedTypeSymbol)localTC2).Handle)]); 285Assert.Equal(base3, module0.TypeRefHandleToTypeMap[(TypeReferenceHandle)module0.Module.GetBaseTypeOfTypeOrThrow(((PENamedTypeSymbol)localTC3).Handle)]); 286Assert.Equal(base4, module0.TypeRefHandleToTypeMap[(TypeReferenceHandle)module0.Module.GetBaseTypeOfTypeOrThrow(((PENamedTypeSymbol)localTC4).Handle)]); 287Assert.Equal(base5, module0.TypeRefHandleToTypeMap[(TypeReferenceHandle)module0.Module.GetBaseTypeOfTypeOrThrow(((PENamedTypeSymbol)localTC5).Handle)]); 288Assert.Equal(base6, module0.TypeRefHandleToTypeMap[(TypeReferenceHandle)module0.Module.GetBaseTypeOfTypeOrThrow(((PENamedTypeSymbol)localTC6).Handle)]); 289Assert.Equal(base7, module0.TypeRefHandleToTypeMap[(TypeReferenceHandle)module0.Module.GetBaseTypeOfTypeOrThrow(((PENamedTypeSymbol)localTC7).Handle)]); 290Assert.Equal(base8, module0.TypeRefHandleToTypeMap[(TypeReferenceHandle)module0.Module.GetBaseTypeOfTypeOrThrow(((PENamedTypeSymbol)localTC8).Handle)]);
Symbols\Metadata\PE\LoadingIndexers.cs (32)
63var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 105var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 147var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 197var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 247var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 310var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 352var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 394var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 611var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>(className); 707var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 786var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 842var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 915var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 999var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 1161var @interface = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("I"); 1165var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C");
Symbols\Metadata\PE\LoadingMethods.cs (2)
960var derivedClass = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("Derived");
Symbols\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.cs (2)
119Assert.IsAssignableFrom<PENamedTypeSymbol>(var1.Type); 166Assert.IsAssignableFrom<PENamedTypeSymbol>(var1.Type);
Symbols\Metadata\PE\NoPiaLocalHideAndTypeSubstitutionTests.cs (3)
204Assert.IsAssignableFrom<PENamedTypeSymbol>(param.First().Type); 275Assert.IsAssignableFrom<PENamedTypeSymbol>(methodSymbol.Type); 330Assert.IsAssignableFrom<PENamedTypeSymbol>(interfaceType);
Symbols\Metadata\PE\TypeForwarders.cs (1)
65Assert.Equal(base1, module1.TypeRefHandleToTypeMap[(TypeReferenceHandle)module1.Module.GetBaseTypeOfTypeOrThrow(((PENamedTypeSymbol)derived1).Handle)]);
Symbols\Retargeting\RetargetCustomModifiers.cs (1)
44Assert.IsAssignableFrom<PENamedTypeSymbol>(modifiers);
Symbols\Source\BaseClassTests.cs (14)
1022Assert.IsAssignableFrom<PENamedTypeSymbol>(B_base); 1023Assert.IsAssignableFrom<PENamedTypeSymbol>(A_base); 1077Assert.IsAssignableFrom<PENamedTypeSymbol>(B1); 1078Assert.IsAssignableFrom<PENamedTypeSymbol>(B_base); 1079Assert.IsAssignableFrom<PENamedTypeSymbol>(A_base); 1097Assert.IsAssignableFrom<PENamedTypeSymbol>(B2); 1100Assert.Equal(((PENamedTypeSymbol)B1).Handle, ((PENamedTypeSymbol)B2).Handle); 1193Assert.IsAssignableFrom<PENamedTypeSymbol>(B1); 1223Assert.IsAssignableFrom<PENamedTypeSymbol>(B2); 1226Assert.Equal(((PENamedTypeSymbol)B1).Handle, ((PENamedTypeSymbol)B2).Handle); 1231Assert.IsAssignableFrom<PENamedTypeSymbol>(A2.BaseType()); 1232Assert.IsAssignableFrom<PENamedTypeSymbol>(B2.BaseType());
Symbols\Source\EventTests.cs (2)
814var classSymbol = (PENamedTypeSymbol)comp.GetTypeByMetadataName("C");
Symbols\Source\PropertyTests.cs (6)
628var type = (PENamedTypeSymbol)compilation.GlobalNamespace.GetMembers("NoAccessors").Single(); 712var type = (PENamedTypeSymbol)verifier.Compilation.GlobalNamespace.GetMembers("Signatures").Single().GetSymbol(); 790var type = (PENamedTypeSymbol)compilation.GlobalNamespace.GetMembers("FamilyAssembly").Single();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
RequiredMemberAttributesVisitor.cs (1)
36case PENamedTypeSymbol namedType:
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (17)
Metadata\WinMdDumpTest.cs (2)
59var namedType = (PENamedTypeSymbol)member;
Metadata\WinMdEventTests.cs (2)
2757var itextrange = wns1.GetMember<PENamedTypeSymbol>("Application");
Metadata\WinMdMetadataTests.cs (13)
52var itextrange = wns1.GetMember<PENamedTypeSymbol>("ITextRange"); 54var pt = ((PEParameterSymbol)(func.Parameters[0])).Type as PENamedTypeSymbol; 74var itextrange = wns1.GetMember<PENamedTypeSymbol>("SuspendingEventHandler"); 94var iref = wns1.GetMember<PENamedTypeSymbol>("IUriRuntimeClass"); 114var clas = wns2.GetMember<PENamedTypeSymbol>("Point"); 137Assert.Equal("System.Runtime.WindowsRuntime.dll", ((PENamedTypeSymbol)((((PropertySymbol)(blk)).GetMethod).ReturnType)).ContainingModule.ToString()); 239var c = (PENamedTypeSymbol)module.GlobalNamespace.GetTypeMember("C");