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