protected virtual bool OnValidate(CodeGenerationOptions opt, GenericParameterDefinitionList type_params, CodeGeneratorContext context) { var tpl = GenericParameterDefinitionList.Merge(type_params, GenericArguments); if (!Parameters.Validate(opt, tpl, context)) { return(false); } return(true); }
protected virtual bool OnValidate(CodeGenerationOptions opt, GenericParameterDefinitionList type_params, CodeGeneratorContext context) { var tpl = GenericParameterDefinitionList.Merge(type_params, GenericArguments); if (!Parameters.Validate(opt, tpl, context)) { return(false); } if (Parameters.Count > 14) { Report.Warning(0, Report.WarningMethodBase + 0, "More than 16 parameters were found, which goes beyond the maximum number of parameters. ({0})", context.ContextString); return(false); } return(true); }
protected override bool OnValidate(CodeGenerationOptions opt, GenericParameterDefinitionList type_params) { if (GenericArguments != null) { GenericArguments.Validate(opt, type_params); } var tpl = GenericParameterDefinitionList.Merge(type_params, GenericArguments); if (!retval.Validate(opt, tpl)) { return(false); } return(base.OnValidate(opt, tpl)); }