getExpressionBody method

ExpressionFunctionBody? getExpressionBody()

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

Return value:

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

Implementation

ExpressionFunctionBody? getExpressionBody() =>
    getNodeOfExactType<ExpressionFunctionBody>();