File tree Expand file tree Collapse file tree 5 files changed +5
-50
lines changed Expand file tree Collapse file tree 5 files changed +5
-50
lines changed Original file line number Diff line number Diff line change @@ -369,21 +369,6 @@ module Vb = struct
369
369
}
370
370
end
371
371
372
- module Ci = struct
373
- let mk ?(loc = ! default_loc) ?(attrs = [] )
374
- ?(docs = empty_docs) ?(text = [] )
375
- ?(virt = Concrete ) ?(params = [] ) name expr =
376
- {
377
- pci_virt = virt;
378
- pci_params = params;
379
- pci_name = name;
380
- pci_expr = expr;
381
- pci_attributes =
382
- add_text_attrs text (add_docs_attrs docs attrs);
383
- pci_loc = loc;
384
- }
385
- end
386
-
387
372
module Type = struct
388
373
let mk ?(loc = ! default_loc) ?(attrs = [] )
389
374
?(docs = empty_docs) ?(text = [] )
Original file line number Diff line number Diff line change @@ -349,11 +349,3 @@ module Cty:
349
349
val open_ : ?loc : loc -> ?attrs : attrs -> override_flag -> lid -> class_type
350
350
-> class_type
351
351
end
352
-
353
- (* * Classes *)
354
- module Ci :
355
- sig
356
- val mk : ?loc : loc -> ?attrs : attrs -> ?docs : docs -> ?text : text ->
357
- ?virt : virtual_flag -> ?params : (core_type * variance ) list ->
358
- str -> 'a -> 'a class_infos
359
- end
Original file line number Diff line number Diff line change @@ -7603,9 +7603,8 @@ let yyact = [|
7603
7603
let _9 = (Parsing.peek_val __caml_parser_env 0 : 'post_item_attributes) in
7604
7604
Obj.repr(
7605
7605
# 1035 "ml/parser.mly"
7606
- ( let (ext, attrs) = _3 in
7607
- Ci.mk (mkrhs _6 6) _8 ~virt:_4 ~params:_5 ~attrs:(attrs@_9)
7608
- ~loc:(symbol_rloc ()) ~docs:(symbol_docs ())
7606
+ ( let (ext, _attrs) = _3 in
7607
+ assert false
7609
7608
, ext)
7610
7609
# 7615 "ml/parser.ml"
7611
7610
: 'class_type_declaration))
@@ -7618,9 +7617,7 @@ let yyact = [|
7618
7617
let _8 = (Parsing.peek_val __caml_parser_env 0 : 'post_item_attributes) in
7619
7618
Obj.repr(
7620
7619
# 1043 "ml/parser.mly"
7621
- ( Ci.mk (mkrhs _5 5) _7 ~virt:_3 ~params:_4
7622
- ~attrs:(_2@_8) ~loc:(symbol_rloc ())
7623
- ~text:(symbol_text ()) ~docs:(symbol_docs ()) )
7620
+ ( assert false )
7624
7621
# 7629 "ml/parser.ml"
7625
7622
: 'and_class_type_declaration))
7626
7623
; (fun __caml_parser_env ->
Original file line number Diff line number Diff line change @@ -1029,16 +1029,13 @@ class_type_declaration:
1029
1029
CLASS TYPE ext_attributes virtual_flag class_type_parameters LIDENT EQUAL
1030
1030
class_signature post_item_attributes
1031
1031
{ let (ext, attrs) = $3 in
1032
- Ci. mk (mkrhs $6 6) $8 ~virt:$4 ~params:$5 ~attrs:(attrs@$9)
1033
- ~loc:(symbol_rloc ()) ~docs:(symbol_docs ())
1032
+ assert false
1034
1033
, ext}
1035
1034
;
1036
1035
and_class_type_declaration :
1037
1036
AND attributes virtual_flag class_type_parameters LIDENT EQUAL
1038
1037
class_signature post_item_attributes
1039
- { Ci. mk (mkrhs $5 5) $7 ~virt:$3 ~params:$4
1040
- ~attrs:($2@$8) ~loc:(symbol_rloc ())
1041
- ~text:(symbol_text ()) ~docs:(symbol_docs ()) }
1038
+ { assert false }
1042
1039
;
1043
1040
1044
1041
/* Core expressions */
Original file line number Diff line number Diff line change @@ -508,22 +508,6 @@ and class_type_desc =
508
508
| Pcty_open of override_flag * Longident. t loc * class_type
509
509
(* let open M in CT *)
510
510
511
- and 'a class_infos =
512
- {
513
- pci_virt : virtual_flag ;
514
- pci_params : (core_type * variance ) list ;
515
- pci_name : string loc ;
516
- pci_expr : 'a ;
517
- pci_loc : Location .t ;
518
- pci_attributes : attributes ; (* ... [@@id1] [@@id2] *)
519
- }
520
- (* class c = ...
521
- class ['a1,...,'an] c = ...
522
- class virtual c = ...
523
-
524
- Also used for "class type" declaration.
525
- *)
526
-
527
511
(* * {1 Module language} *)
528
512
529
513
(* Type expressions for the module language *)
You can’t perform that action at this time.
0 commit comments