File tree Expand file tree Collapse file tree 11 files changed +11
-11
lines changed
Expand file tree Collapse file tree 11 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 11Since we generate invalid syntax for the argument of the make fn `(Props : <> )`
22We need to output ML syntax here, otherwise refmt could not parse it.
3- $ .. / ppx. sh -- output ml input. re
3+ $ bash .. / ppx. sh -- output ml input. re
44 module X_as_main_function =
55 struct
66 external xProps : ? key : string -> unit -> < > Js. t = " " [@@ mel . obj ]
Original file line number Diff line number Diff line change 11Since we generate invalid syntax for the argument of the make fn `(Props : <> )`
22We need to output ML syntax here, otherwise refmt could not parse it.
3- $ .. / ppx. sh -- output ml input. re
3+ $ bash .. / ppx. sh -- output ml input. re
44 module React_component_with_props =
55 struct
66 external makeProps :
Original file line number Diff line number Diff line change 1- $ .. / ppx. sh -- output re input. re
1+ $ bash .. / ppx. sh -- output re input. re
22 module External = {
33 [@ mel . obj]
44 external componentProps:
Original file line number Diff line number Diff line change 1- $ .. / ppx. sh -- output re input. re
1+ $ bash .. / ppx. sh -- output re input. re
22 let fragment = foo =>
33 [@ bla ]
44 React. jsx(
Original file line number Diff line number Diff line change 11Since we generate invalid syntax for the argument of the make fn `(Props : <> )`
22We need to output ML syntax here, otherwise refmt could not parse it.
3- $ .. / ppx. sh -- output ml input. re
3+ $ bash .. / ppx. sh -- output ml input. re
44 module type X_int = sig val x : int end
55 module Func (M: X_int) =
66 struct
Original file line number Diff line number Diff line change 1- $ .. / ppx. sh -- output re input. re
1+ $ bash .. / ppx. sh -- output re input. re
22 let lower = ReactDOM. jsx(" div" , ([@ merlin . hide] ReactDOM. domProps)());
33 let lower_empty_attr =
44 ReactDOM. jsx(" div" , ([@ merlin . hide] ReactDOM. domProps)(~ className= " " , ()));
Original file line number Diff line number Diff line change 11Since we generate invalid syntax for the argument of the make fn `(Props : <> )`
22We need to output ML syntax here, otherwise refmt could not parse it.
3- $ .. / ppx. sh -- output ml input. re
3+ $ bash .. / ppx. sh -- output ml input. re
44 File " output.ml" , line 5 , characters 68 -76:
55 5 | no_props
66 ^^^^^^^^
Original file line number Diff line number Diff line change 11Since we generate invalid syntax for the argument of the make fn `(Props : <> )`
22We need to output ML syntax here, otherwise refmt could not parse it.
3- $ .. / ppx. sh -- output ml input. re
3+ $ bash .. / ppx. sh -- output ml input. re
44 module Record_props =
55 struct
66 external makeProps :
Original file line number Diff line number Diff line change 1- $ .. / ppx. sh -- output ml input. re
1+ $ bash .. / ppx. sh -- output ml input. re
22 module Greeting :
33 sig
44 external makeProps :
Original file line number Diff line number Diff line change 1- $ .. / ppx. sh -- output re input. re
1+ $ bash .. / ppx. sh -- output re input. re
22 module Example = {
33 [@ mel . obj]
44 external makeProps:
You can’t perform that action at this time.
0 commit comments