예제 #1
0
파일: FanUtil.cs 프로젝트: nomit007/f4
 /// <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());
 }
예제 #2
0
파일: FanUtil.cs 프로젝트: nomit007/f4
 /// <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';
 }