1 write to Type
ILLink.RoslynAnalyzer (1)
TrimAnalysis\TypeProxy.cs (1)
12public TypeProxy(ITypeSymbol type) => Type = type;
19 references to Type
ILLink.RoslynAnalyzer (19)
TrimAnalysis\HandleCallAction.cs (11)
138ITypeSymbol? staticType = (valueNode as IValueWithStaticType)?.StaticType?.Type; 241foreach (var method in type.Type.GetMethodsOnTypeHierarchy(m => m.Name == name, bindingFlags)) 247foreach (var nestedType in type.Type.GetNestedTypesOnType(t => t.Name == name, bindingFlags)) 267if (type.Type.BaseType is not null) 269baseType = new TypeProxy(type.Type.BaseType); 288=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForConstructorsOnType(_diagnosticContext.Location, type.Type, BindingFlags.Static, parameterCount: 0); 291=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForEventsOnTypeHierarchy(_diagnosticContext.Location, type.Type, name, bindingFlags); 294=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForFieldsOnTypeHierarchy(_diagnosticContext.Location, type.Type, name, bindingFlags); 297=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForPropertiesOnTypeHierarchy(_diagnosticContext.Location, type.Type, name, bindingFlags); 300=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForPublicParameterlessConstructor(_diagnosticContext.Location, type.Type); 303=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForConstructorsOnType(_diagnosticContext.Location, type.Type, bindingFlags, parameterCount);
TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (1)
54_reflectionAccessAnalyzer.GetReflectionAccessDiagnostics(_location, type.Type, dynamicallyAccessedMemberTypes);
TrimAnalysis\TypeProxy.cs (7)
16if (Type is not INamedTypeSymbol namedType || 31public string Name { get => Type.MetadataName; } 33public string? Namespace { get => Type.ContainingNamespace?.Name; } 35public bool IsTypeOf(string @namespace, string name) => Type.IsTypeOf(@namespace, name); 37public bool IsTypeOf(WellKnownType wellKnownType) => Type.IsTypeOf(wellKnownType); 39public string GetDisplayName() => Type.GetDisplayName(); 41public override string ToString() => Type.ToString();