Skip to content

Commit 7a24abd

Browse files
committed
fix code
1 parent a0fe27d commit 7a24abd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: analysis/src/SemanticTokens.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ let command ~debug ~emitter ~path =
311311
cases
312312
|> List.filter_map (fun ((label : Longident.t Location.loc), _) ->
313313
match label.txt with
314-
| Longident.Lident s when Utils.isFirstCharUppercase s ->
314+
| Longident.Lident s when not (Utils.isFirstCharUppercase s) ->
315315
Some label
316316
| _ -> None)
317317
|> List.iter (fun label -> emitter |> emitRecordLabel ~label ~debug);

Diff for: analysis/src/Utils.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let endsWith s suffix =
1616
p <= String.length s && String.sub s (l - p) p = suffix
1717

1818
let isFirstCharUppercase s =
19-
String.length s > 0 && not (Char.equal s.[0] (Char.uppercase_ascii s.[0]))
19+
String.length s > 0 && Char.equal s.[0] (Char.uppercase_ascii s.[0])
2020

2121
let cmtPosToPosition {Lexing.pos_lnum; pos_cnum; pos_bol} =
2222
Protocol.{line = pos_lnum - 1; character = pos_cnum - pos_bol}

0 commit comments

Comments
 (0)