62 references to AddReturnValue
illink (62)
Linker.Dataflow\HandleCallAction.cs (8)
75
AddReturnValue
(argumentValues[0]);
81
AddReturnValue
(ArrayValue.Create(0, ((GenericInstanceMethod)calledMethod.Method).GenericArguments[0]));
111
AddReturnValue
(MultiValueLattice.Top);
149
AddReturnValue
(_context.Annotations.FlowAnnotations.GetMethodReturnValue(calledMethod, _isNewObj, annotation));
154
AddReturnValue
(_context.Annotations.FlowAnnotations.GetMethodReturnValue(calledMethod, _isNewObj));
174
AddReturnValue
(new SystemTypeValue(new(staticType, _context)));
178
AddReturnValue
(_context.Annotations.FlowAnnotations.GetMethodReturnValue(calledMethod, _isNewObj, DynamicallyAccessedMemberTypes.PublicFields));
192
AddReturnValue
(_context.Annotations.FlowAnnotations.GetMethodReturnValue(calledMethod, _isNewObj, annotation));
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (54)
134
AddReturnValue
(value switch
166
AddReturnValue
(value switch
183
AddReturnValue
(MultiValueLattice.Top);
201
AddReturnValue
(new SystemReflectionMethodBaseValue(methodHandle.RepresentedMethod));
203
AddReturnValue
(annotatedMethodReturnValue);
219
AddReturnValue
(new RuntimeMethodHandleValue(methodBaseValue.RepresentedMethod));
221
AddReturnValue
(annotatedMethodReturnValue);
255
AddReturnValue
(MultiValueLattice.Top);
259
AddReturnValue
(NullValue.Instance);
277
AddReturnValue
(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, returnMemberTypes));
311
AddReturnValue
(new ArrayOfAnnotatedSystemTypeValue(_annotations.GetMethodReturnValue(calledMethod, isNewObj: false, returnMemberTypes)));
336
AddReturnValue
(valueWithDynamicallyAccessedMembers);
341
AddReturnValue
(MultiValueLattice.Top);
345
AddReturnValue
(UnknownValue.Instance);
615
AddReturnValue
(MultiValueLattice.Top); ; // Initialize return value (so that it's not autofilled if there are no matching methods)
617
AddReturnValue
(methodValue);
622
AddReturnValue
(MultiValueLattice.Top);
628
AddReturnValue
(annotatedMethodReturnValue);
635
AddReturnValue
(MultiValueLattice.Top);
646
AddReturnValue
(MultiValueLattice.Top);
652
AddReturnValue
(annotatedMethodReturnValue);
660
AddReturnValue
(annotatedMethodReturnValue);
703
AddReturnValue
(MultiValueLattice.Top);
707
AddReturnValue
(nestedTypeValue);
712
AddReturnValue
(MultiValueLattice.Top);
721
AddReturnValue
(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, ImplicitNestedTypeAccessLevel));
728
AddReturnValue
(MultiValueLattice.Top);
739
AddReturnValue
(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, DynamicallyAccessedMemberTypes.All));
741
AddReturnValue
(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, ImplicitNestedTypeAccessLevel));
796
AddReturnValue
(MultiValueLattice.Top); // Initialize return value (so that it's not autofilled if there are no matching methods)
798
AddReturnValue
(methodValue);
810
AddReturnValue
(MultiValueLattice.Top);
815
AddReturnValue
(annotatedMethodReturnValue);
822
AddReturnValue
(MultiValueLattice.Top);
827
AddReturnValue
(annotatedMethodReturnValue);
1016
AddReturnValue
(singlevalue switch
1066
AddReturnValue
(MultiValueLattice.Top);
1070
AddReturnValue
(new SystemTypeValue(foundType));
1076
AddReturnValue
(MultiValueLattice.Top);
1082
AddReturnValue
(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, valueWithDynamicallyAccessedMembers.DynamicallyAccessedMemberTypes));
1087
AddReturnValue
(MultiValueLattice.Top);
1132
AddReturnValue
(MultiValueLattice.Top);
1135
AddReturnValue
(new NullableSystemTypeValue(typeValue.RepresentedType, new SystemTypeValue(systemTypeValue.RepresentedType)));
1139
AddReturnValue
(new NullableValueWithDynamicallyAccessedMembers(typeValue.RepresentedType, damValue));
1145
AddReturnValue
(value);
1154
AddReturnValue
(value);
1173
AddReturnValue
(MultiValueLattice.Top);
1184
AddReturnValue
(value);
1254
AddReturnValue
(_annotations.GetMethodReturnValue(calledMethod, _isNewObj, propagatedMemberTypes));
1259
AddReturnValue
(new SystemTypeValue(baseType.Value));
1261
AddReturnValue
(annotatedMethodReturnValue);
1266
AddReturnValue
(MultiValueLattice.Top);
1272
AddReturnValue
(annotatedMethodReturnValue);
1370
AddReturnValue
(instanceValue);