clone method

Implementation

@override
MixinDeclarationDirective clone() {
  var clonedArgs = <TreeNode>[];
  for (var arg in definedArgs) {
    clonedArgs.add(arg.clone());
  }
  return MixinDeclarationDirective(
      name, clonedArgs, varArgs, declarations.clone(), span);
}