/// <summary> /// Compute if the method signature contains generic parameter types. /// </summary> private static int toMask(Type parent, Type returns, List pars) { // we only use generics in Sys if (parent.pod() != Sys.m_sysPod) { return(0); } int p = returns.isGenericParameter() ? 1 : 0; for (int i = 0; i < pars.sz(); ++i) { p |= ((Param)pars.get(i)).m_type.isGenericParameter() ? 1 : 0; } int mask = 0; if (p != 0) { mask |= GENERIC; } return(mask); }
private bool isMultiLine(Type t) { return t.pod() != Sys.m_sysPod; }
/// <summary> /// Compute if the method signature contains generic parameter types. /// </summary> private static int toMask(Type parent, Type returns, List pars) { // we only use generics in Sys if (parent.pod() != Sys.m_sysPod) return 0; int p = returns.isGenericParameter() ? 1 : 0; for (int i=0; i<pars.sz(); ++i) p |= ((Param)pars.get(i)).m_type.isGenericParameter() ? 1 : 0; int mask = 0; if (p != 0) mask |= GENERIC; return mask; }