SyntaxArenaAllocatedBufferPointer

An UnsafeBufferPointer pointing into memory that was allocated by a SyntaxArena.

SyntaxArenaAllocatedBuffer.swift:51

This declaration is gated by at least one @_spi attribute.

struct SyntaxArenaAllocatedBufferPointer<Element> where Element : Sendable

Because the syntax arena will always outlive any syntax nodes that reference its contents, we know that the buffer’s contents won’t get deallocated while being accessed and thus we can add an unchecked Sendable conformance.