getBlockBody method
BlockFunctionBody?
getBlockBody()
Returns the function body of type BlockFunctionBody if the current node is such.
Return value:
BlockFunctionBody?: The function body of typeBlockFunctionBody, ornullif not applicable.
Implementation
BlockFunctionBody? getBlockBody() => getNodeOfExactType<BlockFunctionBody>();