Fix a build problem when compiling NBC with json:trace logging
This commit is contained in:
parent
a333eb080f
commit
cf837b3fb6
|
@ -136,6 +136,14 @@ proc recordFieldsAux(result: var seq[FieldDescription],
|
||||||
|
|
||||||
result.add field
|
result.add field
|
||||||
|
|
||||||
|
of nnkSym:
|
||||||
|
result.add FieldDescription(
|
||||||
|
name: n,
|
||||||
|
typ: getType(n),
|
||||||
|
caseField: parentCaseField,
|
||||||
|
caseBranch: parentCaseBranch,
|
||||||
|
isDiscriminator: isDiscriminator)
|
||||||
|
|
||||||
of nnkNilLit, nnkDiscardStmt, nnkCommentStmt, nnkEmpty:
|
of nnkNilLit, nnkDiscardStmt, nnkCommentStmt, nnkEmpty:
|
||||||
discard
|
discard
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue