1 write to Type
ILLink.RoslynAnalyzer (1)
TrimAnalysis\TypeProxy.cs (1)
12 public TypeProxy (ITypeSymbol type) => Type = type;
19 references to Type
ILLink.RoslynAnalyzer (19)
TrimAnalysis\HandleCallAction.cs (11)
89 ITypeSymbol? staticType = (valueNode as IValueWithStaticType)?.StaticType?.Type; 166 foreach (var method in type.Type.GetMethodsOnTypeHierarchy (m => m.Name == name, bindingFlags)) 172 foreach (var nestedType in type.Type.GetNestedTypesOnType (t => t.Name == name, bindingFlags)) 191 if (type.Type.BaseType is not null) { 192 baseType = new TypeProxy (type.Type.BaseType); 211 => _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForConstructorsOnType (_diagnosticContext.Location, type.Type, BindingFlags.Static, parameterCount: 0); 214 => _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForEventsOnTypeHierarchy (_diagnosticContext.Location, type.Type, name, bindingFlags); 217 => _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForFieldsOnTypeHierarchy (_diagnosticContext.Location, type.Type, name, bindingFlags); 220 => _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForPropertiesOnTypeHierarchy (_diagnosticContext.Location, type.Type, name, bindingFlags); 223 => _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForPublicParameterlessConstructor (_diagnosticContext.Location, type.Type); 226 => _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForConstructorsOnType (_diagnosticContext.Location, type.Type, bindingFlags, parameterCount);
TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (1)
38 _reflectionAccessAnalyzer.GetReflectionAccessDiagnostics (_diagnosticContext.Location, type.Type, dynamicallyAccessedMemberTypes);
TrimAnalysis\TypeProxy.cs (7)
16 if (Type is not INamedTypeSymbol namedType || 30 public string Name { get => Type.MetadataName; } 32 public string? Namespace { get => Type.ContainingNamespace?.Name; } 34 public bool IsTypeOf (string @namespace, string name) => Type.IsTypeOf (@namespace, name); 36 public bool IsTypeOf (WellKnownType wellKnownType) => Type.IsTypeOf (wellKnownType); 38 public string GetDisplayName () => Type.GetDisplayName (); 40 public override string ToString () => Type.ToString ();