visitSpreadExpr method

  1. @override
Uint8List visitSpreadExpr(
  1. SpreadExpr expr
)
override

Implementation

@override
Uint8List visitSpreadExpr(SpreadExpr expr) {
  final bytesBuilder = BytesBuilder();
  bytesBuilder.addByte(1); // bool: isSpread
  final bytes = compileAST(expr.collection);
  bytesBuilder.add(bytes);
  return bytesBuilder.toBytes();
}