clone method

  1. @override
HTNamedStruct clone()
override

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

Implementation

@override
HTNamedStruct clone() => HTNamedStruct(
    id: id!,
    interpreter: interpreter,
    fileName: fileName,
    moduleName: moduleName,
    closure: closure != null ? closure as HTNamespace : null,
    source: source,
    prototypeId: prototypeId,
    isTopLevel: isTopLevel,
    staticDefinitionIp: staticDefinitionIp,
    definitionIp: definitionIp);