expressionFunctionBody2 abstract method

ExpressionFunctionBody expressionFunctionBody2({
  1. Token? keyword,
  2. Token? star,
  3. required Token functionDefinition,
  4. required Expression expression,
  5. Token? semicolon,
})

Returns a newly created function body consisting of an expression. The keyword can be null if the function body is not an async function body. The star can be null if there is no star following the keyword (and must be null if there is no keyword).

Implementation

ExpressionFunctionBody expressionFunctionBody2({
  Token? keyword,
  Token? star,
  required Token functionDefinition,
  required Expression expression,
  Token? semicolon,
});