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)
137ITypeSymbol? staticType = (valueNode as IValueWithStaticType)?.StaticType?.Type; 240foreach (var method in type.Type.GetMethodsOnTypeHierarchy(m => m.Name == name, bindingFlags)) 246foreach (var nestedType in type.Type.GetNestedTypesOnType(t => t.Name == name, bindingFlags)) 266if (type.Type.BaseType is not null) 268baseType = new TypeProxy(type.Type.BaseType); 287=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForConstructorsOnType(_diagnosticContext.Location, type.Type, BindingFlags.Static, parameterCount: 0); 290=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForEventsOnTypeHierarchy(_diagnosticContext.Location, type.Type, name, bindingFlags); 293=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForFieldsOnTypeHierarchy(_diagnosticContext.Location, type.Type, name, bindingFlags); 296=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForPropertiesOnTypeHierarchy(_diagnosticContext.Location, type.Type, name, bindingFlags); 299=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForPublicParameterlessConstructor(_diagnosticContext.Location, type.Type); 302=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForConstructorsOnType(_diagnosticContext.Location, type.Type, bindingFlags, parameterCount);
TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (1)
38_reflectionAccessAnalyzer.GetReflectionAccessDiagnostics(_diagnosticContext.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();