Defines procs for various validation stpes within threadButler. Mostly related to compile-time validation of macros.
This module is only intended for use within threadButler and for integrations.
Procs
proc validateAllTypesHaveHandlers(name: ThreadName) {....raises: [ValueError], tags: [], forbids: [].}
- Source Edit
proc validateChannelHubParam(name: ThreadName; procDef: NimNode; expectedHubParamPosition: int) {. ...raises: [ValueError], tags: [], forbids: [].}
- Source Edit
proc validateFreeType(name: ThreadName; procDef: NimNode) {. ...raises: [ValueError], tags: [], forbids: [].}
- Validates for a route procDef that the message type it gets called with is not already registered with another route. Source Edit
proc validateHandlerSection(name: ThreadName; handlerSection: NimNode; expectedParamCount: int = 2; expectedHubParamPosition: int = 2) {. ...raises: [ValueError], tags: [], forbids: [].}
- Source Edit
proc validateMsgType(name: ThreadName; procDef: NimNode) {....raises: [ValueError], tags: [], forbids: [].}
- Validates for a route procDef that the message type it gets called with is also a type registered with threadButler. Source Edit
proc validateParamCount(name: ThreadName; procDef: NimNode; expectedParamCount: int) {....raises: [ValueError], tags: [], forbids: [].}
- Source Edit
proc validatePropertiesSection(name: ThreadName; propertySection: NimNode) {. ...raises: [ValueError], tags: [], forbids: [].}
- Source Edit
proc validateSectionNames(body: NimNode) {....raises: [ValueError], tags: [], forbids: [].}
- Source Edit
proc validateTypeSection(name: ThreadName; typeSection: NimNode) {. ...raises: [ValueError], tags: [], forbids: [].}
- Source Edit