holo_json/dump_helpers

Search:
Group by:
Source   Edit  

Types

ArrayDump = object
  needsComma*: bool
Source   Edit  
ObjectDump = object
  needsComma*: bool
Source   Edit  

Procs

proc finishArrayDump(format: JsonDumpFormat; writer: JsonWriterArg;
                     arr: var ArrayDump) {.inline, ...raises: [Exception],
    tags: [RootEffect], forbids: [].}
Source   Edit  
proc finishArrayItem(format: JsonDumpFormat; writer: JsonWriterArg;
                     arr: var ArrayDump) {.inline, ...raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc finishObjectDump(format: JsonDumpFormat; writer: JsonWriterArg;
                      arr: var ObjectDump) {.inline, ...raises: [Exception],
    tags: [RootEffect], forbids: [].}
Source   Edit  
proc finishObjectField(format: JsonDumpFormat; writer: JsonWriterArg;
                       arr: var ObjectDump) {.inline, ...raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc startArrayDump(format: JsonDumpFormat; writer: JsonWriterArg): ArrayDump {.
    inline, ...raises: [Exception], tags: [RootEffect], forbids: [].}
Source   Edit  
proc startArrayItem(format: JsonDumpFormat; writer: JsonWriterArg;
                    arr: var ArrayDump) {.inline, ...raises: [Exception],
    tags: [RootEffect], forbids: [].}
Source   Edit  
proc startObjectDump(format: JsonDumpFormat; writer: JsonWriterArg): ObjectDump {.
    inline, ...raises: [Exception], tags: [RootEffect], forbids: [].}
Source   Edit  
proc startObjectField[T](format: JsonDumpFormat; writer: JsonWriterArg;
                         arr: var ObjectDump; name: T; raw = false) {.inline.}
Source   Edit  

Templates

template withArrayDump(format: JsonDumpFormat; writer: JsonWriterArg;
                       arr: var ArrayDump; body: typed)
Source   Edit  
template withArrayItem(format: JsonDumpFormat; writer: JsonWriterArg;
                       arr: var ArrayDump; body: typed)
Source   Edit  
template withObjectDump(format: JsonDumpFormat; writer: JsonWriterArg;
                        arr: var ObjectDump; body: typed)
Source   Edit  
template withObjectField(format: JsonDumpFormat; writer: JsonWriterArg;
                         arr: var ObjectDump; name: string; body: typed)
Source   Edit  
template withRawObjectField(format: JsonDumpFormat; writer: JsonWriterArg;
                            arr: var ObjectDump; name: string; body: typed)
Source   Edit