17 instantiations of new
illink (17)
Linker.Dataflow\AttributeDataFlow.cs (1)
59
: new SystemTypeValue (
new
(referencedType, _context));
Linker.Dataflow\FieldValue.cs (1)
21
StaticType =
new
(fieldToLoad.FieldType.InflateFrom (fieldToLoad.DeclaringType as IGenericInstance), resolver);
Linker.Dataflow\FlowAnnotations.cs (4)
773
return new NullableValueWithDynamicallyAccessedMembers (
new
(genericArgumentType, _context),
778
return new NullableSystemTypeValue (
new
(genericArgumentType, _context), new SystemTypeValue (
new
(underlyingTypeDefinition, _context)));
784
return new SystemTypeValue (
new
(genericArgumentType, _context));
Linker.Dataflow\HandleCallAction.cs (4)
158
AddReturnValue (new SystemTypeValue (
new
(staticType, _context)));
223
yield return new SystemTypeValue (new
TypeProxy
(nestedType, _context));
229
baseType = new
TypeProxy
(baseTypeDefinition, _context);
257
resolvedType = new
TypeProxy
(foundType, _context);
Linker.Dataflow\MethodBodyScanner.cs (4)
794
var nullableDam = new RuntimeTypeHandleForNullableValueWithDynamicallyAccessedMembers (new
TypeProxy
(resolvedDefinition, _context),
799
var nullableType = new RuntimeTypeHandleForNullableSystemTypeValue (new
TypeProxy
(resolvedDefinition, _context), new SystemTypeValue (
new
(underlyingType, _context)));
807
var typeHandle = new RuntimeTypeHandleValue (new
TypeProxy
(resolvedDefinition, _context));
Linker.Dataflow\MethodParameterValue.cs (1)
19
StaticType = staticType == null ? null :
new
(staticType, resolver);
Linker.Dataflow\MethodReturnValue.cs (1)
32
StaticType = staticType == null ? null :
new
(staticType, resolver);
Linker.Dataflow\RequireDynamicallyAccessedMembersAction.cs (1)
30
type =
new
(foundType, _resolver);
51 references to new
illink (51)
Linker.Dataflow\HandleCallAction.cs (12)
212
private partial IEnumerable<SystemReflectionMethodBaseValue> GetMethodsOnTypeHierarchy (
TypeProxy
type, string name, BindingFlags? bindingFlags)
220
private partial IEnumerable<SystemTypeValue> GetNestedTypesOnType (
TypeProxy
type, string name, BindingFlags? bindingFlags)
226
private partial bool TryGetBaseType (
TypeProxy
type, out
TypeProxy
? baseType)
237
private partial bool TryResolveTypeNameForCreateInstanceAndMark (in MethodProxy calledMethod, string assemblyName, string typeName, out
TypeProxy
resolvedType)
261
private partial void MarkStaticConstructor (
TypeProxy
type)
264
private partial void MarkEventsOnTypeHierarchy (
TypeProxy
type, string name, BindingFlags? bindingFlags)
267
private partial void MarkFieldsOnTypeHierarchy (
TypeProxy
type, string name, BindingFlags? bindingFlags)
270
private partial void MarkPropertiesOnTypeHierarchy (
TypeProxy
type, string name, BindingFlags? bindingFlags)
273
private partial void MarkPublicParameterlessConstructorOnType (
TypeProxy
type)
276
private partial void MarkConstructorsOnType (
TypeProxy
type, BindingFlags? bindingFlags, int? parameterCount)
282
private partial void MarkType (
TypeProxy
type)
Linker.Dataflow\RequireDynamicallyAccessedMembersAction.cs (2)
27
public partial bool TryResolveTypeNameAndMark (string typeName, bool needsAssemblyName, out
TypeProxy
type)
38
private partial void MarkTypeForDynamicallyAccessedMembers (in
TypeProxy
type, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes)
Linker.Dataflow\TypeProxy.cs (3)
11
internal readonly partial struct TypeProxy : IEquatable<
TypeProxy
>
48
public bool Equals (
TypeProxy
other) => TypeReferenceEqualityComparer.AreEqual (Type, other.Type, resolver);
50
public override bool Equals (object? o) => o is
TypeProxy
other && Equals (other);
src\tools\illink\src\ILLink.Shared\TrimAnalysis\FieldValue.cs (1)
13
public
TypeProxy
? StaticType { get; }
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (15)
843
if (!_requireDynamicallyAccessedMembersAction.TryResolveTypeNameAndMark (knownStringValue.Contents, false, out
TypeProxy
foundType)) {
1263
private IEnumerable<MultiValue> ProcessGetMethodByName (
TypeProxy
type, string methodName, BindingFlags? bindingFlags)
1393
if (!TryResolveTypeNameForCreateInstanceAndMark (calledMethod, assemblyNameStringValue.Contents, typeNameStringValue.Contents, out
TypeProxy
resolvedType)) {
1487
private partial IEnumerable<SystemReflectionMethodBaseValue> GetMethodsOnTypeHierarchy (
TypeProxy
type, string name, BindingFlags? bindingFlags);
1489
private partial IEnumerable<SystemTypeValue> GetNestedTypesOnType (
TypeProxy
type, string name, BindingFlags? bindingFlags);
1491
private partial bool TryGetBaseType (
TypeProxy
type, [NotNullWhen (true)] out
TypeProxy
? baseType);
1493
private partial bool TryResolveTypeNameForCreateInstanceAndMark (in MethodProxy calledMethod, string assemblyName, string typeName, out
TypeProxy
resolvedType);
1495
private partial void MarkStaticConstructor (
TypeProxy
type);
1497
private partial void MarkEventsOnTypeHierarchy (
TypeProxy
type, string name, BindingFlags? bindingFlags);
1499
private partial void MarkFieldsOnTypeHierarchy (
TypeProxy
type, string name, BindingFlags? bindingFlags);
1501
private partial void MarkPropertiesOnTypeHierarchy (
TypeProxy
type, string name, BindingFlags? bindingFlags);
1503
private partial void MarkPublicParameterlessConstructorOnType (
TypeProxy
type);
1505
private partial void MarkConstructorsOnType (
TypeProxy
type, BindingFlags? bindingFlags, int? parameterCount);
1509
private partial void MarkType (
TypeProxy
type);
src\tools\illink\src\ILLink.Shared\TrimAnalysis\IValueWithStaticType.cs (1)
16
TypeProxy
? StaticType { get; }
src\tools\illink\src\ILLink.Shared\TrimAnalysis\MethodParameterValue.cs (1)
16
public
TypeProxy
? StaticType { get; }
src\tools\illink\src\ILLink.Shared\TrimAnalysis\MethodReturnValue.cs (1)
13
public
TypeProxy
? StaticType { get; }
src\tools\illink\src\ILLink.Shared\TrimAnalysis\NullableSystemTypeValue.cs (2)
19
public NullableSystemTypeValue (in
TypeProxy
nullableType, in SystemTypeValue underlyingTypeValue)
25
public readonly
TypeProxy
NullableType;
src\tools\illink\src\ILLink.Shared\TrimAnalysis\NullableValueWithDynamicallyAccessedMembers.cs (2)
21
public NullableValueWithDynamicallyAccessedMembers (in
TypeProxy
nullableType, in ValueWithDynamicallyAccessedMembers underlyingTypeValue)
28
public readonly
TypeProxy
NullableType;
src\tools\illink\src\ILLink.Shared\TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (3)
47
if (!TryResolveTypeNameAndMark (knownStringValue.Contents, needsAssemblyName: true, out
TypeProxy
foundType)) {
72
public partial bool TryResolveTypeNameAndMark (string typeName, bool needsAssemblyName, out
TypeProxy
type);
74
private partial void MarkTypeForDynamicallyAccessedMembers (in
TypeProxy
type, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes);
src\tools\illink\src\ILLink.Shared\TrimAnalysis\RuntimeTypeHandleForNullableSystemTypeValue.cs (2)
19
public RuntimeTypeHandleForNullableSystemTypeValue (in
TypeProxy
nullableType, in SystemTypeValue underlyingTypeValue)
25
public readonly
TypeProxy
NullableType;
src\tools\illink\src\ILLink.Shared\TrimAnalysis\RuntimeTypeHandleForNullableValueWithDynamicallyAccessedMembers.cs (2)
19
public RuntimeTypeHandleForNullableValueWithDynamicallyAccessedMembers (in
TypeProxy
nullableType, in SingleValue underlyingTypeValue)
26
public readonly
TypeProxy
NullableType;
src\tools\illink\src\ILLink.Shared\TrimAnalysis\RuntimeTypeHandleValue.cs (2)
17
public RuntimeTypeHandleValue (in
TypeProxy
representedType)
22
public readonly
TypeProxy
RepresentedType;
src\tools\illink\src\ILLink.Shared\TrimAnalysis\SystemTypeValue.cs (2)
17
public SystemTypeValue (in
TypeProxy
representedType)
22
public readonly
TypeProxy
RepresentedType;