src/sys/dotnet/fan/sys/GenericType.cs
/// <summary>
/// Parameterize the specified field (reuse if generic
/// parameterization isn't necessary).
/// </summary>
Parameterize the specified field (reuse if generic
parameterization isn't necessary).
Parameterize the specified field ( reuse if generic parameterization isn ' t necessary ) .
internal Field parameterize(Field f)
    {
      Type of = f.type();
      if (!of.isGenericParameter()) return f;
      of = parameterize(of);
      Field pf = new Field(this, f.m_name, f.m_flags, f.m_facets, f.m_lineNum, of);
      pf.m_reflect = f.m_reflect;
      return pf;
    }
internal Field parameterize ( Field f ) { Type of = f . type ( ) ; if ( ! of . isGenericParameter ( ) ) return f ; of = parameterize ( of ) ; Field pf = new Field ( this , f . m_name , f . m_flags , f . m_facets , f . m_lineNum , of ) ; pf . m_reflect = f . m_reflect ; return pf ; }
Parameterize the specified field (reuse if generic
parameterization isn't necessary).
Parameterize the specified field ( reuse if generic parameterization isn ' t necessary ) .
// if not generic, short circuit and reuse original // create new parameterized version
f
Field