Skip to content

Commit dfa518b

Browse files
NSHkrNSHkr
authored andcommitted
fix code qual
1 parent f0227c7 commit dfa518b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/json_remedy/layer3/optimized/binary_parser.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ defmodule JsonRemedy.Layer3.Optimized.BinaryParser do
1212
@doc """
1313
Optimized quote_unquoted_keys using binary pattern matching and IO lists.
1414
"""
15+
@spec quote_unquoted_keys_optimized(binary()) :: {binary(), [map()]}
1516
def quote_unquoted_keys_optimized(input) when is_binary(input) do
1617
{result_iolist, repairs} = quote_keys_binary(input, [], false, false, nil, [])
1718
{IO.iodata_to_binary(result_iolist), repairs}
@@ -187,6 +188,7 @@ defmodule JsonRemedy.Layer3.Optimized.BinaryParser do
187188
@doc """
188189
Optimized normalize_literals using binary pattern matching.
189190
"""
191+
@spec normalize_literals_optimized(binary()) :: {binary(), [map()]}
190192
def normalize_literals_optimized(input) when is_binary(input) do
191193
{result_iolist, repairs} = normalize_literals_binary(input, [], false, false, nil, [])
192194
{IO.iodata_to_binary(result_iolist), repairs}

lib/json_remedy/layer3/optimized/iolist_builder.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ defmodule JsonRemedy.Layer3.Optimized.IOListBuilder do
1616
1717
This replaces the quadratic `result <> char` pattern with O(1) IO list operations.
1818
"""
19+
@spec quote_unquoted_keys_iolist(binary()) :: {binary(), [map()]}
1920
def quote_unquoted_keys_iolist(input) when is_binary(input) do
2021
{result_iolist, repairs} =
2122
quote_unquoted_keys_char_by_char_iolist(input, [], 0, false, false, nil, [])

0 commit comments

Comments
 (0)