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)
137
ITypeSymbol? staticType = (valueNode as IValueWithStaticType)?.StaticType?.
Type
;
240
foreach (var method in type.
Type
.GetMethodsOnTypeHierarchy(m => m.Name == name, bindingFlags))
246
foreach (var nestedType in type.
Type
.GetNestedTypesOnType(t => t.Name == name, bindingFlags))
266
if (type.
Type
.BaseType is not null)
268
baseType = 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)
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();