1 write to _type
ILCompiler.Compiler (1)
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (1)
884
_type
= GetActualTemplateTypeForType(factory, type);
29 references to _type
ILCompiler.Compiler (29)
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (29)
875
public TypeDesc CanonType =>
_type
.ConvertToCanonForm(CanonicalFormKind.Specific);
877
protected override string GetName(NodeFactory factory) => "NativeLayoutTemplateTypeLayoutVertexNode_" + factory.NameMangler.GetMangledTypeName(
_type
);
905
MetadataType closestCanonDefType = (MetadataType)
_type
.GetClosestDefType().ConvertToCanonForm(CanonicalFormKind.Specific);
915
MetadataType closestCanonDefType = (MetadataType)
_type
.GetClosestDefType().ConvertToCanonForm(CanonicalFormKind.Specific);
925
ISymbolNode typeNode = context.MaximallyConstructableType(
_type
.ConvertToCanonForm(CanonicalFormKind.Specific));
929
foreach (var dependency in context.NativeLayout.TemplateConstructableTypes(
_type
))
934
yield return new DependencyListEntry(context.GenericDictionaryLayout(
_type
.ConvertToCanonForm(CanonicalFormKind.Specific).GetClosestDefType()), "Dictionary layout");
936
foreach (TypeDesc iface in
_type
.RuntimeInterfaces)
946
if (context.PreinitializationManager.HasLazyStaticConstructor(
_type
.ConvertToCanonForm(CanonicalFormKind.Specific)))
948
yield return new DependencyListEntry(context.MethodEntrypoint(
_type
.GetStaticConstructor().GetCanonMethodTarget(CanonicalFormKind.Specific)), "cctor for template");
951
foreach (GenericParameterDesc genericParam in
_type
.GetTypeDefinition().Instantiation)
960
DefType closestCanonDefType = (DefType)
_type
.GetClosestDefType().ConvertToCanonForm(CanonicalFormKind.Specific);
971
if (
_type
.BaseType != null && !
_type
.BaseType.IsRuntimeDeterminedSubtype)
973
TypeDesc baseType =
_type
.BaseType;
981
if (
_type
.BaseType != null &&
_type
.BaseType.IsRuntimeDeterminedSubtype)
983
yield return new DependencyListEntry(context.NativeLayout.PlacedSignatureVertex(context.NativeLayout.TypeSignatureVertex(
_type
.BaseType)), "template base type");
985
foreach (var dependency in context.NativeLayout.TemplateConstructableTypes(
_type
.BaseType))
1001
DictionaryLayoutNode associatedLayout = factory.GenericDictionaryLayout(
_type
.ConvertToCanonForm(CanonicalFormKind.Specific).GetClosestDefType());
1005
if (
_type
.RuntimeInterfaces.Length > 0)
1009
foreach (TypeDesc iface in
_type
.RuntimeInterfaces)
1018
if (!factory.LazyGenericsPolicy.UsesLazyGenerics(
_type
) && templateLayout.Count > 0)
1032
if (factory.PreinitializationManager.HasLazyStaticConstructor(
_type
.ConvertToCanonForm(CanonicalFormKind.Specific)))
1034
MethodDesc cctorMethod =
_type
.GetStaticConstructor();
1041
DefType closestCanonDefType = (DefType)
_type
.GetClosestDefType().ConvertToCanonForm(CanonicalFormKind.Specific);
1063
if (
_type
.BaseType != null &&
_type
.BaseType.IsRuntimeDeterminedSubtype)
1065
layoutInfo.Append(BagElementKind.BaseType, factory.NativeLayout.PlacedSignatureVertex(factory.NativeLayout.TypeSignatureVertex(
_type
.BaseType)).WriteVertex(factory));