visitThrowStmt method

  1. @override
Uint8List visitThrowStmt(
  1. ThrowStmt stmt
)
override

Implementation

@override
Uint8List visitThrowStmt(ThrowStmt stmt) {
  final bytesBuilder = BytesBuilder();
  bytesBuilder.add(_lineInfo(stmt.line, stmt.column));
  final messageBytes = compileAST(stmt.message);
  bytesBuilder.add(messageBytes);
  bytesBuilder.addByte(HTOpCode.throws);
  return bytesBuilder.toBytes();
}