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)
131
TypeReference? staticType = (valueNode as IValueWithStaticType)?.StaticType?.
Type
;
256
foreach (var method in type.
Type
.GetMethodsOnTypeHierarchy(_context, m => m.Name == name, bindingFlags))
265
foreach (var nestedType in type.
Type
.GetNestedTypesOnType(_context, t => t.Name == name, bindingFlags))
271
if (type.
Type
.ResolveToTypeDefinition(_context)?.BaseType is TypeReference baseTypeRef && _context.TryResolve(baseTypeRef) is TypeDefinition baseTypeDefinition)
308
=> _reflectionMarker.MarkStaticConstructor(_diagnosticContext.Origin, type.
Type
);
311
=> _reflectionMarker.MarkEventsOnTypeHierarchy(_diagnosticContext.Origin, type.
Type
, e => e.Name == name, bindingFlags);
314
=> _reflectionMarker.MarkFieldsOnTypeHierarchy(_diagnosticContext.Origin, type.
Type
, f => f.Name == name, bindingFlags);
317
=> _reflectionMarker.MarkPropertiesOnTypeHierarchy(_diagnosticContext.Origin, type.
Type
, p => p.Name == name, bindingFlags);
320
=> _reflectionMarker.MarkConstructorsOnType(_diagnosticContext.Origin, type.
Type
, m => m.IsPublic && !m.HasMetadataParameters());
323
=> _reflectionMarker.MarkConstructorsOnType(_diagnosticContext.Origin, type.
Type
, (parameterCount == null) ? null : m => m.GetMetadataParametersCount() == parameterCount, bindingFlags);
329
=> _reflectionMarker.MarkType(_diagnosticContext.Origin, type.
Type
);
Linker.Dataflow\MethodBodyScanner.cs (1)
942
if (valueWithStaticType.StaticType is not null && _context.Annotations.FlowAnnotations.IsTypeInterestingForDataflow(valueWithStaticType.StaticType.Value.
Type
))
Linker.Dataflow\RequireDynamicallyAccessedMembersAction.cs (1)
43
_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)
37
public string Name { get =>
Type
.Name; }
39
public string? Namespace { get =>
Type
.Namespace; }
41
public bool IsTypeOf(string @namespace, string name) =>
Type
.IsTypeOf(@namespace, name);
43
public bool IsTypeOf(WellKnownType wellKnownType) =>
Type
.IsTypeOf(wellKnownType);
45
public string GetDisplayName() =>
Type
.GetDisplayName();
47
public override string ToString() =>
Type
.ToString();
49
public bool Equals(TypeProxy other) => TypeReferenceEqualityComparer.AreEqual(
Type
, other.
Type
, resolver);
53
public override int GetHashCode() => TypeReferenceEqualityComparer.GetHashCodeFor(
Type
);