private bool CalculateCandidateArgumentScore(CandidateMethod candidateMethod, int argumentIndex, Type paramType) { int score = CandidateMethod.CalculateArgumentScore(paramType, _arguments[argumentIndex]); if (score < 0) { return(false); } candidateMethod.ArgumentScores[argumentIndex] = score; return(true); }
private void EmitLoadValue() { EmitArgArrayElement(0); EmitCoercion(_argumentType, _field.FieldType, CandidateMethod.CalculateArgumentScore(_field.FieldType, _argumentType)); }