Browse Source

Create synthetic name for anonymous procedure types.

k_john_gough_cp 12 năm trước cách đây
mục cha
commit
084a53da64
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      gpcp/JavaUtil.cp

+ 4 - 0
gpcp/JavaUtil.cp

@@ -717,6 +717,10 @@ MODULE JavaUtil;
    (* ###################################### *)
    (* ###################################### *)
     IF typ.xName # NIL THEN RETURN END;
     IF typ.xName # NIL THEN RETURN END;
    (* ###################################### *)
    (* ###################################### *)
+    IF typ.idnt = NIL THEN              (* Anonymous procedure type *)
+      typ.idnt := Id.newAnonId(typ.serial);
+      typ.idnt.type := typ;
+    END;
 	tIdent := typ.idnt;
 	tIdent := typ.idnt;
     IF tIdent.dfScp = NIL THEN tIdent.dfScp := Cst.thisMod END;
     IF tIdent.dfScp = NIL THEN tIdent.dfScp := Cst.thisMod END;
 	NEW(hostTp);
 	NEW(hostTp);