File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ~schema State ~env in
1162+ let gqlAttribute =
1163+ attributes |> extractGqlAttribute ~schema State ~env
1164+ in
11621165 match (item.kind, gqlAttribute) with
11631166 | Module {type_ = Structure structure ; _} , _ ->
11641167 (* Continue into modules (ignore module aliases etc) *)
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments