The type that the function return.
The CodeBuilder to use.
The name of the function.
The function's parameters.
The CodeFunc which generates the code for the function's body.
builder
auto builder = new CodeBuilder(); builder.addFuncDeclaration!int("six", null, (b){b.addReturn("6"d);}); builder.data.should.equal("int six()\n{\n\treturn 6;\n}\n");
Creates a function using the given data.