This reverts commit 232710f5b2
.
This commit is contained in:
parent
ea965bbe00
commit
a12beabd2f
|
@ -180,10 +180,9 @@ func maxAbsValue(T: type[SomeInteger]): uint64 {.compileTime.} =
|
||||||
else: uint64(high(T))
|
else: uint64(high(T))
|
||||||
|
|
||||||
proc parseJsonNode(r: var JsonReader): JsonNode
|
proc parseJsonNode(r: var JsonReader): JsonNode
|
||||||
{.gcsafe, raises: [UnexpectedValueError, IOError, JsonReaderError, Defect].}
|
{.gcsafe, raises: [IOError, JsonReaderError, Defect].}
|
||||||
|
|
||||||
proc readJsonNodeField(r: var JsonReader, field: var JsonNode) {.
|
proc readJsonNodeField(r: var JsonReader, field: var JsonNode) =
|
||||||
raises: [UnexpectedValueError, UnexpectedTokenError, JsonReaderError, KeyError, IOError, Defect].} =
|
|
||||||
if field != nil:
|
if field != nil:
|
||||||
r.raiseUnexpectedValue("Unexpected duplicated field name")
|
r.raiseUnexpectedValue("Unexpected duplicated field name")
|
||||||
|
|
||||||
|
@ -394,7 +393,7 @@ template isCharArray[N](v: array[N, char]): bool = true
|
||||||
template isCharArray(v: auto): bool = false
|
template isCharArray(v: auto): bool = false
|
||||||
|
|
||||||
proc readValue*[T](r: var JsonReader, value: var T)
|
proc readValue*[T](r: var JsonReader, value: var T)
|
||||||
{.raises: [UnexpectedValueError, SerializationError, IOError, Defect].} =
|
{.raises: [SerializationError, IOError, Defect].} =
|
||||||
mixin readValue
|
mixin readValue
|
||||||
type ReaderType {.used.} = type r
|
type ReaderType {.used.} = type r
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue