1 write to Type
illink (1)
Linker.Dataflow\TypeProxy.cs (1)
15
Type
= type;
25 references to Type
illink (25)
Linker.Dataflow\HandleCallAction.cs (11)
123
TypeReference? staticType = (valueNode as IValueWithStaticType)?.StaticType?.
Type
;
214
foreach (var method in type.
Type
.GetMethodsOnTypeHierarchy (_context, m => m.Name == name, bindingFlags)) {
222
foreach (var nestedType in type.
Type
.GetNestedTypesOnType (_context, t => t.Name == name, bindingFlags))
228
if (type.
Type
.ResolveToTypeDefinition (_context)?.BaseType is TypeReference baseTypeRef && _context.TryResolve (baseTypeRef) is TypeDefinition baseTypeDefinition) {
262
=> _reflectionMarker.MarkStaticConstructor (_diagnosticContext.Origin, type.
Type
);
265
=> _reflectionMarker.MarkEventsOnTypeHierarchy (_diagnosticContext.Origin, type.
Type
, e => e.Name == name, bindingFlags);
268
=> _reflectionMarker.MarkFieldsOnTypeHierarchy (_diagnosticContext.Origin, type.
Type
, f => f.Name == name, bindingFlags);
271
=> _reflectionMarker.MarkPropertiesOnTypeHierarchy (_diagnosticContext.Origin, type.
Type
, p => p.Name == name, bindingFlags);
274
=> _reflectionMarker.MarkConstructorsOnType (_diagnosticContext.Origin, type.
Type
, m => m.IsPublic && !m.HasMetadataParameters ());
277
=> _reflectionMarker.MarkConstructorsOnType (_diagnosticContext.Origin, type.
Type
, (parameterCount == null) ? null : m => m.GetMetadataParametersCount () == parameterCount, bindingFlags);
283
=> _reflectionMarker.MarkType (_diagnosticContext.Origin, type.
Type
);
Linker.Dataflow\MethodBodyScanner.cs (1)
884
if (valueWithStaticType.StaticType is not null && _context.Annotations.FlowAnnotations.IsTypeInterestingForDataflow (valueWithStaticType.StaticType.Value.
Type
))
Linker.Dataflow\RequireDynamicallyAccessedMembersAction.cs (1)
40
_reflectionMarker.MarkTypeForDynamicallyAccessedMembers (_diagnosticContext.Origin, type.
Type
, dynamicallyAccessedMemberTypes, DependencyKind.DynamicallyAccessedMember);
Linker.Dataflow\TypeProxy.cs (12)
21
if (!
Type
.HasGenericParameters)
24
var builder = ImmutableArray.CreateBuilder<GenericParameterProxy> (
Type
.GenericParameters.Count);
25
foreach (var genericParameter in
Type
.GenericParameters) {
36
public string Name { get =>
Type
.Name; }
38
public string? Namespace { get =>
Type
.Namespace; }
40
public bool IsTypeOf (string @namespace, string name) =>
Type
.IsTypeOf (@namespace, name);
42
public bool IsTypeOf (WellKnownType wellKnownType) =>
Type
.IsTypeOf (wellKnownType);
44
public string GetDisplayName () =>
Type
.GetDisplayName ();
46
public override string ToString () =>
Type
.ToString ();
48
public bool Equals (TypeProxy other) => TypeReferenceEqualityComparer.AreEqual (
Type
, other.
Type
, resolver);
52
public override int GetHashCode () => TypeReferenceEqualityComparer.GetHashCodeFor (
Type
);