13 instantiations of new
ILLink.RoslynAnalyzer (13)
TrimAnalysis\FieldValue.cs (1)
17 StaticType = new (fieldSymbol.Type);
TrimAnalysis\HandleCallAction.cs (3)
122 AddReturnValue (new SystemTypeValue (new (staticType))); 173 yield return new SystemTypeValue (new TypeProxy (nestedType)); 192 baseType = new TypeProxy (type.Type.BaseType);
TrimAnalysis\MethodReturnValue.cs (1)
25 StaticType = new (isNewObj ? methodSymbol.ContainingType : methodSymbol.ReturnType);
TrimAnalysis\ParameterProxy.cs (2)
48 ? new TypeProxy (Method.Method.ContainingType) 49 : new TypeProxy (Method.Method.Parameters[MetadataIndex].Type);
TrimAnalysis\SingleValueExtensions.cs (6)
20 new NullableValueWithDynamicallyAccessedMembers (new TypeProxy (type), 23 TypeKind.Error => new SystemTypeValue (new TypeProxy (type)), 25 new NullableSystemTypeValue (new TypeProxy (type), new SystemTypeValue (new TypeProxy (underlyingType))), 31 SymbolKind.NamedType => new SystemTypeValue (new TypeProxy (type)), 33 SymbolKind.ArrayType => new SystemTypeValue (new TypeProxy (type.BaseType!)),
49 references to new
ILLink.RoslynAnalyzer (49)
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)
873 if (!_requireDynamicallyAccessedMembersAction.TryResolveTypeNameAndMark (knownStringValue.Contents, false, out TypeProxy foundType)) { 1293 private IEnumerable<MultiValue> ProcessGetMethodByName (TypeProxy type, string methodName, BindingFlags? bindingFlags) 1423 if (!TryResolveTypeNameForCreateInstanceAndMark (calledMethod, assemblyNameStringValue.Contents, typeNameStringValue.Contents, out TypeProxy resolvedType)) { 1517 private partial IEnumerable<SystemReflectionMethodBaseValue> GetMethodsOnTypeHierarchy (TypeProxy type, string name, BindingFlags? bindingFlags); 1519 private partial IEnumerable<SystemTypeValue> GetNestedTypesOnType (TypeProxy type, string name, BindingFlags? bindingFlags); 1521 private partial bool TryGetBaseType (TypeProxy type, [NotNullWhen (true)] out TypeProxy? baseType); 1523 private partial bool TryResolveTypeNameForCreateInstanceAndMark (in MethodProxy calledMethod, string assemblyName, string typeName, out TypeProxy resolvedType); 1525 private partial void MarkStaticConstructor (TypeProxy type); 1527 private partial void MarkEventsOnTypeHierarchy (TypeProxy type, string name, BindingFlags? bindingFlags); 1529 private partial void MarkFieldsOnTypeHierarchy (TypeProxy type, string name, BindingFlags? bindingFlags); 1531 private partial void MarkPropertiesOnTypeHierarchy (TypeProxy type, string name, BindingFlags? bindingFlags); 1533 private partial void MarkPublicParameterlessConstructorOnType (TypeProxy type); 1535 private partial void MarkConstructorsOnType (TypeProxy type, BindingFlags? bindingFlags, int? parameterCount); 1539 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;
TrimAnalysis\HandleCallAction.cs (12)
164 private partial IEnumerable<SystemReflectionMethodBaseValue> GetMethodsOnTypeHierarchy (TypeProxy type, string name, BindingFlags? bindingFlags) 170 private partial IEnumerable<SystemTypeValue> GetNestedTypesOnType (TypeProxy type, string name, BindingFlags? bindingFlags) 189 private partial bool TryGetBaseType (TypeProxy type, out TypeProxy? baseType) 200 private partial bool TryResolveTypeNameForCreateInstanceAndMark (in MethodProxy calledMethod, string assemblyName, string typeName, out TypeProxy resolvedType) 210 private partial void MarkStaticConstructor (TypeProxy type) 213 private partial void MarkEventsOnTypeHierarchy (TypeProxy type, string name, BindingFlags? bindingFlags) 216 private partial void MarkFieldsOnTypeHierarchy (TypeProxy type, string name, BindingFlags? bindingFlags) 219 private partial void MarkPropertiesOnTypeHierarchy (TypeProxy type, string name, BindingFlags? bindingFlags) 222 private partial void MarkPublicParameterlessConstructorOnType (TypeProxy type) 225 private partial void MarkConstructorsOnType (TypeProxy type, BindingFlags? bindingFlags, int? parameterCount) 232 private partial void MarkType (TypeProxy type) { }
TrimAnalysis\ParameterProxy.cs (1)
46 public TypeProxy ParameterType
TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (2)
24 public partial bool TryResolveTypeNameAndMark (string typeName, bool needsAssemblyName, out TypeProxy type) 37 private partial void MarkTypeForDynamicallyAccessedMembers (in TypeProxy type, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes) =>