ListNode

interface ListNode : TermNode

Non-empty list syntax such as [a, b | Tail].

Empty lists are represented as an empty-list StructureNode.

Properties

Link copied to clipboard
abstract val children: List<SyntaxNode>

Immediate syntax children in source order.

Link copied to clipboard
abstract val items: List<ExpressionNode>

expressions before an optional tail delimiter

Link copied to clipboard
abstract val kind: SyntaxKind

Stable structural category of this node.

Link copied to clipboard
abstract val priority: Int

Root Prolog priority. Atomic and parenthesized terms have priority zero.

Link copied to clipboard
abstract val span: SourceSpan

End-exclusive range of source characters belonging to this node.

Link copied to clipboard
abstract val tail: ExpressionNode?

expression after |, or null for a proper list

Link copied to clipboard
abstract val tokenRange: TokenRange

End-exclusive range of absolute token IDs belonging to this node.

Functions

Link copied to clipboard
open override fun <T> accept(visitor: SyntaxNodeVisitor<T>): T

Dispatches this list to SyntaxNodeVisitor.visitList.