visitInOfExpr method

  1. @override
Uint8List visitInOfExpr(
  1. InOfExpr expr
)
override

Implementation

@override
Uint8List visitInOfExpr(InOfExpr expr) {
  final bytesBuilder = BytesBuilder();
  bytesBuilder.addByte(expr.valueOf ? 1 : 0); // bool: in is 0, of is 1
  final collectionExpr = compileAST(expr.collection, endOfExec: true);
  bytesBuilder.add(collectionExpr);
  return bytesBuilder.toBytes();
}