public static bool IsSimpleLiteralData(DType type)
 {
     return(type.Apply(IsSimpleLiteralDataVisitor.Ins));
 }
 public static string ToErlangLiteral(DType type)
 {
     return(type.Apply(ToErlangLiteralVisitor.Ins));
 }
 public static string ToPythonLiteral(DType type)
 {
     return(type != null?type.Apply(ToPythonLiteralVisitor.Ins) : "None");
 }
 public static string ToLuaLiteral(DType type)
 {
     return(type != null?type.Apply(ToLuaLiteralVisitor.Ins) : "nil");
 }
 public static string ToJsonPropertyName(DType type)
 {
     return("\"" + type.Apply(ToJsonPropertyNameVisitor.Ins) + "\"");
 }
Ejemplo n.º 6
0
 private string ToLuaCodeString(DType data, StringBuilder b)
 {
     b.Clear();
     data.Apply(this, b);
     return(b.ToString());
 }