copy method

Implementation

FunctionDefinition copy() {
  return FunctionDefinition(
    name,
    returnType,
    List.from(parameters.map((e) => e.copy())),
  );
}