62 references to AddReturnValue
ILLink.RoslynAnalyzer (62)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (54)
134AddReturnValue(value switch 166AddReturnValue(value switch 183AddReturnValue(MultiValueLattice.Top); 201AddReturnValue(new SystemReflectionMethodBaseValue(methodHandle.RepresentedMethod)); 203AddReturnValue(annotatedMethodReturnValue); 219AddReturnValue(new RuntimeMethodHandleValue(methodBaseValue.RepresentedMethod)); 221AddReturnValue(annotatedMethodReturnValue); 255AddReturnValue(MultiValueLattice.Top); 259AddReturnValue(NullValue.Instance); 277AddReturnValue(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, returnMemberTypes)); 311AddReturnValue(new ArrayOfAnnotatedSystemTypeValue(_annotations.GetMethodReturnValue(calledMethod, isNewObj: false, returnMemberTypes))); 336AddReturnValue(valueWithDynamicallyAccessedMembers); 341AddReturnValue(MultiValueLattice.Top); 345AddReturnValue(UnknownValue.Instance); 614AddReturnValue(MultiValueLattice.Top); ; // Initialize return value (so that it's not autofilled if there are no matching methods) 616AddReturnValue(methodValue); 621AddReturnValue(MultiValueLattice.Top); 627AddReturnValue(annotatedMethodReturnValue); 634AddReturnValue(MultiValueLattice.Top); 645AddReturnValue(MultiValueLattice.Top); 651AddReturnValue(annotatedMethodReturnValue); 659AddReturnValue(annotatedMethodReturnValue); 702AddReturnValue(MultiValueLattice.Top); 706AddReturnValue(nestedTypeValue); 711AddReturnValue(MultiValueLattice.Top); 720AddReturnValue(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, ImplicitNestedTypeAccessLevel)); 727AddReturnValue(MultiValueLattice.Top); 738AddReturnValue(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, DynamicallyAccessedMemberTypes.All)); 740AddReturnValue(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, ImplicitNestedTypeAccessLevel)); 795AddReturnValue(MultiValueLattice.Top); // Initialize return value (so that it's not autofilled if there are no matching methods) 797AddReturnValue(methodValue); 809AddReturnValue(MultiValueLattice.Top); 814AddReturnValue(annotatedMethodReturnValue); 821AddReturnValue(MultiValueLattice.Top); 826AddReturnValue(annotatedMethodReturnValue); 1015AddReturnValue(singlevalue switch 1065AddReturnValue(MultiValueLattice.Top); 1069AddReturnValue(new SystemTypeValue(foundType)); 1075AddReturnValue(MultiValueLattice.Top); 1081AddReturnValue(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, valueWithDynamicallyAccessedMembers.DynamicallyAccessedMemberTypes)); 1086AddReturnValue(MultiValueLattice.Top); 1131AddReturnValue(MultiValueLattice.Top); 1134AddReturnValue(new NullableSystemTypeValue(typeValue.RepresentedType, new SystemTypeValue(systemTypeValue.RepresentedType))); 1138AddReturnValue(new NullableValueWithDynamicallyAccessedMembers(typeValue.RepresentedType, damValue)); 1144AddReturnValue(value); 1153AddReturnValue(value); 1172AddReturnValue(MultiValueLattice.Top); 1183AddReturnValue(value); 1253AddReturnValue(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, propagatedMemberTypes)); 1258AddReturnValue(new SystemTypeValue(baseType.Value)); 1260AddReturnValue(annotatedMethodReturnValue); 1265AddReturnValue(MultiValueLattice.Top); 1271AddReturnValue(annotatedMethodReturnValue); 1369AddReturnValue(instanceValue);
TrimAnalysis\HandleCallAction.cs (8)
104AddReturnValue(ArrayValue.Create(0)); 109AddReturnValue(argumentValues[0]); 117AddReturnValue(MultiValueLattice.Top); 153AddReturnValue(FlowAnnotations.Instance.GetMethodReturnValue(calledMethod, _isNewObj, annotation)); 158AddReturnValue(FlowAnnotations.Instance.GetMethodReturnValue(calledMethod, _isNewObj)); 178AddReturnValue(new SystemTypeValue(new(staticType))); 182AddReturnValue(FlowAnnotations.Instance.GetMethodReturnValue(calledMethod, _isNewObj, DynamicallyAccessedMemberTypes.PublicFields)); 187AddReturnValue(FlowAnnotations.Instance.GetMethodReturnValue(calledMethod, _isNewObj, annotation));