clone method

  1. @override
SupportsDirective clone()
override

Implementation

@override
SupportsDirective clone() {
  var clonedCondition = condition!.clone() as SupportsCondition;
  var clonedGroupRuleBody = <TreeNode>[];
  for (var rule in groupRuleBody) {
    clonedGroupRuleBody.add(rule.clone());
  }
  return SupportsDirective(clonedCondition, clonedGroupRuleBody, span);
}