clone method

  1. @override
HostDirective clone()
override

Implementation

@override
HostDirective clone() {
  var cloneRules = <TreeNode>[];
  for (var rule in rules) {
    cloneRules.add(rule.clone());
  }
  return HostDirective(cloneRules, span);
}