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,
      file: file,
      module: module,
      closure: closure != null ? closure as HTNamespace : null,
      source: source,
      prototypeId: prototypeId,
      isTopLevel: isTopLevel,
      staticDefinitionIp: staticDefinitionIp,
      definitionIp: ip,
    );