1 write to _type
ILCompiler.Compiler (1)
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (1)
889
_type
= GetActualTemplateTypeForType(factory, type);
29 references to _type
ILCompiler.Compiler (29)
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (29)
880
public TypeDesc CanonType =>
_type
.ConvertToCanonForm(CanonicalFormKind.Specific);
882
protected override string GetName(NodeFactory factory) => "NativeLayoutTemplateTypeLayoutVertexNode_" + factory.NameMangler.GetMangledTypeName(
_type
);
910
MetadataType closestCanonDefType = (MetadataType)
_type
.GetClosestDefType().ConvertToCanonForm(CanonicalFormKind.Specific);
920
MetadataType closestCanonDefType = (MetadataType)
_type
.GetClosestDefType().ConvertToCanonForm(CanonicalFormKind.Specific);
930
ISymbolNode typeNode = context.MaximallyConstructableType(
_type
.ConvertToCanonForm(CanonicalFormKind.Specific));
934
foreach (var dependency in context.NativeLayout.TemplateConstructableTypes(
_type
))
939
yield return new DependencyListEntry(context.GenericDictionaryLayout(
_type
.ConvertToCanonForm(CanonicalFormKind.Specific).GetClosestDefType()), "Dictionary layout");
941
foreach (TypeDesc iface in
_type
.RuntimeInterfaces)
951
if (context.PreinitializationManager.HasLazyStaticConstructor(
_type
.ConvertToCanonForm(CanonicalFormKind.Specific)))
953
yield return new DependencyListEntry(context.MethodEntrypoint(
_type
.GetStaticConstructor().GetCanonMethodTarget(CanonicalFormKind.Specific)), "cctor for template");
956
foreach (GenericParameterDesc genericParam in
_type
.GetTypeDefinition().Instantiation)
965
DefType closestCanonDefType = (DefType)
_type
.GetClosestDefType().ConvertToCanonForm(CanonicalFormKind.Specific);
976
if (
_type
.BaseType != null && !
_type
.BaseType.IsRuntimeDeterminedSubtype)
978
TypeDesc baseType =
_type
.BaseType;
986
if (
_type
.BaseType != null &&
_type
.BaseType.IsRuntimeDeterminedSubtype)
988
yield return new DependencyListEntry(context.NativeLayout.PlacedSignatureVertex(context.NativeLayout.TypeSignatureVertex(
_type
.BaseType)), "template base type");
990
foreach (var dependency in context.NativeLayout.TemplateConstructableTypes(
_type
.BaseType))
1011
DictionaryLayoutNode associatedLayout = factory.GenericDictionaryLayout(
_type
.ConvertToCanonForm(CanonicalFormKind.Specific).GetClosestDefType());
1015
if (
_type
.RuntimeInterfaces.Length > 0)
1019
foreach (TypeDesc iface in
_type
.RuntimeInterfaces)
1028
if (!factory.LazyGenericsPolicy.UsesLazyGenerics(
_type
) && templateLayout.Count > 0)
1042
if (factory.PreinitializationManager.HasLazyStaticConstructor(
_type
.ConvertToCanonForm(CanonicalFormKind.Specific)))
1044
MethodDesc cctorMethod =
_type
.GetStaticConstructor();
1051
DefType closestCanonDefType = (DefType)
_type
.GetClosestDefType().ConvertToCanonForm(CanonicalFormKind.Specific);
1075
if (
_type
.BaseType != null &&
_type
.BaseType.IsRuntimeDeterminedSubtype)
1077
layoutInfo.Append(BagElementKind.BaseType, factory.NativeLayout.PlacedSignatureVertex(factory.NativeLayout.TypeSignatureVertex(
_type
.BaseType)).WriteVertex(factory));