index(of:)

Return the index of node within this collection.

SyntaxCollection.swift:95
func index(of node: Element) -> SyntaxChildrenIndex?

If node is not part of this collection, returns nil.