getEmptyBody method

EmptyFunctionBody? getEmptyBody()

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

Return value:

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

Implementation

EmptyFunctionBody? getEmptyBody() => getNodeOfExactType<EmptyFunctionBody>();