copyWith method

ArrayNode copyWith({
  1. String? type,
  2. Location? loc,
  3. List<Node>? children,
})

Implementation

ArrayNode copyWith({
  String? type,
  Location? loc,
  List<Node>? children,
}) {
  return ArrayNode(
    type ?? this.type,
    loc ?? this.loc,
    children ?? this.children,
  );
}