clone method

  1. @override
HTVariableDeclaration clone()
override

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

Implementation

@override
HTVariableDeclaration clone() => HTVariableDeclaration(
    id: id!,
    classId: classId,
    closure: closure,
    source: source,
    declType: declType,
    isExternal: isExternal,
    isStatic: isStatic,
    isMutable: isMutable,
    isTopLevel: isTopLevel);