BlockFunctionBodyImpl constructor

BlockFunctionBodyImpl({
  1. required Token? keyword,
  2. required Token? star,
  3. required BlockImpl block,
})

Initialize a newly created function body consisting of a block of statements. The keyword can be null if there is no keyword specified for the block. The star can be null if there is no star following the keyword (and must be null if there is no keyword).

Implementation

BlockFunctionBodyImpl({
  required this.keyword,
  required this.star,
  required BlockImpl block,
}) : _block = block {
  _becomeParentOf(_block);
}