getBlockBody method

BlockFunctionBody? getBlockBody()

Returns the function body of type BlockFunctionBody if the current node is such.

Return value:

  • BlockFunctionBody?: The function body of type BlockFunctionBody, or null if not applicable.

Implementation

BlockFunctionBody? getBlockBody() => getNodeOfExactType<BlockFunctionBody>();