appending(_:)

Creates a new collection by appending the provided syntax element to the children.

SyntaxCollection.swift:131

This declaration is deprecated: Create a new array of elements and construct a new collection type from those elements

func appending(_ syntax: Element) -> Self

Parameters

syntax

The element to append.

Returns

A new collection with that element appended to the end.