public override void Parse(Method method) { ArgumentUtility.CheckNotNull("method", method); foreach (var interfaceDeclaration in IntrospectionUtility.InterfaceDeclarations(method)) { MatchFragments(interfaceDeclaration, method); } }
public Fragment[] InferParameterFragmentTypes(Method method) { Fragment[] parameterFragmentTypes; Method[] interfaceDeclarations = IntrospectionUtility.InterfaceDeclarations(method); if (interfaceDeclarations.Any()) { parameterFragmentTypes = GetParameterFragmentTypes(interfaceDeclarations.First()); } else { parameterFragmentTypes = GetParameterFragmentTypes(method); } return(parameterFragmentTypes); }