Skip to content

Commit c57af28

Browse files
committed
format
1 parent e82342d commit c57af28

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

src/ml/GenerateSchema.ml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,9 @@ let rec findGraphQLType ~(env : SharedTypes.QueryEnv.t)
9898
if isSubscription then (
9999
let isAsyncIterablePath path =
100100
match pathIdentToList path |> List.rev with
101-
| "t" :: ("AsyncIterator" | "AsyncIterable" | "Stdlib__AsyncIterator"
102-
| "Stdlib__AsyncIterable")
101+
| "t"
102+
:: ( "AsyncIterator" | "AsyncIterable" | "Stdlib__AsyncIterator"
103+
| "Stdlib__AsyncIterable" )
103104
:: _ ->
104105
true
105106
| _ -> false
@@ -110,9 +111,9 @@ let rec findGraphQLType ~(env : SharedTypes.QueryEnv.t)
110111
~diagnostic:
111112
{
112113
loc =
113-
(match loc with
114-
| None -> Location.in_file (env.file.moduleName ^ ".res")
115-
| Some loc -> loc);
114+
(match loc with
115+
| None -> Location.in_file (env.file.moduleName ^ ".res")
116+
| Some loc -> loc);
116117
fileUri = env.file.uri;
117118
message =
118119
Printf.sprintf
@@ -1158,7 +1159,9 @@ and traverseStructure ?(modulePath = []) ?implStructure ?originModule
11581159
structure.items
11591160
|> List.iter (fun (item : SharedTypes.Module.item) ->
11601161
let attributes = item.attributes in
1161-
let gqlAttribute = attributes |> extractGqlAttribute ~schemaState ~env in
1162+
let gqlAttribute =
1163+
attributes |> extractGqlAttribute ~schemaState ~env
1164+
in
11621165
match (item.kind, gqlAttribute) with
11631166
| Module {type_ = Structure structure; _}, _ ->
11641167
(* Continue into modules (ignore module aliases etc) *)

src/ml/GenerateSchemaUtils.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ let uncapitalizeFirstChar s =
254254
if String.length s = 0 then s
255255
else String.mapi (fun i c -> if i = 0 then Char.lowercase_ascii c else c) s
256256

257-
let noticeObjectType ~env ~loc ~schemaState ~displayName ?syntheticTypeLocation ?description
258-
?(ignoreTypeLocation = false) ~makeFields typeName =
257+
let noticeObjectType ~env ~loc ~schemaState ~displayName ?syntheticTypeLocation
258+
?description ?(ignoreTypeLocation = false) ~makeFields typeName =
259259
if Hashtbl.mem schemaState.types typeName then ()
260260
else
261261
(*Printf.printf "noticing %s\n" typeName;*)
@@ -602,7 +602,7 @@ let processSchema (schemaState : schemaState) =
602602
| Some typeLocation -> (
603603
let fileUri =
604604
(match typeLocation with
605-
| Synthetic {fileUri} | Concrete {fileUri} -> fileUri)
605+
| Synthetic {fileUri} | Concrete {fileUri} -> fileUri)
606606
|> Uri.toPath
607607
in
608608
match Hashtbl.find_opt positionsToRead fileUri with

0 commit comments

Comments
 (0)