clone method

  1. @override
HTParameterDeclaration clone()
override

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

Implementation

@override
HTParameterDeclaration clone() {
  return HTParameterDeclaration(
    id: id!,
    closure: closure,
    declType: declType,
    isVariadic: isVariadic,
    isOptional: isOptional,
    isNamed: isNamed,
    isInitialization: isInitialization,
  );
}