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)
138
ITypeSymbol? staticType = (valueNode as IValueWithStaticType)?.StaticType?.
Type
;
241
foreach (var method in type.
Type
.GetMethodsOnTypeHierarchy(m => m.Name == name, bindingFlags))
247
foreach (var nestedType in type.
Type
.GetNestedTypesOnType(t => t.Name == name, bindingFlags))
267
if (type.
Type
.BaseType is not null)
269
baseType = 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)
16
if (
Type
is not INamedTypeSymbol namedType ||
31
public string Name { get =>
Type
.MetadataName; }
33
public string? Namespace { get =>
Type
.ContainingNamespace?.Name; }
35
public bool IsTypeOf(string @namespace, string name) =>
Type
.IsTypeOf(@namespace, name);
37
public bool IsTypeOf(WellKnownType wellKnownType) =>
Type
.IsTypeOf(wellKnownType);
39
public string GetDisplayName() =>
Type
.GetDisplayName();
41
public override string ToString() =>
Type
.ToString();