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(fileName, moduleName, 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,
    definitionIp: definitionIp,
    definitionLine: definitionLine,
    definitionColumn: definitionColumn,
    namespace: namespace != null ? namespace as HTNamespace : null,
    redirectingConstructor: redirectingConstructor,
    klass: klass);