internal partial MethodReturnValue GetMethodReturnValue(MethodProxy method) => GetMethodReturnValue(method, FlowAnnotations.GetMethodReturnValueAnnotation(method.Method));
internal partial MethodParameterValue GetMethodParameterValue(MethodProxy method, int parameterIndex) { var annotation = FlowAnnotations.GetMethodParameterAnnotation(method.Method.Parameters[parameterIndex]); return(GetMethodParameterValue(method, parameterIndex, annotation)); }
#pragma warning disable CA1822 // Mark members as static - the other partial implementations might need to be instance methods // TODO: This is relatively expensive on the analyzer since it doesn't cache the annotation information // In linker this is an optimization to avoid the heavy lifting of analysis if there's no point // it's unclear if the same optimization makes sense for the analyzer. internal partial bool MethodRequiresDataFlowAnalysis(MethodProxy method) => FlowAnnotations.RequiresDataFlowAnalysis(method.Method);
public HandleCallAction( FlowAnnotations annotations, ReflectionMarker reflectionMarker, in DiagnosticContext diagnosticContext,