Sfoglia il codice sorgente

[all] Added classfield debug to -D dump

Caue Waneck 12 anni fa
parent
commit
22cae7b046
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      type.ml

+ 2 - 2
type.ml

@@ -1467,7 +1467,7 @@ let rec s_expr s_type e =
 	| TField (e,f) ->
 		let fstr = (match f with
 			| FStatic (c,f) -> "static(" ^ s_type_path c.cl_path ^ "." ^ f.cf_name ^ ")"
-			| FInstance (c,f) -> "inst(" ^ s_type_path c.cl_path ^ "." ^ f.cf_name ^ ")"
+			| FInstance (c,f) -> "inst(" ^ s_type_path c.cl_path ^ "." ^ f.cf_name ^ " : " ^ s_type f.cf_type ^ ")"
 			| FClosure (c,f) -> "closure(" ^ (match c with None -> f.cf_name | Some c -> s_type_path c.cl_path ^ "." ^ f.cf_name)  ^ ")"
 			| FAnon f -> "anon(" ^ f.cf_name ^ ")"
 			| FEnum (en,f) -> "enum(" ^ s_type_path en.e_path ^ "." ^ f.ef_name ^ ")"
@@ -1595,4 +1595,4 @@ let rec s_expr_pretty tabs s_type e =
 	| TCast (e,None) ->
 		sprintf "cast %s" (loop e)
 	| TCast (e,Some mt) ->
-		sprintf "cast (%s,%s)" (loop e) (s_type_path (t_path mt))
+		sprintf "cast (%s,%s)" (loop e) (s_type_path (t_path mt))