Exemple #1
0
 /// <summary>
 /// Return the .NET type name for this Fantom type.
 /// </summary>
 public static string toDotnetTypeName(Fan.Sys.Type type)
 {
     return toDotnetTypeName(type.pod().name(), type.name(), type.isNullable());
 }
Exemple #2
0
 /// <summary>
 /// Given a Fantom type, get its stack type: 'A', 'I', 'J', etc
 /// </summary>
 public static int toDotnetStackType(Fan.Sys.Type t)
 {
     if (!t.isNullable())
       {
     if (t == Fan.Sys.Sys.VoidType)  return 'V';
     if (t == Fan.Sys.Sys.BoolType)  return 'I';
     if (t == Fan.Sys.Sys.IntType)   return 'J';
     if (t == Fan.Sys.Sys.FloatType) return 'D';
       }
       return 'A';
 }