body

inline fun <T : Statement> FunctionDeclaration.body(n: Int = 0): T

This inline function returns the n-th body statement (in AST order) as specified in T. It throws a StatementNotFound exception if it does not exist or match the type.

For convenience, n defaults to zero, so that the first statement is always easy to fetch.