Summary
Appends a method body.
- Assembly
- Weaver
.dll - Namespace
- Weaver
.Editor .Procedural .Scripting - Containing Type
- MethodBuilder
Syntax
public static void AppendBody(StringBuilder text, int indent, AppendFunction appendBody)
Remarks
If the body starts with whitespace, it is surrounded by braces and given multiple lines:
... Method(...)
{
Body
}
Otherwise it is appended as an expression-bodied method:
... Method(...) => Body;
Parameters
Name | Type | Description |
---|---|---|
text | StringBuilder | |
indent | int | |
appendBody | AppendFunction |
Return Value
Type | Description |
---|---|
void |