File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -125,9 +125,9 @@ let raw_as_string_exp_exn
125
125
Some e
126
126
| _ -> None
127
127
128
- let as_core_type loc x =
128
+ let as_core_type loc ( x : t ) =
129
129
match x with
130
- | Parsetree. PTyp x -> x
130
+ | PTyp x -> x
131
131
| _ -> Location. raise_errorf ~loc " except a core type"
132
132
133
133
let as_ident (x : t ) =
@@ -143,10 +143,6 @@ let as_ident (x : t ) =
143
143
}
144
144
] -> Some ident
145
145
| _ -> None
146
- (* open Ast_helper *)
147
-
148
- (* let raw_string_payload loc (s : string) : t =
149
- PStr [ Str.eval ~loc (Ast_compatible.const_exp_string ~loc s) ] *)
150
146
151
147
152
148
type lid = string Asttypes .loc
@@ -164,7 +160,7 @@ type action =
164
160
165
161
let ident_or_record_as_config
166
162
loc
167
- (x : Parsetree.payload )
163
+ (x : t )
168
164
: ( string Location. loc * Parsetree. expression option ) list
169
165
=
170
166
match x with
@@ -211,7 +207,7 @@ let ident_or_record_as_config
211
207
212
208
let assert_strings loc (x : t ) : string list
213
209
=
214
- let module M = struct exception Not_str end in
210
+ let exception Not_str in
215
211
match x with
216
212
| PStr [ {pstr_desc =
217
213
Pstr_eval (
@@ -227,8 +223,8 @@ let assert_strings loc (x : t) : string list
227
223
Pconst_string
228
224
(name ,_ )); _} ->
229
225
name
230
- | _ -> raise M. Not_str )
231
- with M. Not_str ->
226
+ | _ -> raise Not_str)
227
+ with Not_str ->
232
228
Location. raise_errorf ~loc "expect string tuple list"
233
229
)
234
230
| PStr [ {
You can’t perform that action at this time.
0 commit comments