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); 615AddReturnValue(MultiValueLattice.Top); ; // Initialize return value (so that it's not autofilled if there are no matching methods) 617AddReturnValue(methodValue); 622AddReturnValue(MultiValueLattice.Top); 628AddReturnValue(annotatedMethodReturnValue); 635AddReturnValue(MultiValueLattice.Top); 646AddReturnValue(MultiValueLattice.Top); 652AddReturnValue(annotatedMethodReturnValue); 660AddReturnValue(annotatedMethodReturnValue); 703AddReturnValue(MultiValueLattice.Top); 707AddReturnValue(nestedTypeValue); 712AddReturnValue(MultiValueLattice.Top); 721AddReturnValue(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, ImplicitNestedTypeAccessLevel)); 728AddReturnValue(MultiValueLattice.Top); 739AddReturnValue(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, DynamicallyAccessedMemberTypes.All)); 741AddReturnValue(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, ImplicitNestedTypeAccessLevel)); 796AddReturnValue(MultiValueLattice.Top); // Initialize return value (so that it's not autofilled if there are no matching methods) 798AddReturnValue(methodValue); 810AddReturnValue(MultiValueLattice.Top); 815AddReturnValue(annotatedMethodReturnValue); 822AddReturnValue(MultiValueLattice.Top); 827AddReturnValue(annotatedMethodReturnValue); 1016AddReturnValue(singlevalue switch 1066AddReturnValue(MultiValueLattice.Top); 1070AddReturnValue(new SystemTypeValue(foundType)); 1076AddReturnValue(MultiValueLattice.Top); 1082AddReturnValue(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, valueWithDynamicallyAccessedMembers.DynamicallyAccessedMemberTypes)); 1087AddReturnValue(MultiValueLattice.Top); 1132AddReturnValue(MultiValueLattice.Top); 1135AddReturnValue(new NullableSystemTypeValue(typeValue.RepresentedType, new SystemTypeValue(systemTypeValue.RepresentedType))); 1139AddReturnValue(new NullableValueWithDynamicallyAccessedMembers(typeValue.RepresentedType, damValue)); 1145AddReturnValue(value); 1154AddReturnValue(value); 1173AddReturnValue(MultiValueLattice.Top); 1184AddReturnValue(value); 1254AddReturnValue(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, propagatedMemberTypes)); 1259AddReturnValue(new SystemTypeValue(baseType.Value)); 1261AddReturnValue(annotatedMethodReturnValue); 1266AddReturnValue(MultiValueLattice.Top); 1272AddReturnValue(annotatedMethodReturnValue); 1370AddReturnValue(instanceValue);
TrimAnalysis\HandleCallAction.cs (8)
105AddReturnValue(ArrayValue.Create(0)); 110AddReturnValue(argumentValues[0]); 118AddReturnValue(MultiValueLattice.Top); 154AddReturnValue(FlowAnnotations.Instance.GetMethodReturnValue(calledMethod, _isNewObj, annotation)); 159AddReturnValue(FlowAnnotations.Instance.GetMethodReturnValue(calledMethod, _isNewObj)); 179AddReturnValue(new SystemTypeValue(new(staticType))); 183AddReturnValue(FlowAnnotations.Instance.GetMethodReturnValue(calledMethod, _isNewObj, DynamicallyAccessedMemberTypes.PublicFields)); 188AddReturnValue(FlowAnnotations.Instance.GetMethodReturnValue(calledMethod, _isNewObj, annotation));