def GetFunctionParamPrototype(scope, param):
  """Gets the string needed to declare a parameter in a function prototype.

  Args:
    scope: the scope of the prototype.
    param: the Function.Param to declare

  Returns:
    a string that is the declaration of the parameter in the prototype.
  """
  bm = param.type_defn.binding_model
  if param.mutable:
    text = bm.JavaMemberString(scope, param.type_defn)
  else:
    text = bm.JavaMemberString(scope, param.type_defn)
  return '%s %s' % (text, param.name)