komodo/private/macro_helpers

Procs

proc generateConstructor(typeName: NimNode; formalParams: NimNode;
                         defaultStatements: NimNode; constructorBody: NimNode): NimNode {...}{.
    raises: [ValueError, Exception], tags: [RootEffect].}
  Source Edit
proc generateFormalParams(typeName: NimNode; constructorSignature: NimNode;
                          startingParams: NimNode = nil): NimNode {...}{.
    raises: [Exception], tags: [RootEffect].}
  Source Edit
proc generateTypeDefinition(typeName: NimNode; statements: NimNode;
                            parentTypeName: string): NimNode {...}{.
    raises: [ValueError, Exception], tags: [RootEffect].}
  Source Edit
proc generateInit(typeName: NimNode; initDefinition: NimNode;
                  defaultStatements: NimNode;
                  lockLevel: NimNode = knownLockLevel(0)): NimNode {...}{.
    raises: [Exception], tags: [RootEffect].}
  Source Edit
proc generateDestructor(typeName: NimNode; destructorDefinition: NimNode;
                        defaultStatements: NimNode = newEmptyNode()): NimNode {...}{.
    raises: [ValueError, Exception], tags: [RootEffect].}
  Source Edit

Funcs

func knownLockLevel(level: BiggestInt): NimNode {...}{.raises: [], tags: [].}
  Source Edit
func unknownLockLevel(): NimNode {...}{.raises: [], tags: [].}
  Source Edit