clone method

  1. @override
HTFunction clone()
override

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

Implementation

@override
HTFunction clone() => HTFunction(
      file,
      module,
      interpreter,
      internalName: internalName,
      id: id,
      classId: classId,
      closure: closure != null ? closure as HTNamespace : null,
      source: source,
      isExternal: isExternal,
      isStatic: isStatic,
      isConst: isConst,
      isTopLevel: isTopLevel,
      category: category,
      externalTypeId: externalTypeId,
      genericTypeParameters: genericTypeParameters,
      hasParamDecls: hasParamDecls,
      paramDecls: paramDecls,
      declType: declType,
      isAbstract: isAbstract,
      isVariadic: isVariadic,
      minArity: minArity,
      maxArity: maxArity,
      externalFunc: externalFunc,
      ip: ip,
      line: line,
      column: column,
      namespace: namespace != null ? namespace as HTNamespace : null,
      redirectingConstructor: redirectingConstructor,
      klass: klass,
    );