clone method

  1. @override
HTParameter clone()
override

Create a copy of this declaration, mainly used on class member inheritance and function arguments passing.

Implementation

@override
HTParameter clone() {
  return HTParameter(
    id: id!,
    interpreter: interpreter,
    fileName: fileName,
    moduleName: moduleName,
    closure: closure,
    declType: declType,
    definitionIp: definitionIp,
    definitionLine: definitionLine,
    definitionColumn: definitionColumn,
    isVariadic: isVariadic,
    isOptional: isOptional,
    isNamed: isNamed,
    isInitialization: isInitialization,
  );
}