Fix a build problem when compiling NBC with json:trace logging

This commit is contained in:
Zahary Karadjov 2020-05-25 20:32:29 +03:00
parent a333eb080f
commit cf837b3fb6
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 8 additions and 0 deletions

View File

@ -136,6 +136,14 @@ proc recordFieldsAux(result: var seq[FieldDescription],
result.add field
of nnkSym:
result.add FieldDescription(
name: n,
typ: getType(n),
caseField: parentCaseField,
caseBranch: parentCaseBranch,
isDiscriminator: isDiscriminator)
of nnkNilLit, nnkDiscardStmt, nnkCommentStmt, nnkEmpty:
discard