60 references to AddReturnValue
ILLink.RoslynAnalyzer (60)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (52)
122 AddReturnValue (value switch { 151 AddReturnValue (value switch { 167 AddReturnValue (MultiValueLattice.Top); 182 AddReturnValue (new SystemReflectionMethodBaseValue (methodHandle.RepresentedMethod)); 184 AddReturnValue (annotatedMethodReturnValue); 197 AddReturnValue (new RuntimeMethodHandleValue (methodBaseValue.RepresentedMethod)); 199 AddReturnValue (annotatedMethodReturnValue); 228 AddReturnValue (MultiValueLattice.Top); 230 AddReturnValue (NullValue.Instance); 246 AddReturnValue (_annotations.GetMethodReturnValue (calledMethod, _isNewObj, returnMemberTypes)); 277 AddReturnValue (new ArrayOfAnnotatedSystemTypeValue(_annotations.GetMethodReturnValue (calledMethod, isNewObj: false, returnMemberTypes))); 298 AddReturnValue (valueWithDynamicallyAccessedMembers); 301 AddReturnValue (MultiValueLattice.Top); 303 AddReturnValue (UnknownValue.Instance); 529 AddReturnValue (MultiValueLattice.Top); ; // Initialize return value (so that it's not autofilled if there are no matching methods) 531 AddReturnValue (methodValue); 534 AddReturnValue (MultiValueLattice.Top); 538 AddReturnValue (annotatedMethodReturnValue); 543 AddReturnValue (MultiValueLattice.Top); 547 AddReturnValue (annotatedMethodReturnValue); 584 AddReturnValue (MultiValueLattice.Top); 587 AddReturnValue (nestedTypeValue); 590 AddReturnValue (MultiValueLattice.Top); 597 AddReturnValue (_annotations.GetMethodReturnValue (calledMethod, _isNewObj, ImplicitNestedTypeAccessLevel)); 602 AddReturnValue (MultiValueLattice.Top); 611 AddReturnValue (_annotations.GetMethodReturnValue (calledMethod, _isNewObj, DynamicallyAccessedMemberTypes.All)); 613 AddReturnValue (_annotations.GetMethodReturnValue (calledMethod, _isNewObj, ImplicitNestedTypeAccessLevel)); 660 AddReturnValue (MultiValueLattice.Top); // Initialize return value (so that it's not autofilled if there are no matching methods) 662 AddReturnValue (methodValue); 672 AddReturnValue (MultiValueLattice.Top); 675 AddReturnValue (annotatedMethodReturnValue); 680 AddReturnValue (MultiValueLattice.Top); 683 AddReturnValue (annotatedMethodReturnValue); 832 AddReturnValue (singlevalue switch { 875 AddReturnValue (MultiValueLattice.Top); 877 AddReturnValue (new SystemTypeValue (foundType)); 881 AddReturnValue (MultiValueLattice.Top); 885 AddReturnValue (_annotations.GetMethodReturnValue (calledMethod, _isNewObj, valueWithDynamicallyAccessedMembers.DynamicallyAccessedMemberTypes)); 888 AddReturnValue (MultiValueLattice.Top); 925 AddReturnValue (MultiValueLattice.Top); 928 AddReturnValue (new NullableSystemTypeValue (typeValue.RepresentedType, new SystemTypeValue (systemTypeValue.RepresentedType))); 932 AddReturnValue (new NullableValueWithDynamicallyAccessedMembers (typeValue.RepresentedType, damValue)); 938 AddReturnValue (value); 945 AddReturnValue (value); 959 AddReturnValue (MultiValueLattice.Top); 968 AddReturnValue (value); 1033 AddReturnValue (_annotations.GetMethodReturnValue (calledMethod, _isNewObj, propagatedMemberTypes)); 1036 AddReturnValue (new SystemTypeValue (baseType.Value)); 1038 AddReturnValue (annotatedMethodReturnValue); 1041 AddReturnValue (MultiValueLattice.Top); 1045 AddReturnValue (annotatedMethodReturnValue); 1125 AddReturnValue (instanceValue);
TrimAnalysis\HandleCallAction.cs (8)
59 AddReturnValue (ArrayValue.Create (0)); 64 AddReturnValue (argumentValues[0]); 70 AddReturnValue (MultiValueLattice.Top); 101 AddReturnValue (FlowAnnotations.Instance.GetMethodReturnValue (calledMethod, _isNewObj, annotation)); 104 AddReturnValue (FlowAnnotations.Instance.GetMethodReturnValue (calledMethod, _isNewObj)); 122 AddReturnValue (new SystemTypeValue (new (staticType))); 124 AddReturnValue (FlowAnnotations.Instance.GetMethodReturnValue (calledMethod, _isNewObj, DynamicallyAccessedMemberTypes.PublicFields)); 127 AddReturnValue (FlowAnnotations.Instance.GetMethodReturnValue (calledMethod, _isNewObj, annotation));