FunctionBlockBodyExt extension
Extension for the FunctionBody class from the analyzer package.
Adds helper methods for working with different types of function bodies.
- on
-
- FunctionBody
Methods
-
getBlockBody(
) → BlockFunctionBody? -
Available on FunctionBody, provided by the FunctionBlockBodyExt extension
Returns the function body of typeBlockFunctionBodyif the current node is such. -
getEmptyBody(
) → EmptyFunctionBody? -
Available on FunctionBody, provided by the FunctionBlockBodyExt extension
Returns the function body of typeEmptyFunctionBodyif the current node is such. -
getExpressionBody(
) → ExpressionFunctionBody? -
Available on FunctionBody, provided by the FunctionBlockBodyExt extension
Returns the function body of typeExpressionFunctionBodyif the current node is such.