clone method

  1. @override
HTFunctionDeclaration clone()
override

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

Implementation

@override
HTFunctionDeclaration clone() => HTFunctionDeclaration(
    internalName: internalName,
    id: id,
    classId: classId,
    closure: closure,
    source: source,
    isExternal: isExternal,
    isStatic: isStatic,
    isConst: isConst,
    isTopLevel: isTopLevel,
    category: category,
    externalTypeId: externalTypeId,
    genericTypeParameters: genericTypeParameters,
    paramDecls: paramDecls,
    declType: declType,
    isField: isField,
    isAbstract: isAbstract,
    isVariadic: isVariadic,
    minArity: minArity,
    maxArity: maxArity,
    namespace: namespace);