Exemplo n.º 1
0
 internal partial MethodReturnValue GetMethodReturnValue(MethodProxy method)
 => GetMethodReturnValue(method, FlowAnnotations.GetMethodReturnValueAnnotation(method.Method));
Exemplo n.º 2
0
        internal partial MethodParameterValue GetMethodParameterValue(MethodProxy method, int parameterIndex)
        {
            var annotation = FlowAnnotations.GetMethodParameterAnnotation(method.Method.Parameters[parameterIndex]);

            return(GetMethodParameterValue(method, parameterIndex, annotation));
        }
Exemplo n.º 3
0
#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);
Exemplo n.º 4
0
 public HandleCallAction(
     FlowAnnotations annotations,
     ReflectionMarker reflectionMarker,
     in DiagnosticContext diagnosticContext,