src/sys/dotnet/fan/sys/GenericType.cs
/// <summary>
/// Recursively parameterize the pars of a method type.
/// </summary>
Recursively parameterize the pars of a method type.
Recursively parameterize the pars of a method type .
internal FuncType parameterizeFuncType(FuncType t)
    {
      Type[] pars = new Type[t.m_params.Length];
      for (int i=0; i<pars.Length; i++)
      {
        Type param = t.m_params[i];
        if (param.isGenericParameter()) param = doParameterize(param);
        pars[i] = param;
      }
      Type ret = t.m_ret;
      if (ret.isGenericParameter()) ret = doParameterize(ret);
      return new FuncType(pars, ret);
    }
internal FuncType parameterizeFuncType ( FuncType t ) { Type [ ] pars = new Type [ t . m_params . Length ] ; for ( int i = 0 ; i < pars . Length ; i ++ ) { Type param = t . m_params [ i ] ; if ( param . isGenericParameter ( ) ) param = doParameterize ( param ) ; pars [ i ] = param ; } Type ret = t . m_ret ; if ( ret . isGenericParameter ( ) ) ret = doParameterize ( ret ) ; return new FuncType ( pars , ret ) ; }
Recursively parameterize the pars of a method type.
Recursively parameterize the pars of a method type .
t
FuncType